[2025-02-13 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 21:00:07 [end_date_ymd] => 2025-02-13 00:00:07 [RateCDR] => 1 ) [2025-02-13 00: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-02-12 21:00:07' and `end` < '2025-02-13 00: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-02-13 00:00:21] Production.INFO: count ==790 [2025-02-13 00:00:21] Production.ERROR: pbx CDR StartTime 2025-02-12 21:00:07 - End Time 2025-02-13 00:00:07 [2025-02-13 00:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462596', 'tblTempUsageDetail_20' ) start [2025-02-13 00:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462596', 'tblTempUsageDetail_20' ) end [2025-02-13 00:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462596', 'tblTempVendorCDR_20' ) start [2025-02-13 00:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462596', 'tblTempVendorCDR_20' ) end [2025-02-13 00:00:22] Production.INFO: ProcessCDR(1,14462596,1,1,2) [2025-02-13 00:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462596', 'tblTempUsageDetail_20' ) start [2025-02-13 00:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462596', 'tblTempUsageDetail_20' ) end [2025-02-13 00:00:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 00:00:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 00:00:28] Production.INFO: ==31502== Releasing lock... [2025-02-13 00:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 00:00:28] Production.INFO: 34.75 MB #Memory Used# [2025-02-13 00:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 21:01:05 [end_date_ymd] => 2025-02-13 00:01:05 [RateCDR] => 1 ) [2025-02-13 00: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-02-12 21:01:05' and `end` < '2025-02-13 00: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-02-13 00:01:18] Production.INFO: count ==787 [2025-02-13 00:01:18] Production.ERROR: pbx CDR StartTime 2025-02-12 21:01:05 - End Time 2025-02-13 00:01:05 [2025-02-13 00:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462601', 'tblTempUsageDetail_20' ) start [2025-02-13 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462601', 'tblTempUsageDetail_20' ) end [2025-02-13 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462601', 'tblTempVendorCDR_20' ) start [2025-02-13 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462601', 'tblTempVendorCDR_20' ) end [2025-02-13 00:01:19] Production.INFO: ProcessCDR(1,14462601,1,1,2) [2025-02-13 00:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462601', 'tblTempUsageDetail_20' ) start [2025-02-13 00:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462601', 'tblTempUsageDetail_20' ) end [2025-02-13 00:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 00:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 00:01:22] Production.INFO: ==31588== Releasing lock... [2025-02-13 00:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 00:01:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-13 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 21:02:05 [end_date_ymd] => 2025-02-13 00:02:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 21:02:05' and `end` < '2025-02-13 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-02-13 00:02:37] Production.INFO: count ==260 [2025-02-13 00:02:37] Production.ERROR: pbx CDR StartTime 2025-02-12 21:02:05 - End Time 2025-02-13 00:02:05 [2025-02-13 00:02:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 00:02:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462606', 'tblTempUsageDetail_20' ) start [2025-02-13 00:02:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462606', 'tblTempUsageDetail_20' ) end [2025-02-13 00:02:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462606', 'tblTempVendorCDR_20' ) start [2025-02-13 00:02:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462606', 'tblTempVendorCDR_20' ) end [2025-02-13 00:02:37] Production.INFO: ProcessCDR(1,14462606,1,1,2) [2025-02-13 00:02:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:02:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:02:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:02:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:02:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462606', 'tblTempUsageDetail_20' ) start [2025-02-13 00:02:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462606', 'tblTempUsageDetail_20' ) end [2025-02-13 00:02:40] Production.ERROR: pbx prc_insertCDR start [2025-02-13 00:02:40] Production.ERROR: pbx prc_insertCDR end [2025-02-13 00:02:40] Production.INFO: ==31668== Releasing lock... [2025-02-13 00:02:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 00:02:40] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 21:03:05 [end_date_ymd] => 2025-02-13 00:03:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 21:03:05' and `end` < '2025-02-13 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-02-13 00:03:28] Production.INFO: count ==256 [2025-02-13 00:03:28] Production.ERROR: pbx CDR StartTime 2025-02-12 21:03:05 - End Time 2025-02-13 00:03:05 [2025-02-13 00:03:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 00:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462611', 'tblTempUsageDetail_20' ) start [2025-02-13 00:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462611', 'tblTempUsageDetail_20' ) end [2025-02-13 00:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462611', 'tblTempVendorCDR_20' ) start [2025-02-13 00:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462611', 'tblTempVendorCDR_20' ) end [2025-02-13 00:03:28] Production.INFO: ProcessCDR(1,14462611,1,1,2) [2025-02-13 00:03:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:03:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:03:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:03:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462611', 'tblTempUsageDetail_20' ) start [2025-02-13 00:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462611', 'tblTempUsageDetail_20' ) end [2025-02-13 00:03:31] Production.ERROR: pbx prc_insertCDR start [2025-02-13 00:03:31] Production.ERROR: pbx prc_insertCDR end [2025-02-13 00:03:31] Production.INFO: ==31741== Releasing lock... [2025-02-13 00:03:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 00:03:31] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 21:04:05 [end_date_ymd] => 2025-02-13 00:04:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 21:04:05' and `end` < '2025-02-13 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-02-13 00:04:32] Production.INFO: count ==254 [2025-02-13 00:04:32] Production.ERROR: pbx CDR StartTime 2025-02-12 21:04:05 - End Time 2025-02-13 00:04:05 [2025-02-13 00:04:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 00:04:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462616', 'tblTempUsageDetail_20' ) start [2025-02-13 00:04:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462616', 'tblTempUsageDetail_20' ) end [2025-02-13 00:04:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462616', 'tblTempVendorCDR_20' ) start [2025-02-13 00:04:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462616', 'tblTempVendorCDR_20' ) end [2025-02-13 00:04:32] Production.INFO: ProcessCDR(1,14462616,1,1,2) [2025-02-13 00:04:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:04:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:04:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:04:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:04:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462616', 'tblTempUsageDetail_20' ) start [2025-02-13 00:04:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462616', 'tblTempUsageDetail_20' ) end [2025-02-13 00:04:35] Production.ERROR: pbx prc_insertCDR start [2025-02-13 00:04:35] Production.ERROR: pbx prc_insertCDR end [2025-02-13 00:04:35] Production.INFO: ==31856== Releasing lock... [2025-02-13 00:04:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 00:04:35] Production.INFO: 30.5 MB #Memory Used# [2025-02-13 00:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 21:05:04 [end_date_ymd] => 2025-02-13 00:05:04 [RateCDR] => 1 ) [2025-02-13 00:05: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-02-12 21:05:04' and `end` < '2025-02-13 00:05: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-02-13 00:05:31] Production.INFO: count ==250 [2025-02-13 00:05:31] Production.ERROR: pbx CDR StartTime 2025-02-12 21:05:04 - End Time 2025-02-13 00:05:04 [2025-02-13 00:05:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 00:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462621', 'tblTempUsageDetail_20' ) start [2025-02-13 00:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462621', 'tblTempUsageDetail_20' ) end [2025-02-13 00:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462621', 'tblTempVendorCDR_20' ) start [2025-02-13 00:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462621', 'tblTempVendorCDR_20' ) end [2025-02-13 00:05:31] Production.INFO: ProcessCDR(1,14462621,1,1,2) [2025-02-13 00:05:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:05:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:05:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:05:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:05:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462621', 'tblTempUsageDetail_20' ) start [2025-02-13 00:05:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462621', 'tblTempUsageDetail_20' ) end [2025-02-13 00:05:34] Production.ERROR: pbx prc_insertCDR start [2025-02-13 00:05:34] Production.ERROR: pbx prc_insertCDR end [2025-02-13 00:05:34] Production.INFO: ==31929== Releasing lock... [2025-02-13 00:05:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 00:05:34] Production.INFO: 30.5 MB #Memory Used# [2025-02-13 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 21:06:05 [end_date_ymd] => 2025-02-13 00:06:05 [RateCDR] => 1 ) [2025-02-13 00: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-02-12 21:06:05' and `end` < '2025-02-13 00: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-02-13 00:06:27] Production.INFO: count ==246 [2025-02-13 00:06:27] Production.ERROR: pbx CDR StartTime 2025-02-12 21:06:05 - End Time 2025-02-13 00:06:05 [2025-02-13 00:06:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 00:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462626', 'tblTempUsageDetail_20' ) start [2025-02-13 00:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462626', 'tblTempUsageDetail_20' ) end [2025-02-13 00:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462626', 'tblTempVendorCDR_20' ) start [2025-02-13 00:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462626', 'tblTempVendorCDR_20' ) end [2025-02-13 00:06:27] Production.INFO: ProcessCDR(1,14462626,1,1,2) [2025-02-13 00:06:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:06:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:06:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:06:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462626', 'tblTempUsageDetail_20' ) start [2025-02-13 00:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462626', 'tblTempUsageDetail_20' ) end [2025-02-13 00:06:30] Production.ERROR: pbx prc_insertCDR start [2025-02-13 00:06:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 00:06:30] Production.INFO: ==32005== Releasing lock... [2025-02-13 00:06:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 00:06:30] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 00:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 21:07:06 [end_date_ymd] => 2025-02-13 00:07:06 [RateCDR] => 1 ) [2025-02-13 00: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-02-12 21:07:06' and `end` < '2025-02-13 00: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-02-13 00:07:26] Production.INFO: count ==244 [2025-02-13 00:07:26] Production.ERROR: pbx CDR StartTime 2025-02-12 21:07:06 - End Time 2025-02-13 00:07:06 [2025-02-13 00:07:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 00:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462631', 'tblTempUsageDetail_20' ) start [2025-02-13 00:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462631', 'tblTempUsageDetail_20' ) end [2025-02-13 00:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462631', 'tblTempVendorCDR_20' ) start [2025-02-13 00:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462631', 'tblTempVendorCDR_20' ) end [2025-02-13 00:07:26] Production.INFO: ProcessCDR(1,14462631,1,1,2) [2025-02-13 00:07:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:07:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:07:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:07:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462631', 'tblTempUsageDetail_20' ) start [2025-02-13 00:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462631', 'tblTempUsageDetail_20' ) end [2025-02-13 00:07:31] Production.ERROR: pbx prc_insertCDR start [2025-02-13 00:07:31] Production.ERROR: pbx prc_insertCDR end [2025-02-13 00:07:31] Production.INFO: ==32081== Releasing lock... [2025-02-13 00:07:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 00:07:31] Production.INFO: 30 MB #Memory Used# [2025-02-13 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 21:08:05 [end_date_ymd] => 2025-02-13 00:08:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 21:08:05' and `end` < '2025-02-13 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-02-13 00:08:19] Production.INFO: count ==245 [2025-02-13 00:08:19] Production.ERROR: pbx CDR StartTime 2025-02-12 21:08:05 - End Time 2025-02-13 00:08:05 [2025-02-13 00:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 00:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462636', 'tblTempUsageDetail_20' ) start [2025-02-13 00:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462636', 'tblTempUsageDetail_20' ) end [2025-02-13 00:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462636', 'tblTempVendorCDR_20' ) start [2025-02-13 00:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462636', 'tblTempVendorCDR_20' ) end [2025-02-13 00:08:19] Production.INFO: ProcessCDR(1,14462636,1,1,2) [2025-02-13 00:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462636', 'tblTempUsageDetail_20' ) start [2025-02-13 00:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462636', 'tblTempUsageDetail_20' ) end [2025-02-13 00:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 00:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 00:08:23] Production.INFO: ==32161== Releasing lock... [2025-02-13 00:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 00:08:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 21:09:05 [end_date_ymd] => 2025-02-13 00:09:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 21:09:05' and `end` < '2025-02-13 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-02-13 00:09:19] Production.INFO: count ==245 [2025-02-13 00:09:19] Production.ERROR: pbx CDR StartTime 2025-02-12 21:09:05 - End Time 2025-02-13 00:09:05 [2025-02-13 00:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462641', 'tblTempUsageDetail_20' ) start [2025-02-13 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462641', 'tblTempUsageDetail_20' ) end [2025-02-13 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462641', 'tblTempVendorCDR_20' ) start [2025-02-13 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462641', 'tblTempVendorCDR_20' ) end [2025-02-13 00:09:19] Production.INFO: ProcessCDR(1,14462641,1,1,2) [2025-02-13 00:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462641', 'tblTempUsageDetail_20' ) start [2025-02-13 00:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462641', 'tblTempUsageDetail_20' ) end [2025-02-13 00:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 00:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 00:09:23] Production.INFO: ==32234== Releasing lock... [2025-02-13 00:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 00:09:23] Production.INFO: 30 MB #Memory Used# [2025-02-13 00:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 21:10:06 [end_date_ymd] => 2025-02-13 00:10:06 [RateCDR] => 1 ) [2025-02-13 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-02-12 21:10:06' and `end` < '2025-02-13 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-02-13 00:10:21] Production.INFO: count ==249 [2025-02-13 00:10:21] Production.ERROR: pbx CDR StartTime 2025-02-12 21:10:06 - End Time 2025-02-13 00:10:06 [2025-02-13 00:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 00:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462647', 'tblTempUsageDetail_20' ) start [2025-02-13 00:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462647', 'tblTempUsageDetail_20' ) end [2025-02-13 00:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462647', 'tblTempVendorCDR_20' ) start [2025-02-13 00:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462647', 'tblTempVendorCDR_20' ) end [2025-02-13 00:10:21] Production.INFO: ProcessCDR(1,14462647,1,1,2) [2025-02-13 00:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462647', 'tblTempUsageDetail_20' ) start [2025-02-13 00:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462647', 'tblTempUsageDetail_20' ) end [2025-02-13 00:10:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 00:10:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 00:10:24] Production.INFO: ==32318== Releasing lock... [2025-02-13 00:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 00:10:24] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 21:11:05 [end_date_ymd] => 2025-02-13 00:11:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 21:11:05' and `end` < '2025-02-13 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-02-13 00:11:19] Production.INFO: count ==270 [2025-02-13 00:11:19] Production.ERROR: pbx CDR StartTime 2025-02-12 21:11:05 - End Time 2025-02-13 00:11:05 [2025-02-13 00:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462652', 'tblTempUsageDetail_20' ) start [2025-02-13 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462652', 'tblTempUsageDetail_20' ) end [2025-02-13 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462652', 'tblTempVendorCDR_20' ) start [2025-02-13 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462652', 'tblTempVendorCDR_20' ) end [2025-02-13 00:11:19] Production.INFO: ProcessCDR(1,14462652,1,1,2) [2025-02-13 00:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462652', 'tblTempUsageDetail_20' ) start [2025-02-13 00:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462652', 'tblTempUsageDetail_20' ) end [2025-02-13 00:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 00:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 00:11:23] Production.INFO: ==32407== Releasing lock... [2025-02-13 00:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 00:11:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-13 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 21:12:05 [end_date_ymd] => 2025-02-13 00:12:05 [RateCDR] => 1 ) [2025-02-13 00: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-02-12 21:12:05' and `end` < '2025-02-13 00: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-02-13 00:12:55] Production.INFO: count ==267 [2025-02-13 00:12:55] Production.ERROR: pbx CDR StartTime 2025-02-12 21:12:05 - End Time 2025-02-13 00:12:05 [2025-02-13 00:12:55] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 00:12:55] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462657', 'tblTempUsageDetail_20' ) start [2025-02-13 00:12:55] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462657', 'tblTempUsageDetail_20' ) end [2025-02-13 00:12:55] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462657', 'tblTempVendorCDR_20' ) start [2025-02-13 00:12:55] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462657', 'tblTempVendorCDR_20' ) end [2025-02-13 00:12:55] Production.INFO: ProcessCDR(1,14462657,1,1,2) [2025-02-13 00:12:55] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:12:58] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:12:58] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:13:00] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:13:00] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462657', 'tblTempUsageDetail_20' ) start [2025-02-13 00:13:00] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462657', 'tblTempUsageDetail_20' ) end [2025-02-13 00:13:00] Production.ERROR: pbx prc_insertCDR start [2025-02-13 00:13:00] Production.ERROR: pbx prc_insertCDR end [2025-02-13 00:13:00] Production.INFO: ==32498== Releasing lock... [2025-02-13 00:13:00] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 00:13:00] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 21:13:05 [end_date_ymd] => 2025-02-13 00:13:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 21:13:05' and `end` < '2025-02-13 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-02-13 00:13:20] Production.INFO: count ==266 [2025-02-13 00:13:20] Production.ERROR: pbx CDR StartTime 2025-02-12 21:13:05 - End Time 2025-02-13 00:13:05 [2025-02-13 00:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 00:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462662', 'tblTempUsageDetail_20' ) start [2025-02-13 00:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462662', 'tblTempUsageDetail_20' ) end [2025-02-13 00:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462662', 'tblTempVendorCDR_20' ) start [2025-02-13 00:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462662', 'tblTempVendorCDR_20' ) end [2025-02-13 00:13:20] Production.INFO: ProcessCDR(1,14462662,1,1,2) [2025-02-13 00:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462662', 'tblTempUsageDetail_20' ) start [2025-02-13 00:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462662', 'tblTempUsageDetail_20' ) end [2025-02-13 00:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 00:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 00:13:23] Production.INFO: ==32577== Releasing lock... [2025-02-13 00:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 00:13:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 21:14:04 [end_date_ymd] => 2025-02-13 00:14:04 [RateCDR] => 1 ) [2025-02-13 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-02-12 21:14:04' and `end` < '2025-02-13 00:14: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-02-13 00:14:18] Production.INFO: count ==266 [2025-02-13 00:14:18] Production.ERROR: pbx CDR StartTime 2025-02-12 21:14:04 - End Time 2025-02-13 00:14:04 [2025-02-13 00:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462667', 'tblTempUsageDetail_20' ) start [2025-02-13 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462667', 'tblTempUsageDetail_20' ) end [2025-02-13 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462667', 'tblTempVendorCDR_20' ) start [2025-02-13 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462667', 'tblTempVendorCDR_20' ) end [2025-02-13 00:14:18] Production.INFO: ProcessCDR(1,14462667,1,1,2) [2025-02-13 00:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462667', 'tblTempUsageDetail_20' ) start [2025-02-13 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462667', 'tblTempUsageDetail_20' ) end [2025-02-13 00:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 00:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 00:14:21] Production.INFO: ==32661== Releasing lock... [2025-02-13 00:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 00:14:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 21:15:05 [end_date_ymd] => 2025-02-13 00:15:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 21:15:05' and `end` < '2025-02-13 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-02-13 00:15:18] Production.INFO: count ==265 [2025-02-13 00:15:18] Production.ERROR: pbx CDR StartTime 2025-02-12 21:15:05 - End Time 2025-02-13 00:15:05 [2025-02-13 00:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462672', 'tblTempUsageDetail_20' ) start [2025-02-13 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462672', 'tblTempUsageDetail_20' ) end [2025-02-13 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462672', 'tblTempVendorCDR_20' ) start [2025-02-13 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462672', 'tblTempVendorCDR_20' ) end [2025-02-13 00:15:18] Production.INFO: ProcessCDR(1,14462672,1,1,2) [2025-02-13 00:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462672', 'tblTempUsageDetail_20' ) start [2025-02-13 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462672', 'tblTempUsageDetail_20' ) end [2025-02-13 00:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 00:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 00:15:21] Production.INFO: ==32744== Releasing lock... [2025-02-13 00:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 00:15:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-13 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 21:16:05 [end_date_ymd] => 2025-02-13 00:16:05 [RateCDR] => 1 ) [2025-02-13 00: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-02-12 21:16:05' and `end` < '2025-02-13 00: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-02-13 00:16:18] Production.INFO: count ==264 [2025-02-13 00:16:18] Production.ERROR: pbx CDR StartTime 2025-02-12 21:16:05 - End Time 2025-02-13 00:16:05 [2025-02-13 00:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462677', 'tblTempUsageDetail_20' ) start [2025-02-13 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462677', 'tblTempUsageDetail_20' ) end [2025-02-13 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462677', 'tblTempVendorCDR_20' ) start [2025-02-13 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462677', 'tblTempVendorCDR_20' ) end [2025-02-13 00:16:18] Production.INFO: ProcessCDR(1,14462677,1,1,2) [2025-02-13 00:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462677', 'tblTempUsageDetail_20' ) start [2025-02-13 00:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462677', 'tblTempUsageDetail_20' ) end [2025-02-13 00:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 00:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 00:16:22] Production.INFO: ==380== Releasing lock... [2025-02-13 00:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 00:16:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 00:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 21:17:04 [end_date_ymd] => 2025-02-13 00:17:04 [RateCDR] => 1 ) [2025-02-13 00: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-02-12 21:17:04' and `end` < '2025-02-13 00: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-02-13 00:17:17] Production.INFO: count ==263 [2025-02-13 00:17:18] Production.ERROR: pbx CDR StartTime 2025-02-12 21:17:04 - End Time 2025-02-13 00:17:04 [2025-02-13 00:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462682', 'tblTempUsageDetail_20' ) start [2025-02-13 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462682', 'tblTempUsageDetail_20' ) end [2025-02-13 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462682', 'tblTempVendorCDR_20' ) start [2025-02-13 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462682', 'tblTempVendorCDR_20' ) end [2025-02-13 00:17:18] Production.INFO: ProcessCDR(1,14462682,1,1,2) [2025-02-13 00:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462682', 'tblTempUsageDetail_20' ) start [2025-02-13 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462682', 'tblTempUsageDetail_20' ) end [2025-02-13 00:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 00:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 00:17:21] Production.INFO: ==467== Releasing lock... [2025-02-13 00:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 00:17:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 21:18:05 [end_date_ymd] => 2025-02-13 00:18:05 [RateCDR] => 1 ) [2025-02-13 00: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-02-12 21:18:05' and `end` < '2025-02-13 00: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-02-13 00:18:18] Production.INFO: count ==263 [2025-02-13 00:18:18] Production.ERROR: pbx CDR StartTime 2025-02-12 21:18:05 - End Time 2025-02-13 00:18:05 [2025-02-13 00:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462687', 'tblTempUsageDetail_20' ) start [2025-02-13 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462687', 'tblTempUsageDetail_20' ) end [2025-02-13 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462687', 'tblTempVendorCDR_20' ) start [2025-02-13 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462687', 'tblTempVendorCDR_20' ) end [2025-02-13 00:18:18] Production.INFO: ProcessCDR(1,14462687,1,1,2) [2025-02-13 00:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462687', 'tblTempUsageDetail_20' ) start [2025-02-13 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462687', 'tblTempUsageDetail_20' ) end [2025-02-13 00:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 00:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 00:18:21] Production.INFO: ==562== Releasing lock... [2025-02-13 00:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 00:18:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 21:19:05 [end_date_ymd] => 2025-02-13 00:19:05 [RateCDR] => 1 ) [2025-02-13 00: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-02-12 21:19:05' and `end` < '2025-02-13 00: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-02-13 00:19:17] Production.INFO: count ==259 [2025-02-13 00:19:18] Production.ERROR: pbx CDR StartTime 2025-02-12 21:19:05 - End Time 2025-02-13 00:19:05 [2025-02-13 00:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462692', 'tblTempUsageDetail_20' ) start [2025-02-13 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462692', 'tblTempUsageDetail_20' ) end [2025-02-13 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462692', 'tblTempVendorCDR_20' ) start [2025-02-13 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462692', 'tblTempVendorCDR_20' ) end [2025-02-13 00:19:18] Production.INFO: ProcessCDR(1,14462692,1,1,2) [2025-02-13 00:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462692', 'tblTempUsageDetail_20' ) start [2025-02-13 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462692', 'tblTempUsageDetail_20' ) end [2025-02-13 00:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 00:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 00:19:21] Production.INFO: ==664== Releasing lock... [2025-02-13 00:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 00:19:21] Production.INFO: 31 MB #Memory Used# [2025-02-13 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 21:20:06 [end_date_ymd] => 2025-02-13 00:20:06 [RateCDR] => 1 ) [2025-02-13 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-02-12 21:20:06' and `end` < '2025-02-13 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-02-13 00:20:19] Production.INFO: count ==260 [2025-02-13 00:20:19] Production.ERROR: pbx CDR StartTime 2025-02-12 21:20:06 - End Time 2025-02-13 00:20:06 [2025-02-13 00:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462698', 'tblTempUsageDetail_20' ) start [2025-02-13 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462698', 'tblTempUsageDetail_20' ) end [2025-02-13 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462698', 'tblTempVendorCDR_20' ) start [2025-02-13 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462698', 'tblTempVendorCDR_20' ) end [2025-02-13 00:20:19] Production.INFO: ProcessCDR(1,14462698,1,1,2) [2025-02-13 00:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462698', 'tblTempUsageDetail_20' ) start [2025-02-13 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462698', 'tblTempUsageDetail_20' ) end [2025-02-13 00:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 00:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 00:20:22] Production.INFO: ==835== Releasing lock... [2025-02-13 00:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 00:20:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-13 00:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 21:21:04 [end_date_ymd] => 2025-02-13 00:21:04 [RateCDR] => 1 ) [2025-02-13 00: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-02-12 21:21:04' and `end` < '2025-02-13 00: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-02-13 00:21:17] Production.INFO: count ==275 [2025-02-13 00:21:17] Production.ERROR: pbx CDR StartTime 2025-02-12 21:21:04 - End Time 2025-02-13 00:21:04 [2025-02-13 00:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462703', 'tblTempUsageDetail_20' ) start [2025-02-13 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462703', 'tblTempUsageDetail_20' ) end [2025-02-13 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462703', 'tblTempVendorCDR_20' ) start [2025-02-13 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462703', 'tblTempVendorCDR_20' ) end [2025-02-13 00:21:17] Production.INFO: ProcessCDR(1,14462703,1,1,2) [2025-02-13 00:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462703', 'tblTempUsageDetail_20' ) start [2025-02-13 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462703', 'tblTempUsageDetail_20' ) end [2025-02-13 00:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 00:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 00:21:21] Production.INFO: ==925== Releasing lock... [2025-02-13 00:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 00:21:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 21:22:05 [end_date_ymd] => 2025-02-13 00:22:05 [RateCDR] => 1 ) [2025-02-13 00: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-02-12 21:22:05' and `end` < '2025-02-13 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-02-13 00:22:18] Production.INFO: count ==273 [2025-02-13 00:22:18] Production.ERROR: pbx CDR StartTime 2025-02-12 21:22:05 - End Time 2025-02-13 00:22:05 [2025-02-13 00:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462708', 'tblTempUsageDetail_20' ) start [2025-02-13 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462708', 'tblTempUsageDetail_20' ) end [2025-02-13 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462708', 'tblTempVendorCDR_20' ) start [2025-02-13 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462708', 'tblTempVendorCDR_20' ) end [2025-02-13 00:22:18] Production.INFO: ProcessCDR(1,14462708,1,1,2) [2025-02-13 00:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462708', 'tblTempUsageDetail_20' ) start [2025-02-13 00:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462708', 'tblTempUsageDetail_20' ) end [2025-02-13 00:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 00:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 00:22:23] Production.INFO: ==1020== Releasing lock... [2025-02-13 00:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 00:22:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 21:23:05 [end_date_ymd] => 2025-02-13 00:23:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 21:23:05' and `end` < '2025-02-13 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-02-13 00:23:19] Production.INFO: count ==273 [2025-02-13 00:23:19] Production.ERROR: pbx CDR StartTime 2025-02-12 21:23:05 - End Time 2025-02-13 00:23:05 [2025-02-13 00:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 00:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462713', 'tblTempUsageDetail_20' ) start [2025-02-13 00:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462713', 'tblTempUsageDetail_20' ) end [2025-02-13 00:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462713', 'tblTempVendorCDR_20' ) start [2025-02-13 00:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462713', 'tblTempVendorCDR_20' ) end [2025-02-13 00:23:19] Production.INFO: ProcessCDR(1,14462713,1,1,2) [2025-02-13 00:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462713', 'tblTempUsageDetail_20' ) start [2025-02-13 00:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462713', 'tblTempUsageDetail_20' ) end [2025-02-13 00:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 00:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 00:23:23] Production.INFO: ==1113== Releasing lock... [2025-02-13 00:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 00:23:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 21:24:05 [end_date_ymd] => 2025-02-13 00:24:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 21:24:05' and `end` < '2025-02-13 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-02-13 00:24:18] Production.INFO: count ==272 [2025-02-13 00:24:18] Production.ERROR: pbx CDR StartTime 2025-02-12 21:24:05 - End Time 2025-02-13 00:24:05 [2025-02-13 00:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462718', 'tblTempUsageDetail_20' ) start [2025-02-13 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462718', 'tblTempUsageDetail_20' ) end [2025-02-13 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462718', 'tblTempVendorCDR_20' ) start [2025-02-13 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462718', 'tblTempVendorCDR_20' ) end [2025-02-13 00:24:18] Production.INFO: ProcessCDR(1,14462718,1,1,2) [2025-02-13 00:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462718', 'tblTempUsageDetail_20' ) start [2025-02-13 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462718', 'tblTempUsageDetail_20' ) end [2025-02-13 00:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 00:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 00:24:21] Production.INFO: ==1216== Releasing lock... [2025-02-13 00:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 00:24:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-13 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 21:25:05 [end_date_ymd] => 2025-02-13 00:25:05 [RateCDR] => 1 ) [2025-02-13 00:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 21:25:05' and `end` < '2025-02-13 00:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-13 00:25:18] Production.INFO: count ==265 [2025-02-13 00:25:18] Production.ERROR: pbx CDR StartTime 2025-02-12 21:25:05 - End Time 2025-02-13 00:25:05 [2025-02-13 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462723', 'tblTempUsageDetail_20' ) start [2025-02-13 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462723', 'tblTempUsageDetail_20' ) end [2025-02-13 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462723', 'tblTempVendorCDR_20' ) start [2025-02-13 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462723', 'tblTempVendorCDR_20' ) end [2025-02-13 00:25:18] Production.INFO: ProcessCDR(1,14462723,1,1,2) [2025-02-13 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462723', 'tblTempUsageDetail_20' ) start [2025-02-13 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462723', 'tblTempUsageDetail_20' ) end [2025-02-13 00:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 00:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 00:25:21] Production.INFO: ==1327== Releasing lock... [2025-02-13 00:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 00:25:21] Production.INFO: 31 MB #Memory Used# [2025-02-13 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 21:26:05 [end_date_ymd] => 2025-02-13 00:26:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 21:26:05' and `end` < '2025-02-13 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-02-13 00:26:18] Production.INFO: count ==264 [2025-02-13 00:26:18] Production.ERROR: pbx CDR StartTime 2025-02-12 21:26:05 - End Time 2025-02-13 00:26:05 [2025-02-13 00:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462728', 'tblTempUsageDetail_20' ) start [2025-02-13 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462728', 'tblTempUsageDetail_20' ) end [2025-02-13 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462728', 'tblTempVendorCDR_20' ) start [2025-02-13 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462728', 'tblTempVendorCDR_20' ) end [2025-02-13 00:26:18] Production.INFO: ProcessCDR(1,14462728,1,1,2) [2025-02-13 00:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462728', 'tblTempUsageDetail_20' ) start [2025-02-13 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462728', 'tblTempUsageDetail_20' ) end [2025-02-13 00:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 00:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 00:26:21] Production.INFO: ==1420== Releasing lock... [2025-02-13 00:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 00:26:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-13 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 21:27:05 [end_date_ymd] => 2025-02-13 00:27:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 21:27:05' and `end` < '2025-02-13 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-02-13 00:27:18] Production.INFO: count ==267 [2025-02-13 00:27:18] Production.ERROR: pbx CDR StartTime 2025-02-12 21:27:05 - End Time 2025-02-13 00:27:05 [2025-02-13 00:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462733', 'tblTempUsageDetail_20' ) start [2025-02-13 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462733', 'tblTempUsageDetail_20' ) end [2025-02-13 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462733', 'tblTempVendorCDR_20' ) start [2025-02-13 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462733', 'tblTempVendorCDR_20' ) end [2025-02-13 00:27:18] Production.INFO: ProcessCDR(1,14462733,1,1,2) [2025-02-13 00:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462733', 'tblTempUsageDetail_20' ) start [2025-02-13 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462733', 'tblTempUsageDetail_20' ) end [2025-02-13 00:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 00:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 00:27:21] Production.INFO: ==1547== Releasing lock... [2025-02-13 00:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 00:27:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 21:28:05 [end_date_ymd] => 2025-02-13 00:28:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 21:28:05' and `end` < '2025-02-13 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-02-13 00:28:18] Production.INFO: count ==270 [2025-02-13 00:28:18] Production.ERROR: pbx CDR StartTime 2025-02-12 21:28:05 - End Time 2025-02-13 00:28:05 [2025-02-13 00:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462738', 'tblTempUsageDetail_20' ) start [2025-02-13 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462738', 'tblTempUsageDetail_20' ) end [2025-02-13 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462738', 'tblTempVendorCDR_20' ) start [2025-02-13 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462738', 'tblTempVendorCDR_20' ) end [2025-02-13 00:28:18] Production.INFO: ProcessCDR(1,14462738,1,1,2) [2025-02-13 00:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462738', 'tblTempUsageDetail_20' ) start [2025-02-13 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462738', 'tblTempUsageDetail_20' ) end [2025-02-13 00:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 00:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 00:28:21] Production.INFO: ==1645== Releasing lock... [2025-02-13 00:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 00:28:21] Production.INFO: 31 MB #Memory Used# [2025-02-13 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 21:29:05 [end_date_ymd] => 2025-02-13 00:29:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 21:29:05' and `end` < '2025-02-13 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-02-13 00:29:19] Production.INFO: count ==270 [2025-02-13 00:29:19] Production.ERROR: pbx CDR StartTime 2025-02-12 21:29:05 - End Time 2025-02-13 00:29:05 [2025-02-13 00:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 00:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462743', 'tblTempUsageDetail_20' ) start [2025-02-13 00:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462743', 'tblTempUsageDetail_20' ) end [2025-02-13 00:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462743', 'tblTempVendorCDR_20' ) start [2025-02-13 00:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462743', 'tblTempVendorCDR_20' ) end [2025-02-13 00:29:19] Production.INFO: ProcessCDR(1,14462743,1,1,2) [2025-02-13 00:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462743', 'tblTempUsageDetail_20' ) start [2025-02-13 00:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462743', 'tblTempUsageDetail_20' ) end [2025-02-13 00:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 00:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 00:29:23] Production.INFO: ==1755== Releasing lock... [2025-02-13 00:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 00:29:23] Production.INFO: 31 MB #Memory Used# [2025-02-13 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 21:30:06 [end_date_ymd] => 2025-02-13 00:30:06 [RateCDR] => 1 ) [2025-02-13 00: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-02-12 21:30:06' and `end` < '2025-02-13 00: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-02-13 00:30:19] Production.INFO: count ==277 [2025-02-13 00:30:19] Production.ERROR: pbx CDR StartTime 2025-02-12 21:30:06 - End Time 2025-02-13 00:30:06 [2025-02-13 00:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462749', 'tblTempUsageDetail_20' ) start [2025-02-13 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462749', 'tblTempUsageDetail_20' ) end [2025-02-13 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462749', 'tblTempVendorCDR_20' ) start [2025-02-13 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462749', 'tblTempVendorCDR_20' ) end [2025-02-13 00:30:19] Production.INFO: ProcessCDR(1,14462749,1,1,2) [2025-02-13 00:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462749', 'tblTempUsageDetail_20' ) start [2025-02-13 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462749', 'tblTempUsageDetail_20' ) end [2025-02-13 00:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 00:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 00:30:22] Production.INFO: ==1855== Releasing lock... [2025-02-13 00:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 00:30:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 21:31:05 [end_date_ymd] => 2025-02-13 00:31:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 21:31:05' and `end` < '2025-02-13 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-02-13 00:31:18] Production.INFO: count ==287 [2025-02-13 00:31:18] Production.ERROR: pbx CDR StartTime 2025-02-12 21:31:05 - End Time 2025-02-13 00:31:05 [2025-02-13 00:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462754', 'tblTempUsageDetail_20' ) start [2025-02-13 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462754', 'tblTempUsageDetail_20' ) end [2025-02-13 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462754', 'tblTempVendorCDR_20' ) start [2025-02-13 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462754', 'tblTempVendorCDR_20' ) end [2025-02-13 00:31:18] Production.INFO: ProcessCDR(1,14462754,1,1,2) [2025-02-13 00:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462754', 'tblTempUsageDetail_20' ) start [2025-02-13 00:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462754', 'tblTempUsageDetail_20' ) end [2025-02-13 00:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 00:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 00:31:22] Production.INFO: ==1953== Releasing lock... [2025-02-13 00:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 00:31:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 21:32:05 [end_date_ymd] => 2025-02-13 00:32:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 21:32:05' and `end` < '2025-02-13 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-02-13 00:32:18] Production.INFO: count ==284 [2025-02-13 00:32:18] Production.ERROR: pbx CDR StartTime 2025-02-12 21:32:05 - End Time 2025-02-13 00:32:05 [2025-02-13 00:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462759', 'tblTempUsageDetail_20' ) start [2025-02-13 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462759', 'tblTempUsageDetail_20' ) end [2025-02-13 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462759', 'tblTempVendorCDR_20' ) start [2025-02-13 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462759', 'tblTempVendorCDR_20' ) end [2025-02-13 00:32:18] Production.INFO: ProcessCDR(1,14462759,1,1,2) [2025-02-13 00:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462759', 'tblTempUsageDetail_20' ) start [2025-02-13 00:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462759', 'tblTempUsageDetail_20' ) end [2025-02-13 00:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 00:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 00:32:23] Production.INFO: ==2047== Releasing lock... [2025-02-13 00:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 00:32:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 21:33:05 [end_date_ymd] => 2025-02-13 00:33:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 21:33:05' and `end` < '2025-02-13 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-02-13 00:33:18] Production.INFO: count ==284 [2025-02-13 00:33:18] Production.ERROR: pbx CDR StartTime 2025-02-12 21:33:05 - End Time 2025-02-13 00:33:05 [2025-02-13 00:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462764', 'tblTempUsageDetail_20' ) start [2025-02-13 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462764', 'tblTempUsageDetail_20' ) end [2025-02-13 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462764', 'tblTempVendorCDR_20' ) start [2025-02-13 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462764', 'tblTempVendorCDR_20' ) end [2025-02-13 00:33:18] Production.INFO: ProcessCDR(1,14462764,1,1,2) [2025-02-13 00:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462764', 'tblTempUsageDetail_20' ) start [2025-02-13 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462764', 'tblTempUsageDetail_20' ) end [2025-02-13 00:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 00:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 00:33:21] Production.INFO: ==2133== Releasing lock... [2025-02-13 00:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 00:33:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 21:34:05 [end_date_ymd] => 2025-02-13 00:34:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 21:34:05' and `end` < '2025-02-13 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-02-13 00:34:19] Production.INFO: count ==284 [2025-02-13 00:34:19] Production.ERROR: pbx CDR StartTime 2025-02-12 21:34:05 - End Time 2025-02-13 00:34:05 [2025-02-13 00:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462769', 'tblTempUsageDetail_20' ) start [2025-02-13 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462769', 'tblTempUsageDetail_20' ) end [2025-02-13 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462769', 'tblTempVendorCDR_20' ) start [2025-02-13 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462769', 'tblTempVendorCDR_20' ) end [2025-02-13 00:34:19] Production.INFO: ProcessCDR(1,14462769,1,1,2) [2025-02-13 00:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462769', 'tblTempUsageDetail_20' ) start [2025-02-13 00:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462769', 'tblTempUsageDetail_20' ) end [2025-02-13 00:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 00:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 00:34:23] Production.INFO: ==2235== Releasing lock... [2025-02-13 00:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 00:34:23] Production.INFO: 31 MB #Memory Used# [2025-02-13 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 21:35:05 [end_date_ymd] => 2025-02-13 00:35:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 21:35:05' and `end` < '2025-02-13 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-02-13 00:35:18] Production.INFO: count ==284 [2025-02-13 00:35:18] Production.ERROR: pbx CDR StartTime 2025-02-12 21:35:05 - End Time 2025-02-13 00:35:05 [2025-02-13 00:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462774', 'tblTempUsageDetail_20' ) start [2025-02-13 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462774', 'tblTempUsageDetail_20' ) end [2025-02-13 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462774', 'tblTempVendorCDR_20' ) start [2025-02-13 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462774', 'tblTempVendorCDR_20' ) end [2025-02-13 00:35:18] Production.INFO: ProcessCDR(1,14462774,1,1,2) [2025-02-13 00:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462774', 'tblTempUsageDetail_20' ) start [2025-02-13 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462774', 'tblTempUsageDetail_20' ) end [2025-02-13 00:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 00:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 00:35:22] Production.INFO: ==2376== Releasing lock... [2025-02-13 00:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 00:35:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 21:36:05 [end_date_ymd] => 2025-02-13 00:36:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 21:36:05' and `end` < '2025-02-13 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-02-13 00:36:17] Production.INFO: count ==285 [2025-02-13 00:36:18] Production.ERROR: pbx CDR StartTime 2025-02-12 21:36:05 - End Time 2025-02-13 00:36:05 [2025-02-13 00:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462779', 'tblTempUsageDetail_20' ) start [2025-02-13 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462779', 'tblTempUsageDetail_20' ) end [2025-02-13 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462779', 'tblTempVendorCDR_20' ) start [2025-02-13 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462779', 'tblTempVendorCDR_20' ) end [2025-02-13 00:36:18] Production.INFO: ProcessCDR(1,14462779,1,1,2) [2025-02-13 00:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462779', 'tblTempUsageDetail_20' ) start [2025-02-13 00:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462779', 'tblTempUsageDetail_20' ) end [2025-02-13 00:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 00:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 00:36:22] Production.INFO: ==2461== Releasing lock... [2025-02-13 00:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 00:36:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 00:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 21:37:06 [end_date_ymd] => 2025-02-13 00:37:06 [RateCDR] => 1 ) [2025-02-13 00: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-02-12 21:37:06' and `end` < '2025-02-13 00: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-02-13 00:37:20] Production.INFO: count ==284 [2025-02-13 00:37:20] Production.ERROR: pbx CDR StartTime 2025-02-12 21:37:06 - End Time 2025-02-13 00:37:06 [2025-02-13 00:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 00:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462784', 'tblTempUsageDetail_20' ) start [2025-02-13 00:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462784', 'tblTempUsageDetail_20' ) end [2025-02-13 00:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462784', 'tblTempVendorCDR_20' ) start [2025-02-13 00:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462784', 'tblTempVendorCDR_20' ) end [2025-02-13 00:37:20] Production.INFO: ProcessCDR(1,14462784,1,1,2) [2025-02-13 00:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462784', 'tblTempUsageDetail_20' ) start [2025-02-13 00:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462784', 'tblTempUsageDetail_20' ) end [2025-02-13 00:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 00:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 00:37:23] Production.INFO: ==2556== Releasing lock... [2025-02-13 00:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 00:37:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 21:38:05 [end_date_ymd] => 2025-02-13 00:38:05 [RateCDR] => 1 ) [2025-02-13 00: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-02-12 21:38:05' and `end` < '2025-02-13 00: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-02-13 00:38:20] Production.INFO: count ==279 [2025-02-13 00:38:20] Production.ERROR: pbx CDR StartTime 2025-02-12 21:38:05 - End Time 2025-02-13 00:38:05 [2025-02-13 00:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 00:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462789', 'tblTempUsageDetail_20' ) start [2025-02-13 00:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462789', 'tblTempUsageDetail_20' ) end [2025-02-13 00:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462789', 'tblTempVendorCDR_20' ) start [2025-02-13 00:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462789', 'tblTempVendorCDR_20' ) end [2025-02-13 00:38:20] Production.INFO: ProcessCDR(1,14462789,1,1,2) [2025-02-13 00:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462789', 'tblTempUsageDetail_20' ) start [2025-02-13 00:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462789', 'tblTempUsageDetail_20' ) end [2025-02-13 00:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 00:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 00:38:23] Production.INFO: ==2654== Releasing lock... [2025-02-13 00:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 00:38:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 21:39:05 [end_date_ymd] => 2025-02-13 00:39:05 [RateCDR] => 1 ) [2025-02-13 00: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-02-12 21:39:05' and `end` < '2025-02-13 00: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-02-13 00:39:18] Production.INFO: count ==279 [2025-02-13 00:39:18] Production.ERROR: pbx CDR StartTime 2025-02-12 21:39:05 - End Time 2025-02-13 00:39:05 [2025-02-13 00:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462794', 'tblTempUsageDetail_20' ) start [2025-02-13 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462794', 'tblTempUsageDetail_20' ) end [2025-02-13 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462794', 'tblTempVendorCDR_20' ) start [2025-02-13 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462794', 'tblTempVendorCDR_20' ) end [2025-02-13 00:39:18] Production.INFO: ProcessCDR(1,14462794,1,1,2) [2025-02-13 00:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462794', 'tblTempUsageDetail_20' ) start [2025-02-13 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462794', 'tblTempUsageDetail_20' ) end [2025-02-13 00:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 00:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 00:39:21] Production.INFO: ==2745== Releasing lock... [2025-02-13 00:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 00:39:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 00:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 21:40:07 [end_date_ymd] => 2025-02-13 00:40:07 [RateCDR] => 1 ) [2025-02-13 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-02-12 21:40:07' and `end` < '2025-02-13 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-02-13 00:40:20] Production.INFO: count ==290 [2025-02-13 00:40:20] Production.ERROR: pbx CDR StartTime 2025-02-12 21:40:07 - End Time 2025-02-13 00:40:07 [2025-02-13 00:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 00:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462800', 'tblTempUsageDetail_20' ) start [2025-02-13 00:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462800', 'tblTempUsageDetail_20' ) end [2025-02-13 00:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462800', 'tblTempVendorCDR_20' ) start [2025-02-13 00:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462800', 'tblTempVendorCDR_20' ) end [2025-02-13 00:40:20] Production.INFO: ProcessCDR(1,14462800,1,1,2) [2025-02-13 00:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462800', 'tblTempUsageDetail_20' ) start [2025-02-13 00:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462800', 'tblTempUsageDetail_20' ) end [2025-02-13 00:40:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 00:40:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 00:40:25] Production.INFO: ==2843== Releasing lock... [2025-02-13 00:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 00:40:25] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 21:41:05 [end_date_ymd] => 2025-02-13 00:41:05 [RateCDR] => 1 ) [2025-02-13 00: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-02-12 21:41:05' and `end` < '2025-02-13 00: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-02-13 00:41:19] Production.INFO: count ==316 [2025-02-13 00:41:19] Production.ERROR: pbx CDR StartTime 2025-02-12 21:41:05 - End Time 2025-02-13 00:41:05 [2025-02-13 00:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 00:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462805', 'tblTempUsageDetail_20' ) start [2025-02-13 00:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462805', 'tblTempUsageDetail_20' ) end [2025-02-13 00:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462805', 'tblTempVendorCDR_20' ) start [2025-02-13 00:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462805', 'tblTempVendorCDR_20' ) end [2025-02-13 00:41:19] Production.INFO: ProcessCDR(1,14462805,1,1,2) [2025-02-13 00:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462805', 'tblTempUsageDetail_20' ) start [2025-02-13 00:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462805', 'tblTempUsageDetail_20' ) end [2025-02-13 00:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 00:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 00:41:23] Production.INFO: ==2946== Releasing lock... [2025-02-13 00:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 00:41:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-13 00:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 21:42:06 [end_date_ymd] => 2025-02-13 00:42:06 [RateCDR] => 1 ) [2025-02-13 00: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-02-12 21:42:06' and `end` < '2025-02-13 00: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-02-13 00:42:19] Production.INFO: count ==312 [2025-02-13 00:42:19] Production.ERROR: pbx CDR StartTime 2025-02-12 21:42:06 - End Time 2025-02-13 00:42:06 [2025-02-13 00:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462810', 'tblTempUsageDetail_20' ) start [2025-02-13 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462810', 'tblTempUsageDetail_20' ) end [2025-02-13 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462810', 'tblTempVendorCDR_20' ) start [2025-02-13 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462810', 'tblTempVendorCDR_20' ) end [2025-02-13 00:42:19] Production.INFO: ProcessCDR(1,14462810,1,1,2) [2025-02-13 00:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462810', 'tblTempUsageDetail_20' ) start [2025-02-13 00:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462810', 'tblTempUsageDetail_20' ) end [2025-02-13 00:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 00:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 00:42:22] Production.INFO: ==3039== Releasing lock... [2025-02-13 00:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 00:42:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 21:43:05 [end_date_ymd] => 2025-02-13 00:43:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 21:43:05' and `end` < '2025-02-13 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-02-13 00:43:18] Production.INFO: count ==311 [2025-02-13 00:43:18] Production.ERROR: pbx CDR StartTime 2025-02-12 21:43:05 - End Time 2025-02-13 00:43:05 [2025-02-13 00:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462815', 'tblTempUsageDetail_20' ) start [2025-02-13 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462815', 'tblTempUsageDetail_20' ) end [2025-02-13 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462815', 'tblTempVendorCDR_20' ) start [2025-02-13 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462815', 'tblTempVendorCDR_20' ) end [2025-02-13 00:43:18] Production.INFO: ProcessCDR(1,14462815,1,1,2) [2025-02-13 00:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462815', 'tblTempUsageDetail_20' ) start [2025-02-13 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462815', 'tblTempUsageDetail_20' ) end [2025-02-13 00:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 00:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 00:43:21] Production.INFO: ==3133== Releasing lock... [2025-02-13 00:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 00:43:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-13 00:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 21:44:06 [end_date_ymd] => 2025-02-13 00:44:06 [RateCDR] => 1 ) [2025-02-13 00: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-02-12 21:44:06' and `end` < '2025-02-13 00: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-02-13 00:44:20] Production.INFO: count ==311 [2025-02-13 00:44:20] Production.ERROR: pbx CDR StartTime 2025-02-12 21:44:06 - End Time 2025-02-13 00:44:06 [2025-02-13 00:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 00:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462820', 'tblTempUsageDetail_20' ) start [2025-02-13 00:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462820', 'tblTempUsageDetail_20' ) end [2025-02-13 00:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462820', 'tblTempVendorCDR_20' ) start [2025-02-13 00:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462820', 'tblTempVendorCDR_20' ) end [2025-02-13 00:44:20] Production.INFO: ProcessCDR(1,14462820,1,1,2) [2025-02-13 00:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462820', 'tblTempUsageDetail_20' ) start [2025-02-13 00:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462820', 'tblTempUsageDetail_20' ) end [2025-02-13 00:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 00:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 00:44:23] Production.INFO: ==3223== Releasing lock... [2025-02-13 00:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 00:44:23] Production.INFO: 31.25 MB #Memory Used# [2025-02-13 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 21:45:05 [end_date_ymd] => 2025-02-13 00:45:05 [RateCDR] => 1 ) [2025-02-13 00: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-02-12 21:45:05' and `end` < '2025-02-13 00: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-02-13 00:45:18] Production.INFO: count ==306 [2025-02-13 00:45:18] Production.ERROR: pbx CDR StartTime 2025-02-12 21:45:05 - End Time 2025-02-13 00:45:05 [2025-02-13 00:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462825', 'tblTempUsageDetail_20' ) start [2025-02-13 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462825', 'tblTempUsageDetail_20' ) end [2025-02-13 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462825', 'tblTempVendorCDR_20' ) start [2025-02-13 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462825', 'tblTempVendorCDR_20' ) end [2025-02-13 00:45:18] Production.INFO: ProcessCDR(1,14462825,1,1,2) [2025-02-13 00:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462825', 'tblTempUsageDetail_20' ) start [2025-02-13 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462825', 'tblTempUsageDetail_20' ) end [2025-02-13 00:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 00:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 00:45:21] Production.INFO: ==3317== Releasing lock... [2025-02-13 00:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 00:45:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 21:46:05 [end_date_ymd] => 2025-02-13 00:46:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 21:46:05' and `end` < '2025-02-13 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-02-13 00:46:18] Production.INFO: count ==301 [2025-02-13 00:46:18] Production.ERROR: pbx CDR StartTime 2025-02-12 21:46:05 - End Time 2025-02-13 00:46:05 [2025-02-13 00:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462830', 'tblTempUsageDetail_20' ) start [2025-02-13 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462830', 'tblTempUsageDetail_20' ) end [2025-02-13 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462830', 'tblTempVendorCDR_20' ) start [2025-02-13 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462830', 'tblTempVendorCDR_20' ) end [2025-02-13 00:46:18] Production.INFO: ProcessCDR(1,14462830,1,1,2) [2025-02-13 00:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462830', 'tblTempUsageDetail_20' ) start [2025-02-13 00:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462830', 'tblTempUsageDetail_20' ) end [2025-02-13 00:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 00:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 00:46:22] Production.INFO: ==3405== Releasing lock... [2025-02-13 00:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 00:46:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 21:47:05 [end_date_ymd] => 2025-02-13 00:47:05 [RateCDR] => 1 ) [2025-02-13 00: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-02-12 21:47:05' and `end` < '2025-02-13 00: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-02-13 00:47:19] Production.INFO: count ==301 [2025-02-13 00:47:19] Production.ERROR: pbx CDR StartTime 2025-02-12 21:47:05 - End Time 2025-02-13 00:47:05 [2025-02-13 00:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 00:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462835', 'tblTempUsageDetail_20' ) start [2025-02-13 00:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462835', 'tblTempUsageDetail_20' ) end [2025-02-13 00:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462835', 'tblTempVendorCDR_20' ) start [2025-02-13 00:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462835', 'tblTempVendorCDR_20' ) end [2025-02-13 00:47:19] Production.INFO: ProcessCDR(1,14462835,1,1,2) [2025-02-13 00:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462835', 'tblTempUsageDetail_20' ) start [2025-02-13 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462835', 'tblTempUsageDetail_20' ) end [2025-02-13 00:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 00:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 00:47:22] Production.INFO: ==3501== Releasing lock... [2025-02-13 00:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 00:47:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 21:48:05 [end_date_ymd] => 2025-02-13 00:48:05 [RateCDR] => 1 ) [2025-02-13 00: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-02-12 21:48:05' and `end` < '2025-02-13 00: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-02-13 00:48:18] Production.INFO: count ==306 [2025-02-13 00:48:18] Production.ERROR: pbx CDR StartTime 2025-02-12 21:48:05 - End Time 2025-02-13 00:48:05 [2025-02-13 00:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462840', 'tblTempUsageDetail_20' ) start [2025-02-13 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462840', 'tblTempUsageDetail_20' ) end [2025-02-13 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462840', 'tblTempVendorCDR_20' ) start [2025-02-13 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462840', 'tblTempVendorCDR_20' ) end [2025-02-13 00:48:19] Production.INFO: ProcessCDR(1,14462840,1,1,2) [2025-02-13 00:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462840', 'tblTempUsageDetail_20' ) start [2025-02-13 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462840', 'tblTempUsageDetail_20' ) end [2025-02-13 00:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 00:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 00:48:22] Production.INFO: ==3590== Releasing lock... [2025-02-13 00:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 00:48:22] Production.INFO: 31 MB #Memory Used# [2025-02-13 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 21:49:05 [end_date_ymd] => 2025-02-13 00:49:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 21:49:05' and `end` < '2025-02-13 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-02-13 00:49:18] Production.INFO: count ==302 [2025-02-13 00:49:19] Production.ERROR: pbx CDR StartTime 2025-02-12 21:49:05 - End Time 2025-02-13 00:49:05 [2025-02-13 00:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 00:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462845', 'tblTempUsageDetail_20' ) start [2025-02-13 00:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462845', 'tblTempUsageDetail_20' ) end [2025-02-13 00:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462845', 'tblTempVendorCDR_20' ) start [2025-02-13 00:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462845', 'tblTempVendorCDR_20' ) end [2025-02-13 00:49:19] Production.INFO: ProcessCDR(1,14462845,1,1,2) [2025-02-13 00:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462845', 'tblTempUsageDetail_20' ) start [2025-02-13 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462845', 'tblTempUsageDetail_20' ) end [2025-02-13 00:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 00:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 00:49:22] Production.INFO: ==3681== Releasing lock... [2025-02-13 00:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 00:49:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 21:50:06 [end_date_ymd] => 2025-02-13 00:50:06 [RateCDR] => 1 ) [2025-02-13 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-02-12 21:50:06' and `end` < '2025-02-13 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-02-13 00:50:20] Production.INFO: count ==309 [2025-02-13 00:50:20] Production.ERROR: pbx CDR StartTime 2025-02-12 21:50:06 - End Time 2025-02-13 00:50:06 [2025-02-13 00:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 00:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462851', 'tblTempUsageDetail_20' ) start [2025-02-13 00:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462851', 'tblTempUsageDetail_20' ) end [2025-02-13 00:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462851', 'tblTempVendorCDR_20' ) start [2025-02-13 00:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462851', 'tblTempVendorCDR_20' ) end [2025-02-13 00:50:20] Production.INFO: ProcessCDR(1,14462851,1,1,2) [2025-02-13 00:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462851', 'tblTempUsageDetail_20' ) start [2025-02-13 00:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462851', 'tblTempUsageDetail_20' ) end [2025-02-13 00:50:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 00:50:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 00:50:24] Production.INFO: ==3808== Releasing lock... [2025-02-13 00:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 00:50:24] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 21:51:05 [end_date_ymd] => 2025-02-13 00:51:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 21:51:05' and `end` < '2025-02-13 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-02-13 00:51:18] Production.INFO: count ==312 [2025-02-13 00:51:18] Production.ERROR: pbx CDR StartTime 2025-02-12 21:51:05 - End Time 2025-02-13 00:51:05 [2025-02-13 00:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462856', 'tblTempUsageDetail_20' ) start [2025-02-13 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462856', 'tblTempUsageDetail_20' ) end [2025-02-13 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462856', 'tblTempVendorCDR_20' ) start [2025-02-13 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462856', 'tblTempVendorCDR_20' ) end [2025-02-13 00:51:18] Production.INFO: ProcessCDR(1,14462856,1,1,2) [2025-02-13 00:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462856', 'tblTempUsageDetail_20' ) start [2025-02-13 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462856', 'tblTempUsageDetail_20' ) end [2025-02-13 00:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 00:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 00:51:21] Production.INFO: ==3900== Releasing lock... [2025-02-13 00:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 00:51:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-13 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 21:52:05 [end_date_ymd] => 2025-02-13 00:52:05 [RateCDR] => 1 ) [2025-02-13 00: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-02-12 21:52:05' and `end` < '2025-02-13 00: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-02-13 00:52:18] Production.INFO: count ==310 [2025-02-13 00:52:18] Production.ERROR: pbx CDR StartTime 2025-02-12 21:52:05 - End Time 2025-02-13 00:52:05 [2025-02-13 00:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462861', 'tblTempUsageDetail_20' ) start [2025-02-13 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462861', 'tblTempUsageDetail_20' ) end [2025-02-13 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462861', 'tblTempVendorCDR_20' ) start [2025-02-13 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462861', 'tblTempVendorCDR_20' ) end [2025-02-13 00:52:18] Production.INFO: ProcessCDR(1,14462861,1,1,2) [2025-02-13 00:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462861', 'tblTempUsageDetail_20' ) start [2025-02-13 00:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462861', 'tblTempUsageDetail_20' ) end [2025-02-13 00:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 00:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 00:52:23] Production.INFO: ==3988== Releasing lock... [2025-02-13 00:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 00:52:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-13 00:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 21:53:04 [end_date_ymd] => 2025-02-13 00:53:04 [RateCDR] => 1 ) [2025-02-13 00: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-02-12 21:53:04' and `end` < '2025-02-13 00: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-02-13 00:53:17] Production.INFO: count ==309 [2025-02-13 00:53:17] Production.ERROR: pbx CDR StartTime 2025-02-12 21:53:04 - End Time 2025-02-13 00:53:04 [2025-02-13 00:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462866', 'tblTempUsageDetail_20' ) start [2025-02-13 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462866', 'tblTempUsageDetail_20' ) end [2025-02-13 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462866', 'tblTempVendorCDR_20' ) start [2025-02-13 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462866', 'tblTempVendorCDR_20' ) end [2025-02-13 00:53:17] Production.INFO: ProcessCDR(1,14462866,1,1,2) [2025-02-13 00:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462866', 'tblTempUsageDetail_20' ) start [2025-02-13 00:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462866', 'tblTempUsageDetail_20' ) end [2025-02-13 00:53:20] Production.ERROR: pbx prc_insertCDR start [2025-02-13 00:53:20] Production.ERROR: pbx prc_insertCDR end [2025-02-13 00:53:20] Production.INFO: ==4071== Releasing lock... [2025-02-13 00:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 00:53:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 21:54:05 [end_date_ymd] => 2025-02-13 00:54:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 21:54:05' and `end` < '2025-02-13 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-02-13 00:54:19] Production.INFO: count ==302 [2025-02-13 00:54:19] Production.ERROR: pbx CDR StartTime 2025-02-12 21:54:05 - End Time 2025-02-13 00:54:05 [2025-02-13 00:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462871', 'tblTempUsageDetail_20' ) start [2025-02-13 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462871', 'tblTempUsageDetail_20' ) end [2025-02-13 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462871', 'tblTempVendorCDR_20' ) start [2025-02-13 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462871', 'tblTempVendorCDR_20' ) end [2025-02-13 00:54:19] Production.INFO: ProcessCDR(1,14462871,1,1,2) [2025-02-13 00:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462871', 'tblTempUsageDetail_20' ) start [2025-02-13 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462871', 'tblTempUsageDetail_20' ) end [2025-02-13 00:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 00:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 00:54:22] Production.INFO: ==4165== Releasing lock... [2025-02-13 00:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 00:54:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 00:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 21:55:04 [end_date_ymd] => 2025-02-13 00:55:04 [RateCDR] => 1 ) [2025-02-13 00: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-02-12 21:55:04' and `end` < '2025-02-13 00: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-02-13 00:55:17] Production.INFO: count ==302 [2025-02-13 00:55:17] Production.ERROR: pbx CDR StartTime 2025-02-12 21:55:04 - End Time 2025-02-13 00:55:04 [2025-02-13 00:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462876', 'tblTempUsageDetail_20' ) start [2025-02-13 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462876', 'tblTempUsageDetail_20' ) end [2025-02-13 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462876', 'tblTempVendorCDR_20' ) start [2025-02-13 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462876', 'tblTempVendorCDR_20' ) end [2025-02-13 00:55:17] Production.INFO: ProcessCDR(1,14462876,1,1,2) [2025-02-13 00:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462876', 'tblTempUsageDetail_20' ) start [2025-02-13 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462876', 'tblTempUsageDetail_20' ) end [2025-02-13 00:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 00:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 00:55:21] Production.INFO: ==4247== Releasing lock... [2025-02-13 00:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 00:55:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 21:56:05 [end_date_ymd] => 2025-02-13 00:56:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 21:56:05' and `end` < '2025-02-13 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-02-13 00:56:19] Production.INFO: count ==302 [2025-02-13 00:56:19] Production.ERROR: pbx CDR StartTime 2025-02-12 21:56:05 - End Time 2025-02-13 00:56:05 [2025-02-13 00:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462881', 'tblTempUsageDetail_20' ) start [2025-02-13 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462881', 'tblTempUsageDetail_20' ) end [2025-02-13 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462881', 'tblTempVendorCDR_20' ) start [2025-02-13 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462881', 'tblTempVendorCDR_20' ) end [2025-02-13 00:56:19] Production.INFO: ProcessCDR(1,14462881,1,1,2) [2025-02-13 00:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462881', 'tblTempUsageDetail_20' ) start [2025-02-13 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462881', 'tblTempUsageDetail_20' ) end [2025-02-13 00:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 00:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 00:56:22] Production.INFO: ==4328== Releasing lock... [2025-02-13 00:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 00:56:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 21:57:05 [end_date_ymd] => 2025-02-13 00:57:05 [RateCDR] => 1 ) [2025-02-13 00: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-02-12 21:57:05' and `end` < '2025-02-13 00: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-02-13 00:57:19] Production.INFO: count ==297 [2025-02-13 00:57:19] Production.ERROR: pbx CDR StartTime 2025-02-12 21:57:05 - End Time 2025-02-13 00:57:05 [2025-02-13 00:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462886', 'tblTempUsageDetail_20' ) start [2025-02-13 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462886', 'tblTempUsageDetail_20' ) end [2025-02-13 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462886', 'tblTempVendorCDR_20' ) start [2025-02-13 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462886', 'tblTempVendorCDR_20' ) end [2025-02-13 00:57:19] Production.INFO: ProcessCDR(1,14462886,1,1,2) [2025-02-13 00:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462886', 'tblTempUsageDetail_20' ) start [2025-02-13 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462886', 'tblTempUsageDetail_20' ) end [2025-02-13 00:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 00:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 00:57:22] Production.INFO: ==4414== Releasing lock... [2025-02-13 00:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 00:57:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 21:58:05 [end_date_ymd] => 2025-02-13 00:58:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 21:58:05' and `end` < '2025-02-13 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-02-13 00:58:18] Production.INFO: count ==296 [2025-02-13 00:58:18] Production.ERROR: pbx CDR StartTime 2025-02-12 21:58:05 - End Time 2025-02-13 00:58:05 [2025-02-13 00:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462891', 'tblTempUsageDetail_20' ) start [2025-02-13 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462891', 'tblTempUsageDetail_20' ) end [2025-02-13 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462891', 'tblTempVendorCDR_20' ) start [2025-02-13 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462891', 'tblTempVendorCDR_20' ) end [2025-02-13 00:58:18] Production.INFO: ProcessCDR(1,14462891,1,1,2) [2025-02-13 00:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462891', 'tblTempUsageDetail_20' ) start [2025-02-13 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462891', 'tblTempUsageDetail_20' ) end [2025-02-13 00:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 00:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 00:58:21] Production.INFO: ==4493== Releasing lock... [2025-02-13 00:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 00:58:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 21:59:05 [end_date_ymd] => 2025-02-13 00:59:05 [RateCDR] => 1 ) [2025-02-13 00: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-02-12 21:59:05' and `end` < '2025-02-13 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-02-13 00:59:20] Production.INFO: count ==288 [2025-02-13 00:59:20] Production.ERROR: pbx CDR StartTime 2025-02-12 21:59:05 - End Time 2025-02-13 00:59:05 [2025-02-13 00:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 00:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462896', 'tblTempUsageDetail_20' ) start [2025-02-13 00:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462896', 'tblTempUsageDetail_20' ) end [2025-02-13 00:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462896', 'tblTempVendorCDR_20' ) start [2025-02-13 00:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462896', 'tblTempVendorCDR_20' ) end [2025-02-13 00:59:20] Production.INFO: ProcessCDR(1,14462896,1,1,2) [2025-02-13 00:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 00:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 00:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462896', 'tblTempUsageDetail_20' ) start [2025-02-13 00:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462896', 'tblTempUsageDetail_20' ) end [2025-02-13 00:59:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 00:59:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 00:59:23] Production.INFO: ==4578== Releasing lock... [2025-02-13 00:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 00:59:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 22:00:06 [end_date_ymd] => 2025-02-13 01:00:06 [RateCDR] => 1 ) [2025-02-13 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-02-12 22:00:06' and `end` < '2025-02-13 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-02-13 01:00:19] Production.INFO: count ==286 [2025-02-13 01:00:19] Production.ERROR: pbx CDR StartTime 2025-02-12 22:00:06 - End Time 2025-02-13 01:00:06 [2025-02-13 01:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462901', 'tblTempUsageDetail_20' ) start [2025-02-13 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462901', 'tblTempUsageDetail_20' ) end [2025-02-13 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462901', 'tblTempVendorCDR_20' ) start [2025-02-13 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462901', 'tblTempVendorCDR_20' ) end [2025-02-13 01:00:19] Production.INFO: ProcessCDR(1,14462901,1,1,2) [2025-02-13 01:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462901', 'tblTempUsageDetail_20' ) start [2025-02-13 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462901', 'tblTempUsageDetail_20' ) end [2025-02-13 01:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 01:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 01:00:22] Production.INFO: ==4664== Releasing lock... [2025-02-13 01:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 01:00:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 01:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 22:01:06 [end_date_ymd] => 2025-02-13 01:01:06 [RateCDR] => 1 ) [2025-02-13 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-02-12 22:01:06' and `end` < '2025-02-13 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-02-13 01:01:20] Production.INFO: count ==292 [2025-02-13 01:01:20] Production.ERROR: pbx CDR StartTime 2025-02-12 22:01:06 - End Time 2025-02-13 01:01:06 [2025-02-13 01:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 01:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462907', 'tblTempUsageDetail_20' ) start [2025-02-13 01:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462907', 'tblTempUsageDetail_20' ) end [2025-02-13 01:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462907', 'tblTempVendorCDR_20' ) start [2025-02-13 01:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462907', 'tblTempVendorCDR_20' ) end [2025-02-13 01:01:20] Production.INFO: ProcessCDR(1,14462907,1,1,2) [2025-02-13 01:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462907', 'tblTempUsageDetail_20' ) start [2025-02-13 01:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462907', 'tblTempUsageDetail_20' ) end [2025-02-13 01:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 01:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 01:01:23] Production.INFO: ==4759== Releasing lock... [2025-02-13 01:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 01:01:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-13 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 22:02:05 [end_date_ymd] => 2025-02-13 01:02:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 22:02:05' and `end` < '2025-02-13 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-02-13 01:02:18] Production.INFO: count ==292 [2025-02-13 01:02:18] Production.ERROR: pbx CDR StartTime 2025-02-12 22:02:05 - End Time 2025-02-13 01:02:05 [2025-02-13 01:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462912', 'tblTempUsageDetail_20' ) start [2025-02-13 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462912', 'tblTempUsageDetail_20' ) end [2025-02-13 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462912', 'tblTempVendorCDR_20' ) start [2025-02-13 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462912', 'tblTempVendorCDR_20' ) end [2025-02-13 01:02:18] Production.INFO: ProcessCDR(1,14462912,1,1,2) [2025-02-13 01:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462912', 'tblTempUsageDetail_20' ) start [2025-02-13 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462912', 'tblTempUsageDetail_20' ) end [2025-02-13 01:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 01:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 01:02:21] Production.INFO: ==4834== Releasing lock... [2025-02-13 01:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 01:02:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-13 01:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 22:03:06 [end_date_ymd] => 2025-02-13 01:03:06 [RateCDR] => 1 ) [2025-02-13 01: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-02-12 22:03:06' and `end` < '2025-02-13 01: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-02-13 01:03:19] Production.INFO: count ==289 [2025-02-13 01:03:19] Production.ERROR: pbx CDR StartTime 2025-02-12 22:03:06 - End Time 2025-02-13 01:03:06 [2025-02-13 01:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462917', 'tblTempUsageDetail_20' ) start [2025-02-13 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462917', 'tblTempUsageDetail_20' ) end [2025-02-13 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462917', 'tblTempVendorCDR_20' ) start [2025-02-13 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462917', 'tblTempVendorCDR_20' ) end [2025-02-13 01:03:19] Production.INFO: ProcessCDR(1,14462917,1,1,2) [2025-02-13 01:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462917', 'tblTempUsageDetail_20' ) start [2025-02-13 01:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462917', 'tblTempUsageDetail_20' ) end [2025-02-13 01:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 01:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 01:03:22] Production.INFO: ==4910== Releasing lock... [2025-02-13 01:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 01:03:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 22:04:05 [end_date_ymd] => 2025-02-13 01:04:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 22:04:05' and `end` < '2025-02-13 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-02-13 01:04:18] Production.INFO: count ==288 [2025-02-13 01:04:18] Production.ERROR: pbx CDR StartTime 2025-02-12 22:04:05 - End Time 2025-02-13 01:04:05 [2025-02-13 01:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462922', 'tblTempUsageDetail_20' ) start [2025-02-13 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462922', 'tblTempUsageDetail_20' ) end [2025-02-13 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462922', 'tblTempVendorCDR_20' ) start [2025-02-13 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462922', 'tblTempVendorCDR_20' ) end [2025-02-13 01:04:18] Production.INFO: ProcessCDR(1,14462922,1,1,2) [2025-02-13 01:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462922', 'tblTempUsageDetail_20' ) start [2025-02-13 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462922', 'tblTempUsageDetail_20' ) end [2025-02-13 01:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 01:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 01:04:21] Production.INFO: ==4985== Releasing lock... [2025-02-13 01:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 01:04:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-13 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 22:05:05 [end_date_ymd] => 2025-02-13 01:05:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 22:05:05' and `end` < '2025-02-13 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-02-13 01:05:20] Production.INFO: count ==287 [2025-02-13 01:05:20] Production.ERROR: pbx CDR StartTime 2025-02-12 22:05:05 - End Time 2025-02-13 01:05:05 [2025-02-13 01:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 01:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462927', 'tblTempUsageDetail_20' ) start [2025-02-13 01:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462927', 'tblTempUsageDetail_20' ) end [2025-02-13 01:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462927', 'tblTempVendorCDR_20' ) start [2025-02-13 01:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462927', 'tblTempVendorCDR_20' ) end [2025-02-13 01:05:20] Production.INFO: ProcessCDR(1,14462927,1,1,2) [2025-02-13 01:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462927', 'tblTempUsageDetail_20' ) start [2025-02-13 01:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462927', 'tblTempUsageDetail_20' ) end [2025-02-13 01:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 01:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 01:05:23] Production.INFO: ==5060== Releasing lock... [2025-02-13 01:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 01:05:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 22:06:05 [end_date_ymd] => 2025-02-13 01:06:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 22:06:05' and `end` < '2025-02-13 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-02-13 01:06:18] Production.INFO: count ==285 [2025-02-13 01:06:18] Production.ERROR: pbx CDR StartTime 2025-02-12 22:06:05 - End Time 2025-02-13 01:06:05 [2025-02-13 01:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462932', 'tblTempUsageDetail_20' ) start [2025-02-13 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462932', 'tblTempUsageDetail_20' ) end [2025-02-13 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462932', 'tblTempVendorCDR_20' ) start [2025-02-13 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462932', 'tblTempVendorCDR_20' ) end [2025-02-13 01:06:18] Production.INFO: ProcessCDR(1,14462932,1,1,2) [2025-02-13 01:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462932', 'tblTempUsageDetail_20' ) start [2025-02-13 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462932', 'tblTempUsageDetail_20' ) end [2025-02-13 01:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 01:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 01:06:21] Production.INFO: ==5173== Releasing lock... [2025-02-13 01:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 01:06:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 22:07:05 [end_date_ymd] => 2025-02-13 01:07:05 [RateCDR] => 1 ) [2025-02-13 01: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-02-12 22:07:05' and `end` < '2025-02-13 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-02-13 01:07:19] Production.INFO: count ==284 [2025-02-13 01:07:19] Production.ERROR: pbx CDR StartTime 2025-02-12 22:07:05 - End Time 2025-02-13 01:07:05 [2025-02-13 01:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 01:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462937', 'tblTempUsageDetail_20' ) start [2025-02-13 01:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462937', 'tblTempUsageDetail_20' ) end [2025-02-13 01:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462937', 'tblTempVendorCDR_20' ) start [2025-02-13 01:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462937', 'tblTempVendorCDR_20' ) end [2025-02-13 01:07:19] Production.INFO: ProcessCDR(1,14462937,1,1,2) [2025-02-13 01:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462937', 'tblTempUsageDetail_20' ) start [2025-02-13 01:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462937', 'tblTempUsageDetail_20' ) end [2025-02-13 01:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 01:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 01:07:22] Production.INFO: ==5253== Releasing lock... [2025-02-13 01:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 01:07:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 22:08:05 [end_date_ymd] => 2025-02-13 01:08:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 22:08:05' and `end` < '2025-02-13 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-02-13 01:08:20] Production.INFO: count ==286 [2025-02-13 01:08:20] Production.ERROR: pbx CDR StartTime 2025-02-12 22:08:05 - End Time 2025-02-13 01:08:05 [2025-02-13 01:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 01:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462942', 'tblTempUsageDetail_20' ) start [2025-02-13 01:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462942', 'tblTempUsageDetail_20' ) end [2025-02-13 01:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462942', 'tblTempVendorCDR_20' ) start [2025-02-13 01:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462942', 'tblTempVendorCDR_20' ) end [2025-02-13 01:08:20] Production.INFO: ProcessCDR(1,14462942,1,1,2) [2025-02-13 01:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462942', 'tblTempUsageDetail_20' ) start [2025-02-13 01:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462942', 'tblTempUsageDetail_20' ) end [2025-02-13 01:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 01:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 01:08:23] Production.INFO: ==5326== Releasing lock... [2025-02-13 01:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 01:08:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-13 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 22:09:05 [end_date_ymd] => 2025-02-13 01:09:05 [RateCDR] => 1 ) [2025-02-13 01: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-02-12 22:09:05' and `end` < '2025-02-13 01: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-02-13 01:09:18] Production.INFO: count ==287 [2025-02-13 01:09:18] Production.ERROR: pbx CDR StartTime 2025-02-12 22:09:05 - End Time 2025-02-13 01:09:05 [2025-02-13 01:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462947', 'tblTempUsageDetail_20' ) start [2025-02-13 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462947', 'tblTempUsageDetail_20' ) end [2025-02-13 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462947', 'tblTempVendorCDR_20' ) start [2025-02-13 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462947', 'tblTempVendorCDR_20' ) end [2025-02-13 01:09:18] Production.INFO: ProcessCDR(1,14462947,1,1,2) [2025-02-13 01:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462947', 'tblTempUsageDetail_20' ) start [2025-02-13 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462947', 'tblTempUsageDetail_20' ) end [2025-02-13 01:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 01:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 01:09:21] Production.INFO: ==5403== Releasing lock... [2025-02-13 01:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 01:09:21] Production.INFO: 30 MB #Memory Used# [2025-02-13 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 22:10:06 [end_date_ymd] => 2025-02-13 01:10:06 [RateCDR] => 1 ) [2025-02-13 01: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-02-12 22:10:06' and `end` < '2025-02-13 01: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-02-13 01:10:19] Production.INFO: count ==292 [2025-02-13 01:10:19] Production.ERROR: pbx CDR StartTime 2025-02-12 22:10:06 - End Time 2025-02-13 01:10:06 [2025-02-13 01:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462953', 'tblTempUsageDetail_20' ) start [2025-02-13 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462953', 'tblTempUsageDetail_20' ) end [2025-02-13 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462953', 'tblTempVendorCDR_20' ) start [2025-02-13 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462953', 'tblTempVendorCDR_20' ) end [2025-02-13 01:10:19] Production.INFO: ProcessCDR(1,14462953,1,1,2) [2025-02-13 01:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462953', 'tblTempUsageDetail_20' ) start [2025-02-13 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462953', 'tblTempUsageDetail_20' ) end [2025-02-13 01:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 01:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 01:10:22] Production.INFO: ==5484== Releasing lock... [2025-02-13 01:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 01:10:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 22:11:05 [end_date_ymd] => 2025-02-13 01:11:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 22:11:05' and `end` < '2025-02-13 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-02-13 01:11:20] Production.INFO: count ==299 [2025-02-13 01:11:20] Production.ERROR: pbx CDR StartTime 2025-02-12 22:11:05 - End Time 2025-02-13 01:11:05 [2025-02-13 01:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 01:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462958', 'tblTempUsageDetail_20' ) start [2025-02-13 01:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462958', 'tblTempUsageDetail_20' ) end [2025-02-13 01:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462958', 'tblTempVendorCDR_20' ) start [2025-02-13 01:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462958', 'tblTempVendorCDR_20' ) end [2025-02-13 01:11:20] Production.INFO: ProcessCDR(1,14462958,1,1,2) [2025-02-13 01:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462958', 'tblTempUsageDetail_20' ) start [2025-02-13 01:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462958', 'tblTempUsageDetail_20' ) end [2025-02-13 01:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 01:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 01:11:23] Production.INFO: ==5560== Releasing lock... [2025-02-13 01:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 01:11:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 22:12:05 [end_date_ymd] => 2025-02-13 01:12:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 22:12:05' and `end` < '2025-02-13 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-02-13 01:12:18] Production.INFO: count ==296 [2025-02-13 01:12:18] Production.ERROR: pbx CDR StartTime 2025-02-12 22:12:05 - End Time 2025-02-13 01:12:05 [2025-02-13 01:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462963', 'tblTempUsageDetail_20' ) start [2025-02-13 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462963', 'tblTempUsageDetail_20' ) end [2025-02-13 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462963', 'tblTempVendorCDR_20' ) start [2025-02-13 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462963', 'tblTempVendorCDR_20' ) end [2025-02-13 01:12:19] Production.INFO: ProcessCDR(1,14462963,1,1,2) [2025-02-13 01:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462963', 'tblTempUsageDetail_20' ) start [2025-02-13 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462963', 'tblTempUsageDetail_20' ) end [2025-02-13 01:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 01:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 01:12:22] Production.INFO: ==5636== Releasing lock... [2025-02-13 01:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 01:12:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 22:13:05 [end_date_ymd] => 2025-02-13 01:13:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 22:13:05' and `end` < '2025-02-13 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-02-13 01:13:18] Production.INFO: count ==288 [2025-02-13 01:13:18] Production.ERROR: pbx CDR StartTime 2025-02-12 22:13:05 - End Time 2025-02-13 01:13:05 [2025-02-13 01:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462968', 'tblTempUsageDetail_20' ) start [2025-02-13 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462968', 'tblTempUsageDetail_20' ) end [2025-02-13 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462968', 'tblTempVendorCDR_20' ) start [2025-02-13 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462968', 'tblTempVendorCDR_20' ) end [2025-02-13 01:13:18] Production.INFO: ProcessCDR(1,14462968,1,1,2) [2025-02-13 01:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462968', 'tblTempUsageDetail_20' ) start [2025-02-13 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462968', 'tblTempUsageDetail_20' ) end [2025-02-13 01:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 01:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 01:13:21] Production.INFO: ==5711== Releasing lock... [2025-02-13 01:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 01:13:21] Production.INFO: 30 MB #Memory Used# [2025-02-13 01:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 22:14:06 [end_date_ymd] => 2025-02-13 01:14:06 [RateCDR] => 1 ) [2025-02-13 01: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-02-12 22:14:06' and `end` < '2025-02-13 01: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-02-13 01:14:19] Production.INFO: count ==282 [2025-02-13 01:14:19] Production.ERROR: pbx CDR StartTime 2025-02-12 22:14:06 - End Time 2025-02-13 01:14:06 [2025-02-13 01:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462973', 'tblTempUsageDetail_20' ) start [2025-02-13 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462973', 'tblTempUsageDetail_20' ) end [2025-02-13 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462973', 'tblTempVendorCDR_20' ) start [2025-02-13 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462973', 'tblTempVendorCDR_20' ) end [2025-02-13 01:14:19] Production.INFO: ProcessCDR(1,14462973,1,1,2) [2025-02-13 01:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462973', 'tblTempUsageDetail_20' ) start [2025-02-13 01:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462973', 'tblTempUsageDetail_20' ) end [2025-02-13 01:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 01:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 01:14:22] Production.INFO: ==5787== Releasing lock... [2025-02-13 01:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 01:14:22] Production.INFO: 30 MB #Memory Used# [2025-02-13 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 22:15:05 [end_date_ymd] => 2025-02-13 01:15:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 22:15:05' and `end` < '2025-02-13 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-02-13 01:15:18] Production.INFO: count ==281 [2025-02-13 01:15:18] Production.ERROR: pbx CDR StartTime 2025-02-12 22:15:05 - End Time 2025-02-13 01:15:05 [2025-02-13 01:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462978', 'tblTempUsageDetail_20' ) start [2025-02-13 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462978', 'tblTempUsageDetail_20' ) end [2025-02-13 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462978', 'tblTempVendorCDR_20' ) start [2025-02-13 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462978', 'tblTempVendorCDR_20' ) end [2025-02-13 01:15:18] Production.INFO: ProcessCDR(1,14462978,1,1,2) [2025-02-13 01:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462978', 'tblTempUsageDetail_20' ) start [2025-02-13 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462978', 'tblTempUsageDetail_20' ) end [2025-02-13 01:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 01:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 01:15:21] Production.INFO: ==5862== Releasing lock... [2025-02-13 01:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 01:15:21] Production.INFO: 30 MB #Memory Used# [2025-02-13 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 22:16:05 [end_date_ymd] => 2025-02-13 01:16:05 [RateCDR] => 1 ) [2025-02-13 01: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-02-12 22:16:05' and `end` < '2025-02-13 01: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-02-13 01:16:18] Production.INFO: count ==283 [2025-02-13 01:16:18] Production.ERROR: pbx CDR StartTime 2025-02-12 22:16:05 - End Time 2025-02-13 01:16:05 [2025-02-13 01:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462983', 'tblTempUsageDetail_20' ) start [2025-02-13 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462983', 'tblTempUsageDetail_20' ) end [2025-02-13 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462983', 'tblTempVendorCDR_20' ) start [2025-02-13 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462983', 'tblTempVendorCDR_20' ) end [2025-02-13 01:16:18] Production.INFO: ProcessCDR(1,14462983,1,1,2) [2025-02-13 01:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462983', 'tblTempUsageDetail_20' ) start [2025-02-13 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462983', 'tblTempUsageDetail_20' ) end [2025-02-13 01:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 01:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 01:16:21] Production.INFO: ==5955== Releasing lock... [2025-02-13 01:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 01:16:21] Production.INFO: 30 MB #Memory Used# [2025-02-13 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 22:17:05 [end_date_ymd] => 2025-02-13 01:17:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 22:17:05' and `end` < '2025-02-13 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-02-13 01:17:18] Production.INFO: count ==288 [2025-02-13 01:17:18] Production.ERROR: pbx CDR StartTime 2025-02-12 22:17:05 - End Time 2025-02-13 01:17:05 [2025-02-13 01:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462988', 'tblTempUsageDetail_20' ) start [2025-02-13 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462988', 'tblTempUsageDetail_20' ) end [2025-02-13 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462988', 'tblTempVendorCDR_20' ) start [2025-02-13 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462988', 'tblTempVendorCDR_20' ) end [2025-02-13 01:17:18] Production.INFO: ProcessCDR(1,14462988,1,1,2) [2025-02-13 01:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462988', 'tblTempUsageDetail_20' ) start [2025-02-13 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462988', 'tblTempUsageDetail_20' ) end [2025-02-13 01:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 01:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 01:17:21] Production.INFO: ==6048== Releasing lock... [2025-02-13 01:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 01:17:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 22:18:05 [end_date_ymd] => 2025-02-13 01:18:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 22:18:05' and `end` < '2025-02-13 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-02-13 01:18:18] Production.INFO: count ==288 [2025-02-13 01:18:18] Production.ERROR: pbx CDR StartTime 2025-02-12 22:18:05 - End Time 2025-02-13 01:18:05 [2025-02-13 01:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462993', 'tblTempUsageDetail_20' ) start [2025-02-13 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462993', 'tblTempUsageDetail_20' ) end [2025-02-13 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462993', 'tblTempVendorCDR_20' ) start [2025-02-13 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462993', 'tblTempVendorCDR_20' ) end [2025-02-13 01:18:18] Production.INFO: ProcessCDR(1,14462993,1,1,2) [2025-02-13 01:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462993', 'tblTempUsageDetail_20' ) start [2025-02-13 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462993', 'tblTempUsageDetail_20' ) end [2025-02-13 01:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 01:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 01:18:21] Production.INFO: ==6144== Releasing lock... [2025-02-13 01:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 01:18:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 22:19:05 [end_date_ymd] => 2025-02-13 01:19:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 22:19:05' and `end` < '2025-02-13 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-02-13 01:19:18] Production.INFO: count ==290 [2025-02-13 01:19:18] Production.ERROR: pbx CDR StartTime 2025-02-12 22:19:05 - End Time 2025-02-13 01:19:05 [2025-02-13 01:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462998', 'tblTempUsageDetail_20' ) start [2025-02-13 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462998', 'tblTempUsageDetail_20' ) end [2025-02-13 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462998', 'tblTempVendorCDR_20' ) start [2025-02-13 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462998', 'tblTempVendorCDR_20' ) end [2025-02-13 01:19:18] Production.INFO: ProcessCDR(1,14462998,1,1,2) [2025-02-13 01:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462998', 'tblTempUsageDetail_20' ) start [2025-02-13 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462998', 'tblTempUsageDetail_20' ) end [2025-02-13 01:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 01:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 01:19:21] Production.INFO: ==6237== Releasing lock... [2025-02-13 01:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 01:19:21] Production.INFO: 30 MB #Memory Used# [2025-02-13 01:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 22:20:05 [end_date_ymd] => 2025-02-13 01:20:05 [RateCDR] => 1 ) [2025-02-13 01: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-02-12 22:20:05' and `end` < '2025-02-13 01: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-02-13 01:20:18] Production.INFO: count ==298 [2025-02-13 01:20:19] Production.ERROR: pbx CDR StartTime 2025-02-12 22:20:05 - End Time 2025-02-13 01:20:05 [2025-02-13 01:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463003', 'tblTempUsageDetail_20' ) start [2025-02-13 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463003', 'tblTempUsageDetail_20' ) end [2025-02-13 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463003', 'tblTempVendorCDR_20' ) start [2025-02-13 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463003', 'tblTempVendorCDR_20' ) end [2025-02-13 01:20:19] Production.INFO: ProcessCDR(1,14463003,1,1,2) [2025-02-13 01:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463003', 'tblTempUsageDetail_20' ) start [2025-02-13 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463003', 'tblTempUsageDetail_20' ) end [2025-02-13 01:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 01:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 01:20:22] Production.INFO: ==6342== Releasing lock... [2025-02-13 01:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 01:20:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 22:21:05 [end_date_ymd] => 2025-02-13 01:21:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 22:21:05' and `end` < '2025-02-13 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-02-13 01:21:18] Production.INFO: count ==316 [2025-02-13 01:21:18] Production.ERROR: pbx CDR StartTime 2025-02-12 22:21:05 - End Time 2025-02-13 01:21:05 [2025-02-13 01:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463009', 'tblTempUsageDetail_20' ) start [2025-02-13 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463009', 'tblTempUsageDetail_20' ) end [2025-02-13 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463009', 'tblTempVendorCDR_20' ) start [2025-02-13 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463009', 'tblTempVendorCDR_20' ) end [2025-02-13 01:21:18] Production.INFO: ProcessCDR(1,14463009,1,1,2) [2025-02-13 01:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463009', 'tblTempUsageDetail_20' ) start [2025-02-13 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463009', 'tblTempUsageDetail_20' ) end [2025-02-13 01:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 01:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 01:21:21] Production.INFO: ==6507== Releasing lock... [2025-02-13 01:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 01:21:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-13 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 22:22:05 [end_date_ymd] => 2025-02-13 01:22:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 22:22:05' and `end` < '2025-02-13 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-02-13 01:22:18] Production.INFO: count ==324 [2025-02-13 01:22:18] Production.ERROR: pbx CDR StartTime 2025-02-12 22:22:05 - End Time 2025-02-13 01:22:05 [2025-02-13 01:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463014', 'tblTempUsageDetail_20' ) start [2025-02-13 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463014', 'tblTempUsageDetail_20' ) end [2025-02-13 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463014', 'tblTempVendorCDR_20' ) start [2025-02-13 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463014', 'tblTempVendorCDR_20' ) end [2025-02-13 01:22:18] Production.INFO: ProcessCDR(1,14463014,1,1,2) [2025-02-13 01:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463014', 'tblTempUsageDetail_20' ) start [2025-02-13 01:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463014', 'tblTempUsageDetail_20' ) end [2025-02-13 01:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 01:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 01:22:22] Production.INFO: ==6638== Releasing lock... [2025-02-13 01:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 01:22:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 22:23:05 [end_date_ymd] => 2025-02-13 01:23:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 22:23:05' and `end` < '2025-02-13 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-02-13 01:23:18] Production.INFO: count ==320 [2025-02-13 01:23:18] Production.ERROR: pbx CDR StartTime 2025-02-12 22:23:05 - End Time 2025-02-13 01:23:05 [2025-02-13 01:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463019', 'tblTempUsageDetail_20' ) start [2025-02-13 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463019', 'tblTempUsageDetail_20' ) end [2025-02-13 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463019', 'tblTempVendorCDR_20' ) start [2025-02-13 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463019', 'tblTempVendorCDR_20' ) end [2025-02-13 01:23:18] Production.INFO: ProcessCDR(1,14463019,1,1,2) [2025-02-13 01:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463019', 'tblTempUsageDetail_20' ) start [2025-02-13 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463019', 'tblTempUsageDetail_20' ) end [2025-02-13 01:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 01:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 01:23:21] Production.INFO: ==6768== Releasing lock... [2025-02-13 01:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 01:23:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 22:24:05 [end_date_ymd] => 2025-02-13 01:24:05 [RateCDR] => 1 ) [2025-02-13 01: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-02-12 22:24:05' and `end` < '2025-02-13 01: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-02-13 01:24:18] Production.INFO: count ==324 [2025-02-13 01:24:18] Production.ERROR: pbx CDR StartTime 2025-02-12 22:24:05 - End Time 2025-02-13 01:24:05 [2025-02-13 01:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463024', 'tblTempUsageDetail_20' ) start [2025-02-13 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463024', 'tblTempUsageDetail_20' ) end [2025-02-13 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463024', 'tblTempVendorCDR_20' ) start [2025-02-13 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463024', 'tblTempVendorCDR_20' ) end [2025-02-13 01:24:18] Production.INFO: ProcessCDR(1,14463024,1,1,2) [2025-02-13 01:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463024', 'tblTempUsageDetail_20' ) start [2025-02-13 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463024', 'tblTempUsageDetail_20' ) end [2025-02-13 01:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 01:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 01:24:21] Production.INFO: ==6894== Releasing lock... [2025-02-13 01:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 01:24:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 22:25:05 [end_date_ymd] => 2025-02-13 01:25:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 22:25:05' and `end` < '2025-02-13 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-02-13 01:25:18] Production.INFO: count ==327 [2025-02-13 01:25:18] Production.ERROR: pbx CDR StartTime 2025-02-12 22:25:05 - End Time 2025-02-13 01:25:05 [2025-02-13 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463029', 'tblTempUsageDetail_20' ) start [2025-02-13 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463029', 'tblTempUsageDetail_20' ) end [2025-02-13 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463029', 'tblTempVendorCDR_20' ) start [2025-02-13 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463029', 'tblTempVendorCDR_20' ) end [2025-02-13 01:25:18] Production.INFO: ProcessCDR(1,14463029,1,1,2) [2025-02-13 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463029', 'tblTempUsageDetail_20' ) start [2025-02-13 01:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463029', 'tblTempUsageDetail_20' ) end [2025-02-13 01:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 01:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 01:25:22] Production.INFO: ==7019== Releasing lock... [2025-02-13 01:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 01:25:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-13 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 22:26:05 [end_date_ymd] => 2025-02-13 01:26:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 22:26:05' and `end` < '2025-02-13 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-02-13 01:26:18] Production.INFO: count ==335 [2025-02-13 01:26:18] Production.ERROR: pbx CDR StartTime 2025-02-12 22:26:05 - End Time 2025-02-13 01:26:05 [2025-02-13 01:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463034', 'tblTempUsageDetail_20' ) start [2025-02-13 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463034', 'tblTempUsageDetail_20' ) end [2025-02-13 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463034', 'tblTempVendorCDR_20' ) start [2025-02-13 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463034', 'tblTempVendorCDR_20' ) end [2025-02-13 01:26:18] Production.INFO: ProcessCDR(1,14463034,1,1,2) [2025-02-13 01:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463034', 'tblTempUsageDetail_20' ) start [2025-02-13 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463034', 'tblTempUsageDetail_20' ) end [2025-02-13 01:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 01:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 01:26:21] Production.INFO: ==7145== Releasing lock... [2025-02-13 01:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 01:26:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 22:27:05 [end_date_ymd] => 2025-02-13 01:27:05 [RateCDR] => 1 ) [2025-02-13 01: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-02-12 22:27:05' and `end` < '2025-02-13 01: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-02-13 01:27:18] Production.INFO: count ==334 [2025-02-13 01:27:18] Production.ERROR: pbx CDR StartTime 2025-02-12 22:27:05 - End Time 2025-02-13 01:27:05 [2025-02-13 01:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463039', 'tblTempUsageDetail_20' ) start [2025-02-13 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463039', 'tblTempUsageDetail_20' ) end [2025-02-13 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463039', 'tblTempVendorCDR_20' ) start [2025-02-13 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463039', 'tblTempVendorCDR_20' ) end [2025-02-13 01:27:18] Production.INFO: ProcessCDR(1,14463039,1,1,2) [2025-02-13 01:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463039', 'tblTempUsageDetail_20' ) start [2025-02-13 01:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463039', 'tblTempUsageDetail_20' ) end [2025-02-13 01:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 01:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 01:27:22] Production.INFO: ==7274== Releasing lock... [2025-02-13 01:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 01:27:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-13 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 22:28:05 [end_date_ymd] => 2025-02-13 01:28:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 22:28:05' and `end` < '2025-02-13 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-02-13 01:28:18] Production.INFO: count ==334 [2025-02-13 01:28:18] Production.ERROR: pbx CDR StartTime 2025-02-12 22:28:05 - End Time 2025-02-13 01:28:05 [2025-02-13 01:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463044', 'tblTempUsageDetail_20' ) start [2025-02-13 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463044', 'tblTempUsageDetail_20' ) end [2025-02-13 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463044', 'tblTempVendorCDR_20' ) start [2025-02-13 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463044', 'tblTempVendorCDR_20' ) end [2025-02-13 01:28:18] Production.INFO: ProcessCDR(1,14463044,1,1,2) [2025-02-13 01:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463044', 'tblTempUsageDetail_20' ) start [2025-02-13 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463044', 'tblTempUsageDetail_20' ) end [2025-02-13 01:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 01:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 01:28:21] Production.INFO: ==7400== Releasing lock... [2025-02-13 01:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 01:28:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-13 01:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 22:29:06 [end_date_ymd] => 2025-02-13 01:29:06 [RateCDR] => 1 ) [2025-02-13 01: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-02-12 22:29:06' and `end` < '2025-02-13 01: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-02-13 01:29:20] Production.INFO: count ==334 [2025-02-13 01:29:20] Production.ERROR: pbx CDR StartTime 2025-02-12 22:29:06 - End Time 2025-02-13 01:29:06 [2025-02-13 01:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 01:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463049', 'tblTempUsageDetail_20' ) start [2025-02-13 01:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463049', 'tblTempUsageDetail_20' ) end [2025-02-13 01:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463049', 'tblTempVendorCDR_20' ) start [2025-02-13 01:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463049', 'tblTempVendorCDR_20' ) end [2025-02-13 01:29:20] Production.INFO: ProcessCDR(1,14463049,1,1,2) [2025-02-13 01:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463049', 'tblTempUsageDetail_20' ) start [2025-02-13 01:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463049', 'tblTempUsageDetail_20' ) end [2025-02-13 01:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 01:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 01:29:23] Production.INFO: ==7529== Releasing lock... [2025-02-13 01:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 01:29:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-13 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 22:30:06 [end_date_ymd] => 2025-02-13 01:30:06 [RateCDR] => 1 ) [2025-02-13 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-02-12 22:30:06' and `end` < '2025-02-13 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-02-13 01:30:19] Production.INFO: count ==344 [2025-02-13 01:30:19] Production.ERROR: pbx CDR StartTime 2025-02-12 22:30:06 - End Time 2025-02-13 01:30:06 [2025-02-13 01:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463055', 'tblTempUsageDetail_20' ) start [2025-02-13 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463055', 'tblTempUsageDetail_20' ) end [2025-02-13 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463055', 'tblTempVendorCDR_20' ) start [2025-02-13 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463055', 'tblTempVendorCDR_20' ) end [2025-02-13 01:30:19] Production.INFO: ProcessCDR(1,14463055,1,1,2) [2025-02-13 01:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463055', 'tblTempUsageDetail_20' ) start [2025-02-13 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463055', 'tblTempUsageDetail_20' ) end [2025-02-13 01:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 01:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 01:30:22] Production.INFO: ==7660== Releasing lock... [2025-02-13 01:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 01:30:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-13 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 22:31:05 [end_date_ymd] => 2025-02-13 01:31:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 22:31:05' and `end` < '2025-02-13 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-02-13 01:31:18] Production.INFO: count ==350 [2025-02-13 01:31:18] Production.ERROR: pbx CDR StartTime 2025-02-12 22:31:05 - End Time 2025-02-13 01:31:05 [2025-02-13 01:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463060', 'tblTempUsageDetail_20' ) start [2025-02-13 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463060', 'tblTempUsageDetail_20' ) end [2025-02-13 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463060', 'tblTempVendorCDR_20' ) start [2025-02-13 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463060', 'tblTempVendorCDR_20' ) end [2025-02-13 01:31:18] Production.INFO: ProcessCDR(1,14463060,1,1,2) [2025-02-13 01:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463060', 'tblTempUsageDetail_20' ) start [2025-02-13 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463060', 'tblTempUsageDetail_20' ) end [2025-02-13 01:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 01:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 01:31:21] Production.INFO: ==7789== Releasing lock... [2025-02-13 01:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 01:31:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 22:32:05 [end_date_ymd] => 2025-02-13 01:32:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 22:32:05' and `end` < '2025-02-13 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-02-13 01:32:18] Production.INFO: count ==350 [2025-02-13 01:32:18] Production.ERROR: pbx CDR StartTime 2025-02-12 22:32:05 - End Time 2025-02-13 01:32:05 [2025-02-13 01:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463065', 'tblTempUsageDetail_20' ) start [2025-02-13 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463065', 'tblTempUsageDetail_20' ) end [2025-02-13 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463065', 'tblTempVendorCDR_20' ) start [2025-02-13 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463065', 'tblTempVendorCDR_20' ) end [2025-02-13 01:32:18] Production.INFO: ProcessCDR(1,14463065,1,1,2) [2025-02-13 01:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463065', 'tblTempUsageDetail_20' ) start [2025-02-13 01:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463065', 'tblTempUsageDetail_20' ) end [2025-02-13 01:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 01:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 01:32:22] Production.INFO: ==7916== Releasing lock... [2025-02-13 01:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 01:32:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 22:33:05 [end_date_ymd] => 2025-02-13 01:33:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 22:33:05' and `end` < '2025-02-13 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-02-13 01:33:18] Production.INFO: count ==347 [2025-02-13 01:33:18] Production.ERROR: pbx CDR StartTime 2025-02-12 22:33:05 - End Time 2025-02-13 01:33:05 [2025-02-13 01:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463070', 'tblTempUsageDetail_20' ) start [2025-02-13 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463070', 'tblTempUsageDetail_20' ) end [2025-02-13 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463070', 'tblTempVendorCDR_20' ) start [2025-02-13 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463070', 'tblTempVendorCDR_20' ) end [2025-02-13 01:33:18] Production.INFO: ProcessCDR(1,14463070,1,1,2) [2025-02-13 01:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463070', 'tblTempUsageDetail_20' ) start [2025-02-13 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463070', 'tblTempUsageDetail_20' ) end [2025-02-13 01:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 01:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 01:33:21] Production.INFO: ==8048== Releasing lock... [2025-02-13 01:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 01:33:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 22:34:05 [end_date_ymd] => 2025-02-13 01:34:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 22:34:05' and `end` < '2025-02-13 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-02-13 01:34:18] Production.INFO: count ==346 [2025-02-13 01:34:19] Production.ERROR: pbx CDR StartTime 2025-02-12 22:34:05 - End Time 2025-02-13 01:34:05 [2025-02-13 01:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463075', 'tblTempUsageDetail_20' ) start [2025-02-13 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463075', 'tblTempUsageDetail_20' ) end [2025-02-13 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463075', 'tblTempVendorCDR_20' ) start [2025-02-13 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463075', 'tblTempVendorCDR_20' ) end [2025-02-13 01:34:19] Production.INFO: ProcessCDR(1,14463075,1,1,2) [2025-02-13 01:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463075', 'tblTempUsageDetail_20' ) start [2025-02-13 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463075', 'tblTempUsageDetail_20' ) end [2025-02-13 01:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 01:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 01:34:22] Production.INFO: ==8173== Releasing lock... [2025-02-13 01:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 01:34:22] Production.INFO: 31 MB #Memory Used# [2025-02-13 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 22:35:05 [end_date_ymd] => 2025-02-13 01:35:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 22:35:05' and `end` < '2025-02-13 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-02-13 01:35:18] Production.INFO: count ==346 [2025-02-13 01:35:18] Production.ERROR: pbx CDR StartTime 2025-02-12 22:35:05 - End Time 2025-02-13 01:35:05 [2025-02-13 01:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463080', 'tblTempUsageDetail_20' ) start [2025-02-13 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463080', 'tblTempUsageDetail_20' ) end [2025-02-13 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463080', 'tblTempVendorCDR_20' ) start [2025-02-13 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463080', 'tblTempVendorCDR_20' ) end [2025-02-13 01:35:18] Production.INFO: ProcessCDR(1,14463080,1,1,2) [2025-02-13 01:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463080', 'tblTempUsageDetail_20' ) start [2025-02-13 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463080', 'tblTempUsageDetail_20' ) end [2025-02-13 01:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 01:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 01:35:21] Production.INFO: ==8297== Releasing lock... [2025-02-13 01:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 01:35:21] Production.INFO: 31 MB #Memory Used# [2025-02-13 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 22:36:05 [end_date_ymd] => 2025-02-13 01:36:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 22:36:05' and `end` < '2025-02-13 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-02-13 01:36:18] Production.INFO: count ==347 [2025-02-13 01:36:18] Production.ERROR: pbx CDR StartTime 2025-02-12 22:36:05 - End Time 2025-02-13 01:36:05 [2025-02-13 01:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463085', 'tblTempUsageDetail_20' ) start [2025-02-13 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463085', 'tblTempUsageDetail_20' ) end [2025-02-13 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463085', 'tblTempVendorCDR_20' ) start [2025-02-13 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463085', 'tblTempVendorCDR_20' ) end [2025-02-13 01:36:18] Production.INFO: ProcessCDR(1,14463085,1,1,2) [2025-02-13 01:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463085', 'tblTempUsageDetail_20' ) start [2025-02-13 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463085', 'tblTempUsageDetail_20' ) end [2025-02-13 01:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 01:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 01:36:22] Production.INFO: ==8419== Releasing lock... [2025-02-13 01:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 01:36:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 01:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 22:37:06 [end_date_ymd] => 2025-02-13 01:37:06 [RateCDR] => 1 ) [2025-02-13 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-02-12 22:37:06' and `end` < '2025-02-13 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-02-13 01:37:20] Production.INFO: count ==346 [2025-02-13 01:37:20] Production.ERROR: pbx CDR StartTime 2025-02-12 22:37:06 - End Time 2025-02-13 01:37:06 [2025-02-13 01:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 01:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463090', 'tblTempUsageDetail_20' ) start [2025-02-13 01:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463090', 'tblTempUsageDetail_20' ) end [2025-02-13 01:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463090', 'tblTempVendorCDR_20' ) start [2025-02-13 01:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463090', 'tblTempVendorCDR_20' ) end [2025-02-13 01:37:20] Production.INFO: ProcessCDR(1,14463090,1,1,2) [2025-02-13 01:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463090', 'tblTempUsageDetail_20' ) start [2025-02-13 01:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463090', 'tblTempUsageDetail_20' ) end [2025-02-13 01:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 01:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 01:37:23] Production.INFO: ==8550== Releasing lock... [2025-02-13 01:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 01:37:23] Production.INFO: 31 MB #Memory Used# [2025-02-13 01:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 22:38:06 [end_date_ymd] => 2025-02-13 01:38:06 [RateCDR] => 1 ) [2025-02-13 01: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-02-12 22:38:06' and `end` < '2025-02-13 01: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-02-13 01:38:19] Production.INFO: count ==346 [2025-02-13 01:38:19] Production.ERROR: pbx CDR StartTime 2025-02-12 22:38:06 - End Time 2025-02-13 01:38:06 [2025-02-13 01:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463095', 'tblTempUsageDetail_20' ) start [2025-02-13 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463095', 'tblTempUsageDetail_20' ) end [2025-02-13 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463095', 'tblTempVendorCDR_20' ) start [2025-02-13 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463095', 'tblTempVendorCDR_20' ) end [2025-02-13 01:38:19] Production.INFO: ProcessCDR(1,14463095,1,1,2) [2025-02-13 01:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463095', 'tblTempUsageDetail_20' ) start [2025-02-13 01:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463095', 'tblTempUsageDetail_20' ) end [2025-02-13 01:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 01:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 01:38:23] Production.INFO: ==8646== Releasing lock... [2025-02-13 01:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 01:38:23] Production.INFO: 31 MB #Memory Used# [2025-02-13 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 22:39:05 [end_date_ymd] => 2025-02-13 01:39:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 22:39:05' and `end` < '2025-02-13 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-02-13 01:39:18] Production.INFO: count ==346 [2025-02-13 01:39:18] Production.ERROR: pbx CDR StartTime 2025-02-12 22:39:05 - End Time 2025-02-13 01:39:05 [2025-02-13 01:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463100', 'tblTempUsageDetail_20' ) start [2025-02-13 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463100', 'tblTempUsageDetail_20' ) end [2025-02-13 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463100', 'tblTempVendorCDR_20' ) start [2025-02-13 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463100', 'tblTempVendorCDR_20' ) end [2025-02-13 01:39:18] Production.INFO: ProcessCDR(1,14463100,1,1,2) [2025-02-13 01:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463100', 'tblTempUsageDetail_20' ) start [2025-02-13 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463100', 'tblTempUsageDetail_20' ) end [2025-02-13 01:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 01:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 01:39:21] Production.INFO: ==8723== Releasing lock... [2025-02-13 01:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 01:39:21] Production.INFO: 31 MB #Memory Used# [2025-02-13 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 22:40:06 [end_date_ymd] => 2025-02-13 01:40:06 [RateCDR] => 1 ) [2025-02-13 01: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-02-12 22:40:06' and `end` < '2025-02-13 01: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-02-13 01:40:19] Production.INFO: count ==354 [2025-02-13 01:40:19] Production.ERROR: pbx CDR StartTime 2025-02-12 22:40:06 - End Time 2025-02-13 01:40:06 [2025-02-13 01:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463106', 'tblTempUsageDetail_20' ) start [2025-02-13 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463106', 'tblTempUsageDetail_20' ) end [2025-02-13 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463106', 'tblTempVendorCDR_20' ) start [2025-02-13 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463106', 'tblTempVendorCDR_20' ) end [2025-02-13 01:40:19] Production.INFO: ProcessCDR(1,14463106,1,1,2) [2025-02-13 01:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463106', 'tblTempUsageDetail_20' ) start [2025-02-13 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463106', 'tblTempUsageDetail_20' ) end [2025-02-13 01:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 01:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 01:40:22] Production.INFO: ==8797== Releasing lock... [2025-02-13 01:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 01:40:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 22:41:05 [end_date_ymd] => 2025-02-13 01:41:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 22:41:05' and `end` < '2025-02-13 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-02-13 01:41:20] Production.INFO: count ==358 [2025-02-13 01:41:20] Production.ERROR: pbx CDR StartTime 2025-02-12 22:41:05 - End Time 2025-02-13 01:41:05 [2025-02-13 01:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 01:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463111', 'tblTempUsageDetail_20' ) start [2025-02-13 01:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463111', 'tblTempUsageDetail_20' ) end [2025-02-13 01:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463111', 'tblTempVendorCDR_20' ) start [2025-02-13 01:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463111', 'tblTempVendorCDR_20' ) end [2025-02-13 01:41:20] Production.INFO: ProcessCDR(1,14463111,1,1,2) [2025-02-13 01:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463111', 'tblTempUsageDetail_20' ) start [2025-02-13 01:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463111', 'tblTempUsageDetail_20' ) end [2025-02-13 01:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 01:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 01:41:23] Production.INFO: ==8870== Releasing lock... [2025-02-13 01:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 01:41:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 22:42:05 [end_date_ymd] => 2025-02-13 01:42:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 22:42:05' and `end` < '2025-02-13 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-02-13 01:42:18] Production.INFO: count ==360 [2025-02-13 01:42:18] Production.ERROR: pbx CDR StartTime 2025-02-12 22:42:05 - End Time 2025-02-13 01:42:05 [2025-02-13 01:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463116', 'tblTempUsageDetail_20' ) start [2025-02-13 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463116', 'tblTempUsageDetail_20' ) end [2025-02-13 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463116', 'tblTempVendorCDR_20' ) start [2025-02-13 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463116', 'tblTempVendorCDR_20' ) end [2025-02-13 01:42:18] Production.INFO: ProcessCDR(1,14463116,1,1,2) [2025-02-13 01:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463116', 'tblTempUsageDetail_20' ) start [2025-02-13 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463116', 'tblTempUsageDetail_20' ) end [2025-02-13 01:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 01:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 01:42:22] Production.INFO: ==8946== Releasing lock... [2025-02-13 01:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 01:42:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 22:43:05 [end_date_ymd] => 2025-02-13 01:43:05 [RateCDR] => 1 ) [2025-02-13 01: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-02-12 22:43:05' and `end` < '2025-02-13 01: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-02-13 01:43:19] Production.INFO: count ==360 [2025-02-13 01:43:19] Production.ERROR: pbx CDR StartTime 2025-02-12 22:43:05 - End Time 2025-02-13 01:43:05 [2025-02-13 01:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463121', 'tblTempUsageDetail_20' ) start [2025-02-13 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463121', 'tblTempUsageDetail_20' ) end [2025-02-13 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463121', 'tblTempVendorCDR_20' ) start [2025-02-13 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463121', 'tblTempVendorCDR_20' ) end [2025-02-13 01:43:19] Production.INFO: ProcessCDR(1,14463121,1,1,2) [2025-02-13 01:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463121', 'tblTempUsageDetail_20' ) start [2025-02-13 01:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463121', 'tblTempUsageDetail_20' ) end [2025-02-13 01:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 01:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 01:43:23] Production.INFO: ==9019== Releasing lock... [2025-02-13 01:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 01:43:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 01:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 22:44:06 [end_date_ymd] => 2025-02-13 01:44:06 [RateCDR] => 1 ) [2025-02-13 01: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-02-12 22:44:06' and `end` < '2025-02-13 01: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-02-13 01:44:20] Production.INFO: count ==360 [2025-02-13 01:44:20] Production.ERROR: pbx CDR StartTime 2025-02-12 22:44:06 - End Time 2025-02-13 01:44:06 [2025-02-13 01:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 01:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463126', 'tblTempUsageDetail_20' ) start [2025-02-13 01:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463126', 'tblTempUsageDetail_20' ) end [2025-02-13 01:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463126', 'tblTempVendorCDR_20' ) start [2025-02-13 01:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463126', 'tblTempVendorCDR_20' ) end [2025-02-13 01:44:20] Production.INFO: ProcessCDR(1,14463126,1,1,2) [2025-02-13 01:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463126', 'tblTempUsageDetail_20' ) start [2025-02-13 01:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463126', 'tblTempUsageDetail_20' ) end [2025-02-13 01:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 01:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 01:44:23] Production.INFO: ==9090== Releasing lock... [2025-02-13 01:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 01:44:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 22:45:05 [end_date_ymd] => 2025-02-13 01:45:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 22:45:05' and `end` < '2025-02-13 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-02-13 01:45:18] Production.INFO: count ==364 [2025-02-13 01:45:18] Production.ERROR: pbx CDR StartTime 2025-02-12 22:45:05 - End Time 2025-02-13 01:45:05 [2025-02-13 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463131', 'tblTempUsageDetail_20' ) start [2025-02-13 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463131', 'tblTempUsageDetail_20' ) end [2025-02-13 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463131', 'tblTempVendorCDR_20' ) start [2025-02-13 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463131', 'tblTempVendorCDR_20' ) end [2025-02-13 01:45:18] Production.INFO: ProcessCDR(1,14463131,1,1,2) [2025-02-13 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463131', 'tblTempUsageDetail_20' ) start [2025-02-13 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463131', 'tblTempUsageDetail_20' ) end [2025-02-13 01:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 01:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 01:45:22] Production.INFO: ==9162== Releasing lock... [2025-02-13 01:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 01:45:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 22:46:05 [end_date_ymd] => 2025-02-13 01:46:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 22:46:05' and `end` < '2025-02-13 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-02-13 01:46:18] Production.INFO: count ==360 [2025-02-13 01:46:18] Production.ERROR: pbx CDR StartTime 2025-02-12 22:46:05 - End Time 2025-02-13 01:46:05 [2025-02-13 01:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463136', 'tblTempUsageDetail_20' ) start [2025-02-13 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463136', 'tblTempUsageDetail_20' ) end [2025-02-13 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463136', 'tblTempVendorCDR_20' ) start [2025-02-13 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463136', 'tblTempVendorCDR_20' ) end [2025-02-13 01:46:18] Production.INFO: ProcessCDR(1,14463136,1,1,2) [2025-02-13 01:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463136', 'tblTempUsageDetail_20' ) start [2025-02-13 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463136', 'tblTempUsageDetail_20' ) end [2025-02-13 01:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 01:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 01:46:21] Production.INFO: ==9240== Releasing lock... [2025-02-13 01:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 01:46:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 01:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 22:47:04 [end_date_ymd] => 2025-02-13 01:47:04 [RateCDR] => 1 ) [2025-02-13 01: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-02-12 22:47:04' and `end` < '2025-02-13 01: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-02-13 01:47:19] Production.INFO: count ==357 [2025-02-13 01:47:20] Production.ERROR: pbx CDR StartTime 2025-02-12 22:47:04 - End Time 2025-02-13 01:47:04 [2025-02-13 01:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 01:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463141', 'tblTempUsageDetail_20' ) start [2025-02-13 01:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463141', 'tblTempUsageDetail_20' ) end [2025-02-13 01:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463141', 'tblTempVendorCDR_20' ) start [2025-02-13 01:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463141', 'tblTempVendorCDR_20' ) end [2025-02-13 01:47:20] Production.INFO: ProcessCDR(1,14463141,1,1,2) [2025-02-13 01:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463141', 'tblTempUsageDetail_20' ) start [2025-02-13 01:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463141', 'tblTempUsageDetail_20' ) end [2025-02-13 01:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 01:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 01:47:23] Production.INFO: ==9318== Releasing lock... [2025-02-13 01:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 01:47:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-13 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 22:48:05 [end_date_ymd] => 2025-02-13 01:48:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 22:48:05' and `end` < '2025-02-13 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-02-13 01:48:18] Production.INFO: count ==355 [2025-02-13 01:48:18] Production.ERROR: pbx CDR StartTime 2025-02-12 22:48:05 - End Time 2025-02-13 01:48:05 [2025-02-13 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463146', 'tblTempUsageDetail_20' ) start [2025-02-13 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463146', 'tblTempUsageDetail_20' ) end [2025-02-13 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463146', 'tblTempVendorCDR_20' ) start [2025-02-13 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463146', 'tblTempVendorCDR_20' ) end [2025-02-13 01:48:18] Production.INFO: ProcessCDR(1,14463146,1,1,2) [2025-02-13 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463146', 'tblTempUsageDetail_20' ) start [2025-02-13 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463146', 'tblTempUsageDetail_20' ) end [2025-02-13 01:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 01:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 01:48:21] Production.INFO: ==9393== Releasing lock... [2025-02-13 01:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 01:48:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 22:49:05 [end_date_ymd] => 2025-02-13 01:49:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 22:49:05' and `end` < '2025-02-13 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-02-13 01:49:18] Production.INFO: count ==353 [2025-02-13 01:49:18] Production.ERROR: pbx CDR StartTime 2025-02-12 22:49:05 - End Time 2025-02-13 01:49:05 [2025-02-13 01:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463151', 'tblTempUsageDetail_20' ) start [2025-02-13 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463151', 'tblTempUsageDetail_20' ) end [2025-02-13 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463151', 'tblTempVendorCDR_20' ) start [2025-02-13 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463151', 'tblTempVendorCDR_20' ) end [2025-02-13 01:49:18] Production.INFO: ProcessCDR(1,14463151,1,1,2) [2025-02-13 01:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463151', 'tblTempUsageDetail_20' ) start [2025-02-13 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463151', 'tblTempUsageDetail_20' ) end [2025-02-13 01:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 01:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 01:49:21] Production.INFO: ==9475== Releasing lock... [2025-02-13 01:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 01:49:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-13 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 22:50:06 [end_date_ymd] => 2025-02-13 01:50:06 [RateCDR] => 1 ) [2025-02-13 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-02-12 22:50:06' and `end` < '2025-02-13 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-02-13 01:50:19] Production.INFO: count ==361 [2025-02-13 01:50:19] Production.ERROR: pbx CDR StartTime 2025-02-12 22:50:06 - End Time 2025-02-13 01:50:06 [2025-02-13 01:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463157', 'tblTempUsageDetail_20' ) start [2025-02-13 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463157', 'tblTempUsageDetail_20' ) end [2025-02-13 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463157', 'tblTempVendorCDR_20' ) start [2025-02-13 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463157', 'tblTempVendorCDR_20' ) end [2025-02-13 01:50:19] Production.INFO: ProcessCDR(1,14463157,1,1,2) [2025-02-13 01:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463157', 'tblTempUsageDetail_20' ) start [2025-02-13 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463157', 'tblTempUsageDetail_20' ) end [2025-02-13 01:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 01:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 01:50:22] Production.INFO: ==9561== Releasing lock... [2025-02-13 01:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 01:50:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 22:51:05 [end_date_ymd] => 2025-02-13 01:51:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 22:51:05' and `end` < '2025-02-13 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-02-13 01:51:18] Production.INFO: count ==366 [2025-02-13 01:51:18] Production.ERROR: pbx CDR StartTime 2025-02-12 22:51:05 - End Time 2025-02-13 01:51:05 [2025-02-13 01:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463162', 'tblTempUsageDetail_20' ) start [2025-02-13 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463162', 'tblTempUsageDetail_20' ) end [2025-02-13 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463162', 'tblTempVendorCDR_20' ) start [2025-02-13 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463162', 'tblTempVendorCDR_20' ) end [2025-02-13 01:51:18] Production.INFO: ProcessCDR(1,14463162,1,1,2) [2025-02-13 01:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463162', 'tblTempUsageDetail_20' ) start [2025-02-13 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463162', 'tblTempUsageDetail_20' ) end [2025-02-13 01:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 01:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 01:51:22] Production.INFO: ==9634== Releasing lock... [2025-02-13 01:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 01:51:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 22:52:05 [end_date_ymd] => 2025-02-13 01:52:05 [RateCDR] => 1 ) [2025-02-13 01: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-02-12 22:52:05' and `end` < '2025-02-13 01: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-02-13 01:52:18] Production.INFO: count ==366 [2025-02-13 01:52:19] Production.ERROR: pbx CDR StartTime 2025-02-12 22:52:05 - End Time 2025-02-13 01:52:05 [2025-02-13 01:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463167', 'tblTempUsageDetail_20' ) start [2025-02-13 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463167', 'tblTempUsageDetail_20' ) end [2025-02-13 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463167', 'tblTempVendorCDR_20' ) start [2025-02-13 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463167', 'tblTempVendorCDR_20' ) end [2025-02-13 01:52:19] Production.INFO: ProcessCDR(1,14463167,1,1,2) [2025-02-13 01:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463167', 'tblTempUsageDetail_20' ) start [2025-02-13 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463167', 'tblTempUsageDetail_20' ) end [2025-02-13 01:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 01:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 01:52:22] Production.INFO: ==9756== Releasing lock... [2025-02-13 01:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 01:52:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 01:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 22:53:04 [end_date_ymd] => 2025-02-13 01:53:04 [RateCDR] => 1 ) [2025-02-13 01: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-02-12 22:53:04' and `end` < '2025-02-13 01: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-02-13 01:53:19] Production.INFO: count ==366 [2025-02-13 01:53:19] Production.ERROR: pbx CDR StartTime 2025-02-12 22:53:04 - End Time 2025-02-13 01:53:04 [2025-02-13 01:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463172', 'tblTempUsageDetail_20' ) start [2025-02-13 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463172', 'tblTempUsageDetail_20' ) end [2025-02-13 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463172', 'tblTempVendorCDR_20' ) start [2025-02-13 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463172', 'tblTempVendorCDR_20' ) end [2025-02-13 01:53:19] Production.INFO: ProcessCDR(1,14463172,1,1,2) [2025-02-13 01:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463172', 'tblTempUsageDetail_20' ) start [2025-02-13 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463172', 'tblTempUsageDetail_20' ) end [2025-02-13 01:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 01:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 01:53:22] Production.INFO: ==9834== Releasing lock... [2025-02-13 01:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 01:53:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 22:54:05 [end_date_ymd] => 2025-02-13 01:54:05 [RateCDR] => 1 ) [2025-02-13 01: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-02-12 22:54:05' and `end` < '2025-02-13 01: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-02-13 01:54:18] Production.INFO: count ==367 [2025-02-13 01:54:18] Production.ERROR: pbx CDR StartTime 2025-02-12 22:54:05 - End Time 2025-02-13 01:54:05 [2025-02-13 01:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463177', 'tblTempUsageDetail_20' ) start [2025-02-13 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463177', 'tblTempUsageDetail_20' ) end [2025-02-13 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463177', 'tblTempVendorCDR_20' ) start [2025-02-13 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463177', 'tblTempVendorCDR_20' ) end [2025-02-13 01:54:18] Production.INFO: ProcessCDR(1,14463177,1,1,2) [2025-02-13 01:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463177', 'tblTempUsageDetail_20' ) start [2025-02-13 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463177', 'tblTempUsageDetail_20' ) end [2025-02-13 01:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 01:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 01:54:22] Production.INFO: ==9915== Releasing lock... [2025-02-13 01:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 01:54:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 22:55:05 [end_date_ymd] => 2025-02-13 01:55:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 22:55:05' and `end` < '2025-02-13 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-02-13 01:55:18] Production.INFO: count ==368 [2025-02-13 01:55:18] Production.ERROR: pbx CDR StartTime 2025-02-12 22:55:05 - End Time 2025-02-13 01:55:05 [2025-02-13 01:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463182', 'tblTempUsageDetail_20' ) start [2025-02-13 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463182', 'tblTempUsageDetail_20' ) end [2025-02-13 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463182', 'tblTempVendorCDR_20' ) start [2025-02-13 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463182', 'tblTempVendorCDR_20' ) end [2025-02-13 01:55:18] Production.INFO: ProcessCDR(1,14463182,1,1,2) [2025-02-13 01:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463182', 'tblTempUsageDetail_20' ) start [2025-02-13 01:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463182', 'tblTempUsageDetail_20' ) end [2025-02-13 01:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 01:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 01:55:23] Production.INFO: ==9997== Releasing lock... [2025-02-13 01:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 01:55:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 22:56:05 [end_date_ymd] => 2025-02-13 01:56:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 22:56:05' and `end` < '2025-02-13 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-02-13 01:56:19] Production.INFO: count ==376 [2025-02-13 01:56:19] Production.ERROR: pbx CDR StartTime 2025-02-12 22:56:05 - End Time 2025-02-13 01:56:05 [2025-02-13 01:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463187', 'tblTempUsageDetail_20' ) start [2025-02-13 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463187', 'tblTempUsageDetail_20' ) end [2025-02-13 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463187', 'tblTempVendorCDR_20' ) start [2025-02-13 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463187', 'tblTempVendorCDR_20' ) end [2025-02-13 01:56:19] Production.INFO: ProcessCDR(1,14463187,1,1,2) [2025-02-13 01:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463187', 'tblTempUsageDetail_20' ) start [2025-02-13 01:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463187', 'tblTempUsageDetail_20' ) end [2025-02-13 01:56:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 01:56:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 01:56:24] Production.INFO: ==10076== Releasing lock... [2025-02-13 01:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 01:56:24] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 22:57:05 [end_date_ymd] => 2025-02-13 01:57:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 22:57:05' and `end` < '2025-02-13 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-02-13 01:57:19] Production.INFO: count ==376 [2025-02-13 01:57:19] Production.ERROR: pbx CDR StartTime 2025-02-12 22:57:05 - End Time 2025-02-13 01:57:05 [2025-02-13 01:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463192', 'tblTempUsageDetail_20' ) start [2025-02-13 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463192', 'tblTempUsageDetail_20' ) end [2025-02-13 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463192', 'tblTempVendorCDR_20' ) start [2025-02-13 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463192', 'tblTempVendorCDR_20' ) end [2025-02-13 01:57:19] Production.INFO: ProcessCDR(1,14463192,1,1,2) [2025-02-13 01:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463192', 'tblTempUsageDetail_20' ) start [2025-02-13 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463192', 'tblTempUsageDetail_20' ) end [2025-02-13 01:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 01:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 01:57:22] Production.INFO: ==10153== Releasing lock... [2025-02-13 01:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 01:57:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 01:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 22:58:04 [end_date_ymd] => 2025-02-13 01:58:04 [RateCDR] => 1 ) [2025-02-13 01: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-02-12 22:58:04' and `end` < '2025-02-13 01: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-02-13 01:58:17] Production.INFO: count ==376 [2025-02-13 01:58:17] Production.ERROR: pbx CDR StartTime 2025-02-12 22:58:04 - End Time 2025-02-13 01:58:04 [2025-02-13 01:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463197', 'tblTempUsageDetail_20' ) start [2025-02-13 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463197', 'tblTempUsageDetail_20' ) end [2025-02-13 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463197', 'tblTempVendorCDR_20' ) start [2025-02-13 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463197', 'tblTempVendorCDR_20' ) end [2025-02-13 01:58:17] Production.INFO: ProcessCDR(1,14463197,1,1,2) [2025-02-13 01:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463197', 'tblTempUsageDetail_20' ) start [2025-02-13 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463197', 'tblTempUsageDetail_20' ) end [2025-02-13 01:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 01:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 01:58:21] Production.INFO: ==10235== Releasing lock... [2025-02-13 01:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 01:58:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 22:59:05 [end_date_ymd] => 2025-02-13 01:59:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 22:59:05' and `end` < '2025-02-13 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-02-13 01:59:20] Production.INFO: count ==376 [2025-02-13 01:59:20] Production.ERROR: pbx CDR StartTime 2025-02-12 22:59:05 - End Time 2025-02-13 01:59:05 [2025-02-13 01:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 01:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463202', 'tblTempUsageDetail_20' ) start [2025-02-13 01:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463202', 'tblTempUsageDetail_20' ) end [2025-02-13 01:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463202', 'tblTempVendorCDR_20' ) start [2025-02-13 01:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463202', 'tblTempVendorCDR_20' ) end [2025-02-13 01:59:20] Production.INFO: ProcessCDR(1,14463202,1,1,2) [2025-02-13 01:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 01:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 01:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463202', 'tblTempUsageDetail_20' ) start [2025-02-13 01:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463202', 'tblTempUsageDetail_20' ) end [2025-02-13 01:59:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 01:59:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 01:59:23] Production.INFO: ==10319== Releasing lock... [2025-02-13 01:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 01:59:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 23:00:06 [end_date_ymd] => 2025-02-13 02:00:06 [RateCDR] => 1 ) [2025-02-13 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-02-12 23:00:06' and `end` < '2025-02-13 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-02-13 02:00:19] Production.INFO: count ==386 [2025-02-13 02:00:19] Production.ERROR: pbx CDR StartTime 2025-02-12 23:00:06 - End Time 2025-02-13 02:00:06 [2025-02-13 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463208', 'tblTempUsageDetail_20' ) start [2025-02-13 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463208', 'tblTempUsageDetail_20' ) end [2025-02-13 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463208', 'tblTempVendorCDR_20' ) start [2025-02-13 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463208', 'tblTempVendorCDR_20' ) end [2025-02-13 02:00:19] Production.INFO: ProcessCDR(1,14463208,1,1,2) [2025-02-13 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463208', 'tblTempUsageDetail_20' ) start [2025-02-13 02:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463208', 'tblTempUsageDetail_20' ) end [2025-02-13 02:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 02:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 02:00:23] Production.INFO: ==10398== Releasing lock... [2025-02-13 02:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 02:00:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 02:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 23:01:05 [end_date_ymd] => 2025-02-13 02:01:05 [RateCDR] => 1 ) [2025-02-13 02: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-02-12 23:01:05' and `end` < '2025-02-13 02: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-02-13 02:01:18] Production.INFO: count ==395 [2025-02-13 02:01:18] Production.ERROR: pbx CDR StartTime 2025-02-12 23:01:05 - End Time 2025-02-13 02:01:05 [2025-02-13 02:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463213', 'tblTempUsageDetail_20' ) start [2025-02-13 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463213', 'tblTempUsageDetail_20' ) end [2025-02-13 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463213', 'tblTempVendorCDR_20' ) start [2025-02-13 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463213', 'tblTempVendorCDR_20' ) end [2025-02-13 02:01:18] Production.INFO: ProcessCDR(1,14463213,1,1,2) [2025-02-13 02:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463213', 'tblTempUsageDetail_20' ) start [2025-02-13 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463213', 'tblTempUsageDetail_20' ) end [2025-02-13 02:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 02:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 02:01:22] Production.INFO: ==10581== Releasing lock... [2025-02-13 02:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 02:01:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-13 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 23:02:05 [end_date_ymd] => 2025-02-13 02:02:05 [RateCDR] => 1 ) [2025-02-13 02: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-02-12 23:02:05' and `end` < '2025-02-13 02: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-02-13 02:02:18] Production.INFO: count ==395 [2025-02-13 02:02:18] Production.ERROR: pbx CDR StartTime 2025-02-12 23:02:05 - End Time 2025-02-13 02:02:05 [2025-02-13 02:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463218', 'tblTempUsageDetail_20' ) start [2025-02-13 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463218', 'tblTempUsageDetail_20' ) end [2025-02-13 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463218', 'tblTempVendorCDR_20' ) start [2025-02-13 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463218', 'tblTempVendorCDR_20' ) end [2025-02-13 02:02:18] Production.INFO: ProcessCDR(1,14463218,1,1,2) [2025-02-13 02:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463218', 'tblTempUsageDetail_20' ) start [2025-02-13 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463218', 'tblTempUsageDetail_20' ) end [2025-02-13 02:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 02:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 02:02:22] Production.INFO: ==10657== Releasing lock... [2025-02-13 02:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 02:02:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-13 02:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 23:03:04 [end_date_ymd] => 2025-02-13 02:03:04 [RateCDR] => 1 ) [2025-02-13 02:03: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-02-12 23:03:04' and `end` < '2025-02-13 02:03: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-02-13 02:03:18] Production.INFO: count ==385 [2025-02-13 02:03:18] Production.ERROR: pbx CDR StartTime 2025-02-12 23:03:04 - End Time 2025-02-13 02:03:04 [2025-02-13 02:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463223', 'tblTempUsageDetail_20' ) start [2025-02-13 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463223', 'tblTempUsageDetail_20' ) end [2025-02-13 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463223', 'tblTempVendorCDR_20' ) start [2025-02-13 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463223', 'tblTempVendorCDR_20' ) end [2025-02-13 02:03:18] Production.INFO: ProcessCDR(1,14463223,1,1,2) [2025-02-13 02:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463223', 'tblTempUsageDetail_20' ) start [2025-02-13 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463223', 'tblTempUsageDetail_20' ) end [2025-02-13 02:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 02:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 02:03:21] Production.INFO: ==10734== Releasing lock... [2025-02-13 02:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 02:03:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-13 02:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 23:04:06 [end_date_ymd] => 2025-02-13 02:04:06 [RateCDR] => 1 ) [2025-02-13 02: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-02-12 23:04:06' and `end` < '2025-02-13 02: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-02-13 02:04:19] Production.INFO: count ==382 [2025-02-13 02:04:19] Production.ERROR: pbx CDR StartTime 2025-02-12 23:04:06 - End Time 2025-02-13 02:04:06 [2025-02-13 02:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463228', 'tblTempUsageDetail_20' ) start [2025-02-13 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463228', 'tblTempUsageDetail_20' ) end [2025-02-13 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463228', 'tblTempVendorCDR_20' ) start [2025-02-13 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463228', 'tblTempVendorCDR_20' ) end [2025-02-13 02:04:19] Production.INFO: ProcessCDR(1,14463228,1,1,2) [2025-02-13 02:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463228', 'tblTempUsageDetail_20' ) start [2025-02-13 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463228', 'tblTempUsageDetail_20' ) end [2025-02-13 02:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 02:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 02:04:22] Production.INFO: ==10819== Releasing lock... [2025-02-13 02:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 02:04:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-13 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 23:05:05 [end_date_ymd] => 2025-02-13 02:05:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 23:05:05' and `end` < '2025-02-13 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-02-13 02:05:18] Production.INFO: count ==381 [2025-02-13 02:05:18] Production.ERROR: pbx CDR StartTime 2025-02-12 23:05:05 - End Time 2025-02-13 02:05:05 [2025-02-13 02:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463233', 'tblTempUsageDetail_20' ) start [2025-02-13 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463233', 'tblTempUsageDetail_20' ) end [2025-02-13 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463233', 'tblTempVendorCDR_20' ) start [2025-02-13 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463233', 'tblTempVendorCDR_20' ) end [2025-02-13 02:05:18] Production.INFO: ProcessCDR(1,14463233,1,1,2) [2025-02-13 02:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463233', 'tblTempUsageDetail_20' ) start [2025-02-13 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463233', 'tblTempUsageDetail_20' ) end [2025-02-13 02:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 02:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 02:05:21] Production.INFO: ==10899== Releasing lock... [2025-02-13 02:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 02:05:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-13 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 23:06:05 [end_date_ymd] => 2025-02-13 02:06:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 23:06:05' and `end` < '2025-02-13 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-02-13 02:06:18] Production.INFO: count ==381 [2025-02-13 02:06:18] Production.ERROR: pbx CDR StartTime 2025-02-12 23:06:05 - End Time 2025-02-13 02:06:05 [2025-02-13 02:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463238', 'tblTempUsageDetail_20' ) start [2025-02-13 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463238', 'tblTempUsageDetail_20' ) end [2025-02-13 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463238', 'tblTempVendorCDR_20' ) start [2025-02-13 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463238', 'tblTempVendorCDR_20' ) end [2025-02-13 02:06:18] Production.INFO: ProcessCDR(1,14463238,1,1,2) [2025-02-13 02:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463238', 'tblTempUsageDetail_20' ) start [2025-02-13 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463238', 'tblTempUsageDetail_20' ) end [2025-02-13 02:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 02:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 02:06:21] Production.INFO: ==10979== Releasing lock... [2025-02-13 02:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 02:06:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-13 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 23:07:05 [end_date_ymd] => 2025-02-13 02:07:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 23:07:05' and `end` < '2025-02-13 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-02-13 02:07:19] Production.INFO: count ==381 [2025-02-13 02:07:19] Production.ERROR: pbx CDR StartTime 2025-02-12 23:07:05 - End Time 2025-02-13 02:07:05 [2025-02-13 02:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463243', 'tblTempUsageDetail_20' ) start [2025-02-13 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463243', 'tblTempUsageDetail_20' ) end [2025-02-13 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463243', 'tblTempVendorCDR_20' ) start [2025-02-13 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463243', 'tblTempVendorCDR_20' ) end [2025-02-13 02:07:19] Production.INFO: ProcessCDR(1,14463243,1,1,2) [2025-02-13 02:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463243', 'tblTempUsageDetail_20' ) start [2025-02-13 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463243', 'tblTempUsageDetail_20' ) end [2025-02-13 02:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 02:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 02:07:22] Production.INFO: ==11053== Releasing lock... [2025-02-13 02:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 02:07:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-13 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 23:08:05 [end_date_ymd] => 2025-02-13 02:08:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 23:08:05' and `end` < '2025-02-13 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-02-13 02:08:19] Production.INFO: count ==377 [2025-02-13 02:08:19] Production.ERROR: pbx CDR StartTime 2025-02-12 23:08:05 - End Time 2025-02-13 02:08:05 [2025-02-13 02:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463248', 'tblTempUsageDetail_20' ) start [2025-02-13 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463248', 'tblTempUsageDetail_20' ) end [2025-02-13 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463248', 'tblTempVendorCDR_20' ) start [2025-02-13 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463248', 'tblTempVendorCDR_20' ) end [2025-02-13 02:08:19] Production.INFO: ProcessCDR(1,14463248,1,1,2) [2025-02-13 02:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463248', 'tblTempUsageDetail_20' ) start [2025-02-13 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463248', 'tblTempUsageDetail_20' ) end [2025-02-13 02:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 02:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 02:08:22] Production.INFO: ==11179== Releasing lock... [2025-02-13 02:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 02:08:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 23:09:05 [end_date_ymd] => 2025-02-13 02:09:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 23:09:05' and `end` < '2025-02-13 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-02-13 02:09:19] Production.INFO: count ==373 [2025-02-13 02:09:19] Production.ERROR: pbx CDR StartTime 2025-02-12 23:09:05 - End Time 2025-02-13 02:09:05 [2025-02-13 02:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463253', 'tblTempUsageDetail_20' ) start [2025-02-13 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463253', 'tblTempUsageDetail_20' ) end [2025-02-13 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463253', 'tblTempVendorCDR_20' ) start [2025-02-13 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463253', 'tblTempVendorCDR_20' ) end [2025-02-13 02:09:19] Production.INFO: ProcessCDR(1,14463253,1,1,2) [2025-02-13 02:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463253', 'tblTempUsageDetail_20' ) start [2025-02-13 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463253', 'tblTempUsageDetail_20' ) end [2025-02-13 02:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 02:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 02:09:22] Production.INFO: ==11265== Releasing lock... [2025-02-13 02:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 02:09:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 02:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 23:10:05 [end_date_ymd] => 2025-02-13 02:10:05 [RateCDR] => 1 ) [2025-02-13 02: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-02-12 23:10:05' and `end` < '2025-02-13 02: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-02-13 02:10:18] Production.INFO: count ==375 [2025-02-13 02:10:18] Production.ERROR: pbx CDR StartTime 2025-02-12 23:10:05 - End Time 2025-02-13 02:10:05 [2025-02-13 02:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463258', 'tblTempUsageDetail_20' ) start [2025-02-13 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463258', 'tblTempUsageDetail_20' ) end [2025-02-13 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463258', 'tblTempVendorCDR_20' ) start [2025-02-13 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463258', 'tblTempVendorCDR_20' ) end [2025-02-13 02:10:18] Production.INFO: ProcessCDR(1,14463258,1,1,2) [2025-02-13 02:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463258', 'tblTempUsageDetail_20' ) start [2025-02-13 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463258', 'tblTempUsageDetail_20' ) end [2025-02-13 02:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 02:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 02:10:22] Production.INFO: ==11344== Releasing lock... [2025-02-13 02:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 02:10:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 23:11:05 [end_date_ymd] => 2025-02-13 02:11:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 23:11:05' and `end` < '2025-02-13 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-02-13 02:11:18] Production.INFO: count ==375 [2025-02-13 02:11:18] Production.ERROR: pbx CDR StartTime 2025-02-12 23:11:05 - End Time 2025-02-13 02:11:05 [2025-02-13 02:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463264', 'tblTempUsageDetail_20' ) start [2025-02-13 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463264', 'tblTempUsageDetail_20' ) end [2025-02-13 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463264', 'tblTempVendorCDR_20' ) start [2025-02-13 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463264', 'tblTempVendorCDR_20' ) end [2025-02-13 02:11:18] Production.INFO: ProcessCDR(1,14463264,1,1,2) [2025-02-13 02:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463264', 'tblTempUsageDetail_20' ) start [2025-02-13 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463264', 'tblTempUsageDetail_20' ) end [2025-02-13 02:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 02:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 02:11:21] Production.INFO: ==11431== Releasing lock... [2025-02-13 02:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 02:11:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 02:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 23:12:06 [end_date_ymd] => 2025-02-13 02:12:06 [RateCDR] => 1 ) [2025-02-13 02: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-02-12 23:12:06' and `end` < '2025-02-13 02: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-02-13 02:12:19] Production.INFO: count ==375 [2025-02-13 02:12:19] Production.ERROR: pbx CDR StartTime 2025-02-12 23:12:06 - End Time 2025-02-13 02:12:06 [2025-02-13 02:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463269', 'tblTempUsageDetail_20' ) start [2025-02-13 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463269', 'tblTempUsageDetail_20' ) end [2025-02-13 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463269', 'tblTempVendorCDR_20' ) start [2025-02-13 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463269', 'tblTempVendorCDR_20' ) end [2025-02-13 02:12:19] Production.INFO: ProcessCDR(1,14463269,1,1,2) [2025-02-13 02:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463269', 'tblTempUsageDetail_20' ) start [2025-02-13 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463269', 'tblTempUsageDetail_20' ) end [2025-02-13 02:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 02:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 02:12:22] Production.INFO: ==11509== Releasing lock... [2025-02-13 02:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 02:12:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 23:13:05 [end_date_ymd] => 2025-02-13 02:13:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 23:13:05' and `end` < '2025-02-13 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-02-13 02:13:18] Production.INFO: count ==373 [2025-02-13 02:13:18] Production.ERROR: pbx CDR StartTime 2025-02-12 23:13:05 - End Time 2025-02-13 02:13:05 [2025-02-13 02:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463274', 'tblTempUsageDetail_20' ) start [2025-02-13 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463274', 'tblTempUsageDetail_20' ) end [2025-02-13 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463274', 'tblTempVendorCDR_20' ) start [2025-02-13 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463274', 'tblTempVendorCDR_20' ) end [2025-02-13 02:13:18] Production.INFO: ProcessCDR(1,14463274,1,1,2) [2025-02-13 02:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463274', 'tblTempUsageDetail_20' ) start [2025-02-13 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463274', 'tblTempUsageDetail_20' ) end [2025-02-13 02:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 02:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 02:13:21] Production.INFO: ==11592== Releasing lock... [2025-02-13 02:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 02:13:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 23:14:05 [end_date_ymd] => 2025-02-13 02:14:05 [RateCDR] => 1 ) [2025-02-13 02: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-02-12 23:14:05' and `end` < '2025-02-13 02: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-02-13 02:14:18] Production.INFO: count ==373 [2025-02-13 02:14:18] Production.ERROR: pbx CDR StartTime 2025-02-12 23:14:05 - End Time 2025-02-13 02:14:05 [2025-02-13 02:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463279', 'tblTempUsageDetail_20' ) start [2025-02-13 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463279', 'tblTempUsageDetail_20' ) end [2025-02-13 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463279', 'tblTempVendorCDR_20' ) start [2025-02-13 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463279', 'tblTempVendorCDR_20' ) end [2025-02-13 02:14:18] Production.INFO: ProcessCDR(1,14463279,1,1,2) [2025-02-13 02:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463279', 'tblTempUsageDetail_20' ) start [2025-02-13 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463279', 'tblTempUsageDetail_20' ) end [2025-02-13 02:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 02:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 02:14:22] Production.INFO: ==11669== Releasing lock... [2025-02-13 02:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 02:14:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 23:15:05 [end_date_ymd] => 2025-02-13 02:15:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 23:15:05' and `end` < '2025-02-13 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-02-13 02:15:18] Production.INFO: count ==373 [2025-02-13 02:15:18] Production.ERROR: pbx CDR StartTime 2025-02-12 23:15:05 - End Time 2025-02-13 02:15:05 [2025-02-13 02:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463284', 'tblTempUsageDetail_20' ) start [2025-02-13 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463284', 'tblTempUsageDetail_20' ) end [2025-02-13 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463284', 'tblTempVendorCDR_20' ) start [2025-02-13 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463284', 'tblTempVendorCDR_20' ) end [2025-02-13 02:15:18] Production.INFO: ProcessCDR(1,14463284,1,1,2) [2025-02-13 02:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463284', 'tblTempUsageDetail_20' ) start [2025-02-13 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463284', 'tblTempUsageDetail_20' ) end [2025-02-13 02:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 02:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 02:15:21] Production.INFO: ==11744== Releasing lock... [2025-02-13 02:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 02:15:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 23:16:05 [end_date_ymd] => 2025-02-13 02:16:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 23:16:05' and `end` < '2025-02-13 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-02-13 02:16:18] Production.INFO: count ==373 [2025-02-13 02:16:18] Production.ERROR: pbx CDR StartTime 2025-02-12 23:16:05 - End Time 2025-02-13 02:16:05 [2025-02-13 02:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463289', 'tblTempUsageDetail_20' ) start [2025-02-13 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463289', 'tblTempUsageDetail_20' ) end [2025-02-13 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463289', 'tblTempVendorCDR_20' ) start [2025-02-13 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463289', 'tblTempVendorCDR_20' ) end [2025-02-13 02:16:18] Production.INFO: ProcessCDR(1,14463289,1,1,2) [2025-02-13 02:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463289', 'tblTempUsageDetail_20' ) start [2025-02-13 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463289', 'tblTempUsageDetail_20' ) end [2025-02-13 02:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 02:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 02:16:21] Production.INFO: ==11824== Releasing lock... [2025-02-13 02:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 02:16:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 23:17:05 [end_date_ymd] => 2025-02-13 02:17:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 23:17:05' and `end` < '2025-02-13 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-02-13 02:17:18] Production.INFO: count ==372 [2025-02-13 02:17:18] Production.ERROR: pbx CDR StartTime 2025-02-12 23:17:05 - End Time 2025-02-13 02:17:05 [2025-02-13 02:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463294', 'tblTempUsageDetail_20' ) start [2025-02-13 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463294', 'tblTempUsageDetail_20' ) end [2025-02-13 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463294', 'tblTempVendorCDR_20' ) start [2025-02-13 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463294', 'tblTempVendorCDR_20' ) end [2025-02-13 02:17:18] Production.INFO: ProcessCDR(1,14463294,1,1,2) [2025-02-13 02:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463294', 'tblTempUsageDetail_20' ) start [2025-02-13 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463294', 'tblTempUsageDetail_20' ) end [2025-02-13 02:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 02:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 02:17:21] Production.INFO: ==11908== Releasing lock... [2025-02-13 02:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 02:17:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 23:18:05 [end_date_ymd] => 2025-02-13 02:18:05 [RateCDR] => 1 ) [2025-02-13 02: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-02-12 23:18:05' and `end` < '2025-02-13 02: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-02-13 02:18:18] Production.INFO: count ==372 [2025-02-13 02:18:18] Production.ERROR: pbx CDR StartTime 2025-02-12 23:18:05 - End Time 2025-02-13 02:18:05 [2025-02-13 02:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463299', 'tblTempUsageDetail_20' ) start [2025-02-13 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463299', 'tblTempUsageDetail_20' ) end [2025-02-13 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463299', 'tblTempVendorCDR_20' ) start [2025-02-13 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463299', 'tblTempVendorCDR_20' ) end [2025-02-13 02:18:18] Production.INFO: ProcessCDR(1,14463299,1,1,2) [2025-02-13 02:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463299', 'tblTempUsageDetail_20' ) start [2025-02-13 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463299', 'tblTempUsageDetail_20' ) end [2025-02-13 02:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 02:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 02:18:21] Production.INFO: ==11987== Releasing lock... [2025-02-13 02:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 02:18:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 23:19:05 [end_date_ymd] => 2025-02-13 02:19:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 23:19:05' and `end` < '2025-02-13 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-02-13 02:19:19] Production.INFO: count ==372 [2025-02-13 02:19:19] Production.ERROR: pbx CDR StartTime 2025-02-12 23:19:05 - End Time 2025-02-13 02:19:05 [2025-02-13 02:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463304', 'tblTempUsageDetail_20' ) start [2025-02-13 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463304', 'tblTempUsageDetail_20' ) end [2025-02-13 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463304', 'tblTempVendorCDR_20' ) start [2025-02-13 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463304', 'tblTempVendorCDR_20' ) end [2025-02-13 02:19:19] Production.INFO: ProcessCDR(1,14463304,1,1,2) [2025-02-13 02:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463304', 'tblTempUsageDetail_20' ) start [2025-02-13 02:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463304', 'tblTempUsageDetail_20' ) end [2025-02-13 02:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 02:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 02:19:22] Production.INFO: ==12065== Releasing lock... [2025-02-13 02:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 02:19:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 02:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 23:20:05 [end_date_ymd] => 2025-02-13 02:20:05 [RateCDR] => 1 ) [2025-02-13 02: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-02-12 23:20:05' and `end` < '2025-02-13 02: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-02-13 02:20:19] Production.INFO: count ==374 [2025-02-13 02:20:19] Production.ERROR: pbx CDR StartTime 2025-02-12 23:20:05 - End Time 2025-02-13 02:20:05 [2025-02-13 02:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463309', 'tblTempUsageDetail_20' ) start [2025-02-13 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463309', 'tblTempUsageDetail_20' ) end [2025-02-13 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463309', 'tblTempVendorCDR_20' ) start [2025-02-13 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463309', 'tblTempVendorCDR_20' ) end [2025-02-13 02:20:19] Production.INFO: ProcessCDR(1,14463309,1,1,2) [2025-02-13 02:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463309', 'tblTempUsageDetail_20' ) start [2025-02-13 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463309', 'tblTempUsageDetail_20' ) end [2025-02-13 02:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 02:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 02:20:22] Production.INFO: ==12140== Releasing lock... [2025-02-13 02:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 02:20:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-13 02:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 23:21:04 [end_date_ymd] => 2025-02-13 02:21:04 [RateCDR] => 1 ) [2025-02-13 02: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-02-12 23:21:04' and `end` < '2025-02-13 02: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-02-13 02:21:18] Production.INFO: count ==373 [2025-02-13 02:21:18] Production.ERROR: pbx CDR StartTime 2025-02-12 23:21:04 - End Time 2025-02-13 02:21:04 [2025-02-13 02:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463315', 'tblTempUsageDetail_20' ) start [2025-02-13 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463315', 'tblTempUsageDetail_20' ) end [2025-02-13 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463315', 'tblTempVendorCDR_20' ) start [2025-02-13 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463315', 'tblTempVendorCDR_20' ) end [2025-02-13 02:21:18] Production.INFO: ProcessCDR(1,14463315,1,1,2) [2025-02-13 02:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463315', 'tblTempUsageDetail_20' ) start [2025-02-13 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463315', 'tblTempUsageDetail_20' ) end [2025-02-13 02:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 02:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 02:21:21] Production.INFO: ==12223== Releasing lock... [2025-02-13 02:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 02:21:21] Production.INFO: 30 MB #Memory Used# [2025-02-13 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 23:22:05 [end_date_ymd] => 2025-02-13 02:22:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 23:22:05' and `end` < '2025-02-13 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-02-13 02:22:18] Production.INFO: count ==373 [2025-02-13 02:22:18] Production.ERROR: pbx CDR StartTime 2025-02-12 23:22:05 - End Time 2025-02-13 02:22:05 [2025-02-13 02:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463320', 'tblTempUsageDetail_20' ) start [2025-02-13 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463320', 'tblTempUsageDetail_20' ) end [2025-02-13 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463320', 'tblTempVendorCDR_20' ) start [2025-02-13 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463320', 'tblTempVendorCDR_20' ) end [2025-02-13 02:22:18] Production.INFO: ProcessCDR(1,14463320,1,1,2) [2025-02-13 02:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463320', 'tblTempUsageDetail_20' ) start [2025-02-13 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463320', 'tblTempUsageDetail_20' ) end [2025-02-13 02:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 02:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 02:22:21] Production.INFO: ==12301== Releasing lock... [2025-02-13 02:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 02:22:21] Production.INFO: 30 MB #Memory Used# [2025-02-13 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 23:23:05 [end_date_ymd] => 2025-02-13 02:23:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 23:23:05' and `end` < '2025-02-13 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-02-13 02:23:18] Production.INFO: count ==373 [2025-02-13 02:23:18] Production.ERROR: pbx CDR StartTime 2025-02-12 23:23:05 - End Time 2025-02-13 02:23:05 [2025-02-13 02:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463325', 'tblTempUsageDetail_20' ) start [2025-02-13 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463325', 'tblTempUsageDetail_20' ) end [2025-02-13 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463325', 'tblTempVendorCDR_20' ) start [2025-02-13 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463325', 'tblTempVendorCDR_20' ) end [2025-02-13 02:23:18] Production.INFO: ProcessCDR(1,14463325,1,1,2) [2025-02-13 02:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463325', 'tblTempUsageDetail_20' ) start [2025-02-13 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463325', 'tblTempUsageDetail_20' ) end [2025-02-13 02:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 02:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 02:23:21] Production.INFO: ==12421== Releasing lock... [2025-02-13 02:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 02:23:21] Production.INFO: 30 MB #Memory Used# [2025-02-13 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 23:24:05 [end_date_ymd] => 2025-02-13 02:24:05 [RateCDR] => 1 ) [2025-02-13 02: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-02-12 23:24:05' and `end` < '2025-02-13 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-02-13 02:24:18] Production.INFO: count ==373 [2025-02-13 02:24:18] Production.ERROR: pbx CDR StartTime 2025-02-12 23:24:05 - End Time 2025-02-13 02:24:05 [2025-02-13 02:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463330', 'tblTempUsageDetail_20' ) start [2025-02-13 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463330', 'tblTempUsageDetail_20' ) end [2025-02-13 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463330', 'tblTempVendorCDR_20' ) start [2025-02-13 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463330', 'tblTempVendorCDR_20' ) end [2025-02-13 02:24:18] Production.INFO: ProcessCDR(1,14463330,1,1,2) [2025-02-13 02:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463330', 'tblTempUsageDetail_20' ) start [2025-02-13 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463330', 'tblTempUsageDetail_20' ) end [2025-02-13 02:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 02:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 02:24:21] Production.INFO: ==12499== Releasing lock... [2025-02-13 02:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 02:24:21] Production.INFO: 30 MB #Memory Used# [2025-02-13 02:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 23:25:04 [end_date_ymd] => 2025-02-13 02:25:04 [RateCDR] => 1 ) [2025-02-13 02:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 23:25:04' and `end` < '2025-02-13 02:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-13 02:25:17] Production.INFO: count ==373 [2025-02-13 02:25:17] Production.ERROR: pbx CDR StartTime 2025-02-12 23:25:04 - End Time 2025-02-13 02:25:04 [2025-02-13 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463335', 'tblTempUsageDetail_20' ) start [2025-02-13 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463335', 'tblTempUsageDetail_20' ) end [2025-02-13 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463335', 'tblTempVendorCDR_20' ) start [2025-02-13 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463335', 'tblTempVendorCDR_20' ) end [2025-02-13 02:25:17] Production.INFO: ProcessCDR(1,14463335,1,1,2) [2025-02-13 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463335', 'tblTempUsageDetail_20' ) start [2025-02-13 02:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463335', 'tblTempUsageDetail_20' ) end [2025-02-13 02:25:20] Production.ERROR: pbx prc_insertCDR start [2025-02-13 02:25:20] Production.ERROR: pbx prc_insertCDR end [2025-02-13 02:25:20] Production.INFO: ==12577== Releasing lock... [2025-02-13 02:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 02:25:20] Production.INFO: 30 MB #Memory Used# [2025-02-13 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 23:26:05 [end_date_ymd] => 2025-02-13 02:26:05 [RateCDR] => 1 ) [2025-02-13 02: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-02-12 23:26:05' and `end` < '2025-02-13 02: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-02-13 02:26:19] Production.INFO: count ==373 [2025-02-13 02:26:19] Production.ERROR: pbx CDR StartTime 2025-02-12 23:26:05 - End Time 2025-02-13 02:26:05 [2025-02-13 02:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463340', 'tblTempUsageDetail_20' ) start [2025-02-13 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463340', 'tblTempUsageDetail_20' ) end [2025-02-13 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463340', 'tblTempVendorCDR_20' ) start [2025-02-13 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463340', 'tblTempVendorCDR_20' ) end [2025-02-13 02:26:19] Production.INFO: ProcessCDR(1,14463340,1,1,2) [2025-02-13 02:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463340', 'tblTempUsageDetail_20' ) start [2025-02-13 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463340', 'tblTempUsageDetail_20' ) end [2025-02-13 02:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 02:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 02:26:22] Production.INFO: ==12658== Releasing lock... [2025-02-13 02:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 02:26:22] Production.INFO: 30 MB #Memory Used# [2025-02-13 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 23:27:05 [end_date_ymd] => 2025-02-13 02:27:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 23:27:05' and `end` < '2025-02-13 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-02-13 02:27:18] Production.INFO: count ==373 [2025-02-13 02:27:18] Production.ERROR: pbx CDR StartTime 2025-02-12 23:27:05 - End Time 2025-02-13 02:27:05 [2025-02-13 02:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463345', 'tblTempUsageDetail_20' ) start [2025-02-13 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463345', 'tblTempUsageDetail_20' ) end [2025-02-13 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463345', 'tblTempVendorCDR_20' ) start [2025-02-13 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463345', 'tblTempVendorCDR_20' ) end [2025-02-13 02:27:18] Production.INFO: ProcessCDR(1,14463345,1,1,2) [2025-02-13 02:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463345', 'tblTempUsageDetail_20' ) start [2025-02-13 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463345', 'tblTempUsageDetail_20' ) end [2025-02-13 02:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 02:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 02:27:21] Production.INFO: ==12732== Releasing lock... [2025-02-13 02:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 02:27:21] Production.INFO: 30 MB #Memory Used# [2025-02-13 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 23:28:05 [end_date_ymd] => 2025-02-13 02:28:05 [RateCDR] => 1 ) [2025-02-13 02: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-02-12 23:28:05' and `end` < '2025-02-13 02: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-02-13 02:28:19] Production.INFO: count ==368 [2025-02-13 02:28:19] Production.ERROR: pbx CDR StartTime 2025-02-12 23:28:05 - End Time 2025-02-13 02:28:05 [2025-02-13 02:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463350', 'tblTempUsageDetail_20' ) start [2025-02-13 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463350', 'tblTempUsageDetail_20' ) end [2025-02-13 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463350', 'tblTempVendorCDR_20' ) start [2025-02-13 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463350', 'tblTempVendorCDR_20' ) end [2025-02-13 02:28:19] Production.INFO: ProcessCDR(1,14463350,1,1,2) [2025-02-13 02:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463350', 'tblTempUsageDetail_20' ) start [2025-02-13 02:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463350', 'tblTempUsageDetail_20' ) end [2025-02-13 02:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 02:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 02:28:22] Production.INFO: ==12814== Releasing lock... [2025-02-13 02:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 02:28:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 23:29:05 [end_date_ymd] => 2025-02-13 02:29:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 23:29:05' and `end` < '2025-02-13 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-02-13 02:29:19] Production.INFO: count ==364 [2025-02-13 02:29:19] Production.ERROR: pbx CDR StartTime 2025-02-12 23:29:05 - End Time 2025-02-13 02:29:05 [2025-02-13 02:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463355', 'tblTempUsageDetail_20' ) start [2025-02-13 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463355', 'tblTempUsageDetail_20' ) end [2025-02-13 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463355', 'tblTempVendorCDR_20' ) start [2025-02-13 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463355', 'tblTempVendorCDR_20' ) end [2025-02-13 02:29:19] Production.INFO: ProcessCDR(1,14463355,1,1,2) [2025-02-13 02:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463355', 'tblTempUsageDetail_20' ) start [2025-02-13 02:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463355', 'tblTempUsageDetail_20' ) end [2025-02-13 02:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 02:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 02:29:22] Production.INFO: ==12895== Releasing lock... [2025-02-13 02:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 02:29:22] Production.INFO: 30 MB #Memory Used# [2025-02-13 02:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 23:30:05 [end_date_ymd] => 2025-02-13 02:30:05 [RateCDR] => 1 ) [2025-02-13 02: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-02-12 23:30:05' and `end` < '2025-02-13 02: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-02-13 02:30:19] Production.INFO: count ==370 [2025-02-13 02:30:19] Production.ERROR: pbx CDR StartTime 2025-02-12 23:30:05 - End Time 2025-02-13 02:30:05 [2025-02-13 02:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463361', 'tblTempUsageDetail_20' ) start [2025-02-13 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463361', 'tblTempUsageDetail_20' ) end [2025-02-13 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463361', 'tblTempVendorCDR_20' ) start [2025-02-13 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463361', 'tblTempVendorCDR_20' ) end [2025-02-13 02:30:19] Production.INFO: ProcessCDR(1,14463361,1,1,2) [2025-02-13 02:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463361', 'tblTempUsageDetail_20' ) start [2025-02-13 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463361', 'tblTempUsageDetail_20' ) end [2025-02-13 02:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 02:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 02:30:22] Production.INFO: ==12973== Releasing lock... [2025-02-13 02:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 02:30:22] Production.INFO: 30 MB #Memory Used# [2025-02-13 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 23:31:05 [end_date_ymd] => 2025-02-13 02:31:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 23:31:05' and `end` < '2025-02-13 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-02-13 02:31:18] Production.INFO: count ==381 [2025-02-13 02:31:18] Production.ERROR: pbx CDR StartTime 2025-02-12 23:31:05 - End Time 2025-02-13 02:31:05 [2025-02-13 02:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463366', 'tblTempUsageDetail_20' ) start [2025-02-13 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463366', 'tblTempUsageDetail_20' ) end [2025-02-13 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463366', 'tblTempVendorCDR_20' ) start [2025-02-13 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463366', 'tblTempVendorCDR_20' ) end [2025-02-13 02:31:18] Production.INFO: ProcessCDR(1,14463366,1,1,2) [2025-02-13 02:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463366', 'tblTempUsageDetail_20' ) start [2025-02-13 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463366', 'tblTempUsageDetail_20' ) end [2025-02-13 02:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 02:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 02:31:21] Production.INFO: ==13054== Releasing lock... [2025-02-13 02:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 02:31:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 02:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 23:32:04 [end_date_ymd] => 2025-02-13 02:32:04 [RateCDR] => 1 ) [2025-02-13 02: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-02-12 23:32:04' and `end` < '2025-02-13 02: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-02-13 02:32:17] Production.INFO: count ==377 [2025-02-13 02:32:17] Production.ERROR: pbx CDR StartTime 2025-02-12 23:32:04 - End Time 2025-02-13 02:32:04 [2025-02-13 02:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463371', 'tblTempUsageDetail_20' ) start [2025-02-13 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463371', 'tblTempUsageDetail_20' ) end [2025-02-13 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463371', 'tblTempVendorCDR_20' ) start [2025-02-13 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463371', 'tblTempVendorCDR_20' ) end [2025-02-13 02:32:17] Production.INFO: ProcessCDR(1,14463371,1,1,2) [2025-02-13 02:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463371', 'tblTempUsageDetail_20' ) start [2025-02-13 02:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463371', 'tblTempUsageDetail_20' ) end [2025-02-13 02:32:20] Production.ERROR: pbx prc_insertCDR start [2025-02-13 02:32:20] Production.ERROR: pbx prc_insertCDR end [2025-02-13 02:32:20] Production.INFO: ==13125== Releasing lock... [2025-02-13 02:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 02:32:20] Production.INFO: 30 MB #Memory Used# [2025-02-13 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 23:33:05 [end_date_ymd] => 2025-02-13 02:33:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 23:33:05' and `end` < '2025-02-13 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-02-13 02:33:18] Production.INFO: count ==377 [2025-02-13 02:33:18] Production.ERROR: pbx CDR StartTime 2025-02-12 23:33:05 - End Time 2025-02-13 02:33:05 [2025-02-13 02:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463376', 'tblTempUsageDetail_20' ) start [2025-02-13 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463376', 'tblTempUsageDetail_20' ) end [2025-02-13 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463376', 'tblTempVendorCDR_20' ) start [2025-02-13 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463376', 'tblTempVendorCDR_20' ) end [2025-02-13 02:33:18] Production.INFO: ProcessCDR(1,14463376,1,1,2) [2025-02-13 02:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463376', 'tblTempUsageDetail_20' ) start [2025-02-13 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463376', 'tblTempUsageDetail_20' ) end [2025-02-13 02:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 02:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 02:33:21] Production.INFO: ==13204== Releasing lock... [2025-02-13 02:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 02:33:21] Production.INFO: 30 MB #Memory Used# [2025-02-13 02:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 23:34:06 [end_date_ymd] => 2025-02-13 02:34:06 [RateCDR] => 1 ) [2025-02-13 02: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-02-12 23:34:06' and `end` < '2025-02-13 02: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-02-13 02:34:19] Production.INFO: count ==377 [2025-02-13 02:34:19] Production.ERROR: pbx CDR StartTime 2025-02-12 23:34:06 - End Time 2025-02-13 02:34:06 [2025-02-13 02:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463381', 'tblTempUsageDetail_20' ) start [2025-02-13 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463381', 'tblTempUsageDetail_20' ) end [2025-02-13 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463381', 'tblTempVendorCDR_20' ) start [2025-02-13 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463381', 'tblTempVendorCDR_20' ) end [2025-02-13 02:34:19] Production.INFO: ProcessCDR(1,14463381,1,1,2) [2025-02-13 02:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463381', 'tblTempUsageDetail_20' ) start [2025-02-13 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463381', 'tblTempUsageDetail_20' ) end [2025-02-13 02:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 02:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 02:34:22] Production.INFO: ==13280== Releasing lock... [2025-02-13 02:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 02:34:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 02:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 23:35:04 [end_date_ymd] => 2025-02-13 02:35:04 [RateCDR] => 1 ) [2025-02-13 02: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-02-12 23:35:04' and `end` < '2025-02-13 02: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-02-13 02:35:17] Production.INFO: count ==377 [2025-02-13 02:35:17] Production.ERROR: pbx CDR StartTime 2025-02-12 23:35:04 - End Time 2025-02-13 02:35:04 [2025-02-13 02:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463386', 'tblTempUsageDetail_20' ) start [2025-02-13 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463386', 'tblTempUsageDetail_20' ) end [2025-02-13 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463386', 'tblTempVendorCDR_20' ) start [2025-02-13 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463386', 'tblTempVendorCDR_20' ) end [2025-02-13 02:35:17] Production.INFO: ProcessCDR(1,14463386,1,1,2) [2025-02-13 02:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463386', 'tblTempUsageDetail_20' ) start [2025-02-13 02:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463386', 'tblTempUsageDetail_20' ) end [2025-02-13 02:35:20] Production.ERROR: pbx prc_insertCDR start [2025-02-13 02:35:20] Production.ERROR: pbx prc_insertCDR end [2025-02-13 02:35:20] Production.INFO: ==13359== Releasing lock... [2025-02-13 02:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 02:35:20] Production.INFO: 30 MB #Memory Used# [2025-02-13 02:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 23:36:06 [end_date_ymd] => 2025-02-13 02:36:06 [RateCDR] => 1 ) [2025-02-13 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-02-12 23:36:06' and `end` < '2025-02-13 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-02-13 02:36:19] Production.INFO: count ==377 [2025-02-13 02:36:19] Production.ERROR: pbx CDR StartTime 2025-02-12 23:36:06 - End Time 2025-02-13 02:36:06 [2025-02-13 02:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463391', 'tblTempUsageDetail_20' ) start [2025-02-13 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463391', 'tblTempUsageDetail_20' ) end [2025-02-13 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463391', 'tblTempVendorCDR_20' ) start [2025-02-13 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463391', 'tblTempVendorCDR_20' ) end [2025-02-13 02:36:19] Production.INFO: ProcessCDR(1,14463391,1,1,2) [2025-02-13 02:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463391', 'tblTempUsageDetail_20' ) start [2025-02-13 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463391', 'tblTempUsageDetail_20' ) end [2025-02-13 02:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 02:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 02:36:22] Production.INFO: ==13436== Releasing lock... [2025-02-13 02:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 02:36:22] Production.INFO: 30 MB #Memory Used# [2025-02-13 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 23:37:05 [end_date_ymd] => 2025-02-13 02:37:05 [RateCDR] => 1 ) [2025-02-13 02: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-02-12 23:37:05' and `end` < '2025-02-13 02: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-02-13 02:37:17] Production.INFO: count ==377 [2025-02-13 02:37:17] Production.ERROR: pbx CDR StartTime 2025-02-12 23:37:05 - End Time 2025-02-13 02:37:05 [2025-02-13 02:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463396', 'tblTempUsageDetail_20' ) start [2025-02-13 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463396', 'tblTempUsageDetail_20' ) end [2025-02-13 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463396', 'tblTempVendorCDR_20' ) start [2025-02-13 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463396', 'tblTempVendorCDR_20' ) end [2025-02-13 02:37:17] Production.INFO: ProcessCDR(1,14463396,1,1,2) [2025-02-13 02:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463396', 'tblTempUsageDetail_20' ) start [2025-02-13 02:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463396', 'tblTempUsageDetail_20' ) end [2025-02-13 02:37:20] Production.ERROR: pbx prc_insertCDR start [2025-02-13 02:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 02:37:21] Production.INFO: ==13506== Releasing lock... [2025-02-13 02:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 02:37:21] Production.INFO: 30 MB #Memory Used# [2025-02-13 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 23:38:05 [end_date_ymd] => 2025-02-13 02:38:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 23:38:05' and `end` < '2025-02-13 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-02-13 02:38:20] Production.INFO: count ==377 [2025-02-13 02:38:20] Production.ERROR: pbx CDR StartTime 2025-02-12 23:38:05 - End Time 2025-02-13 02:38:05 [2025-02-13 02:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 02:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463401', 'tblTempUsageDetail_20' ) start [2025-02-13 02:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463401', 'tblTempUsageDetail_20' ) end [2025-02-13 02:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463401', 'tblTempVendorCDR_20' ) start [2025-02-13 02:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463401', 'tblTempVendorCDR_20' ) end [2025-02-13 02:38:20] Production.INFO: ProcessCDR(1,14463401,1,1,2) [2025-02-13 02:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463401', 'tblTempUsageDetail_20' ) start [2025-02-13 02:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463401', 'tblTempUsageDetail_20' ) end [2025-02-13 02:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 02:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 02:38:23] Production.INFO: ==13628== Releasing lock... [2025-02-13 02:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 02:38:23] Production.INFO: 30 MB #Memory Used# [2025-02-13 02:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 23:39:04 [end_date_ymd] => 2025-02-13 02:39:04 [RateCDR] => 1 ) [2025-02-13 02: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-02-12 23:39:04' and `end` < '2025-02-13 02: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-02-13 02:39:17] Production.INFO: count ==381 [2025-02-13 02:39:18] Production.ERROR: pbx CDR StartTime 2025-02-12 23:39:04 - End Time 2025-02-13 02:39:04 [2025-02-13 02:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463406', 'tblTempUsageDetail_20' ) start [2025-02-13 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463406', 'tblTempUsageDetail_20' ) end [2025-02-13 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463406', 'tblTempVendorCDR_20' ) start [2025-02-13 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463406', 'tblTempVendorCDR_20' ) end [2025-02-13 02:39:18] Production.INFO: ProcessCDR(1,14463406,1,1,2) [2025-02-13 02:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463406', 'tblTempUsageDetail_20' ) start [2025-02-13 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463406', 'tblTempUsageDetail_20' ) end [2025-02-13 02:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 02:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 02:39:21] Production.INFO: ==13698== Releasing lock... [2025-02-13 02:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 02:39:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 23:40:06 [end_date_ymd] => 2025-02-13 02:40:06 [RateCDR] => 1 ) [2025-02-13 02: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-02-12 23:40:06' and `end` < '2025-02-13 02: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-02-13 02:40:19] Production.INFO: count ==387 [2025-02-13 02:40:19] Production.ERROR: pbx CDR StartTime 2025-02-12 23:40:06 - End Time 2025-02-13 02:40:06 [2025-02-13 02:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463411', 'tblTempUsageDetail_20' ) start [2025-02-13 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463411', 'tblTempUsageDetail_20' ) end [2025-02-13 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463411', 'tblTempVendorCDR_20' ) start [2025-02-13 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463411', 'tblTempVendorCDR_20' ) end [2025-02-13 02:40:19] Production.INFO: ProcessCDR(1,14463411,1,1,2) [2025-02-13 02:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463411', 'tblTempUsageDetail_20' ) start [2025-02-13 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463411', 'tblTempUsageDetail_20' ) end [2025-02-13 02:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 02:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 02:40:22] Production.INFO: ==13773== Releasing lock... [2025-02-13 02:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 02:40:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 23:41:05 [end_date_ymd] => 2025-02-13 02:41:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 23:41:05' and `end` < '2025-02-13 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-02-13 02:41:20] Production.INFO: count ==388 [2025-02-13 02:41:20] Production.ERROR: pbx CDR StartTime 2025-02-12 23:41:05 - End Time 2025-02-13 02:41:05 [2025-02-13 02:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 02:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463417', 'tblTempUsageDetail_20' ) start [2025-02-13 02:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463417', 'tblTempUsageDetail_20' ) end [2025-02-13 02:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463417', 'tblTempVendorCDR_20' ) start [2025-02-13 02:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463417', 'tblTempVendorCDR_20' ) end [2025-02-13 02:41:20] Production.INFO: ProcessCDR(1,14463417,1,1,2) [2025-02-13 02:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463417', 'tblTempUsageDetail_20' ) start [2025-02-13 02:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463417', 'tblTempUsageDetail_20' ) end [2025-02-13 02:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 02:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 02:41:23] Production.INFO: ==13848== Releasing lock... [2025-02-13 02:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 02:41:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 23:42:05 [end_date_ymd] => 2025-02-13 02:42:05 [RateCDR] => 1 ) [2025-02-13 02: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-02-12 23:42:05' and `end` < '2025-02-13 02: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-02-13 02:42:18] Production.INFO: count ==388 [2025-02-13 02:42:18] Production.ERROR: pbx CDR StartTime 2025-02-12 23:42:05 - End Time 2025-02-13 02:42:05 [2025-02-13 02:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463422', 'tblTempUsageDetail_20' ) start [2025-02-13 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463422', 'tblTempUsageDetail_20' ) end [2025-02-13 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463422', 'tblTempVendorCDR_20' ) start [2025-02-13 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463422', 'tblTempVendorCDR_20' ) end [2025-02-13 02:42:18] Production.INFO: ProcessCDR(1,14463422,1,1,2) [2025-02-13 02:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463422', 'tblTempUsageDetail_20' ) start [2025-02-13 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463422', 'tblTempUsageDetail_20' ) end [2025-02-13 02:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 02:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 02:42:21] Production.INFO: ==13926== Releasing lock... [2025-02-13 02:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 02:42:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 23:43:05 [end_date_ymd] => 2025-02-13 02:43:05 [RateCDR] => 1 ) [2025-02-13 02: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-02-12 23:43:05' and `end` < '2025-02-13 02: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-02-13 02:43:18] Production.INFO: count ==387 [2025-02-13 02:43:18] Production.ERROR: pbx CDR StartTime 2025-02-12 23:43:05 - End Time 2025-02-13 02:43:05 [2025-02-13 02:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463424', 'tblTempUsageDetail_20' ) start [2025-02-13 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463424', 'tblTempUsageDetail_20' ) end [2025-02-13 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463424', 'tblTempVendorCDR_20' ) start [2025-02-13 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463424', 'tblTempVendorCDR_20' ) end [2025-02-13 02:43:18] Production.INFO: ProcessCDR(1,14463424,1,1,2) [2025-02-13 02:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463424', 'tblTempUsageDetail_20' ) start [2025-02-13 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463424', 'tblTempUsageDetail_20' ) end [2025-02-13 02:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 02:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 02:43:21] Production.INFO: ==13996== Releasing lock... [2025-02-13 02:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 02:43:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 23:44:05 [end_date_ymd] => 2025-02-13 02:44:05 [RateCDR] => 1 ) [2025-02-13 02: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-02-12 23:44:05' and `end` < '2025-02-13 02: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-02-13 02:44:19] Production.INFO: count ==390 [2025-02-13 02:44:19] Production.ERROR: pbx CDR StartTime 2025-02-12 23:44:05 - End Time 2025-02-13 02:44:05 [2025-02-13 02:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463432', 'tblTempUsageDetail_20' ) start [2025-02-13 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463432', 'tblTempUsageDetail_20' ) end [2025-02-13 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463432', 'tblTempVendorCDR_20' ) start [2025-02-13 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463432', 'tblTempVendorCDR_20' ) end [2025-02-13 02:44:19] Production.INFO: ProcessCDR(1,14463432,1,1,2) [2025-02-13 02:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463432', 'tblTempUsageDetail_20' ) start [2025-02-13 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463432', 'tblTempUsageDetail_20' ) end [2025-02-13 02:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 02:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 02:44:22] Production.INFO: ==14068== Releasing lock... [2025-02-13 02:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 02:44:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 23:45:05 [end_date_ymd] => 2025-02-13 02:45:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 23:45:05' and `end` < '2025-02-13 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-02-13 02:45:18] Production.INFO: count ==393 [2025-02-13 02:45:18] Production.ERROR: pbx CDR StartTime 2025-02-12 23:45:05 - End Time 2025-02-13 02:45:05 [2025-02-13 02:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463437', 'tblTempUsageDetail_20' ) start [2025-02-13 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463437', 'tblTempUsageDetail_20' ) end [2025-02-13 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463437', 'tblTempVendorCDR_20' ) start [2025-02-13 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463437', 'tblTempVendorCDR_20' ) end [2025-02-13 02:45:18] Production.INFO: ProcessCDR(1,14463437,1,1,2) [2025-02-13 02:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463437', 'tblTempUsageDetail_20' ) start [2025-02-13 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463437', 'tblTempUsageDetail_20' ) end [2025-02-13 02:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 02:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 02:45:21] Production.INFO: ==14142== Releasing lock... [2025-02-13 02:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 02:45:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 02:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 23:46:04 [end_date_ymd] => 2025-02-13 02:46:04 [RateCDR] => 1 ) [2025-02-13 02:46: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-02-12 23:46:04' and `end` < '2025-02-13 02:46: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-02-13 02:46:17] Production.INFO: count ==404 [2025-02-13 02:46:17] Production.ERROR: pbx CDR StartTime 2025-02-12 23:46:04 - End Time 2025-02-13 02:46:04 [2025-02-13 02:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463441', 'tblTempUsageDetail_20' ) start [2025-02-13 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463441', 'tblTempUsageDetail_20' ) end [2025-02-13 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463441', 'tblTempVendorCDR_20' ) start [2025-02-13 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463441', 'tblTempVendorCDR_20' ) end [2025-02-13 02:46:17] Production.INFO: ProcessCDR(1,14463441,1,1,2) [2025-02-13 02:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463441', 'tblTempUsageDetail_20' ) start [2025-02-13 02:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463441', 'tblTempUsageDetail_20' ) end [2025-02-13 02:46:20] Production.ERROR: pbx prc_insertCDR start [2025-02-13 02:46:20] Production.ERROR: pbx prc_insertCDR end [2025-02-13 02:46:20] Production.INFO: ==14213== Releasing lock... [2025-02-13 02:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 02:46:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 23:47:05 [end_date_ymd] => 2025-02-13 02:47:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 23:47:05' and `end` < '2025-02-13 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-02-13 02:47:18] Production.INFO: count ==403 [2025-02-13 02:47:18] Production.ERROR: pbx CDR StartTime 2025-02-12 23:47:05 - End Time 2025-02-13 02:47:05 [2025-02-13 02:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463447', 'tblTempUsageDetail_20' ) start [2025-02-13 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463447', 'tblTempUsageDetail_20' ) end [2025-02-13 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463447', 'tblTempVendorCDR_20' ) start [2025-02-13 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463447', 'tblTempVendorCDR_20' ) end [2025-02-13 02:47:18] Production.INFO: ProcessCDR(1,14463447,1,1,2) [2025-02-13 02:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463447', 'tblTempUsageDetail_20' ) start [2025-02-13 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463447', 'tblTempUsageDetail_20' ) end [2025-02-13 02:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 02:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 02:47:21] Production.INFO: ==14294== Releasing lock... [2025-02-13 02:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 02:47:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 23:48:05 [end_date_ymd] => 2025-02-13 02:48:05 [RateCDR] => 1 ) [2025-02-13 02: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-02-12 23:48:05' and `end` < '2025-02-13 02: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-02-13 02:48:19] Production.INFO: count ==400 [2025-02-13 02:48:19] Production.ERROR: pbx CDR StartTime 2025-02-12 23:48:05 - End Time 2025-02-13 02:48:05 [2025-02-13 02:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463452', 'tblTempUsageDetail_20' ) start [2025-02-13 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463452', 'tblTempUsageDetail_20' ) end [2025-02-13 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463452', 'tblTempVendorCDR_20' ) start [2025-02-13 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463452', 'tblTempVendorCDR_20' ) end [2025-02-13 02:48:19] Production.INFO: ProcessCDR(1,14463452,1,1,2) [2025-02-13 02:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463452', 'tblTempUsageDetail_20' ) start [2025-02-13 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463452', 'tblTempUsageDetail_20' ) end [2025-02-13 02:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 02:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 02:48:22] Production.INFO: ==14368== Releasing lock... [2025-02-13 02:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 02:48:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 23:49:05 [end_date_ymd] => 2025-02-13 02:49:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 23:49:05' and `end` < '2025-02-13 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-02-13 02:49:18] Production.INFO: count ==398 [2025-02-13 02:49:18] Production.ERROR: pbx CDR StartTime 2025-02-12 23:49:05 - End Time 2025-02-13 02:49:05 [2025-02-13 02:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463457', 'tblTempUsageDetail_20' ) start [2025-02-13 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463457', 'tblTempUsageDetail_20' ) end [2025-02-13 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463457', 'tblTempVendorCDR_20' ) start [2025-02-13 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463457', 'tblTempVendorCDR_20' ) end [2025-02-13 02:49:18] Production.INFO: ProcessCDR(1,14463457,1,1,2) [2025-02-13 02:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463457', 'tblTempUsageDetail_20' ) start [2025-02-13 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463457', 'tblTempUsageDetail_20' ) end [2025-02-13 02:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 02:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 02:49:21] Production.INFO: ==14443== Releasing lock... [2025-02-13 02:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 02:49:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 02:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 23:50:05 [end_date_ymd] => 2025-02-13 02:50:05 [RateCDR] => 1 ) [2025-02-13 02: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-02-12 23:50:05' and `end` < '2025-02-13 02: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-02-13 02:50:19] Production.INFO: count ==402 [2025-02-13 02:50:19] Production.ERROR: pbx CDR StartTime 2025-02-12 23:50:05 - End Time 2025-02-13 02:50:05 [2025-02-13 02:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463463', 'tblTempUsageDetail_20' ) start [2025-02-13 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463463', 'tblTempUsageDetail_20' ) end [2025-02-13 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463463', 'tblTempVendorCDR_20' ) start [2025-02-13 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463463', 'tblTempVendorCDR_20' ) end [2025-02-13 02:50:19] Production.INFO: ProcessCDR(1,14463463,1,1,2) [2025-02-13 02:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463463', 'tblTempUsageDetail_20' ) start [2025-02-13 02:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463463', 'tblTempUsageDetail_20' ) end [2025-02-13 02:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 02:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 02:50:23] Production.INFO: ==14516== Releasing lock... [2025-02-13 02:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 02:50:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 23:51:05 [end_date_ymd] => 2025-02-13 02:51:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 23:51:05' and `end` < '2025-02-13 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-02-13 02:51:18] Production.INFO: count ==405 [2025-02-13 02:51:18] Production.ERROR: pbx CDR StartTime 2025-02-12 23:51:05 - End Time 2025-02-13 02:51:05 [2025-02-13 02:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463468', 'tblTempUsageDetail_20' ) start [2025-02-13 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463468', 'tblTempUsageDetail_20' ) end [2025-02-13 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463468', 'tblTempVendorCDR_20' ) start [2025-02-13 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463468', 'tblTempVendorCDR_20' ) end [2025-02-13 02:51:18] Production.INFO: ProcessCDR(1,14463468,1,1,2) [2025-02-13 02:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463468', 'tblTempUsageDetail_20' ) start [2025-02-13 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463468', 'tblTempUsageDetail_20' ) end [2025-02-13 02:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 02:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 02:51:21] Production.INFO: ==14596== Releasing lock... [2025-02-13 02:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 02:51:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 23:52:05 [end_date_ymd] => 2025-02-13 02:52:05 [RateCDR] => 1 ) [2025-02-13 02: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-02-12 23:52:05' and `end` < '2025-02-13 02: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-02-13 02:52:18] Production.INFO: count ==405 [2025-02-13 02:52:18] Production.ERROR: pbx CDR StartTime 2025-02-12 23:52:05 - End Time 2025-02-13 02:52:05 [2025-02-13 02:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463473', 'tblTempUsageDetail_20' ) start [2025-02-13 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463473', 'tblTempUsageDetail_20' ) end [2025-02-13 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463473', 'tblTempVendorCDR_20' ) start [2025-02-13 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463473', 'tblTempVendorCDR_20' ) end [2025-02-13 02:52:18] Production.INFO: ProcessCDR(1,14463473,1,1,2) [2025-02-13 02:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463473', 'tblTempUsageDetail_20' ) start [2025-02-13 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463473', 'tblTempUsageDetail_20' ) end [2025-02-13 02:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 02:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 02:52:21] Production.INFO: ==14666== Releasing lock... [2025-02-13 02:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 02:52:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 02:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 23:53:05 [end_date_ymd] => 2025-02-13 02:53:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 23:53:05' and `end` < '2025-02-13 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-02-13 02:53:18] Production.INFO: count ==405 [2025-02-13 02:53:18] Production.ERROR: pbx CDR StartTime 2025-02-12 23:53:05 - End Time 2025-02-13 02:53:05 [2025-02-13 02:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463478', 'tblTempUsageDetail_20' ) start [2025-02-13 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463478', 'tblTempUsageDetail_20' ) end [2025-02-13 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463478', 'tblTempVendorCDR_20' ) start [2025-02-13 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463478', 'tblTempVendorCDR_20' ) end [2025-02-13 02:53:18] Production.INFO: ProcessCDR(1,14463478,1,1,2) [2025-02-13 02:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463478', 'tblTempUsageDetail_20' ) start [2025-02-13 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463478', 'tblTempUsageDetail_20' ) end [2025-02-13 02:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 02:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 02:53:21] Production.INFO: ==14739== Releasing lock... [2025-02-13 02:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 02:53:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 23:54:05 [end_date_ymd] => 2025-02-13 02:54:05 [RateCDR] => 1 ) [2025-02-13 02: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-02-12 23:54:05' and `end` < '2025-02-13 02: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-02-13 02:54:18] Production.INFO: count ==405 [2025-02-13 02:54:18] Production.ERROR: pbx CDR StartTime 2025-02-12 23:54:05 - End Time 2025-02-13 02:54:05 [2025-02-13 02:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463483', 'tblTempUsageDetail_20' ) start [2025-02-13 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463483', 'tblTempUsageDetail_20' ) end [2025-02-13 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463483', 'tblTempVendorCDR_20' ) start [2025-02-13 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463483', 'tblTempVendorCDR_20' ) end [2025-02-13 02:54:18] Production.INFO: ProcessCDR(1,14463483,1,1,2) [2025-02-13 02:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463483', 'tblTempUsageDetail_20' ) start [2025-02-13 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463483', 'tblTempUsageDetail_20' ) end [2025-02-13 02:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 02:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 02:54:21] Production.INFO: ==14850== Releasing lock... [2025-02-13 02:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 02:54:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 02:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 23:55:06 [end_date_ymd] => 2025-02-13 02:55:06 [RateCDR] => 1 ) [2025-02-13 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-02-12 23:55:06' and `end` < '2025-02-13 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-02-13 02:55:19] Production.INFO: count ==405 [2025-02-13 02:55:19] Production.ERROR: pbx CDR StartTime 2025-02-12 23:55:06 - End Time 2025-02-13 02:55:06 [2025-02-13 02:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 02:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463488', 'tblTempUsageDetail_20' ) start [2025-02-13 02:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463488', 'tblTempUsageDetail_20' ) end [2025-02-13 02:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463488', 'tblTempVendorCDR_20' ) start [2025-02-13 02:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463488', 'tblTempVendorCDR_20' ) end [2025-02-13 02:55:19] Production.INFO: ProcessCDR(1,14463488,1,1,2) [2025-02-13 02:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463488', 'tblTempUsageDetail_20' ) start [2025-02-13 02:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463488', 'tblTempUsageDetail_20' ) end [2025-02-13 02:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 02:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 02:55:22] Production.INFO: ==14923== Releasing lock... [2025-02-13 02:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 02:55:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 23:56:05 [end_date_ymd] => 2025-02-13 02:56:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 23:56:05' and `end` < '2025-02-13 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-02-13 02:56:18] Production.INFO: count ==405 [2025-02-13 02:56:18] Production.ERROR: pbx CDR StartTime 2025-02-12 23:56:05 - End Time 2025-02-13 02:56:05 [2025-02-13 02:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463493', 'tblTempUsageDetail_20' ) start [2025-02-13 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463493', 'tblTempUsageDetail_20' ) end [2025-02-13 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463493', 'tblTempVendorCDR_20' ) start [2025-02-13 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463493', 'tblTempVendorCDR_20' ) end [2025-02-13 02:56:18] Production.INFO: ProcessCDR(1,14463493,1,1,2) [2025-02-13 02:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463493', 'tblTempUsageDetail_20' ) start [2025-02-13 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463493', 'tblTempUsageDetail_20' ) end [2025-02-13 02:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 02:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 02:56:21] Production.INFO: ==14995== Releasing lock... [2025-02-13 02:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 02:56:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 23:57:05 [end_date_ymd] => 2025-02-13 02:57:05 [RateCDR] => 1 ) [2025-02-13 02: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-02-12 23:57:05' and `end` < '2025-02-13 02: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-02-13 02:57:18] Production.INFO: count ==404 [2025-02-13 02:57:18] Production.ERROR: pbx CDR StartTime 2025-02-12 23:57:05 - End Time 2025-02-13 02:57:05 [2025-02-13 02:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463498', 'tblTempUsageDetail_20' ) start [2025-02-13 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463498', 'tblTempUsageDetail_20' ) end [2025-02-13 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463498', 'tblTempVendorCDR_20' ) start [2025-02-13 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463498', 'tblTempVendorCDR_20' ) end [2025-02-13 02:57:18] Production.INFO: ProcessCDR(1,14463498,1,1,2) [2025-02-13 02:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463498', 'tblTempUsageDetail_20' ) start [2025-02-13 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463498', 'tblTempUsageDetail_20' ) end [2025-02-13 02:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 02:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 02:57:21] Production.INFO: ==15068== Releasing lock... [2025-02-13 02:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 02:57:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 02:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 23:58:04 [end_date_ymd] => 2025-02-13 02:58:04 [RateCDR] => 1 ) [2025-02-13 02: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-02-12 23:58:04' and `end` < '2025-02-13 02: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-02-13 02:58:18] Production.INFO: count ==400 [2025-02-13 02:58:18] Production.ERROR: pbx CDR StartTime 2025-02-12 23:58:04 - End Time 2025-02-13 02:58:04 [2025-02-13 02:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463503', 'tblTempUsageDetail_20' ) start [2025-02-13 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463503', 'tblTempUsageDetail_20' ) end [2025-02-13 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463503', 'tblTempVendorCDR_20' ) start [2025-02-13 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463503', 'tblTempVendorCDR_20' ) end [2025-02-13 02:58:18] Production.INFO: ProcessCDR(1,14463503,1,1,2) [2025-02-13 02:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463503', 'tblTempUsageDetail_20' ) start [2025-02-13 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463503', 'tblTempUsageDetail_20' ) end [2025-02-13 02:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 02:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 02:58:21] Production.INFO: ==15141== Releasing lock... [2025-02-13 02:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 02:58:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 23:59:05 [end_date_ymd] => 2025-02-13 02:59:05 [RateCDR] => 1 ) [2025-02-13 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-02-12 23:59:05' and `end` < '2025-02-13 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-02-13 02:59:19] Production.INFO: count ==400 [2025-02-13 02:59:19] Production.ERROR: pbx CDR StartTime 2025-02-12 23:59:05 - End Time 2025-02-13 02:59:05 [2025-02-13 02:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463508', 'tblTempUsageDetail_20' ) start [2025-02-13 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463508', 'tblTempUsageDetail_20' ) end [2025-02-13 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463508', 'tblTempVendorCDR_20' ) start [2025-02-13 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463508', 'tblTempVendorCDR_20' ) end [2025-02-13 02:59:19] Production.INFO: ProcessCDR(1,14463508,1,1,2) [2025-02-13 02:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 02:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463508', 'tblTempUsageDetail_20' ) start [2025-02-13 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463508', 'tblTempUsageDetail_20' ) end [2025-02-13 02:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 02:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 02:59:22] Production.INFO: ==15213== Releasing lock... [2025-02-13 02:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 02:59:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 03:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 00:00:05 [end_date_ymd] => 2025-02-13 03:00:05 [RateCDR] => 1 ) [2025-02-13 03: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-02-13 00:00:05' and `end` < '2025-02-13 03: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-02-13 03:00:18] Production.INFO: count ==403 [2025-02-13 03:00:18] Production.ERROR: pbx CDR StartTime 2025-02-13 00:00:05 - End Time 2025-02-13 03:00:05 [2025-02-13 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463514', 'tblTempUsageDetail_20' ) start [2025-02-13 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463514', 'tblTempUsageDetail_20' ) end [2025-02-13 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463514', 'tblTempVendorCDR_20' ) start [2025-02-13 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463514', 'tblTempVendorCDR_20' ) end [2025-02-13 03:00:18] Production.INFO: ProcessCDR(1,14463514,1,1,2) [2025-02-13 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463514', 'tblTempUsageDetail_20' ) start [2025-02-13 03:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463514', 'tblTempUsageDetail_20' ) end [2025-02-13 03:00:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 03:00:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 03:00:21] Production.INFO: ==15287== Releasing lock... [2025-02-13 03:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 03:00:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-13 03:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 00:01:05 [end_date_ymd] => 2025-02-13 03:01:05 [RateCDR] => 1 ) [2025-02-13 03: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-02-13 00:01:05' and `end` < '2025-02-13 03: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-02-13 03:01:18] Production.INFO: count ==403 [2025-02-13 03:01:18] Production.ERROR: pbx CDR StartTime 2025-02-13 00:01:05 - End Time 2025-02-13 03:01:05 [2025-02-13 03:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463519', 'tblTempUsageDetail_20' ) start [2025-02-13 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463519', 'tblTempUsageDetail_20' ) end [2025-02-13 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463519', 'tblTempVendorCDR_20' ) start [2025-02-13 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463519', 'tblTempVendorCDR_20' ) end [2025-02-13 03:01:18] Production.INFO: ProcessCDR(1,14463519,1,1,2) [2025-02-13 03:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463519', 'tblTempUsageDetail_20' ) start [2025-02-13 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463519', 'tblTempUsageDetail_20' ) end [2025-02-13 03:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 03:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 03:01:21] Production.INFO: ==15381== Releasing lock... [2025-02-13 03:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 03:01:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-13 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 00:02:05 [end_date_ymd] => 2025-02-13 03:02:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 00:02:05' and `end` < '2025-02-13 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-02-13 03:02:19] Production.INFO: count ==403 [2025-02-13 03:02:19] Production.ERROR: pbx CDR StartTime 2025-02-13 00:02:05 - End Time 2025-02-13 03:02:05 [2025-02-13 03:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463524', 'tblTempUsageDetail_20' ) start [2025-02-13 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463524', 'tblTempUsageDetail_20' ) end [2025-02-13 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463524', 'tblTempVendorCDR_20' ) start [2025-02-13 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463524', 'tblTempVendorCDR_20' ) end [2025-02-13 03:02:19] Production.INFO: ProcessCDR(1,14463524,1,1,2) [2025-02-13 03:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463524', 'tblTempUsageDetail_20' ) start [2025-02-13 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463524', 'tblTempUsageDetail_20' ) end [2025-02-13 03:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 03:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 03:02:22] Production.INFO: ==15528== Releasing lock... [2025-02-13 03:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 03:02:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-13 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 00:03:05 [end_date_ymd] => 2025-02-13 03:03:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 00:03:05' and `end` < '2025-02-13 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-02-13 03:03:18] Production.INFO: count ==403 [2025-02-13 03:03:18] Production.ERROR: pbx CDR StartTime 2025-02-13 00:03:05 - End Time 2025-02-13 03:03:05 [2025-02-13 03:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463529', 'tblTempUsageDetail_20' ) start [2025-02-13 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463529', 'tblTempUsageDetail_20' ) end [2025-02-13 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463529', 'tblTempVendorCDR_20' ) start [2025-02-13 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463529', 'tblTempVendorCDR_20' ) end [2025-02-13 03:03:18] Production.INFO: ProcessCDR(1,14463529,1,1,2) [2025-02-13 03:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463529', 'tblTempUsageDetail_20' ) start [2025-02-13 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463529', 'tblTempUsageDetail_20' ) end [2025-02-13 03:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 03:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 03:03:21] Production.INFO: ==15598== Releasing lock... [2025-02-13 03:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 03:03:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-13 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 00:04:05 [end_date_ymd] => 2025-02-13 03:04:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 00:04:05' and `end` < '2025-02-13 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-02-13 03:04:19] Production.INFO: count ==403 [2025-02-13 03:04:19] Production.ERROR: pbx CDR StartTime 2025-02-13 00:04:05 - End Time 2025-02-13 03:04:05 [2025-02-13 03:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463534', 'tblTempUsageDetail_20' ) start [2025-02-13 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463534', 'tblTempUsageDetail_20' ) end [2025-02-13 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463534', 'tblTempVendorCDR_20' ) start [2025-02-13 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463534', 'tblTempVendorCDR_20' ) end [2025-02-13 03:04:19] Production.INFO: ProcessCDR(1,14463534,1,1,2) [2025-02-13 03:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463534', 'tblTempUsageDetail_20' ) start [2025-02-13 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463534', 'tblTempUsageDetail_20' ) end [2025-02-13 03:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 03:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 03:04:22] Production.INFO: ==15672== Releasing lock... [2025-02-13 03:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 03:04:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-13 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 00:05:05 [end_date_ymd] => 2025-02-13 03:05:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 00:05:05' and `end` < '2025-02-13 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-02-13 03:05:18] Production.INFO: count ==403 [2025-02-13 03:05:18] Production.ERROR: pbx CDR StartTime 2025-02-13 00:05:05 - End Time 2025-02-13 03:05:05 [2025-02-13 03:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463539', 'tblTempUsageDetail_20' ) start [2025-02-13 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463539', 'tblTempUsageDetail_20' ) end [2025-02-13 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463539', 'tblTempVendorCDR_20' ) start [2025-02-13 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463539', 'tblTempVendorCDR_20' ) end [2025-02-13 03:05:18] Production.INFO: ProcessCDR(1,14463539,1,1,2) [2025-02-13 03:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463539', 'tblTempUsageDetail_20' ) start [2025-02-13 03:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463539', 'tblTempUsageDetail_20' ) end [2025-02-13 03:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 03:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 03:05:22] Production.INFO: ==15743== Releasing lock... [2025-02-13 03:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 03:05:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-13 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 00:06:05 [end_date_ymd] => 2025-02-13 03:06:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 00:06:05' and `end` < '2025-02-13 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-02-13 03:06:18] Production.INFO: count ==403 [2025-02-13 03:06:18] Production.ERROR: pbx CDR StartTime 2025-02-13 00:06:05 - End Time 2025-02-13 03:06:05 [2025-02-13 03:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463544', 'tblTempUsageDetail_20' ) start [2025-02-13 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463544', 'tblTempUsageDetail_20' ) end [2025-02-13 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463544', 'tblTempVendorCDR_20' ) start [2025-02-13 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463544', 'tblTempVendorCDR_20' ) end [2025-02-13 03:06:18] Production.INFO: ProcessCDR(1,14463544,1,1,2) [2025-02-13 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463544', 'tblTempUsageDetail_20' ) start [2025-02-13 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463544', 'tblTempUsageDetail_20' ) end [2025-02-13 03:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 03:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 03:06:21] Production.INFO: ==15895== Releasing lock... [2025-02-13 03:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 03:06:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-13 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 00:07:05 [end_date_ymd] => 2025-02-13 03:07:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 00:07:05' and `end` < '2025-02-13 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-02-13 03:07:19] Production.INFO: count ==402 [2025-02-13 03:07:19] Production.ERROR: pbx CDR StartTime 2025-02-13 00:07:05 - End Time 2025-02-13 03:07:05 [2025-02-13 03:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463549', 'tblTempUsageDetail_20' ) start [2025-02-13 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463549', 'tblTempUsageDetail_20' ) end [2025-02-13 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463549', 'tblTempVendorCDR_20' ) start [2025-02-13 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463549', 'tblTempVendorCDR_20' ) end [2025-02-13 03:07:19] Production.INFO: ProcessCDR(1,14463549,1,1,2) [2025-02-13 03:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463549', 'tblTempUsageDetail_20' ) start [2025-02-13 03:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463549', 'tblTempUsageDetail_20' ) end [2025-02-13 03:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 03:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 03:07:23] Production.INFO: ==15968== Releasing lock... [2025-02-13 03:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 03:07:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 00:08:05 [end_date_ymd] => 2025-02-13 03:08:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 00:08:05' and `end` < '2025-02-13 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-02-13 03:08:20] Production.INFO: count ==401 [2025-02-13 03:08:20] Production.ERROR: pbx CDR StartTime 2025-02-13 00:08:05 - End Time 2025-02-13 03:08:05 [2025-02-13 03:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 03:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463554', 'tblTempUsageDetail_20' ) start [2025-02-13 03:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463554', 'tblTempUsageDetail_20' ) end [2025-02-13 03:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463554', 'tblTempVendorCDR_20' ) start [2025-02-13 03:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463554', 'tblTempVendorCDR_20' ) end [2025-02-13 03:08:20] Production.INFO: ProcessCDR(1,14463554,1,1,2) [2025-02-13 03:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463554', 'tblTempUsageDetail_20' ) start [2025-02-13 03:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463554', 'tblTempUsageDetail_20' ) end [2025-02-13 03:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 03:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 03:08:23] Production.INFO: ==16037== Releasing lock... [2025-02-13 03:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 03:08:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 03:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 00:09:04 [end_date_ymd] => 2025-02-13 03:09:04 [RateCDR] => 1 ) [2025-02-13 03: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-02-13 00:09:04' and `end` < '2025-02-13 03: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-02-13 03:09:17] Production.INFO: count ==400 [2025-02-13 03:09:17] Production.ERROR: pbx CDR StartTime 2025-02-13 00:09:04 - End Time 2025-02-13 03:09:04 [2025-02-13 03:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463559', 'tblTempUsageDetail_20' ) start [2025-02-13 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463559', 'tblTempUsageDetail_20' ) end [2025-02-13 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463559', 'tblTempVendorCDR_20' ) start [2025-02-13 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463559', 'tblTempVendorCDR_20' ) end [2025-02-13 03:09:17] Production.INFO: ProcessCDR(1,14463559,1,1,2) [2025-02-13 03:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463559', 'tblTempUsageDetail_20' ) start [2025-02-13 03:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463559', 'tblTempUsageDetail_20' ) end [2025-02-13 03:09:20] Production.ERROR: pbx prc_insertCDR start [2025-02-13 03:09:20] Production.ERROR: pbx prc_insertCDR end [2025-02-13 03:09:20] Production.INFO: ==16185== Releasing lock... [2025-02-13 03:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 03:09:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 03:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 00:10:05 [end_date_ymd] => 2025-02-13 03:10:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 00:10:05' and `end` < '2025-02-13 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-02-13 03:10:18] Production.INFO: count ==400 [2025-02-13 03:10:18] Production.ERROR: pbx CDR StartTime 2025-02-13 00:10:05 - End Time 2025-02-13 03:10:05 [2025-02-13 03:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463564', 'tblTempUsageDetail_20' ) start [2025-02-13 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463564', 'tblTempUsageDetail_20' ) end [2025-02-13 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463564', 'tblTempVendorCDR_20' ) start [2025-02-13 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463564', 'tblTempVendorCDR_20' ) end [2025-02-13 03:10:18] Production.INFO: ProcessCDR(1,14463564,1,1,2) [2025-02-13 03:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463564', 'tblTempUsageDetail_20' ) start [2025-02-13 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463564', 'tblTempUsageDetail_20' ) end [2025-02-13 03:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 03:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 03:10:22] Production.INFO: ==16299== Releasing lock... [2025-02-13 03:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 03:10:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 00:11:05 [end_date_ymd] => 2025-02-13 03:11:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 00:11:05' and `end` < '2025-02-13 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-02-13 03:11:20] Production.INFO: count ==377 [2025-02-13 03:11:20] Production.ERROR: pbx CDR StartTime 2025-02-13 00:11:05 - End Time 2025-02-13 03:11:05 [2025-02-13 03:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 03:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463570', 'tblTempUsageDetail_20' ) start [2025-02-13 03:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463570', 'tblTempUsageDetail_20' ) end [2025-02-13 03:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463570', 'tblTempVendorCDR_20' ) start [2025-02-13 03:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463570', 'tblTempVendorCDR_20' ) end [2025-02-13 03:11:20] Production.INFO: ProcessCDR(1,14463570,1,1,2) [2025-02-13 03:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463570', 'tblTempUsageDetail_20' ) start [2025-02-13 03:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463570', 'tblTempUsageDetail_20' ) end [2025-02-13 03:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 03:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 03:11:23] Production.INFO: ==16375== Releasing lock... [2025-02-13 03:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 03:11:23] Production.INFO: 30 MB #Memory Used# [2025-02-13 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 00:12:05 [end_date_ymd] => 2025-02-13 03:12:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 00:12:05' and `end` < '2025-02-13 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-02-13 03:12:18] Production.INFO: count ==376 [2025-02-13 03:12:18] Production.ERROR: pbx CDR StartTime 2025-02-13 00:12:05 - End Time 2025-02-13 03:12:05 [2025-02-13 03:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463575', 'tblTempUsageDetail_20' ) start [2025-02-13 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463575', 'tblTempUsageDetail_20' ) end [2025-02-13 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463575', 'tblTempVendorCDR_20' ) start [2025-02-13 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463575', 'tblTempVendorCDR_20' ) end [2025-02-13 03:12:18] Production.INFO: ProcessCDR(1,14463575,1,1,2) [2025-02-13 03:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463575', 'tblTempUsageDetail_20' ) start [2025-02-13 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463575', 'tblTempUsageDetail_20' ) end [2025-02-13 03:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 03:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 03:12:21] Production.INFO: ==16446== Releasing lock... [2025-02-13 03:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 03:12:21] Production.INFO: 30 MB #Memory Used# [2025-02-13 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 00:13:05 [end_date_ymd] => 2025-02-13 03:13:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 00:13:05' and `end` < '2025-02-13 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-02-13 03:13:18] Production.INFO: count ==376 [2025-02-13 03:13:18] Production.ERROR: pbx CDR StartTime 2025-02-13 00:13:05 - End Time 2025-02-13 03:13:05 [2025-02-13 03:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463580', 'tblTempUsageDetail_20' ) start [2025-02-13 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463580', 'tblTempUsageDetail_20' ) end [2025-02-13 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463580', 'tblTempVendorCDR_20' ) start [2025-02-13 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463580', 'tblTempVendorCDR_20' ) end [2025-02-13 03:13:18] Production.INFO: ProcessCDR(1,14463580,1,1,2) [2025-02-13 03:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463580', 'tblTempUsageDetail_20' ) start [2025-02-13 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463580', 'tblTempUsageDetail_20' ) end [2025-02-13 03:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 03:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 03:13:22] Production.INFO: ==16597== Releasing lock... [2025-02-13 03:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 03:13:22] Production.INFO: 30 MB #Memory Used# [2025-02-13 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 00:14:05 [end_date_ymd] => 2025-02-13 03:14:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 00:14:05' and `end` < '2025-02-13 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-02-13 03:14:18] Production.INFO: count ==376 [2025-02-13 03:14:18] Production.ERROR: pbx CDR StartTime 2025-02-13 00:14:05 - End Time 2025-02-13 03:14:05 [2025-02-13 03:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463585', 'tblTempUsageDetail_20' ) start [2025-02-13 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463585', 'tblTempUsageDetail_20' ) end [2025-02-13 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463585', 'tblTempVendorCDR_20' ) start [2025-02-13 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463585', 'tblTempVendorCDR_20' ) end [2025-02-13 03:14:18] Production.INFO: ProcessCDR(1,14463585,1,1,2) [2025-02-13 03:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463585', 'tblTempUsageDetail_20' ) start [2025-02-13 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463585', 'tblTempUsageDetail_20' ) end [2025-02-13 03:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 03:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 03:14:21] Production.INFO: ==16671== Releasing lock... [2025-02-13 03:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 03:14:21] Production.INFO: 30 MB #Memory Used# [2025-02-13 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 00:15:05 [end_date_ymd] => 2025-02-13 03:15:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 00:15:05' and `end` < '2025-02-13 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-02-13 03:15:18] Production.INFO: count ==376 [2025-02-13 03:15:18] Production.ERROR: pbx CDR StartTime 2025-02-13 00:15:05 - End Time 2025-02-13 03:15:05 [2025-02-13 03:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463590', 'tblTempUsageDetail_20' ) start [2025-02-13 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463590', 'tblTempUsageDetail_20' ) end [2025-02-13 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463590', 'tblTempVendorCDR_20' ) start [2025-02-13 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463590', 'tblTempVendorCDR_20' ) end [2025-02-13 03:15:18] Production.INFO: ProcessCDR(1,14463590,1,1,2) [2025-02-13 03:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463590', 'tblTempUsageDetail_20' ) start [2025-02-13 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463590', 'tblTempUsageDetail_20' ) end [2025-02-13 03:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 03:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 03:15:21] Production.INFO: ==16743== Releasing lock... [2025-02-13 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 03:15:21] Production.INFO: 30 MB #Memory Used# [2025-02-13 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 00:16:05 [end_date_ymd] => 2025-02-13 03:16:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 00:16:05' and `end` < '2025-02-13 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-02-13 03:16:18] Production.INFO: count ==376 [2025-02-13 03:16:18] Production.ERROR: pbx CDR StartTime 2025-02-13 00:16:05 - End Time 2025-02-13 03:16:05 [2025-02-13 03:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463595', 'tblTempUsageDetail_20' ) start [2025-02-13 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463595', 'tblTempUsageDetail_20' ) end [2025-02-13 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463595', 'tblTempVendorCDR_20' ) start [2025-02-13 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463595', 'tblTempVendorCDR_20' ) end [2025-02-13 03:16:18] Production.INFO: ProcessCDR(1,14463595,1,1,2) [2025-02-13 03:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463595', 'tblTempUsageDetail_20' ) start [2025-02-13 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463595', 'tblTempUsageDetail_20' ) end [2025-02-13 03:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 03:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 03:16:21] Production.INFO: ==16812== Releasing lock... [2025-02-13 03:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 03:16:21] Production.INFO: 30 MB #Memory Used# [2025-02-13 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 00:17:05 [end_date_ymd] => 2025-02-13 03:17:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 00:17:05' and `end` < '2025-02-13 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-02-13 03:17:18] Production.INFO: count ==376 [2025-02-13 03:17:18] Production.ERROR: pbx CDR StartTime 2025-02-13 00:17:05 - End Time 2025-02-13 03:17:05 [2025-02-13 03:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463600', 'tblTempUsageDetail_20' ) start [2025-02-13 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463600', 'tblTempUsageDetail_20' ) end [2025-02-13 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463600', 'tblTempVendorCDR_20' ) start [2025-02-13 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463600', 'tblTempVendorCDR_20' ) end [2025-02-13 03:17:18] Production.INFO: ProcessCDR(1,14463600,1,1,2) [2025-02-13 03:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463600', 'tblTempUsageDetail_20' ) start [2025-02-13 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463600', 'tblTempUsageDetail_20' ) end [2025-02-13 03:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 03:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 03:17:21] Production.INFO: ==16962== Releasing lock... [2025-02-13 03:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 03:17:21] Production.INFO: 30 MB #Memory Used# [2025-02-13 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 00:18:05 [end_date_ymd] => 2025-02-13 03:18:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 00:18:05' and `end` < '2025-02-13 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-02-13 03:18:18] Production.INFO: count ==376 [2025-02-13 03:18:18] Production.ERROR: pbx CDR StartTime 2025-02-13 00:18:05 - End Time 2025-02-13 03:18:05 [2025-02-13 03:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463605', 'tblTempUsageDetail_20' ) start [2025-02-13 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463605', 'tblTempUsageDetail_20' ) end [2025-02-13 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463605', 'tblTempVendorCDR_20' ) start [2025-02-13 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463605', 'tblTempVendorCDR_20' ) end [2025-02-13 03:18:18] Production.INFO: ProcessCDR(1,14463605,1,1,2) [2025-02-13 03:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463605', 'tblTempUsageDetail_20' ) start [2025-02-13 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463605', 'tblTempUsageDetail_20' ) end [2025-02-13 03:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 03:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 03:18:21] Production.INFO: ==17032== Releasing lock... [2025-02-13 03:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 03:18:21] Production.INFO: 30 MB #Memory Used# [2025-02-13 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 00:19:05 [end_date_ymd] => 2025-02-13 03:19:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 00:19:05' and `end` < '2025-02-13 03: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-02-13 03:19:18] Production.INFO: count ==376 [2025-02-13 03:19:18] Production.ERROR: pbx CDR StartTime 2025-02-13 00:19:05 - End Time 2025-02-13 03:19:05 [2025-02-13 03:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463610', 'tblTempUsageDetail_20' ) start [2025-02-13 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463610', 'tblTempUsageDetail_20' ) end [2025-02-13 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463610', 'tblTempVendorCDR_20' ) start [2025-02-13 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463610', 'tblTempVendorCDR_20' ) end [2025-02-13 03:19:18] Production.INFO: ProcessCDR(1,14463610,1,1,2) [2025-02-13 03:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463610', 'tblTempUsageDetail_20' ) start [2025-02-13 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463610', 'tblTempUsageDetail_20' ) end [2025-02-13 03:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 03:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 03:19:21] Production.INFO: ==17101== Releasing lock... [2025-02-13 03:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 03:19:21] Production.INFO: 30 MB #Memory Used# [2025-02-13 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 00:20:06 [end_date_ymd] => 2025-02-13 03:20:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 00:20:06' and `end` < '2025-02-13 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-02-13 03:20:19] Production.INFO: count ==372 [2025-02-13 03:20:19] Production.ERROR: pbx CDR StartTime 2025-02-13 00:20:06 - End Time 2025-02-13 03:20:06 [2025-02-13 03:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463616', 'tblTempUsageDetail_20' ) start [2025-02-13 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463616', 'tblTempUsageDetail_20' ) end [2025-02-13 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463616', 'tblTempVendorCDR_20' ) start [2025-02-13 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463616', 'tblTempVendorCDR_20' ) end [2025-02-13 03:20:19] Production.INFO: ProcessCDR(1,14463616,1,1,2) [2025-02-13 03:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463616', 'tblTempUsageDetail_20' ) start [2025-02-13 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463616', 'tblTempUsageDetail_20' ) end [2025-02-13 03:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 03:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 03:20:22] Production.INFO: ==17174== Releasing lock... [2025-02-13 03:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 03:20:22] Production.INFO: 30 MB #Memory Used# [2025-02-13 03:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 00:21:04 [end_date_ymd] => 2025-02-13 03:21:04 [RateCDR] => 1 ) [2025-02-13 03: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-02-13 00:21:04' and `end` < '2025-02-13 03: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-02-13 03:21:18] Production.INFO: count ==352 [2025-02-13 03:21:18] Production.ERROR: pbx CDR StartTime 2025-02-13 00:21:04 - End Time 2025-02-13 03:21:04 [2025-02-13 03:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463621', 'tblTempUsageDetail_20' ) start [2025-02-13 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463621', 'tblTempUsageDetail_20' ) end [2025-02-13 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463621', 'tblTempVendorCDR_20' ) start [2025-02-13 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463621', 'tblTempVendorCDR_20' ) end [2025-02-13 03:21:18] Production.INFO: ProcessCDR(1,14463621,1,1,2) [2025-02-13 03:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463621', 'tblTempUsageDetail_20' ) start [2025-02-13 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463621', 'tblTempUsageDetail_20' ) end [2025-02-13 03:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 03:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 03:21:21] Production.INFO: ==17247== Releasing lock... [2025-02-13 03:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 03:21:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 00:22:05 [end_date_ymd] => 2025-02-13 03:22:05 [RateCDR] => 1 ) [2025-02-13 03: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-02-13 00:22:05' and `end` < '2025-02-13 03: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-02-13 03:22:18] Production.INFO: count ==350 [2025-02-13 03:22:18] Production.ERROR: pbx CDR StartTime 2025-02-13 00:22:05 - End Time 2025-02-13 03:22:05 [2025-02-13 03:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463626', 'tblTempUsageDetail_20' ) start [2025-02-13 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463626', 'tblTempUsageDetail_20' ) end [2025-02-13 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463626', 'tblTempVendorCDR_20' ) start [2025-02-13 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463626', 'tblTempVendorCDR_20' ) end [2025-02-13 03:22:18] Production.INFO: ProcessCDR(1,14463626,1,1,2) [2025-02-13 03:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463626', 'tblTempUsageDetail_20' ) start [2025-02-13 03:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463626', 'tblTempUsageDetail_20' ) end [2025-02-13 03:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 03:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 03:22:22] Production.INFO: ==17318== Releasing lock... [2025-02-13 03:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 03:22:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 00:23:05 [end_date_ymd] => 2025-02-13 03:23:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 00:23:05' and `end` < '2025-02-13 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-02-13 03:23:17] Production.INFO: count ==350 [2025-02-13 03:23:17] Production.ERROR: pbx CDR StartTime 2025-02-13 00:23:05 - End Time 2025-02-13 03:23:05 [2025-02-13 03:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463631', 'tblTempUsageDetail_20' ) start [2025-02-13 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463631', 'tblTempUsageDetail_20' ) end [2025-02-13 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463631', 'tblTempVendorCDR_20' ) start [2025-02-13 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463631', 'tblTempVendorCDR_20' ) end [2025-02-13 03:23:17] Production.INFO: ProcessCDR(1,14463631,1,1,2) [2025-02-13 03:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463631', 'tblTempUsageDetail_20' ) start [2025-02-13 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463631', 'tblTempUsageDetail_20' ) end [2025-02-13 03:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 03:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 03:23:21] Production.INFO: ==17387== Releasing lock... [2025-02-13 03:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 03:23:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 00:24:05 [end_date_ymd] => 2025-02-13 03:24:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 00:24:05' and `end` < '2025-02-13 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-02-13 03:24:18] Production.INFO: count ==350 [2025-02-13 03:24:18] Production.ERROR: pbx CDR StartTime 2025-02-13 00:24:05 - End Time 2025-02-13 03:24:05 [2025-02-13 03:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463636', 'tblTempUsageDetail_20' ) start [2025-02-13 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463636', 'tblTempUsageDetail_20' ) end [2025-02-13 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463636', 'tblTempVendorCDR_20' ) start [2025-02-13 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463636', 'tblTempVendorCDR_20' ) end [2025-02-13 03:24:18] Production.INFO: ProcessCDR(1,14463636,1,1,2) [2025-02-13 03:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463636', 'tblTempUsageDetail_20' ) start [2025-02-13 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463636', 'tblTempUsageDetail_20' ) end [2025-02-13 03:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 03:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 03:24:21] Production.INFO: ==17457== Releasing lock... [2025-02-13 03:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 03:24:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 03:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 00:25:04 [end_date_ymd] => 2025-02-13 03:25:04 [RateCDR] => 1 ) [2025-02-13 03:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 00:25:04' and `end` < '2025-02-13 03:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-13 03:25:17] Production.INFO: count ==350 [2025-02-13 03:25:17] Production.ERROR: pbx CDR StartTime 2025-02-13 00:25:04 - End Time 2025-02-13 03:25:04 [2025-02-13 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463641', 'tblTempUsageDetail_20' ) start [2025-02-13 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463641', 'tblTempUsageDetail_20' ) end [2025-02-13 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463641', 'tblTempVendorCDR_20' ) start [2025-02-13 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463641', 'tblTempVendorCDR_20' ) end [2025-02-13 03:25:17] Production.INFO: ProcessCDR(1,14463641,1,1,2) [2025-02-13 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463641', 'tblTempUsageDetail_20' ) start [2025-02-13 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463641', 'tblTempUsageDetail_20' ) end [2025-02-13 03:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 03:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 03:25:21] Production.INFO: ==17525== Releasing lock... [2025-02-13 03:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 03:25:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 00:26:05 [end_date_ymd] => 2025-02-13 03:26:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 00:26:05' and `end` < '2025-02-13 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-02-13 03:26:18] Production.INFO: count ==346 [2025-02-13 03:26:18] Production.ERROR: pbx CDR StartTime 2025-02-13 00:26:05 - End Time 2025-02-13 03:26:05 [2025-02-13 03:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463646', 'tblTempUsageDetail_20' ) start [2025-02-13 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463646', 'tblTempUsageDetail_20' ) end [2025-02-13 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463646', 'tblTempVendorCDR_20' ) start [2025-02-13 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463646', 'tblTempVendorCDR_20' ) end [2025-02-13 03:26:18] Production.INFO: ProcessCDR(1,14463646,1,1,2) [2025-02-13 03:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463646', 'tblTempUsageDetail_20' ) start [2025-02-13 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463646', 'tblTempUsageDetail_20' ) end [2025-02-13 03:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 03:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 03:26:21] Production.INFO: ==17603== Releasing lock... [2025-02-13 03:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 03:26:21] Production.INFO: 30 MB #Memory Used# [2025-02-13 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 00:27:05 [end_date_ymd] => 2025-02-13 03:27:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 00:27:05' and `end` < '2025-02-13 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-02-13 03:27:18] Production.INFO: count ==344 [2025-02-13 03:27:18] Production.ERROR: pbx CDR StartTime 2025-02-13 00:27:05 - End Time 2025-02-13 03:27:05 [2025-02-13 03:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463650', 'tblTempUsageDetail_20' ) start [2025-02-13 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463650', 'tblTempUsageDetail_20' ) end [2025-02-13 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463650', 'tblTempVendorCDR_20' ) start [2025-02-13 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463650', 'tblTempVendorCDR_20' ) end [2025-02-13 03:27:18] Production.INFO: ProcessCDR(1,14463650,1,1,2) [2025-02-13 03:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463650', 'tblTempUsageDetail_20' ) start [2025-02-13 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463650', 'tblTempUsageDetail_20' ) end [2025-02-13 03:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 03:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 03:27:21] Production.INFO: ==17779== Releasing lock... [2025-02-13 03:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 03:27:21] Production.INFO: 30 MB #Memory Used# [2025-02-13 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 00:28:05 [end_date_ymd] => 2025-02-13 03:28:05 [RateCDR] => 1 ) [2025-02-13 03: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-02-13 00:28:05' and `end` < '2025-02-13 03: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-02-13 03:28:18] Production.INFO: count ==343 [2025-02-13 03:28:18] Production.ERROR: pbx CDR StartTime 2025-02-13 00:28:05 - End Time 2025-02-13 03:28:05 [2025-02-13 03:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463656', 'tblTempUsageDetail_20' ) start [2025-02-13 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463656', 'tblTempUsageDetail_20' ) end [2025-02-13 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463656', 'tblTempVendorCDR_20' ) start [2025-02-13 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463656', 'tblTempVendorCDR_20' ) end [2025-02-13 03:28:18] Production.INFO: ProcessCDR(1,14463656,1,1,2) [2025-02-13 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463656', 'tblTempUsageDetail_20' ) start [2025-02-13 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463656', 'tblTempUsageDetail_20' ) end [2025-02-13 03:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 03:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 03:28:21] Production.INFO: ==17889== Releasing lock... [2025-02-13 03:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 03:28:21] Production.INFO: 30 MB #Memory Used# [2025-02-13 03:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 00:29:06 [end_date_ymd] => 2025-02-13 03:29:06 [RateCDR] => 1 ) [2025-02-13 03: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-02-13 00:29:06' and `end` < '2025-02-13 03: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-02-13 03:29:19] Production.INFO: count ==343 [2025-02-13 03:29:19] Production.ERROR: pbx CDR StartTime 2025-02-13 00:29:06 - End Time 2025-02-13 03:29:06 [2025-02-13 03:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463661', 'tblTempUsageDetail_20' ) start [2025-02-13 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463661', 'tblTempUsageDetail_20' ) end [2025-02-13 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463661', 'tblTempVendorCDR_20' ) start [2025-02-13 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463661', 'tblTempVendorCDR_20' ) end [2025-02-13 03:29:19] Production.INFO: ProcessCDR(1,14463661,1,1,2) [2025-02-13 03:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463661', 'tblTempUsageDetail_20' ) start [2025-02-13 03:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463661', 'tblTempUsageDetail_20' ) end [2025-02-13 03:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 03:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 03:29:22] Production.INFO: ==18016== Releasing lock... [2025-02-13 03:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 03:29:22] Production.INFO: 30 MB #Memory Used# [2025-02-13 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 00:30:06 [end_date_ymd] => 2025-02-13 03:30:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 00:30:06' and `end` < '2025-02-13 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-02-13 03:30:19] Production.INFO: count ==343 [2025-02-13 03:30:19] Production.ERROR: pbx CDR StartTime 2025-02-13 00:30:06 - End Time 2025-02-13 03:30:06 [2025-02-13 03:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463667', 'tblTempUsageDetail_20' ) start [2025-02-13 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463667', 'tblTempUsageDetail_20' ) end [2025-02-13 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463667', 'tblTempVendorCDR_20' ) start [2025-02-13 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463667', 'tblTempVendorCDR_20' ) end [2025-02-13 03:30:19] Production.INFO: ProcessCDR(1,14463667,1,1,2) [2025-02-13 03:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463667', 'tblTempUsageDetail_20' ) start [2025-02-13 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463667', 'tblTempUsageDetail_20' ) end [2025-02-13 03:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 03:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 03:30:22] Production.INFO: ==18129== Releasing lock... [2025-02-13 03:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 03:30:22] Production.INFO: 30 MB #Memory Used# [2025-02-13 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 00:31:05 [end_date_ymd] => 2025-02-13 03:31:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 00:31:05' and `end` < '2025-02-13 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-02-13 03:31:18] Production.INFO: count ==335 [2025-02-13 03:31:18] Production.ERROR: pbx CDR StartTime 2025-02-13 00:31:05 - End Time 2025-02-13 03:31:05 [2025-02-13 03:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463672', 'tblTempUsageDetail_20' ) start [2025-02-13 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463672', 'tblTempUsageDetail_20' ) end [2025-02-13 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463672', 'tblTempVendorCDR_20' ) start [2025-02-13 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463672', 'tblTempVendorCDR_20' ) end [2025-02-13 03:31:18] Production.INFO: ProcessCDR(1,14463672,1,1,2) [2025-02-13 03:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463672', 'tblTempUsageDetail_20' ) start [2025-02-13 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463672', 'tblTempUsageDetail_20' ) end [2025-02-13 03:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 03:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 03:31:21] Production.INFO: ==18200== Releasing lock... [2025-02-13 03:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 03:31:21] Production.INFO: 30 MB #Memory Used# [2025-02-13 03:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 00:32:05 [end_date_ymd] => 2025-02-13 03:32:05 [RateCDR] => 1 ) [2025-02-13 03: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-02-13 00:32:05' and `end` < '2025-02-13 03: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-02-13 03:32:20] Production.INFO: count ==335 [2025-02-13 03:32:20] Production.ERROR: pbx CDR StartTime 2025-02-13 00:32:05 - End Time 2025-02-13 03:32:05 [2025-02-13 03:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 03:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463677', 'tblTempUsageDetail_20' ) start [2025-02-13 03:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463677', 'tblTempUsageDetail_20' ) end [2025-02-13 03:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463677', 'tblTempVendorCDR_20' ) start [2025-02-13 03:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463677', 'tblTempVendorCDR_20' ) end [2025-02-13 03:32:20] Production.INFO: ProcessCDR(1,14463677,1,1,2) [2025-02-13 03:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463677', 'tblTempUsageDetail_20' ) start [2025-02-13 03:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463677', 'tblTempUsageDetail_20' ) end [2025-02-13 03:32:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 03:32:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 03:32:24] Production.INFO: ==18273== Releasing lock... [2025-02-13 03:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 03:32:24] Production.INFO: 30 MB #Memory Used# [2025-02-13 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 00:33:05 [end_date_ymd] => 2025-02-13 03:33:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 00:33:05' and `end` < '2025-02-13 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-02-13 03:33:18] Production.INFO: count ==335 [2025-02-13 03:33:18] Production.ERROR: pbx CDR StartTime 2025-02-13 00:33:05 - End Time 2025-02-13 03:33:05 [2025-02-13 03:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463682', 'tblTempUsageDetail_20' ) start [2025-02-13 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463682', 'tblTempUsageDetail_20' ) end [2025-02-13 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463682', 'tblTempVendorCDR_20' ) start [2025-02-13 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463682', 'tblTempVendorCDR_20' ) end [2025-02-13 03:33:18] Production.INFO: ProcessCDR(1,14463682,1,1,2) [2025-02-13 03:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463682', 'tblTempUsageDetail_20' ) start [2025-02-13 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463682', 'tblTempUsageDetail_20' ) end [2025-02-13 03:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 03:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 03:33:21] Production.INFO: ==18350== Releasing lock... [2025-02-13 03:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 03:33:21] Production.INFO: 30 MB #Memory Used# [2025-02-13 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 00:34:05 [end_date_ymd] => 2025-02-13 03:34:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 00:34:05' and `end` < '2025-02-13 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-02-13 03:34:18] Production.INFO: count ==335 [2025-02-13 03:34:18] Production.ERROR: pbx CDR StartTime 2025-02-13 00:34:05 - End Time 2025-02-13 03:34:05 [2025-02-13 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463687', 'tblTempUsageDetail_20' ) start [2025-02-13 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463687', 'tblTempUsageDetail_20' ) end [2025-02-13 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463687', 'tblTempVendorCDR_20' ) start [2025-02-13 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463687', 'tblTempVendorCDR_20' ) end [2025-02-13 03:34:18] Production.INFO: ProcessCDR(1,14463687,1,1,2) [2025-02-13 03:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463687', 'tblTempUsageDetail_20' ) start [2025-02-13 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463687', 'tblTempUsageDetail_20' ) end [2025-02-13 03:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 03:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 03:34:21] Production.INFO: ==18425== Releasing lock... [2025-02-13 03:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 03:34:21] Production.INFO: 30 MB #Memory Used# [2025-02-13 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 00:35:05 [end_date_ymd] => 2025-02-13 03:35:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 00:35:05' and `end` < '2025-02-13 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-02-13 03:35:19] Production.INFO: count ==335 [2025-02-13 03:35:19] Production.ERROR: pbx CDR StartTime 2025-02-13 00:35:05 - End Time 2025-02-13 03:35:05 [2025-02-13 03:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463692', 'tblTempUsageDetail_20' ) start [2025-02-13 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463692', 'tblTempUsageDetail_20' ) end [2025-02-13 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463692', 'tblTempVendorCDR_20' ) start [2025-02-13 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463692', 'tblTempVendorCDR_20' ) end [2025-02-13 03:35:19] Production.INFO: ProcessCDR(1,14463692,1,1,2) [2025-02-13 03:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463692', 'tblTempUsageDetail_20' ) start [2025-02-13 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463692', 'tblTempUsageDetail_20' ) end [2025-02-13 03:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 03:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 03:35:22] Production.INFO: ==18497== Releasing lock... [2025-02-13 03:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 03:35:22] Production.INFO: 30 MB #Memory Used# [2025-02-13 03:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 00:36:04 [end_date_ymd] => 2025-02-13 03:36:04 [RateCDR] => 1 ) [2025-02-13 03:36: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-02-13 00:36:04' and `end` < '2025-02-13 03:36: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-02-13 03:36:17] Production.INFO: count ==334 [2025-02-13 03:36:17] Production.ERROR: pbx CDR StartTime 2025-02-13 00:36:04 - End Time 2025-02-13 03:36:04 [2025-02-13 03:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463697', 'tblTempUsageDetail_20' ) start [2025-02-13 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463697', 'tblTempUsageDetail_20' ) end [2025-02-13 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463697', 'tblTempVendorCDR_20' ) start [2025-02-13 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463697', 'tblTempVendorCDR_20' ) end [2025-02-13 03:36:17] Production.INFO: ProcessCDR(1,14463697,1,1,2) [2025-02-13 03:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463697', 'tblTempUsageDetail_20' ) start [2025-02-13 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463697', 'tblTempUsageDetail_20' ) end [2025-02-13 03:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 03:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 03:36:21] Production.INFO: ==18568== Releasing lock... [2025-02-13 03:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 03:36:21] Production.INFO: 30 MB #Memory Used# [2025-02-13 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 00:37:05 [end_date_ymd] => 2025-02-13 03:37:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 00:37:05' and `end` < '2025-02-13 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-02-13 03:37:18] Production.INFO: count ==334 [2025-02-13 03:37:18] Production.ERROR: pbx CDR StartTime 2025-02-13 00:37:05 - End Time 2025-02-13 03:37:05 [2025-02-13 03:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463702', 'tblTempUsageDetail_20' ) start [2025-02-13 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463702', 'tblTempUsageDetail_20' ) end [2025-02-13 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463702', 'tblTempVendorCDR_20' ) start [2025-02-13 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463702', 'tblTempVendorCDR_20' ) end [2025-02-13 03:37:18] Production.INFO: ProcessCDR(1,14463702,1,1,2) [2025-02-13 03:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463702', 'tblTempUsageDetail_20' ) start [2025-02-13 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463702', 'tblTempUsageDetail_20' ) end [2025-02-13 03:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 03:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 03:37:21] Production.INFO: ==18649== Releasing lock... [2025-02-13 03:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 03:37:21] Production.INFO: 30 MB #Memory Used# [2025-02-13 03:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 00:38:04 [end_date_ymd] => 2025-02-13 03:38:04 [RateCDR] => 1 ) [2025-02-13 03:38: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-02-13 00:38:04' and `end` < '2025-02-13 03:38: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-02-13 03:38:17] Production.INFO: count ==334 [2025-02-13 03:38:17] Production.ERROR: pbx CDR StartTime 2025-02-13 00:38:04 - End Time 2025-02-13 03:38:04 [2025-02-13 03:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463707', 'tblTempUsageDetail_20' ) start [2025-02-13 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463707', 'tblTempUsageDetail_20' ) end [2025-02-13 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463707', 'tblTempVendorCDR_20' ) start [2025-02-13 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463707', 'tblTempVendorCDR_20' ) end [2025-02-13 03:38:17] Production.INFO: ProcessCDR(1,14463707,1,1,2) [2025-02-13 03:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463707', 'tblTempUsageDetail_20' ) start [2025-02-13 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463707', 'tblTempUsageDetail_20' ) end [2025-02-13 03:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 03:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 03:38:21] Production.INFO: ==18729== Releasing lock... [2025-02-13 03:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 03:38:21] Production.INFO: 30 MB #Memory Used# [2025-02-13 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 00:39:05 [end_date_ymd] => 2025-02-13 03:39:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 00:39:05' and `end` < '2025-02-13 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-02-13 03:39:18] Production.INFO: count ==334 [2025-02-13 03:39:18] Production.ERROR: pbx CDR StartTime 2025-02-13 00:39:05 - End Time 2025-02-13 03:39:05 [2025-02-13 03:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463712', 'tblTempUsageDetail_20' ) start [2025-02-13 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463712', 'tblTempUsageDetail_20' ) end [2025-02-13 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463712', 'tblTempVendorCDR_20' ) start [2025-02-13 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463712', 'tblTempVendorCDR_20' ) end [2025-02-13 03:39:18] Production.INFO: ProcessCDR(1,14463712,1,1,2) [2025-02-13 03:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463712', 'tblTempUsageDetail_20' ) start [2025-02-13 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463712', 'tblTempUsageDetail_20' ) end [2025-02-13 03:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 03:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 03:39:21] Production.INFO: ==18819== Releasing lock... [2025-02-13 03:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 03:39:21] Production.INFO: 30 MB #Memory Used# [2025-02-13 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 00:40:06 [end_date_ymd] => 2025-02-13 03:40:06 [RateCDR] => 1 ) [2025-02-13 03: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-02-13 00:40:06' and `end` < '2025-02-13 03: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-02-13 03:40:19] Production.INFO: count ==328 [2025-02-13 03:40:19] Production.ERROR: pbx CDR StartTime 2025-02-13 00:40:06 - End Time 2025-02-13 03:40:06 [2025-02-13 03:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463718', 'tblTempUsageDetail_20' ) start [2025-02-13 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463718', 'tblTempUsageDetail_20' ) end [2025-02-13 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463718', 'tblTempVendorCDR_20' ) start [2025-02-13 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463718', 'tblTempVendorCDR_20' ) end [2025-02-13 03:40:19] Production.INFO: ProcessCDR(1,14463718,1,1,2) [2025-02-13 03:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463718', 'tblTempUsageDetail_20' ) start [2025-02-13 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463718', 'tblTempUsageDetail_20' ) end [2025-02-13 03:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 03:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 03:40:22] Production.INFO: ==18900== Releasing lock... [2025-02-13 03:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 03:40:22] Production.INFO: 30 MB #Memory Used# [2025-02-13 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 00:41:05 [end_date_ymd] => 2025-02-13 03:41:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 00:41:05' and `end` < '2025-02-13 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-02-13 03:41:19] Production.INFO: count ==300 [2025-02-13 03:41:19] Production.ERROR: pbx CDR StartTime 2025-02-13 00:41:05 - End Time 2025-02-13 03:41:05 [2025-02-13 03:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463723', 'tblTempUsageDetail_20' ) start [2025-02-13 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463723', 'tblTempUsageDetail_20' ) end [2025-02-13 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463723', 'tblTempVendorCDR_20' ) start [2025-02-13 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463723', 'tblTempVendorCDR_20' ) end [2025-02-13 03:41:19] Production.INFO: ProcessCDR(1,14463723,1,1,2) [2025-02-13 03:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463723', 'tblTempUsageDetail_20' ) start [2025-02-13 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463723', 'tblTempUsageDetail_20' ) end [2025-02-13 03:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 03:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 03:41:22] Production.INFO: ==18979== Releasing lock... [2025-02-13 03:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 03:41:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-13 03:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 00:42:05 [end_date_ymd] => 2025-02-13 03:42:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 00:42:05' and `end` < '2025-02-13 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-02-13 03:42:19] Production.INFO: count ==300 [2025-02-13 03:42:19] Production.ERROR: pbx CDR StartTime 2025-02-13 00:42:05 - End Time 2025-02-13 03:42:05 [2025-02-13 03:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463728', 'tblTempUsageDetail_20' ) start [2025-02-13 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463728', 'tblTempUsageDetail_20' ) end [2025-02-13 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463728', 'tblTempVendorCDR_20' ) start [2025-02-13 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463728', 'tblTempVendorCDR_20' ) end [2025-02-13 03:42:19] Production.INFO: ProcessCDR(1,14463728,1,1,2) [2025-02-13 03:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463728', 'tblTempUsageDetail_20' ) start [2025-02-13 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463728', 'tblTempUsageDetail_20' ) end [2025-02-13 03:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 03:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 03:42:22] Production.INFO: ==19107== Releasing lock... [2025-02-13 03:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 03:42:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-13 03:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 00:43:05 [end_date_ymd] => 2025-02-13 03:43:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 00:43:05' and `end` < '2025-02-13 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-02-13 03:43:19] Production.INFO: count ==300 [2025-02-13 03:43:19] Production.ERROR: pbx CDR StartTime 2025-02-13 00:43:05 - End Time 2025-02-13 03:43:05 [2025-02-13 03:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463733', 'tblTempUsageDetail_20' ) start [2025-02-13 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463733', 'tblTempUsageDetail_20' ) end [2025-02-13 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463733', 'tblTempVendorCDR_20' ) start [2025-02-13 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463733', 'tblTempVendorCDR_20' ) end [2025-02-13 03:43:19] Production.INFO: ProcessCDR(1,14463733,1,1,2) [2025-02-13 03:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463733', 'tblTempUsageDetail_20' ) start [2025-02-13 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463733', 'tblTempUsageDetail_20' ) end [2025-02-13 03:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 03:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 03:43:22] Production.INFO: ==19199== Releasing lock... [2025-02-13 03:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 03:43:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-13 03:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 00:44:05 [end_date_ymd] => 2025-02-13 03:44:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 00:44:05' and `end` < '2025-02-13 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-02-13 03:44:19] Production.INFO: count ==300 [2025-02-13 03:44:19] Production.ERROR: pbx CDR StartTime 2025-02-13 00:44:05 - End Time 2025-02-13 03:44:05 [2025-02-13 03:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463738', 'tblTempUsageDetail_20' ) start [2025-02-13 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463738', 'tblTempUsageDetail_20' ) end [2025-02-13 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463738', 'tblTempVendorCDR_20' ) start [2025-02-13 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463738', 'tblTempVendorCDR_20' ) end [2025-02-13 03:44:19] Production.INFO: ProcessCDR(1,14463738,1,1,2) [2025-02-13 03:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463738', 'tblTempUsageDetail_20' ) start [2025-02-13 03:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463738', 'tblTempUsageDetail_20' ) end [2025-02-13 03:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 03:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 03:44:23] Production.INFO: ==19276== Releasing lock... [2025-02-13 03:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 03:44:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-13 03:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 00:45:04 [end_date_ymd] => 2025-02-13 03:45:04 [RateCDR] => 1 ) [2025-02-13 03: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-02-13 00:45:04' and `end` < '2025-02-13 03: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-02-13 03:45:17] Production.INFO: count ==300 [2025-02-13 03:45:17] Production.ERROR: pbx CDR StartTime 2025-02-13 00:45:04 - End Time 2025-02-13 03:45:04 [2025-02-13 03:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463743', 'tblTempUsageDetail_20' ) start [2025-02-13 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463743', 'tblTempUsageDetail_20' ) end [2025-02-13 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463743', 'tblTempVendorCDR_20' ) start [2025-02-13 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463743', 'tblTempVendorCDR_20' ) end [2025-02-13 03:45:17] Production.INFO: ProcessCDR(1,14463743,1,1,2) [2025-02-13 03:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463743', 'tblTempUsageDetail_20' ) start [2025-02-13 03:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463743', 'tblTempUsageDetail_20' ) end [2025-02-13 03:45:20] Production.ERROR: pbx prc_insertCDR start [2025-02-13 03:45:20] Production.ERROR: pbx prc_insertCDR end [2025-02-13 03:45:20] Production.INFO: ==19368== Releasing lock... [2025-02-13 03:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 03:45:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-13 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 00:46:05 [end_date_ymd] => 2025-02-13 03:46:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 00:46:05' and `end` < '2025-02-13 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-02-13 03:46:19] Production.INFO: count ==298 [2025-02-13 03:46:19] Production.ERROR: pbx CDR StartTime 2025-02-13 00:46:05 - End Time 2025-02-13 03:46:05 [2025-02-13 03:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463748', 'tblTempUsageDetail_20' ) start [2025-02-13 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463748', 'tblTempUsageDetail_20' ) end [2025-02-13 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463748', 'tblTempVendorCDR_20' ) start [2025-02-13 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463748', 'tblTempVendorCDR_20' ) end [2025-02-13 03:46:19] Production.INFO: ProcessCDR(1,14463748,1,1,2) [2025-02-13 03:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463748', 'tblTempUsageDetail_20' ) start [2025-02-13 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463748', 'tblTempUsageDetail_20' ) end [2025-02-13 03:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 03:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 03:46:22] Production.INFO: ==19450== Releasing lock... [2025-02-13 03:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 03:46:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-13 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 00:47:05 [end_date_ymd] => 2025-02-13 03:47:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 00:47:05' and `end` < '2025-02-13 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-02-13 03:47:18] Production.INFO: count ==298 [2025-02-13 03:47:18] Production.ERROR: pbx CDR StartTime 2025-02-13 00:47:05 - End Time 2025-02-13 03:47:05 [2025-02-13 03:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463753', 'tblTempUsageDetail_20' ) start [2025-02-13 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463753', 'tblTempUsageDetail_20' ) end [2025-02-13 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463753', 'tblTempVendorCDR_20' ) start [2025-02-13 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463753', 'tblTempVendorCDR_20' ) end [2025-02-13 03:47:18] Production.INFO: ProcessCDR(1,14463753,1,1,2) [2025-02-13 03:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463753', 'tblTempUsageDetail_20' ) start [2025-02-13 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463753', 'tblTempUsageDetail_20' ) end [2025-02-13 03:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 03:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 03:47:22] Production.INFO: ==19531== Releasing lock... [2025-02-13 03:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 03:47:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-13 03:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 00:48:05 [end_date_ymd] => 2025-02-13 03:48:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 00:48:05' and `end` < '2025-02-13 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-02-13 03:48:20] Production.INFO: count ==293 [2025-02-13 03:48:20] Production.ERROR: pbx CDR StartTime 2025-02-13 00:48:05 - End Time 2025-02-13 03:48:05 [2025-02-13 03:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 03:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463758', 'tblTempUsageDetail_20' ) start [2025-02-13 03:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463758', 'tblTempUsageDetail_20' ) end [2025-02-13 03:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463758', 'tblTempVendorCDR_20' ) start [2025-02-13 03:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463758', 'tblTempVendorCDR_20' ) end [2025-02-13 03:48:20] Production.INFO: ProcessCDR(1,14463758,1,1,2) [2025-02-13 03:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463758', 'tblTempUsageDetail_20' ) start [2025-02-13 03:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463758', 'tblTempUsageDetail_20' ) end [2025-02-13 03:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 03:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 03:48:23] Production.INFO: ==19616== Releasing lock... [2025-02-13 03:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 03:48:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-13 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 00:49:05 [end_date_ymd] => 2025-02-13 03:49:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 00:49:05' and `end` < '2025-02-13 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-02-13 03:49:19] Production.INFO: count ==293 [2025-02-13 03:49:19] Production.ERROR: pbx CDR StartTime 2025-02-13 00:49:05 - End Time 2025-02-13 03:49:05 [2025-02-13 03:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463763', 'tblTempUsageDetail_20' ) start [2025-02-13 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463763', 'tblTempUsageDetail_20' ) end [2025-02-13 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463763', 'tblTempVendorCDR_20' ) start [2025-02-13 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463763', 'tblTempVendorCDR_20' ) end [2025-02-13 03:49:19] Production.INFO: ProcessCDR(1,14463763,1,1,2) [2025-02-13 03:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463763', 'tblTempUsageDetail_20' ) start [2025-02-13 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463763', 'tblTempUsageDetail_20' ) end [2025-02-13 03:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 03:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 03:49:22] Production.INFO: ==19701== Releasing lock... [2025-02-13 03:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 03:49:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-13 03:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 00:50:06 [end_date_ymd] => 2025-02-13 03:50:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 00:50:06' and `end` < '2025-02-13 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-02-13 03:50:20] Production.INFO: count ==289 [2025-02-13 03:50:20] Production.ERROR: pbx CDR StartTime 2025-02-13 00:50:06 - End Time 2025-02-13 03:50:06 [2025-02-13 03:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 03:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463769', 'tblTempUsageDetail_20' ) start [2025-02-13 03:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463769', 'tblTempUsageDetail_20' ) end [2025-02-13 03:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463769', 'tblTempVendorCDR_20' ) start [2025-02-13 03:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463769', 'tblTempVendorCDR_20' ) end [2025-02-13 03:50:20] Production.INFO: ProcessCDR(1,14463769,1,1,2) [2025-02-13 03:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463769', 'tblTempUsageDetail_20' ) start [2025-02-13 03:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463769', 'tblTempUsageDetail_20' ) end [2025-02-13 03:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 03:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 03:50:23] Production.INFO: ==19780== Releasing lock... [2025-02-13 03:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 03:50:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-13 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 00:51:05 [end_date_ymd] => 2025-02-13 03:51:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 00:51:05' and `end` < '2025-02-13 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-02-13 03:51:18] Production.INFO: count ==283 [2025-02-13 03:51:18] Production.ERROR: pbx CDR StartTime 2025-02-13 00:51:05 - End Time 2025-02-13 03:51:05 [2025-02-13 03:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463774', 'tblTempUsageDetail_20' ) start [2025-02-13 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463774', 'tblTempUsageDetail_20' ) end [2025-02-13 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463774', 'tblTempVendorCDR_20' ) start [2025-02-13 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463774', 'tblTempVendorCDR_20' ) end [2025-02-13 03:51:18] Production.INFO: ProcessCDR(1,14463774,1,1,2) [2025-02-13 03:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463774', 'tblTempUsageDetail_20' ) start [2025-02-13 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463774', 'tblTempUsageDetail_20' ) end [2025-02-13 03:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 03:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 03:51:21] Production.INFO: ==19863== Releasing lock... [2025-02-13 03:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 03:51:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-13 03:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 00:52:04 [end_date_ymd] => 2025-02-13 03:52:04 [RateCDR] => 1 ) [2025-02-13 03:52: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-02-13 00:52:04' and `end` < '2025-02-13 03:52: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-02-13 03:52:18] Production.INFO: count ==282 [2025-02-13 03:52:18] Production.ERROR: pbx CDR StartTime 2025-02-13 00:52:04 - End Time 2025-02-13 03:52:04 [2025-02-13 03:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463779', 'tblTempUsageDetail_20' ) start [2025-02-13 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463779', 'tblTempUsageDetail_20' ) end [2025-02-13 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463779', 'tblTempVendorCDR_20' ) start [2025-02-13 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463779', 'tblTempVendorCDR_20' ) end [2025-02-13 03:52:18] Production.INFO: ProcessCDR(1,14463779,1,1,2) [2025-02-13 03:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463779', 'tblTempUsageDetail_20' ) start [2025-02-13 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463779', 'tblTempUsageDetail_20' ) end [2025-02-13 03:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 03:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 03:52:21] Production.INFO: ==19946== Releasing lock... [2025-02-13 03:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 03:52:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-13 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 00:53:05 [end_date_ymd] => 2025-02-13 03:53:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 00:53:05' and `end` < '2025-02-13 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-02-13 03:53:19] Production.INFO: count ==282 [2025-02-13 03:53:19] Production.ERROR: pbx CDR StartTime 2025-02-13 00:53:05 - End Time 2025-02-13 03:53:05 [2025-02-13 03:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463784', 'tblTempUsageDetail_20' ) start [2025-02-13 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463784', 'tblTempUsageDetail_20' ) end [2025-02-13 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463784', 'tblTempVendorCDR_20' ) start [2025-02-13 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463784', 'tblTempVendorCDR_20' ) end [2025-02-13 03:53:19] Production.INFO: ProcessCDR(1,14463784,1,1,2) [2025-02-13 03:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463784', 'tblTempUsageDetail_20' ) start [2025-02-13 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463784', 'tblTempUsageDetail_20' ) end [2025-02-13 03:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 03:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 03:53:22] Production.INFO: ==20031== Releasing lock... [2025-02-13 03:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 03:53:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-13 03:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 00:54:04 [end_date_ymd] => 2025-02-13 03:54:04 [RateCDR] => 1 ) [2025-02-13 03:54: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-02-13 00:54:04' and `end` < '2025-02-13 03:54: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-02-13 03:54:18] Production.INFO: count ==282 [2025-02-13 03:54:18] Production.ERROR: pbx CDR StartTime 2025-02-13 00:54:04 - End Time 2025-02-13 03:54:04 [2025-02-13 03:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463789', 'tblTempUsageDetail_20' ) start [2025-02-13 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463789', 'tblTempUsageDetail_20' ) end [2025-02-13 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463789', 'tblTempVendorCDR_20' ) start [2025-02-13 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463789', 'tblTempVendorCDR_20' ) end [2025-02-13 03:54:18] Production.INFO: ProcessCDR(1,14463789,1,1,2) [2025-02-13 03:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463789', 'tblTempUsageDetail_20' ) start [2025-02-13 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463789', 'tblTempUsageDetail_20' ) end [2025-02-13 03:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 03:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 03:54:21] Production.INFO: ==20109== Releasing lock... [2025-02-13 03:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 03:54:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-13 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 00:55:05 [end_date_ymd] => 2025-02-13 03:55:05 [RateCDR] => 1 ) [2025-02-13 03: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-02-13 00:55:05' and `end` < '2025-02-13 03: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-02-13 03:55:18] Production.INFO: count ==282 [2025-02-13 03:55:18] Production.ERROR: pbx CDR StartTime 2025-02-13 00:55:05 - End Time 2025-02-13 03:55:05 [2025-02-13 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463794', 'tblTempUsageDetail_20' ) start [2025-02-13 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463794', 'tblTempUsageDetail_20' ) end [2025-02-13 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463794', 'tblTempVendorCDR_20' ) start [2025-02-13 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463794', 'tblTempVendorCDR_20' ) end [2025-02-13 03:55:18] Production.INFO: ProcessCDR(1,14463794,1,1,2) [2025-02-13 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463794', 'tblTempUsageDetail_20' ) start [2025-02-13 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463794', 'tblTempUsageDetail_20' ) end [2025-02-13 03:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 03:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 03:55:21] Production.INFO: ==20194== Releasing lock... [2025-02-13 03:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 03:55:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-13 03:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 00:56:05 [end_date_ymd] => 2025-02-13 03:56:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 00:56:05' and `end` < '2025-02-13 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-02-13 03:56:19] Production.INFO: count ==282 [2025-02-13 03:56:19] Production.ERROR: pbx CDR StartTime 2025-02-13 00:56:05 - End Time 2025-02-13 03:56:05 [2025-02-13 03:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463799', 'tblTempUsageDetail_20' ) start [2025-02-13 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463799', 'tblTempUsageDetail_20' ) end [2025-02-13 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463799', 'tblTempVendorCDR_20' ) start [2025-02-13 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463799', 'tblTempVendorCDR_20' ) end [2025-02-13 03:56:19] Production.INFO: ProcessCDR(1,14463799,1,1,2) [2025-02-13 03:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463799', 'tblTempUsageDetail_20' ) start [2025-02-13 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463799', 'tblTempUsageDetail_20' ) end [2025-02-13 03:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 03:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 03:56:22] Production.INFO: ==20282== Releasing lock... [2025-02-13 03:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 03:56:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-13 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 00:57:05 [end_date_ymd] => 2025-02-13 03:57:05 [RateCDR] => 1 ) [2025-02-13 03: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-02-13 00:57:05' and `end` < '2025-02-13 03: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-02-13 03:57:18] Production.INFO: count ==282 [2025-02-13 03:57:18] Production.ERROR: pbx CDR StartTime 2025-02-13 00:57:05 - End Time 2025-02-13 03:57:05 [2025-02-13 03:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463804', 'tblTempUsageDetail_20' ) start [2025-02-13 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463804', 'tblTempUsageDetail_20' ) end [2025-02-13 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463804', 'tblTempVendorCDR_20' ) start [2025-02-13 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463804', 'tblTempVendorCDR_20' ) end [2025-02-13 03:57:18] Production.INFO: ProcessCDR(1,14463804,1,1,2) [2025-02-13 03:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463804', 'tblTempUsageDetail_20' ) start [2025-02-13 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463804', 'tblTempUsageDetail_20' ) end [2025-02-13 03:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 03:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 03:57:21] Production.INFO: ==20362== Releasing lock... [2025-02-13 03:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 03:57:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-13 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 00:58:05 [end_date_ymd] => 2025-02-13 03:58:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 00:58:05' and `end` < '2025-02-13 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-02-13 03:58:18] Production.INFO: count ==282 [2025-02-13 03:58:18] Production.ERROR: pbx CDR StartTime 2025-02-13 00:58:05 - End Time 2025-02-13 03:58:05 [2025-02-13 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463809', 'tblTempUsageDetail_20' ) start [2025-02-13 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463809', 'tblTempUsageDetail_20' ) end [2025-02-13 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463809', 'tblTempVendorCDR_20' ) start [2025-02-13 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463809', 'tblTempVendorCDR_20' ) end [2025-02-13 03:58:18] Production.INFO: ProcessCDR(1,14463809,1,1,2) [2025-02-13 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463809', 'tblTempUsageDetail_20' ) start [2025-02-13 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463809', 'tblTempUsageDetail_20' ) end [2025-02-13 03:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 03:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 03:58:21] Production.INFO: ==20485== Releasing lock... [2025-02-13 03:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 03:58:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-13 03:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 00:59:04 [end_date_ymd] => 2025-02-13 03:59:04 [RateCDR] => 1 ) [2025-02-13 03: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-02-13 00:59:04' and `end` < '2025-02-13 03: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-02-13 03:59:18] Production.INFO: count ==282 [2025-02-13 03:59:18] Production.ERROR: pbx CDR StartTime 2025-02-13 00:59:04 - End Time 2025-02-13 03:59:04 [2025-02-13 03:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463814', 'tblTempUsageDetail_20' ) start [2025-02-13 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463814', 'tblTempUsageDetail_20' ) end [2025-02-13 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463814', 'tblTempVendorCDR_20' ) start [2025-02-13 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463814', 'tblTempVendorCDR_20' ) end [2025-02-13 03:59:18] Production.INFO: ProcessCDR(1,14463814,1,1,2) [2025-02-13 03:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 03:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463814', 'tblTempUsageDetail_20' ) start [2025-02-13 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463814', 'tblTempUsageDetail_20' ) end [2025-02-13 03:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 03:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 03:59:21] Production.INFO: ==20565== Releasing lock... [2025-02-13 03:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 03:59:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-13 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 01:00:06 [end_date_ymd] => 2025-02-13 04:00:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 01:00:06' and `end` < '2025-02-13 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-02-13 04:00:19] Production.INFO: count ==279 [2025-02-13 04:00:19] Production.ERROR: pbx CDR StartTime 2025-02-13 01:00:06 - End Time 2025-02-13 04:00:06 [2025-02-13 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463821', 'tblTempUsageDetail_20' ) start [2025-02-13 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463821', 'tblTempUsageDetail_20' ) end [2025-02-13 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463821', 'tblTempVendorCDR_20' ) start [2025-02-13 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463821', 'tblTempVendorCDR_20' ) end [2025-02-13 04:00:19] Production.INFO: ProcessCDR(1,14463821,1,1,2) [2025-02-13 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463821', 'tblTempUsageDetail_20' ) start [2025-02-13 04:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463821', 'tblTempUsageDetail_20' ) end [2025-02-13 04:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 04:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 04:00:24] Production.INFO: ==20647== Releasing lock... [2025-02-13 04:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 04:00:24] Production.INFO: 29.5 MB #Memory Used# [2025-02-13 04:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 01:01:05 [end_date_ymd] => 2025-02-13 04:01:05 [RateCDR] => 1 ) [2025-02-13 04: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-02-13 01:01:05' and `end` < '2025-02-13 04: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-02-13 04:01:17] Production.INFO: count ==273 [2025-02-13 04:01:17] Production.ERROR: pbx CDR StartTime 2025-02-13 01:01:05 - End Time 2025-02-13 04:01:05 [2025-02-13 04:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463826', 'tblTempUsageDetail_20' ) start [2025-02-13 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463826', 'tblTempUsageDetail_20' ) end [2025-02-13 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463826', 'tblTempVendorCDR_20' ) start [2025-02-13 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463826', 'tblTempVendorCDR_20' ) end [2025-02-13 04:01:17] Production.INFO: ProcessCDR(1,14463826,1,1,2) [2025-02-13 04:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463826', 'tblTempUsageDetail_20' ) start [2025-02-13 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463826', 'tblTempUsageDetail_20' ) end [2025-02-13 04:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 04:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 04:01:21] Production.INFO: ==20752== Releasing lock... [2025-02-13 04:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 04:01:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-13 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 01:02:05 [end_date_ymd] => 2025-02-13 04:02:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 01:02:05' and `end` < '2025-02-13 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-02-13 04:02:19] Production.INFO: count ==273 [2025-02-13 04:02:19] Production.ERROR: pbx CDR StartTime 2025-02-13 01:02:05 - End Time 2025-02-13 04:02:05 [2025-02-13 04:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463831', 'tblTempUsageDetail_20' ) start [2025-02-13 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463831', 'tblTempUsageDetail_20' ) end [2025-02-13 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463831', 'tblTempVendorCDR_20' ) start [2025-02-13 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463831', 'tblTempVendorCDR_20' ) end [2025-02-13 04:02:19] Production.INFO: ProcessCDR(1,14463831,1,1,2) [2025-02-13 04:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463831', 'tblTempUsageDetail_20' ) start [2025-02-13 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463831', 'tblTempUsageDetail_20' ) end [2025-02-13 04:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 04:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 04:02:22] Production.INFO: ==20829== Releasing lock... [2025-02-13 04:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 04:02:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-13 04:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 01:03:04 [end_date_ymd] => 2025-02-13 04:03:04 [RateCDR] => 1 ) [2025-02-13 04:03: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-02-13 01:03:04' and `end` < '2025-02-13 04:03: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-02-13 04:03:17] Production.INFO: count ==273 [2025-02-13 04:03:17] Production.ERROR: pbx CDR StartTime 2025-02-13 01:03:04 - End Time 2025-02-13 04:03:04 [2025-02-13 04:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463836', 'tblTempUsageDetail_20' ) start [2025-02-13 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463836', 'tblTempUsageDetail_20' ) end [2025-02-13 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463836', 'tblTempVendorCDR_20' ) start [2025-02-13 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463836', 'tblTempVendorCDR_20' ) end [2025-02-13 04:03:17] Production.INFO: ProcessCDR(1,14463836,1,1,2) [2025-02-13 04:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463836', 'tblTempUsageDetail_20' ) start [2025-02-13 04:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463836', 'tblTempUsageDetail_20' ) end [2025-02-13 04:03:20] Production.ERROR: pbx prc_insertCDR start [2025-02-13 04:03:20] Production.ERROR: pbx prc_insertCDR end [2025-02-13 04:03:21] Production.INFO: ==20910== Releasing lock... [2025-02-13 04:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 04:03:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-13 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 01:04:05 [end_date_ymd] => 2025-02-13 04:04:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 01:04:05' and `end` < '2025-02-13 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-02-13 04:04:18] Production.INFO: count ==273 [2025-02-13 04:04:18] Production.ERROR: pbx CDR StartTime 2025-02-13 01:04:05 - End Time 2025-02-13 04:04:05 [2025-02-13 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463841', 'tblTempUsageDetail_20' ) start [2025-02-13 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463841', 'tblTempUsageDetail_20' ) end [2025-02-13 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463841', 'tblTempVendorCDR_20' ) start [2025-02-13 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463841', 'tblTempVendorCDR_20' ) end [2025-02-13 04:04:18] Production.INFO: ProcessCDR(1,14463841,1,1,2) [2025-02-13 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463841', 'tblTempUsageDetail_20' ) start [2025-02-13 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463841', 'tblTempUsageDetail_20' ) end [2025-02-13 04:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 04:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 04:04:21] Production.INFO: ==21001== Releasing lock... [2025-02-13 04:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 04:04:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-13 04:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 01:05:06 [end_date_ymd] => 2025-02-13 04:05:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 01:05:06' and `end` < '2025-02-13 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-02-13 04:05:19] Production.INFO: count ==277 [2025-02-13 04:05:19] Production.ERROR: pbx CDR StartTime 2025-02-13 01:05:06 - End Time 2025-02-13 04:05:06 [2025-02-13 04:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 04:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463846', 'tblTempUsageDetail_20' ) start [2025-02-13 04:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463846', 'tblTempUsageDetail_20' ) end [2025-02-13 04:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463846', 'tblTempVendorCDR_20' ) start [2025-02-13 04:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463846', 'tblTempVendorCDR_20' ) end [2025-02-13 04:05:19] Production.INFO: ProcessCDR(1,14463846,1,1,2) [2025-02-13 04:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463846', 'tblTempUsageDetail_20' ) start [2025-02-13 04:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463846', 'tblTempUsageDetail_20' ) end [2025-02-13 04:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 04:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 04:05:22] Production.INFO: ==21081== Releasing lock... [2025-02-13 04:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 04:05:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-13 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 01:06:05 [end_date_ymd] => 2025-02-13 04:06:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 01:06:05' and `end` < '2025-02-13 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-02-13 04:06:18] Production.INFO: count ==277 [2025-02-13 04:06:18] Production.ERROR: pbx CDR StartTime 2025-02-13 01:06:05 - End Time 2025-02-13 04:06:05 [2025-02-13 04:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463851', 'tblTempUsageDetail_20' ) start [2025-02-13 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463851', 'tblTempUsageDetail_20' ) end [2025-02-13 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463851', 'tblTempVendorCDR_20' ) start [2025-02-13 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463851', 'tblTempVendorCDR_20' ) end [2025-02-13 04:06:18] Production.INFO: ProcessCDR(1,14463851,1,1,2) [2025-02-13 04:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463851', 'tblTempUsageDetail_20' ) start [2025-02-13 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463851', 'tblTempUsageDetail_20' ) end [2025-02-13 04:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 04:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 04:06:21] Production.INFO: ==21164== Releasing lock... [2025-02-13 04:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 04:06:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-13 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 01:07:05 [end_date_ymd] => 2025-02-13 04:07:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 01:07:05' and `end` < '2025-02-13 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-02-13 04:07:19] Production.INFO: count ==278 [2025-02-13 04:07:19] Production.ERROR: pbx CDR StartTime 2025-02-13 01:07:05 - End Time 2025-02-13 04:07:05 [2025-02-13 04:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463856', 'tblTempUsageDetail_20' ) start [2025-02-13 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463856', 'tblTempUsageDetail_20' ) end [2025-02-13 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463856', 'tblTempVendorCDR_20' ) start [2025-02-13 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463856', 'tblTempVendorCDR_20' ) end [2025-02-13 04:07:19] Production.INFO: ProcessCDR(1,14463856,1,1,2) [2025-02-13 04:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463856', 'tblTempUsageDetail_20' ) start [2025-02-13 04:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463856', 'tblTempUsageDetail_20' ) end [2025-02-13 04:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 04:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 04:07:23] Production.INFO: ==21239== Releasing lock... [2025-02-13 04:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 04:07:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-13 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 01:08:05 [end_date_ymd] => 2025-02-13 04:08:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 01:08:05' and `end` < '2025-02-13 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-02-13 04:08:19] Production.INFO: count ==274 [2025-02-13 04:08:19] Production.ERROR: pbx CDR StartTime 2025-02-13 01:08:05 - End Time 2025-02-13 04:08:05 [2025-02-13 04:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463861', 'tblTempUsageDetail_20' ) start [2025-02-13 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463861', 'tblTempUsageDetail_20' ) end [2025-02-13 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463861', 'tblTempVendorCDR_20' ) start [2025-02-13 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463861', 'tblTempVendorCDR_20' ) end [2025-02-13 04:08:19] Production.INFO: ProcessCDR(1,14463861,1,1,2) [2025-02-13 04:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463861', 'tblTempUsageDetail_20' ) start [2025-02-13 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463861', 'tblTempUsageDetail_20' ) end [2025-02-13 04:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 04:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 04:08:22] Production.INFO: ==21324== Releasing lock... [2025-02-13 04:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 04:08:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-13 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 01:09:05 [end_date_ymd] => 2025-02-13 04:09:05 [RateCDR] => 1 ) [2025-02-13 04: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-02-13 01:09:05' and `end` < '2025-02-13 04: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-02-13 04:09:18] Production.INFO: count ==271 [2025-02-13 04:09:18] Production.ERROR: pbx CDR StartTime 2025-02-13 01:09:05 - End Time 2025-02-13 04:09:05 [2025-02-13 04:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463866', 'tblTempUsageDetail_20' ) start [2025-02-13 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463866', 'tblTempUsageDetail_20' ) end [2025-02-13 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463866', 'tblTempVendorCDR_20' ) start [2025-02-13 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463866', 'tblTempVendorCDR_20' ) end [2025-02-13 04:09:18] Production.INFO: ProcessCDR(1,14463866,1,1,2) [2025-02-13 04:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463866', 'tblTempUsageDetail_20' ) start [2025-02-13 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463866', 'tblTempUsageDetail_20' ) end [2025-02-13 04:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 04:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 04:09:21] Production.INFO: ==21407== Releasing lock... [2025-02-13 04:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 04:09:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-13 04:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 01:10:05 [end_date_ymd] => 2025-02-13 04:10:05 [RateCDR] => 1 ) [2025-02-13 04: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-02-13 01:10:05' and `end` < '2025-02-13 04: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-02-13 04:10:18] Production.INFO: count ==269 [2025-02-13 04:10:18] Production.ERROR: pbx CDR StartTime 2025-02-13 01:10:05 - End Time 2025-02-13 04:10:05 [2025-02-13 04:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463871', 'tblTempUsageDetail_20' ) start [2025-02-13 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463871', 'tblTempUsageDetail_20' ) end [2025-02-13 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463871', 'tblTempVendorCDR_20' ) start [2025-02-13 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463871', 'tblTempVendorCDR_20' ) end [2025-02-13 04:10:18] Production.INFO: ProcessCDR(1,14463871,1,1,2) [2025-02-13 04:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463871', 'tblTempUsageDetail_20' ) start [2025-02-13 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463871', 'tblTempUsageDetail_20' ) end [2025-02-13 04:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 04:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 04:10:22] Production.INFO: ==21496== Releasing lock... [2025-02-13 04:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 04:10:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-13 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 01:11:05 [end_date_ymd] => 2025-02-13 04:11:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 01:11:05' and `end` < '2025-02-13 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-02-13 04:11:19] Production.INFO: count ==259 [2025-02-13 04:11:19] Production.ERROR: pbx CDR StartTime 2025-02-13 01:11:05 - End Time 2025-02-13 04:11:05 [2025-02-13 04:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463877', 'tblTempUsageDetail_20' ) start [2025-02-13 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463877', 'tblTempUsageDetail_20' ) end [2025-02-13 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463877', 'tblTempVendorCDR_20' ) start [2025-02-13 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463877', 'tblTempVendorCDR_20' ) end [2025-02-13 04:11:19] Production.INFO: ProcessCDR(1,14463877,1,1,2) [2025-02-13 04:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463877', 'tblTempUsageDetail_20' ) start [2025-02-13 04:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463877', 'tblTempUsageDetail_20' ) end [2025-02-13 04:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 04:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 04:11:22] Production.INFO: ==21586== Releasing lock... [2025-02-13 04:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 04:11:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-13 04:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 01:12:06 [end_date_ymd] => 2025-02-13 04:12:06 [RateCDR] => 1 ) [2025-02-13 04: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-02-13 01:12:06' and `end` < '2025-02-13 04: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-02-13 04:12:19] Production.INFO: count ==259 [2025-02-13 04:12:19] Production.ERROR: pbx CDR StartTime 2025-02-13 01:12:06 - End Time 2025-02-13 04:12:06 [2025-02-13 04:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 04:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463882', 'tblTempUsageDetail_20' ) start [2025-02-13 04:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463882', 'tblTempUsageDetail_20' ) end [2025-02-13 04:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463882', 'tblTempVendorCDR_20' ) start [2025-02-13 04:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463882', 'tblTempVendorCDR_20' ) end [2025-02-13 04:12:19] Production.INFO: ProcessCDR(1,14463882,1,1,2) [2025-02-13 04:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463882', 'tblTempUsageDetail_20' ) start [2025-02-13 04:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463882', 'tblTempUsageDetail_20' ) end [2025-02-13 04:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 04:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 04:12:22] Production.INFO: ==21662== Releasing lock... [2025-02-13 04:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 04:12:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-13 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 01:13:05 [end_date_ymd] => 2025-02-13 04:13:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 01:13:05' and `end` < '2025-02-13 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-02-13 04:13:18] Production.INFO: count ==259 [2025-02-13 04:13:18] Production.ERROR: pbx CDR StartTime 2025-02-13 01:13:05 - End Time 2025-02-13 04:13:05 [2025-02-13 04:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463887', 'tblTempUsageDetail_20' ) start [2025-02-13 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463887', 'tblTempUsageDetail_20' ) end [2025-02-13 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463887', 'tblTempVendorCDR_20' ) start [2025-02-13 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463887', 'tblTempVendorCDR_20' ) end [2025-02-13 04:13:18] Production.INFO: ProcessCDR(1,14463887,1,1,2) [2025-02-13 04:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463887', 'tblTempUsageDetail_20' ) start [2025-02-13 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463887', 'tblTempUsageDetail_20' ) end [2025-02-13 04:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 04:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 04:13:21] Production.INFO: ==21786== Releasing lock... [2025-02-13 04:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 04:13:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-13 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 01:14:05 [end_date_ymd] => 2025-02-13 04:14:05 [RateCDR] => 1 ) [2025-02-13 04: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-02-13 01:14:05' and `end` < '2025-02-13 04: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-02-13 04:14:19] Production.INFO: count ==260 [2025-02-13 04:14:19] Production.ERROR: pbx CDR StartTime 2025-02-13 01:14:05 - End Time 2025-02-13 04:14:05 [2025-02-13 04:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 04:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463892', 'tblTempUsageDetail_20' ) start [2025-02-13 04:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463892', 'tblTempUsageDetail_20' ) end [2025-02-13 04:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463892', 'tblTempVendorCDR_20' ) start [2025-02-13 04:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463892', 'tblTempVendorCDR_20' ) end [2025-02-13 04:14:19] Production.INFO: ProcessCDR(1,14463892,1,1,2) [2025-02-13 04:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463892', 'tblTempUsageDetail_20' ) start [2025-02-13 04:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463892', 'tblTempUsageDetail_20' ) end [2025-02-13 04:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 04:14:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 04:14:23] Production.INFO: ==21865== Releasing lock... [2025-02-13 04:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 04:14:23] Production.INFO: 29.25 MB #Memory Used# [2025-02-13 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 01:15:05 [end_date_ymd] => 2025-02-13 04:15:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 01:15:05' and `end` < '2025-02-13 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-02-13 04:15:18] Production.INFO: count ==255 [2025-02-13 04:15:18] Production.ERROR: pbx CDR StartTime 2025-02-13 01:15:05 - End Time 2025-02-13 04:15:05 [2025-02-13 04:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463897', 'tblTempUsageDetail_20' ) start [2025-02-13 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463897', 'tblTempUsageDetail_20' ) end [2025-02-13 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463897', 'tblTempVendorCDR_20' ) start [2025-02-13 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463897', 'tblTempVendorCDR_20' ) end [2025-02-13 04:15:18] Production.INFO: ProcessCDR(1,14463897,1,1,2) [2025-02-13 04:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463897', 'tblTempUsageDetail_20' ) start [2025-02-13 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463897', 'tblTempUsageDetail_20' ) end [2025-02-13 04:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 04:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 04:15:21] Production.INFO: ==21945== Releasing lock... [2025-02-13 04:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 04:15:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-13 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 01:16:05 [end_date_ymd] => 2025-02-13 04:16:05 [RateCDR] => 1 ) [2025-02-13 04: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-02-13 01:16:05' and `end` < '2025-02-13 04: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-02-13 04:16:18] Production.INFO: count ==249 [2025-02-13 04:16:18] Production.ERROR: pbx CDR StartTime 2025-02-13 01:16:05 - End Time 2025-02-13 04:16:05 [2025-02-13 04:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463902', 'tblTempUsageDetail_20' ) start [2025-02-13 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463902', 'tblTempUsageDetail_20' ) end [2025-02-13 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463902', 'tblTempVendorCDR_20' ) start [2025-02-13 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463902', 'tblTempVendorCDR_20' ) end [2025-02-13 04:16:18] Production.INFO: ProcessCDR(1,14463902,1,1,2) [2025-02-13 04:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463902', 'tblTempUsageDetail_20' ) start [2025-02-13 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463902', 'tblTempUsageDetail_20' ) end [2025-02-13 04:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 04:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 04:16:21] Production.INFO: ==22027== Releasing lock... [2025-02-13 04:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 04:16:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-13 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 01:17:05 [end_date_ymd] => 2025-02-13 04:17:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 01:17:05' and `end` < '2025-02-13 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-02-13 04:17:19] Production.INFO: count ==249 [2025-02-13 04:17:19] Production.ERROR: pbx CDR StartTime 2025-02-13 01:17:05 - End Time 2025-02-13 04:17:05 [2025-02-13 04:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463907', 'tblTempUsageDetail_20' ) start [2025-02-13 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463907', 'tblTempUsageDetail_20' ) end [2025-02-13 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463907', 'tblTempVendorCDR_20' ) start [2025-02-13 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463907', 'tblTempVendorCDR_20' ) end [2025-02-13 04:17:19] Production.INFO: ProcessCDR(1,14463907,1,1,2) [2025-02-13 04:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463907', 'tblTempUsageDetail_20' ) start [2025-02-13 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463907', 'tblTempUsageDetail_20' ) end [2025-02-13 04:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 04:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 04:17:22] Production.INFO: ==22112== Releasing lock... [2025-02-13 04:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 04:17:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-13 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 01:18:05 [end_date_ymd] => 2025-02-13 04:18:05 [RateCDR] => 1 ) [2025-02-13 04: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-02-13 01:18:05' and `end` < '2025-02-13 04: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-02-13 04:18:18] Production.INFO: count ==249 [2025-02-13 04:18:18] Production.ERROR: pbx CDR StartTime 2025-02-13 01:18:05 - End Time 2025-02-13 04:18:05 [2025-02-13 04:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463912', 'tblTempUsageDetail_20' ) start [2025-02-13 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463912', 'tblTempUsageDetail_20' ) end [2025-02-13 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463912', 'tblTempVendorCDR_20' ) start [2025-02-13 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463912', 'tblTempVendorCDR_20' ) end [2025-02-13 04:18:18] Production.INFO: ProcessCDR(1,14463912,1,1,2) [2025-02-13 04:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463912', 'tblTempUsageDetail_20' ) start [2025-02-13 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463912', 'tblTempUsageDetail_20' ) end [2025-02-13 04:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 04:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 04:18:21] Production.INFO: ==22198== Releasing lock... [2025-02-13 04:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 04:18:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-13 04:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 01:19:04 [end_date_ymd] => 2025-02-13 04:19:04 [RateCDR] => 1 ) [2025-02-13 04: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-02-13 01:19:04' and `end` < '2025-02-13 04: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-02-13 04:19:17] Production.INFO: count ==245 [2025-02-13 04:19:17] Production.ERROR: pbx CDR StartTime 2025-02-13 01:19:04 - End Time 2025-02-13 04:19:04 [2025-02-13 04:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463917', 'tblTempUsageDetail_20' ) start [2025-02-13 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463917', 'tblTempUsageDetail_20' ) end [2025-02-13 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463917', 'tblTempVendorCDR_20' ) start [2025-02-13 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463917', 'tblTempVendorCDR_20' ) end [2025-02-13 04:19:17] Production.INFO: ProcessCDR(1,14463917,1,1,2) [2025-02-13 04:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463917', 'tblTempUsageDetail_20' ) start [2025-02-13 04:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463917', 'tblTempUsageDetail_20' ) end [2025-02-13 04:19:20] Production.ERROR: pbx prc_insertCDR start [2025-02-13 04:19:20] Production.ERROR: pbx prc_insertCDR end [2025-02-13 04:19:20] Production.INFO: ==22268== Releasing lock... [2025-02-13 04:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 04:19:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-13 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 01:20:06 [end_date_ymd] => 2025-02-13 04:20:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 01:20:06' and `end` < '2025-02-13 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-02-13 04:20:20] Production.INFO: count ==238 [2025-02-13 04:20:20] Production.ERROR: pbx CDR StartTime 2025-02-13 01:20:06 - End Time 2025-02-13 04:20:06 [2025-02-13 04:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 04:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463923', 'tblTempUsageDetail_20' ) start [2025-02-13 04:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463923', 'tblTempUsageDetail_20' ) end [2025-02-13 04:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463923', 'tblTempVendorCDR_20' ) start [2025-02-13 04:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463923', 'tblTempVendorCDR_20' ) end [2025-02-13 04:20:20] Production.INFO: ProcessCDR(1,14463923,1,1,2) [2025-02-13 04:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463923', 'tblTempUsageDetail_20' ) start [2025-02-13 04:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463923', 'tblTempUsageDetail_20' ) end [2025-02-13 04:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 04:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 04:20:23] Production.INFO: ==22345== Releasing lock... [2025-02-13 04:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 04:20:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-13 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 01:21:05 [end_date_ymd] => 2025-02-13 04:21:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 01:21:05' and `end` < '2025-02-13 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-02-13 04:21:18] Production.INFO: count ==213 [2025-02-13 04:21:18] Production.ERROR: pbx CDR StartTime 2025-02-13 01:21:05 - End Time 2025-02-13 04:21:05 [2025-02-13 04:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463928', 'tblTempUsageDetail_20' ) start [2025-02-13 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463928', 'tblTempUsageDetail_20' ) end [2025-02-13 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463928', 'tblTempVendorCDR_20' ) start [2025-02-13 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463928', 'tblTempVendorCDR_20' ) end [2025-02-13 04:21:18] Production.INFO: ProcessCDR(1,14463928,1,1,2) [2025-02-13 04:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463928', 'tblTempUsageDetail_20' ) start [2025-02-13 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463928', 'tblTempUsageDetail_20' ) end [2025-02-13 04:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 04:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 04:21:21] Production.INFO: ==22421== Releasing lock... [2025-02-13 04:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 04:21:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-13 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 01:22:05 [end_date_ymd] => 2025-02-13 04:22:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 01:22:05' and `end` < '2025-02-13 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-02-13 04:22:19] Production.INFO: count ==208 [2025-02-13 04:22:19] Production.ERROR: pbx CDR StartTime 2025-02-13 01:22:05 - End Time 2025-02-13 04:22:05 [2025-02-13 04:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463933', 'tblTempUsageDetail_20' ) start [2025-02-13 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463933', 'tblTempUsageDetail_20' ) end [2025-02-13 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463933', 'tblTempVendorCDR_20' ) start [2025-02-13 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463933', 'tblTempVendorCDR_20' ) end [2025-02-13 04:22:19] Production.INFO: ProcessCDR(1,14463933,1,1,2) [2025-02-13 04:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463933', 'tblTempUsageDetail_20' ) start [2025-02-13 04:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463933', 'tblTempUsageDetail_20' ) end [2025-02-13 04:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 04:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 04:22:22] Production.INFO: ==22494== Releasing lock... [2025-02-13 04:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 04:22:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-13 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 01:23:05 [end_date_ymd] => 2025-02-13 04:23:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 01:23:05' and `end` < '2025-02-13 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-02-13 04:23:18] Production.INFO: count ==208 [2025-02-13 04:23:18] Production.ERROR: pbx CDR StartTime 2025-02-13 01:23:05 - End Time 2025-02-13 04:23:05 [2025-02-13 04:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463938', 'tblTempUsageDetail_20' ) start [2025-02-13 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463938', 'tblTempUsageDetail_20' ) end [2025-02-13 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463938', 'tblTempVendorCDR_20' ) start [2025-02-13 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463938', 'tblTempVendorCDR_20' ) end [2025-02-13 04:23:18] Production.INFO: ProcessCDR(1,14463938,1,1,2) [2025-02-13 04:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463938', 'tblTempUsageDetail_20' ) start [2025-02-13 04:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463938', 'tblTempUsageDetail_20' ) end [2025-02-13 04:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 04:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 04:23:22] Production.INFO: ==22570== Releasing lock... [2025-02-13 04:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 04:23:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-13 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 01:24:05 [end_date_ymd] => 2025-02-13 04:24:05 [RateCDR] => 1 ) [2025-02-13 04: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-02-13 01:24:05' and `end` < '2025-02-13 04: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-02-13 04:24:19] Production.INFO: count ==208 [2025-02-13 04:24:19] Production.ERROR: pbx CDR StartTime 2025-02-13 01:24:05 - End Time 2025-02-13 04:24:05 [2025-02-13 04:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463943', 'tblTempUsageDetail_20' ) start [2025-02-13 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463943', 'tblTempUsageDetail_20' ) end [2025-02-13 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463943', 'tblTempVendorCDR_20' ) start [2025-02-13 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463943', 'tblTempVendorCDR_20' ) end [2025-02-13 04:24:19] Production.INFO: ProcessCDR(1,14463943,1,1,2) [2025-02-13 04:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463943', 'tblTempUsageDetail_20' ) start [2025-02-13 04:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463943', 'tblTempUsageDetail_20' ) end [2025-02-13 04:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 04:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 04:24:22] Production.INFO: ==22650== Releasing lock... [2025-02-13 04:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 04:24:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-13 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 01:25:05 [end_date_ymd] => 2025-02-13 04:25:05 [RateCDR] => 1 ) [2025-02-13 04:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 01:25:05' and `end` < '2025-02-13 04:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-13 04:25:18] Production.INFO: count ==203 [2025-02-13 04:25:18] Production.ERROR: pbx CDR StartTime 2025-02-13 01:25:05 - End Time 2025-02-13 04:25:05 [2025-02-13 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463948', 'tblTempUsageDetail_20' ) start [2025-02-13 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463948', 'tblTempUsageDetail_20' ) end [2025-02-13 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463948', 'tblTempVendorCDR_20' ) start [2025-02-13 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463948', 'tblTempVendorCDR_20' ) end [2025-02-13 04:25:18] Production.INFO: ProcessCDR(1,14463948,1,1,2) [2025-02-13 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463948', 'tblTempUsageDetail_20' ) start [2025-02-13 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463948', 'tblTempUsageDetail_20' ) end [2025-02-13 04:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 04:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 04:25:21] Production.INFO: ==22723== Releasing lock... [2025-02-13 04:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 04:25:21] Production.INFO: 29 MB #Memory Used# [2025-02-13 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 01:26:05 [end_date_ymd] => 2025-02-13 04:26:05 [RateCDR] => 1 ) [2025-02-13 04: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-02-13 01:26:05' and `end` < '2025-02-13 04: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-02-13 04:26:18] Production.INFO: count ==200 [2025-02-13 04:26:18] Production.ERROR: pbx CDR StartTime 2025-02-13 01:26:05 - End Time 2025-02-13 04:26:05 [2025-02-13 04:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463953', 'tblTempUsageDetail_20' ) start [2025-02-13 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463953', 'tblTempUsageDetail_20' ) end [2025-02-13 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463953', 'tblTempVendorCDR_20' ) start [2025-02-13 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463953', 'tblTempVendorCDR_20' ) end [2025-02-13 04:26:18] Production.INFO: ProcessCDR(1,14463953,1,1,2) [2025-02-13 04:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463953', 'tblTempUsageDetail_20' ) start [2025-02-13 04:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463953', 'tblTempUsageDetail_20' ) end [2025-02-13 04:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 04:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 04:26:22] Production.INFO: ==22798== Releasing lock... [2025-02-13 04:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 04:26:22] Production.INFO: 29 MB #Memory Used# [2025-02-13 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 01:27:05 [end_date_ymd] => 2025-02-13 04:27:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 01:27:05' and `end` < '2025-02-13 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-02-13 04:27:18] Production.INFO: count ==200 [2025-02-13 04:27:18] Production.ERROR: pbx CDR StartTime 2025-02-13 01:27:05 - End Time 2025-02-13 04:27:05 [2025-02-13 04:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463958', 'tblTempUsageDetail_20' ) start [2025-02-13 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463958', 'tblTempUsageDetail_20' ) end [2025-02-13 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463958', 'tblTempVendorCDR_20' ) start [2025-02-13 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463958', 'tblTempVendorCDR_20' ) end [2025-02-13 04:27:18] Production.INFO: ProcessCDR(1,14463958,1,1,2) [2025-02-13 04:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463958', 'tblTempUsageDetail_20' ) start [2025-02-13 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463958', 'tblTempUsageDetail_20' ) end [2025-02-13 04:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 04:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 04:27:21] Production.INFO: ==22870== Releasing lock... [2025-02-13 04:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 04:27:21] Production.INFO: 29 MB #Memory Used# [2025-02-13 04:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 01:28:04 [end_date_ymd] => 2025-02-13 04:28:04 [RateCDR] => 1 ) [2025-02-13 04: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-02-13 01:28:04' and `end` < '2025-02-13 04: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-02-13 04:28:17] Production.INFO: count ==200 [2025-02-13 04:28:17] Production.ERROR: pbx CDR StartTime 2025-02-13 01:28:04 - End Time 2025-02-13 04:28:04 [2025-02-13 04:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463963', 'tblTempUsageDetail_20' ) start [2025-02-13 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463963', 'tblTempUsageDetail_20' ) end [2025-02-13 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463963', 'tblTempVendorCDR_20' ) start [2025-02-13 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463963', 'tblTempVendorCDR_20' ) end [2025-02-13 04:28:17] Production.INFO: ProcessCDR(1,14463963,1,1,2) [2025-02-13 04:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463963', 'tblTempUsageDetail_20' ) start [2025-02-13 04:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463963', 'tblTempUsageDetail_20' ) end [2025-02-13 04:28:20] Production.ERROR: pbx prc_insertCDR start [2025-02-13 04:28:20] Production.ERROR: pbx prc_insertCDR end [2025-02-13 04:28:20] Production.INFO: ==22983== Releasing lock... [2025-02-13 04:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 04:28:20] Production.INFO: 29 MB #Memory Used# [2025-02-13 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 01:29:05 [end_date_ymd] => 2025-02-13 04:29:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 01:29:05' and `end` < '2025-02-13 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-02-13 04:29:20] Production.INFO: count ==201 [2025-02-13 04:29:20] Production.ERROR: pbx CDR StartTime 2025-02-13 01:29:05 - End Time 2025-02-13 04:29:05 [2025-02-13 04:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 04:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463968', 'tblTempUsageDetail_20' ) start [2025-02-13 04:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463968', 'tblTempUsageDetail_20' ) end [2025-02-13 04:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463968', 'tblTempVendorCDR_20' ) start [2025-02-13 04:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463968', 'tblTempVendorCDR_20' ) end [2025-02-13 04:29:20] Production.INFO: ProcessCDR(1,14463968,1,1,2) [2025-02-13 04:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463968', 'tblTempUsageDetail_20' ) start [2025-02-13 04:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463968', 'tblTempUsageDetail_20' ) end [2025-02-13 04:29:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 04:29:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 04:29:24] Production.INFO: ==23059== Releasing lock... [2025-02-13 04:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 04:29:24] Production.INFO: 29 MB #Memory Used# [2025-02-13 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 01:30:06 [end_date_ymd] => 2025-02-13 04:30:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 01:30:06' and `end` < '2025-02-13 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-02-13 04:30:19] Production.INFO: count ==197 [2025-02-13 04:30:19] Production.ERROR: pbx CDR StartTime 2025-02-13 01:30:06 - End Time 2025-02-13 04:30:06 [2025-02-13 04:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463973', 'tblTempUsageDetail_20' ) start [2025-02-13 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463973', 'tblTempUsageDetail_20' ) end [2025-02-13 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463973', 'tblTempVendorCDR_20' ) start [2025-02-13 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463973', 'tblTempVendorCDR_20' ) end [2025-02-13 04:30:19] Production.INFO: ProcessCDR(1,14463973,1,1,2) [2025-02-13 04:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463973', 'tblTempUsageDetail_20' ) start [2025-02-13 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463973', 'tblTempUsageDetail_20' ) end [2025-02-13 04:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 04:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 04:30:22] Production.INFO: ==23137== Releasing lock... [2025-02-13 04:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 04:30:22] Production.INFO: 29 MB #Memory Used# [2025-02-13 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 01:31:05 [end_date_ymd] => 2025-02-13 04:31:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 01:31:05' and `end` < '2025-02-13 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-02-13 04:31:19] Production.INFO: count ==192 [2025-02-13 04:31:19] Production.ERROR: pbx CDR StartTime 2025-02-13 01:31:05 - End Time 2025-02-13 04:31:05 [2025-02-13 04:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463980', 'tblTempUsageDetail_20' ) start [2025-02-13 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463980', 'tblTempUsageDetail_20' ) end [2025-02-13 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463980', 'tblTempVendorCDR_20' ) start [2025-02-13 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463980', 'tblTempVendorCDR_20' ) end [2025-02-13 04:31:19] Production.INFO: ProcessCDR(1,14463980,1,1,2) [2025-02-13 04:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463980', 'tblTempUsageDetail_20' ) start [2025-02-13 04:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463980', 'tblTempUsageDetail_20' ) end [2025-02-13 04:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 04:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 04:31:23] Production.INFO: ==23211== Releasing lock... [2025-02-13 04:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 04:31:23] Production.INFO: 29 MB #Memory Used# [2025-02-13 04:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 01:32:06 [end_date_ymd] => 2025-02-13 04:32:06 [RateCDR] => 1 ) [2025-02-13 04: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-02-13 01:32:06' and `end` < '2025-02-13 04: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-02-13 04:32:20] Production.INFO: count ==192 [2025-02-13 04:32:20] Production.ERROR: pbx CDR StartTime 2025-02-13 01:32:06 - End Time 2025-02-13 04:32:06 [2025-02-13 04:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 04:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463985', 'tblTempUsageDetail_20' ) start [2025-02-13 04:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463985', 'tblTempUsageDetail_20' ) end [2025-02-13 04:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463985', 'tblTempVendorCDR_20' ) start [2025-02-13 04:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463985', 'tblTempVendorCDR_20' ) end [2025-02-13 04:32:20] Production.INFO: ProcessCDR(1,14463985,1,1,2) [2025-02-13 04:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463985', 'tblTempUsageDetail_20' ) start [2025-02-13 04:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463985', 'tblTempUsageDetail_20' ) end [2025-02-13 04:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 04:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 04:32:23] Production.INFO: ==23475== Releasing lock... [2025-02-13 04:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 04:32:23] Production.INFO: 29 MB #Memory Used# [2025-02-13 04:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 01:33:04 [end_date_ymd] => 2025-02-13 04:33:04 [RateCDR] => 1 ) [2025-02-13 04:33: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-02-13 01:33:04' and `end` < '2025-02-13 04:33: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-02-13 04:33:17] Production.INFO: count ==192 [2025-02-13 04:33:17] Production.ERROR: pbx CDR StartTime 2025-02-13 01:33:04 - End Time 2025-02-13 04:33:04 [2025-02-13 04:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463990', 'tblTempUsageDetail_20' ) start [2025-02-13 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463990', 'tblTempUsageDetail_20' ) end [2025-02-13 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463990', 'tblTempVendorCDR_20' ) start [2025-02-13 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463990', 'tblTempVendorCDR_20' ) end [2025-02-13 04:33:17] Production.INFO: ProcessCDR(1,14463990,1,1,2) [2025-02-13 04:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463990', 'tblTempUsageDetail_20' ) start [2025-02-13 04:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463990', 'tblTempUsageDetail_20' ) end [2025-02-13 04:33:20] Production.ERROR: pbx prc_insertCDR start [2025-02-13 04:33:20] Production.ERROR: pbx prc_insertCDR end [2025-02-13 04:33:20] Production.INFO: ==23547== Releasing lock... [2025-02-13 04:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 04:33:20] Production.INFO: 29 MB #Memory Used# [2025-02-13 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 01:34:05 [end_date_ymd] => 2025-02-13 04:34:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 01:34:05' and `end` < '2025-02-13 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-02-13 04:34:19] Production.INFO: count ==188 [2025-02-13 04:34:19] Production.ERROR: pbx CDR StartTime 2025-02-13 01:34:05 - End Time 2025-02-13 04:34:05 [2025-02-13 04:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463995', 'tblTempUsageDetail_20' ) start [2025-02-13 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14463995', 'tblTempUsageDetail_20' ) end [2025-02-13 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463995', 'tblTempVendorCDR_20' ) start [2025-02-13 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14463995', 'tblTempVendorCDR_20' ) end [2025-02-13 04:34:19] Production.INFO: ProcessCDR(1,14463995,1,1,2) [2025-02-13 04:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14463995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14463995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14463995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14463995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463995', 'tblTempUsageDetail_20' ) start [2025-02-13 04:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14463995', 'tblTempUsageDetail_20' ) end [2025-02-13 04:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 04:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 04:34:22] Production.INFO: ==23621== Releasing lock... [2025-02-13 04:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 04:34:22] Production.INFO: 29 MB #Memory Used# [2025-02-13 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 01:35:05 [end_date_ymd] => 2025-02-13 04:35:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 01:35:05' and `end` < '2025-02-13 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-02-13 04:35:18] Production.INFO: count ==188 [2025-02-13 04:35:18] Production.ERROR: pbx CDR StartTime 2025-02-13 01:35:05 - End Time 2025-02-13 04:35:05 [2025-02-13 04:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464000', 'tblTempUsageDetail_20' ) start [2025-02-13 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464000', 'tblTempUsageDetail_20' ) end [2025-02-13 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464000', 'tblTempVendorCDR_20' ) start [2025-02-13 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464000', 'tblTempVendorCDR_20' ) end [2025-02-13 04:35:18] Production.INFO: ProcessCDR(1,14464000,1,1,2) [2025-02-13 04:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464000', 'tblTempUsageDetail_20' ) start [2025-02-13 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464000', 'tblTempUsageDetail_20' ) end [2025-02-13 04:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 04:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 04:35:21] Production.INFO: ==23692== Releasing lock... [2025-02-13 04:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 04:35:21] Production.INFO: 29 MB #Memory Used# [2025-02-13 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 01:36:05 [end_date_ymd] => 2025-02-13 04:36:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 01:36:05' and `end` < '2025-02-13 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-02-13 04:36:18] Production.INFO: count ==188 [2025-02-13 04:36:18] Production.ERROR: pbx CDR StartTime 2025-02-13 01:36:05 - End Time 2025-02-13 04:36:05 [2025-02-13 04:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464005', 'tblTempUsageDetail_20' ) start [2025-02-13 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464005', 'tblTempUsageDetail_20' ) end [2025-02-13 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464005', 'tblTempVendorCDR_20' ) start [2025-02-13 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464005', 'tblTempVendorCDR_20' ) end [2025-02-13 04:36:18] Production.INFO: ProcessCDR(1,14464005,1,1,2) [2025-02-13 04:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464005', 'tblTempUsageDetail_20' ) start [2025-02-13 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464005', 'tblTempUsageDetail_20' ) end [2025-02-13 04:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 04:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 04:36:21] Production.INFO: ==23768== Releasing lock... [2025-02-13 04:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 04:36:21] Production.INFO: 29 MB #Memory Used# [2025-02-13 04:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 01:37:04 [end_date_ymd] => 2025-02-13 04:37:04 [RateCDR] => 1 ) [2025-02-13 04:37: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-02-13 01:37:04' and `end` < '2025-02-13 04:37: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-02-13 04:37:17] Production.INFO: count ==188 [2025-02-13 04:37:17] Production.ERROR: pbx CDR StartTime 2025-02-13 01:37:04 - End Time 2025-02-13 04:37:04 [2025-02-13 04:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464010', 'tblTempUsageDetail_20' ) start [2025-02-13 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464010', 'tblTempUsageDetail_20' ) end [2025-02-13 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464010', 'tblTempVendorCDR_20' ) start [2025-02-13 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464010', 'tblTempVendorCDR_20' ) end [2025-02-13 04:37:17] Production.INFO: ProcessCDR(1,14464010,1,1,2) [2025-02-13 04:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464010', 'tblTempUsageDetail_20' ) start [2025-02-13 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464010', 'tblTempUsageDetail_20' ) end [2025-02-13 04:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 04:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 04:37:21] Production.INFO: ==23842== Releasing lock... [2025-02-13 04:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 04:37:21] Production.INFO: 29 MB #Memory Used# [2025-02-13 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 01:38:05 [end_date_ymd] => 2025-02-13 04:38:05 [RateCDR] => 1 ) [2025-02-13 04: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-02-13 01:38:05' and `end` < '2025-02-13 04: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-02-13 04:38:19] Production.INFO: count ==188 [2025-02-13 04:38:19] Production.ERROR: pbx CDR StartTime 2025-02-13 01:38:05 - End Time 2025-02-13 04:38:05 [2025-02-13 04:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464015', 'tblTempUsageDetail_20' ) start [2025-02-13 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464015', 'tblTempUsageDetail_20' ) end [2025-02-13 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464015', 'tblTempVendorCDR_20' ) start [2025-02-13 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464015', 'tblTempVendorCDR_20' ) end [2025-02-13 04:38:19] Production.INFO: ProcessCDR(1,14464015,1,1,2) [2025-02-13 04:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464015', 'tblTempUsageDetail_20' ) start [2025-02-13 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464015', 'tblTempUsageDetail_20' ) end [2025-02-13 04:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 04:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 04:38:22] Production.INFO: ==23922== Releasing lock... [2025-02-13 04:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 04:38:22] Production.INFO: 29 MB #Memory Used# [2025-02-13 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 01:39:05 [end_date_ymd] => 2025-02-13 04:39:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 01:39:05' and `end` < '2025-02-13 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-02-13 04:39:18] Production.INFO: count ==188 [2025-02-13 04:39:18] Production.ERROR: pbx CDR StartTime 2025-02-13 01:39:05 - End Time 2025-02-13 04:39:05 [2025-02-13 04:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464020', 'tblTempUsageDetail_20' ) start [2025-02-13 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464020', 'tblTempUsageDetail_20' ) end [2025-02-13 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464020', 'tblTempVendorCDR_20' ) start [2025-02-13 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464020', 'tblTempVendorCDR_20' ) end [2025-02-13 04:39:18] Production.INFO: ProcessCDR(1,14464020,1,1,2) [2025-02-13 04:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464020', 'tblTempUsageDetail_20' ) start [2025-02-13 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464020', 'tblTempUsageDetail_20' ) end [2025-02-13 04:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 04:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 04:39:21] Production.INFO: ==23995== Releasing lock... [2025-02-13 04:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 04:39:21] Production.INFO: 29 MB #Memory Used# [2025-02-13 04:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 01:40:05 [end_date_ymd] => 2025-02-13 04:40:05 [RateCDR] => 1 ) [2025-02-13 04: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-02-13 01:40:05' and `end` < '2025-02-13 04: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-02-13 04:40:18] Production.INFO: count ==186 [2025-02-13 04:40:18] Production.ERROR: pbx CDR StartTime 2025-02-13 01:40:05 - End Time 2025-02-13 04:40:05 [2025-02-13 04:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464026', 'tblTempUsageDetail_20' ) start [2025-02-13 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464026', 'tblTempUsageDetail_20' ) end [2025-02-13 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464026', 'tblTempVendorCDR_20' ) start [2025-02-13 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464026', 'tblTempVendorCDR_20' ) end [2025-02-13 04:40:18] Production.INFO: ProcessCDR(1,14464026,1,1,2) [2025-02-13 04:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464026', 'tblTempUsageDetail_20' ) start [2025-02-13 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464026', 'tblTempUsageDetail_20' ) end [2025-02-13 04:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 04:40:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 04:40:21] Production.INFO: ==24068== Releasing lock... [2025-02-13 04:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 04:40:21] Production.INFO: 29 MB #Memory Used# [2025-02-13 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 01:41:05 [end_date_ymd] => 2025-02-13 04:41:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 01:41:05' and `end` < '2025-02-13 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-02-13 04:41:19] Production.INFO: count ==178 [2025-02-13 04:41:19] Production.ERROR: pbx CDR StartTime 2025-02-13 01:41:05 - End Time 2025-02-13 04:41:05 [2025-02-13 04:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 04:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464031', 'tblTempUsageDetail_20' ) start [2025-02-13 04:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464031', 'tblTempUsageDetail_20' ) end [2025-02-13 04:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464031', 'tblTempVendorCDR_20' ) start [2025-02-13 04:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464031', 'tblTempVendorCDR_20' ) end [2025-02-13 04:41:19] Production.INFO: ProcessCDR(1,14464031,1,1,2) [2025-02-13 04:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464031', 'tblTempUsageDetail_20' ) start [2025-02-13 04:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464031', 'tblTempUsageDetail_20' ) end [2025-02-13 04:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 04:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 04:41:22] Production.INFO: ==24145== Releasing lock... [2025-02-13 04:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 04:41:22] Production.INFO: 29 MB #Memory Used# [2025-02-13 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 01:42:05 [end_date_ymd] => 2025-02-13 04:42:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 01:42:05' and `end` < '2025-02-13 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-02-13 04:42:18] Production.INFO: count ==177 [2025-02-13 04:42:18] Production.ERROR: pbx CDR StartTime 2025-02-13 01:42:05 - End Time 2025-02-13 04:42:05 [2025-02-13 04:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464036', 'tblTempUsageDetail_20' ) start [2025-02-13 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464036', 'tblTempUsageDetail_20' ) end [2025-02-13 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464036', 'tblTempVendorCDR_20' ) start [2025-02-13 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464036', 'tblTempVendorCDR_20' ) end [2025-02-13 04:42:18] Production.INFO: ProcessCDR(1,14464036,1,1,2) [2025-02-13 04:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464036', 'tblTempUsageDetail_20' ) start [2025-02-13 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464036', 'tblTempUsageDetail_20' ) end [2025-02-13 04:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 04:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 04:42:21] Production.INFO: ==24227== Releasing lock... [2025-02-13 04:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 04:42:21] Production.INFO: 29 MB #Memory Used# [2025-02-13 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 01:43:05 [end_date_ymd] => 2025-02-13 04:43:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 01:43:05' and `end` < '2025-02-13 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-02-13 04:43:18] Production.INFO: count ==177 [2025-02-13 04:43:18] Production.ERROR: pbx CDR StartTime 2025-02-13 01:43:05 - End Time 2025-02-13 04:43:05 [2025-02-13 04:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464041', 'tblTempUsageDetail_20' ) start [2025-02-13 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464041', 'tblTempUsageDetail_20' ) end [2025-02-13 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464041', 'tblTempVendorCDR_20' ) start [2025-02-13 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464041', 'tblTempVendorCDR_20' ) end [2025-02-13 04:43:18] Production.INFO: ProcessCDR(1,14464041,1,1,2) [2025-02-13 04:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464041', 'tblTempUsageDetail_20' ) start [2025-02-13 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464041', 'tblTempUsageDetail_20' ) end [2025-02-13 04:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 04:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 04:43:21] Production.INFO: ==24320== Releasing lock... [2025-02-13 04:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 04:43:21] Production.INFO: 29 MB #Memory Used# [2025-02-13 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 01:44:05 [end_date_ymd] => 2025-02-13 04:44:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 01:44:05' and `end` < '2025-02-13 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-02-13 04:44:18] Production.INFO: count ==174 [2025-02-13 04:44:18] Production.ERROR: pbx CDR StartTime 2025-02-13 01:44:05 - End Time 2025-02-13 04:44:05 [2025-02-13 04:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464046', 'tblTempUsageDetail_20' ) start [2025-02-13 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464046', 'tblTempUsageDetail_20' ) end [2025-02-13 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464046', 'tblTempVendorCDR_20' ) start [2025-02-13 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464046', 'tblTempVendorCDR_20' ) end [2025-02-13 04:44:18] Production.INFO: ProcessCDR(1,14464046,1,1,2) [2025-02-13 04:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464046', 'tblTempUsageDetail_20' ) start [2025-02-13 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464046', 'tblTempUsageDetail_20' ) end [2025-02-13 04:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 04:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 04:44:22] Production.INFO: ==24438== Releasing lock... [2025-02-13 04:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 04:44:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 01:45:05 [end_date_ymd] => 2025-02-13 04:45:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 01:45:05' and `end` < '2025-02-13 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-02-13 04:45:18] Production.INFO: count ==173 [2025-02-13 04:45:18] Production.ERROR: pbx CDR StartTime 2025-02-13 01:45:05 - End Time 2025-02-13 04:45:05 [2025-02-13 04:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464051', 'tblTempUsageDetail_20' ) start [2025-02-13 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464051', 'tblTempUsageDetail_20' ) end [2025-02-13 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464051', 'tblTempVendorCDR_20' ) start [2025-02-13 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464051', 'tblTempVendorCDR_20' ) end [2025-02-13 04:45:18] Production.INFO: ProcessCDR(1,14464051,1,1,2) [2025-02-13 04:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464051', 'tblTempUsageDetail_20' ) start [2025-02-13 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464051', 'tblTempUsageDetail_20' ) end [2025-02-13 04:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 04:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 04:45:21] Production.INFO: ==24517== Releasing lock... [2025-02-13 04:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 04:45:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 04:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 01:46:04 [end_date_ymd] => 2025-02-13 04:46:04 [RateCDR] => 1 ) [2025-02-13 04:46: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-02-13 01:46:04' and `end` < '2025-02-13 04:46: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-02-13 04:46:18] Production.INFO: count ==173 [2025-02-13 04:46:18] Production.ERROR: pbx CDR StartTime 2025-02-13 01:46:04 - End Time 2025-02-13 04:46:04 [2025-02-13 04:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464056', 'tblTempUsageDetail_20' ) start [2025-02-13 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464056', 'tblTempUsageDetail_20' ) end [2025-02-13 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464056', 'tblTempVendorCDR_20' ) start [2025-02-13 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464056', 'tblTempVendorCDR_20' ) end [2025-02-13 04:46:18] Production.INFO: ProcessCDR(1,14464056,1,1,2) [2025-02-13 04:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464056', 'tblTempUsageDetail_20' ) start [2025-02-13 04:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464056', 'tblTempUsageDetail_20' ) end [2025-02-13 04:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 04:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 04:46:21] Production.INFO: ==24595== Releasing lock... [2025-02-13 04:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 04:46:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 01:47:05 [end_date_ymd] => 2025-02-13 04:47:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 01:47:05' and `end` < '2025-02-13 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-02-13 04:47:22] Production.INFO: count ==173 [2025-02-13 04:47:22] Production.ERROR: pbx CDR StartTime 2025-02-13 01:47:05 - End Time 2025-02-13 04:47:05 [2025-02-13 04:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 04:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464061', 'tblTempUsageDetail_20' ) start [2025-02-13 04:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464061', 'tblTempUsageDetail_20' ) end [2025-02-13 04:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464061', 'tblTempVendorCDR_20' ) start [2025-02-13 04:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464061', 'tblTempVendorCDR_20' ) end [2025-02-13 04:47:22] Production.INFO: ProcessCDR(1,14464061,1,1,2) [2025-02-13 04:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464061', 'tblTempUsageDetail_20' ) start [2025-02-13 04:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464061', 'tblTempUsageDetail_20' ) end [2025-02-13 04:47:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 04:47:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 04:47:25] Production.INFO: ==24680== Releasing lock... [2025-02-13 04:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 04:47:25] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 01:48:05 [end_date_ymd] => 2025-02-13 04:48:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 01:48:05' and `end` < '2025-02-13 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-02-13 04:48:19] Production.INFO: count ==173 [2025-02-13 04:48:19] Production.ERROR: pbx CDR StartTime 2025-02-13 01:48:05 - End Time 2025-02-13 04:48:05 [2025-02-13 04:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464066', 'tblTempUsageDetail_20' ) start [2025-02-13 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464066', 'tblTempUsageDetail_20' ) end [2025-02-13 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464066', 'tblTempVendorCDR_20' ) start [2025-02-13 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464066', 'tblTempVendorCDR_20' ) end [2025-02-13 04:48:19] Production.INFO: ProcessCDR(1,14464066,1,1,2) [2025-02-13 04:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464066', 'tblTempUsageDetail_20' ) start [2025-02-13 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464066', 'tblTempUsageDetail_20' ) end [2025-02-13 04:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 04:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 04:48:22] Production.INFO: ==24762== Releasing lock... [2025-02-13 04:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 04:48:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 01:49:05 [end_date_ymd] => 2025-02-13 04:49:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 01:49:05' and `end` < '2025-02-13 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-02-13 04:49:19] Production.INFO: count ==174 [2025-02-13 04:49:19] Production.ERROR: pbx CDR StartTime 2025-02-13 01:49:05 - End Time 2025-02-13 04:49:05 [2025-02-13 04:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464071', 'tblTempUsageDetail_20' ) start [2025-02-13 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464071', 'tblTempUsageDetail_20' ) end [2025-02-13 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464071', 'tblTempVendorCDR_20' ) start [2025-02-13 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464071', 'tblTempVendorCDR_20' ) end [2025-02-13 04:49:19] Production.INFO: ProcessCDR(1,14464071,1,1,2) [2025-02-13 04:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464071', 'tblTempUsageDetail_20' ) start [2025-02-13 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464071', 'tblTempUsageDetail_20' ) end [2025-02-13 04:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 04:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 04:49:22] Production.INFO: ==24848== Releasing lock... [2025-02-13 04:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 04:49:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 01:50:06 [end_date_ymd] => 2025-02-13 04:50:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 01:50:06' and `end` < '2025-02-13 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-02-13 04:50:20] Production.INFO: count ==174 [2025-02-13 04:50:20] Production.ERROR: pbx CDR StartTime 2025-02-13 01:50:06 - End Time 2025-02-13 04:50:06 [2025-02-13 04:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464076', 'tblTempUsageDetail_20' ) start [2025-02-13 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464076', 'tblTempUsageDetail_20' ) end [2025-02-13 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464076', 'tblTempVendorCDR_20' ) start [2025-02-13 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464076', 'tblTempVendorCDR_20' ) end [2025-02-13 04:50:20] Production.INFO: ProcessCDR(1,14464076,1,1,2) [2025-02-13 04:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464076', 'tblTempUsageDetail_20' ) start [2025-02-13 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464076', 'tblTempUsageDetail_20' ) end [2025-02-13 04:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 04:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 04:50:23] Production.INFO: ==24935== Releasing lock... [2025-02-13 04:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 04:50:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 01:51:05 [end_date_ymd] => 2025-02-13 04:51:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 01:51:05' and `end` < '2025-02-13 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-02-13 04:51:21] Production.INFO: count ==172 [2025-02-13 04:51:21] Production.ERROR: pbx CDR StartTime 2025-02-13 01:51:05 - End Time 2025-02-13 04:51:05 [2025-02-13 04:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 04:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464082', 'tblTempUsageDetail_20' ) start [2025-02-13 04:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464082', 'tblTempUsageDetail_20' ) end [2025-02-13 04:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464082', 'tblTempVendorCDR_20' ) start [2025-02-13 04:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464082', 'tblTempVendorCDR_20' ) end [2025-02-13 04:51:21] Production.INFO: ProcessCDR(1,14464082,1,1,2) [2025-02-13 04:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464082', 'tblTempUsageDetail_20' ) start [2025-02-13 04:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464082', 'tblTempUsageDetail_20' ) end [2025-02-13 04:51:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 04:51:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 04:51:24] Production.INFO: ==25026== Releasing lock... [2025-02-13 04:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 04:51:24] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 01:52:05 [end_date_ymd] => 2025-02-13 04:52:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 01:52:05' and `end` < '2025-02-13 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-02-13 04:52:21] Production.INFO: count ==172 [2025-02-13 04:52:21] Production.ERROR: pbx CDR StartTime 2025-02-13 01:52:05 - End Time 2025-02-13 04:52:05 [2025-02-13 04:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 04:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464087', 'tblTempUsageDetail_20' ) start [2025-02-13 04:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464087', 'tblTempUsageDetail_20' ) end [2025-02-13 04:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464087', 'tblTempVendorCDR_20' ) start [2025-02-13 04:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464087', 'tblTempVendorCDR_20' ) end [2025-02-13 04:52:21] Production.INFO: ProcessCDR(1,14464087,1,1,2) [2025-02-13 04:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464087', 'tblTempUsageDetail_20' ) start [2025-02-13 04:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464087', 'tblTempUsageDetail_20' ) end [2025-02-13 04:52:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 04:52:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 04:52:24] Production.INFO: ==25106== Releasing lock... [2025-02-13 04:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 04:52:24] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 01:53:05 [end_date_ymd] => 2025-02-13 04:53:05 [RateCDR] => 1 ) [2025-02-13 04: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-02-13 01:53:05' and `end` < '2025-02-13 04: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-02-13 04:53:18] Production.INFO: count ==172 [2025-02-13 04:53:18] Production.ERROR: pbx CDR StartTime 2025-02-13 01:53:05 - End Time 2025-02-13 04:53:05 [2025-02-13 04:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464092', 'tblTempUsageDetail_20' ) start [2025-02-13 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464092', 'tblTempUsageDetail_20' ) end [2025-02-13 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464092', 'tblTempVendorCDR_20' ) start [2025-02-13 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464092', 'tblTempVendorCDR_20' ) end [2025-02-13 04:53:18] Production.INFO: ProcessCDR(1,14464092,1,1,2) [2025-02-13 04:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464092', 'tblTempUsageDetail_20' ) start [2025-02-13 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464092', 'tblTempUsageDetail_20' ) end [2025-02-13 04:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 04:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 04:53:21] Production.INFO: ==25187== Releasing lock... [2025-02-13 04:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 04:53:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 01:54:05 [end_date_ymd] => 2025-02-13 04:54:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 01:54:05' and `end` < '2025-02-13 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-02-13 04:54:20] Production.INFO: count ==168 [2025-02-13 04:54:20] Production.ERROR: pbx CDR StartTime 2025-02-13 01:54:05 - End Time 2025-02-13 04:54:05 [2025-02-13 04:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 04:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464097', 'tblTempUsageDetail_20' ) start [2025-02-13 04:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464097', 'tblTempUsageDetail_20' ) end [2025-02-13 04:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464097', 'tblTempVendorCDR_20' ) start [2025-02-13 04:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464097', 'tblTempVendorCDR_20' ) end [2025-02-13 04:54:20] Production.INFO: ProcessCDR(1,14464097,1,1,2) [2025-02-13 04:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464097', 'tblTempUsageDetail_20' ) start [2025-02-13 04:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464097', 'tblTempUsageDetail_20' ) end [2025-02-13 04:54:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 04:54:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 04:54:24] Production.INFO: ==25273== Releasing lock... [2025-02-13 04:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 04:54:24] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 01:55:05 [end_date_ymd] => 2025-02-13 04:55:05 [RateCDR] => 1 ) [2025-02-13 04: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-02-13 01:55:05' and `end` < '2025-02-13 04: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-02-13 04:55:19] Production.INFO: count ==164 [2025-02-13 04:55:19] Production.ERROR: pbx CDR StartTime 2025-02-13 01:55:05 - End Time 2025-02-13 04:55:05 [2025-02-13 04:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464102', 'tblTempUsageDetail_20' ) start [2025-02-13 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464102', 'tblTempUsageDetail_20' ) end [2025-02-13 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464102', 'tblTempVendorCDR_20' ) start [2025-02-13 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464102', 'tblTempVendorCDR_20' ) end [2025-02-13 04:55:19] Production.INFO: ProcessCDR(1,14464102,1,1,2) [2025-02-13 04:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464102', 'tblTempUsageDetail_20' ) start [2025-02-13 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464102', 'tblTempUsageDetail_20' ) end [2025-02-13 04:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 04:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 04:55:22] Production.INFO: ==25358== Releasing lock... [2025-02-13 04:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 04:55:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 04:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 01:56:04 [end_date_ymd] => 2025-02-13 04:56:04 [RateCDR] => 1 ) [2025-02-13 04:56: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-02-13 01:56:04' and `end` < '2025-02-13 04:56: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-02-13 04:56:18] Production.INFO: count ==163 [2025-02-13 04:56:18] Production.ERROR: pbx CDR StartTime 2025-02-13 01:56:04 - End Time 2025-02-13 04:56:04 [2025-02-13 04:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464107', 'tblTempUsageDetail_20' ) start [2025-02-13 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464107', 'tblTempUsageDetail_20' ) end [2025-02-13 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464107', 'tblTempVendorCDR_20' ) start [2025-02-13 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464107', 'tblTempVendorCDR_20' ) end [2025-02-13 04:56:18] Production.INFO: ProcessCDR(1,14464107,1,1,2) [2025-02-13 04:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464107', 'tblTempUsageDetail_20' ) start [2025-02-13 04:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464107', 'tblTempUsageDetail_20' ) end [2025-02-13 04:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 04:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 04:56:21] Production.INFO: ==25442== Releasing lock... [2025-02-13 04:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 04:56:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 01:57:05 [end_date_ymd] => 2025-02-13 04:57:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 01:57:05' and `end` < '2025-02-13 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-02-13 04:57:21] Production.INFO: count ==163 [2025-02-13 04:57:21] Production.ERROR: pbx CDR StartTime 2025-02-13 01:57:05 - End Time 2025-02-13 04:57:05 [2025-02-13 04:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 04:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464112', 'tblTempUsageDetail_20' ) start [2025-02-13 04:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464112', 'tblTempUsageDetail_20' ) end [2025-02-13 04:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464112', 'tblTempVendorCDR_20' ) start [2025-02-13 04:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464112', 'tblTempVendorCDR_20' ) end [2025-02-13 04:57:21] Production.INFO: ProcessCDR(1,14464112,1,1,2) [2025-02-13 04:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464112', 'tblTempUsageDetail_20' ) start [2025-02-13 04:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464112', 'tblTempUsageDetail_20' ) end [2025-02-13 04:57:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 04:57:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 04:57:25] Production.INFO: ==25527== Releasing lock... [2025-02-13 04:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 04:57:25] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 04:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 01:58:04 [end_date_ymd] => 2025-02-13 04:58:04 [RateCDR] => 1 ) [2025-02-13 04: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-02-13 01:58:04' and `end` < '2025-02-13 04: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-02-13 04:58:18] Production.INFO: count ==163 [2025-02-13 04:58:18] Production.ERROR: pbx CDR StartTime 2025-02-13 01:58:04 - End Time 2025-02-13 04:58:04 [2025-02-13 04:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464117', 'tblTempUsageDetail_20' ) start [2025-02-13 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464117', 'tblTempUsageDetail_20' ) end [2025-02-13 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464117', 'tblTempVendorCDR_20' ) start [2025-02-13 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464117', 'tblTempVendorCDR_20' ) end [2025-02-13 04:58:18] Production.INFO: ProcessCDR(1,14464117,1,1,2) [2025-02-13 04:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464117', 'tblTempUsageDetail_20' ) start [2025-02-13 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464117', 'tblTempUsageDetail_20' ) end [2025-02-13 04:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 04:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 04:58:22] Production.INFO: ==25618== Releasing lock... [2025-02-13 04:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 04:58:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 01:59:05 [end_date_ymd] => 2025-02-13 04:59:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 01:59:05' and `end` < '2025-02-13 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-02-13 04:59:19] Production.INFO: count ==163 [2025-02-13 04:59:19] Production.ERROR: pbx CDR StartTime 2025-02-13 01:59:05 - End Time 2025-02-13 04:59:05 [2025-02-13 04:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464122', 'tblTempUsageDetail_20' ) start [2025-02-13 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464122', 'tblTempUsageDetail_20' ) end [2025-02-13 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464122', 'tblTempVendorCDR_20' ) start [2025-02-13 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464122', 'tblTempVendorCDR_20' ) end [2025-02-13 04:59:19] Production.INFO: ProcessCDR(1,14464122,1,1,2) [2025-02-13 04:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 04:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464122', 'tblTempUsageDetail_20' ) start [2025-02-13 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464122', 'tblTempUsageDetail_20' ) end [2025-02-13 04:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 04:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 04:59:22] Production.INFO: ==25743== Releasing lock... [2025-02-13 04:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 04:59:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 02:00:06 [end_date_ymd] => 2025-02-13 05:00:06 [RateCDR] => 1 ) [2025-02-13 05: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-02-13 02:00:06' and `end` < '2025-02-13 05: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-02-13 05:00:20] Production.INFO: count ==163 [2025-02-13 05:00:20] Production.ERROR: pbx CDR StartTime 2025-02-13 02:00:06 - End Time 2025-02-13 05:00:06 [2025-02-13 05:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464128', 'tblTempUsageDetail_20' ) start [2025-02-13 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464128', 'tblTempUsageDetail_20' ) end [2025-02-13 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464128', 'tblTempVendorCDR_20' ) start [2025-02-13 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464128', 'tblTempVendorCDR_20' ) end [2025-02-13 05:00:20] Production.INFO: ProcessCDR(1,14464128,1,1,2) [2025-02-13 05:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464128', 'tblTempUsageDetail_20' ) start [2025-02-13 05:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464128', 'tblTempUsageDetail_20' ) end [2025-02-13 05:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 05:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 05:00:23] Production.INFO: ==25825== Releasing lock... [2025-02-13 05:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 05:00:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 02:01:05 [end_date_ymd] => 2025-02-13 05:01:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 02:01:05' and `end` < '2025-02-13 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-02-13 05:01:19] Production.INFO: count ==163 [2025-02-13 05:01:19] Production.ERROR: pbx CDR StartTime 2025-02-13 02:01:05 - End Time 2025-02-13 05:01:05 [2025-02-13 05:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464133', 'tblTempUsageDetail_20' ) start [2025-02-13 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464133', 'tblTempUsageDetail_20' ) end [2025-02-13 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464133', 'tblTempVendorCDR_20' ) start [2025-02-13 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464133', 'tblTempVendorCDR_20' ) end [2025-02-13 05:01:20] Production.INFO: ProcessCDR(1,14464133,1,1,2) [2025-02-13 05:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464133', 'tblTempUsageDetail_20' ) start [2025-02-13 05:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464133', 'tblTempUsageDetail_20' ) end [2025-02-13 05:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 05:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 05:01:23] Production.INFO: ==25927== Releasing lock... [2025-02-13 05:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 05:01:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 05:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 02:02:06 [end_date_ymd] => 2025-02-13 05:02:06 [RateCDR] => 1 ) [2025-02-13 05: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-02-13 02:02:06' and `end` < '2025-02-13 05: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-02-13 05:02:23] Production.INFO: count ==165 [2025-02-13 05:02:23] Production.ERROR: pbx CDR StartTime 2025-02-13 02:02:06 - End Time 2025-02-13 05:02:06 [2025-02-13 05:02:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 05:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464138', 'tblTempUsageDetail_20' ) start [2025-02-13 05:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464138', 'tblTempUsageDetail_20' ) end [2025-02-13 05:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464138', 'tblTempVendorCDR_20' ) start [2025-02-13 05:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464138', 'tblTempVendorCDR_20' ) end [2025-02-13 05:02:23] Production.INFO: ProcessCDR(1,14464138,1,1,2) [2025-02-13 05:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464138', 'tblTempUsageDetail_20' ) start [2025-02-13 05:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464138', 'tblTempUsageDetail_20' ) end [2025-02-13 05:02:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 05:02:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 05:02:27] Production.INFO: ==26014== Releasing lock... [2025-02-13 05:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 05:02:27] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 05:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 02:03:06 [end_date_ymd] => 2025-02-13 05:03:06 [RateCDR] => 1 ) [2025-02-13 05: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-02-13 02:03:06' and `end` < '2025-02-13 05: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-02-13 05:03:20] Production.INFO: count ==165 [2025-02-13 05:03:20] Production.ERROR: pbx CDR StartTime 2025-02-13 02:03:06 - End Time 2025-02-13 05:03:06 [2025-02-13 05:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464143', 'tblTempUsageDetail_20' ) start [2025-02-13 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464143', 'tblTempUsageDetail_20' ) end [2025-02-13 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464143', 'tblTempVendorCDR_20' ) start [2025-02-13 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464143', 'tblTempVendorCDR_20' ) end [2025-02-13 05:03:20] Production.INFO: ProcessCDR(1,14464143,1,1,2) [2025-02-13 05:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464143', 'tblTempUsageDetail_20' ) start [2025-02-13 05:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464143', 'tblTempUsageDetail_20' ) end [2025-02-13 05:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 05:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 05:03:23] Production.INFO: ==26102== Releasing lock... [2025-02-13 05:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 05:03:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 05:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 02:04:06 [end_date_ymd] => 2025-02-13 05:04:06 [RateCDR] => 1 ) [2025-02-13 05: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-02-13 02:04:06' and `end` < '2025-02-13 05: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-02-13 05:04:20] Production.INFO: count ==165 [2025-02-13 05:04:20] Production.ERROR: pbx CDR StartTime 2025-02-13 02:04:06 - End Time 2025-02-13 05:04:06 [2025-02-13 05:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 05:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464148', 'tblTempUsageDetail_20' ) start [2025-02-13 05:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464148', 'tblTempUsageDetail_20' ) end [2025-02-13 05:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464148', 'tblTempVendorCDR_20' ) start [2025-02-13 05:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464148', 'tblTempVendorCDR_20' ) end [2025-02-13 05:04:20] Production.INFO: ProcessCDR(1,14464148,1,1,2) [2025-02-13 05:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464148', 'tblTempUsageDetail_20' ) start [2025-02-13 05:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464148', 'tblTempUsageDetail_20' ) end [2025-02-13 05:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 05:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 05:04:23] Production.INFO: ==26186== Releasing lock... [2025-02-13 05:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 05:04:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 02:05:05 [end_date_ymd] => 2025-02-13 05:05:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 02:05:05' and `end` < '2025-02-13 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-02-13 05:05:19] Production.INFO: count ==165 [2025-02-13 05:05:19] Production.ERROR: pbx CDR StartTime 2025-02-13 02:05:05 - End Time 2025-02-13 05:05:05 [2025-02-13 05:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464153', 'tblTempUsageDetail_20' ) start [2025-02-13 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464153', 'tblTempUsageDetail_20' ) end [2025-02-13 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464153', 'tblTempVendorCDR_20' ) start [2025-02-13 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464153', 'tblTempVendorCDR_20' ) end [2025-02-13 05:05:19] Production.INFO: ProcessCDR(1,14464153,1,1,2) [2025-02-13 05:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464153', 'tblTempUsageDetail_20' ) start [2025-02-13 05:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464153', 'tblTempUsageDetail_20' ) end [2025-02-13 05:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 05:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 05:05:22] Production.INFO: ==26277== Releasing lock... [2025-02-13 05:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 05:05:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 05:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 02:06:06 [end_date_ymd] => 2025-02-13 05:06:06 [RateCDR] => 1 ) [2025-02-13 05: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-02-13 02:06:06' and `end` < '2025-02-13 05: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-02-13 05:06:19] Production.INFO: count ==171 [2025-02-13 05:06:19] Production.ERROR: pbx CDR StartTime 2025-02-13 02:06:06 - End Time 2025-02-13 05:06:06 [2025-02-13 05:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464158', 'tblTempUsageDetail_20' ) start [2025-02-13 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464158', 'tblTempUsageDetail_20' ) end [2025-02-13 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464158', 'tblTempVendorCDR_20' ) start [2025-02-13 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464158', 'tblTempVendorCDR_20' ) end [2025-02-13 05:06:19] Production.INFO: ProcessCDR(1,14464158,1,1,2) [2025-02-13 05:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464158', 'tblTempUsageDetail_20' ) start [2025-02-13 05:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464158', 'tblTempUsageDetail_20' ) end [2025-02-13 05:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 05:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 05:06:22] Production.INFO: ==26366== Releasing lock... [2025-02-13 05:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 05:06:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 05:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 02:07:04 [end_date_ymd] => 2025-02-13 05:07:04 [RateCDR] => 1 ) [2025-02-13 05: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-02-13 02:07:04' and `end` < '2025-02-13 05: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-02-13 05:07:17] Production.INFO: count ==171 [2025-02-13 05:07:18] Production.ERROR: pbx CDR StartTime 2025-02-13 02:07:04 - End Time 2025-02-13 05:07:04 [2025-02-13 05:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464163', 'tblTempUsageDetail_20' ) start [2025-02-13 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464163', 'tblTempUsageDetail_20' ) end [2025-02-13 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464163', 'tblTempVendorCDR_20' ) start [2025-02-13 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464163', 'tblTempVendorCDR_20' ) end [2025-02-13 05:07:18] Production.INFO: ProcessCDR(1,14464163,1,1,2) [2025-02-13 05:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464163', 'tblTempUsageDetail_20' ) start [2025-02-13 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464163', 'tblTempUsageDetail_20' ) end [2025-02-13 05:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 05:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 05:07:21] Production.INFO: ==26453== Releasing lock... [2025-02-13 05:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 05:07:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 02:08:05 [end_date_ymd] => 2025-02-13 05:08:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 02:08:05' and `end` < '2025-02-13 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-02-13 05:08:20] Production.INFO: count ==171 [2025-02-13 05:08:20] Production.ERROR: pbx CDR StartTime 2025-02-13 02:08:05 - End Time 2025-02-13 05:08:05 [2025-02-13 05:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 05:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464168', 'tblTempUsageDetail_20' ) start [2025-02-13 05:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464168', 'tblTempUsageDetail_20' ) end [2025-02-13 05:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464168', 'tblTempVendorCDR_20' ) start [2025-02-13 05:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464168', 'tblTempVendorCDR_20' ) end [2025-02-13 05:08:20] Production.INFO: ProcessCDR(1,14464168,1,1,2) [2025-02-13 05:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464168', 'tblTempUsageDetail_20' ) start [2025-02-13 05:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464168', 'tblTempUsageDetail_20' ) end [2025-02-13 05:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 05:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 05:08:23] Production.INFO: ==26542== Releasing lock... [2025-02-13 05:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 05:08:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 02:09:05 [end_date_ymd] => 2025-02-13 05:09:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 02:09:05' and `end` < '2025-02-13 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-02-13 05:09:18] Production.INFO: count ==171 [2025-02-13 05:09:18] Production.ERROR: pbx CDR StartTime 2025-02-13 02:09:05 - End Time 2025-02-13 05:09:05 [2025-02-13 05:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464173', 'tblTempUsageDetail_20' ) start [2025-02-13 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464173', 'tblTempUsageDetail_20' ) end [2025-02-13 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464173', 'tblTempVendorCDR_20' ) start [2025-02-13 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464173', 'tblTempVendorCDR_20' ) end [2025-02-13 05:09:18] Production.INFO: ProcessCDR(1,14464173,1,1,2) [2025-02-13 05:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464173', 'tblTempUsageDetail_20' ) start [2025-02-13 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464173', 'tblTempUsageDetail_20' ) end [2025-02-13 05:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 05:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 05:09:21] Production.INFO: ==26628== Releasing lock... [2025-02-13 05:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 05:09:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 02:10:06 [end_date_ymd] => 2025-02-13 05:10:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 02:10:06' and `end` < '2025-02-13 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-02-13 05:10:19] Production.INFO: count ==171 [2025-02-13 05:10:19] Production.ERROR: pbx CDR StartTime 2025-02-13 02:10:06 - End Time 2025-02-13 05:10:06 [2025-02-13 05:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464178', 'tblTempUsageDetail_20' ) start [2025-02-13 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464178', 'tblTempUsageDetail_20' ) end [2025-02-13 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464178', 'tblTempVendorCDR_20' ) start [2025-02-13 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464178', 'tblTempVendorCDR_20' ) end [2025-02-13 05:10:19] Production.INFO: ProcessCDR(1,14464178,1,1,2) [2025-02-13 05:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464178', 'tblTempUsageDetail_20' ) start [2025-02-13 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464178', 'tblTempUsageDetail_20' ) end [2025-02-13 05:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 05:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 05:10:22] Production.INFO: ==26719== Releasing lock... [2025-02-13 05:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 05:10:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 02:11:05 [end_date_ymd] => 2025-02-13 05:11:05 [RateCDR] => 1 ) [2025-02-13 05: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-02-13 02:11:05' and `end` < '2025-02-13 05: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-02-13 05:11:18] Production.INFO: count ==171 [2025-02-13 05:11:18] Production.ERROR: pbx CDR StartTime 2025-02-13 02:11:05 - End Time 2025-02-13 05:11:05 [2025-02-13 05:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464184', 'tblTempUsageDetail_20' ) start [2025-02-13 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464184', 'tblTempUsageDetail_20' ) end [2025-02-13 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464184', 'tblTempVendorCDR_20' ) start [2025-02-13 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464184', 'tblTempVendorCDR_20' ) end [2025-02-13 05:11:18] Production.INFO: ProcessCDR(1,14464184,1,1,2) [2025-02-13 05:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464184', 'tblTempUsageDetail_20' ) start [2025-02-13 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464184', 'tblTempUsageDetail_20' ) end [2025-02-13 05:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 05:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 05:11:21] Production.INFO: ==26800== Releasing lock... [2025-02-13 05:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 05:11:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 05:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 02:12:06 [end_date_ymd] => 2025-02-13 05:12:06 [RateCDR] => 1 ) [2025-02-13 05: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-02-13 02:12:06' and `end` < '2025-02-13 05: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-02-13 05:12:19] Production.INFO: count ==171 [2025-02-13 05:12:19] Production.ERROR: pbx CDR StartTime 2025-02-13 02:12:06 - End Time 2025-02-13 05:12:06 [2025-02-13 05:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 05:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464189', 'tblTempUsageDetail_20' ) start [2025-02-13 05:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464189', 'tblTempUsageDetail_20' ) end [2025-02-13 05:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464189', 'tblTempVendorCDR_20' ) start [2025-02-13 05:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464189', 'tblTempVendorCDR_20' ) end [2025-02-13 05:12:19] Production.INFO: ProcessCDR(1,14464189,1,1,2) [2025-02-13 05:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464189', 'tblTempUsageDetail_20' ) start [2025-02-13 05:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464189', 'tblTempUsageDetail_20' ) end [2025-02-13 05:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 05:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 05:12:22] Production.INFO: ==26887== Releasing lock... [2025-02-13 05:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 05:12:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 05:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 02:13:04 [end_date_ymd] => 2025-02-13 05:13:04 [RateCDR] => 1 ) [2025-02-13 05: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-02-13 02:13:04' and `end` < '2025-02-13 05: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-02-13 05:13:18] Production.INFO: count ==171 [2025-02-13 05:13:18] Production.ERROR: pbx CDR StartTime 2025-02-13 02:13:04 - End Time 2025-02-13 05:13:04 [2025-02-13 05:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464194', 'tblTempUsageDetail_20' ) start [2025-02-13 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464194', 'tblTempUsageDetail_20' ) end [2025-02-13 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464194', 'tblTempVendorCDR_20' ) start [2025-02-13 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464194', 'tblTempVendorCDR_20' ) end [2025-02-13 05:13:18] Production.INFO: ProcessCDR(1,14464194,1,1,2) [2025-02-13 05:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464194', 'tblTempUsageDetail_20' ) start [2025-02-13 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464194', 'tblTempUsageDetail_20' ) end [2025-02-13 05:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 05:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 05:13:21] Production.INFO: ==26970== Releasing lock... [2025-02-13 05:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 05:13:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 02:14:05 [end_date_ymd] => 2025-02-13 05:14:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 02:14:05' and `end` < '2025-02-13 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-02-13 05:14:18] Production.INFO: count ==170 [2025-02-13 05:14:18] Production.ERROR: pbx CDR StartTime 2025-02-13 02:14:05 - End Time 2025-02-13 05:14:05 [2025-02-13 05:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464199', 'tblTempUsageDetail_20' ) start [2025-02-13 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464199', 'tblTempUsageDetail_20' ) end [2025-02-13 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464199', 'tblTempVendorCDR_20' ) start [2025-02-13 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464199', 'tblTempVendorCDR_20' ) end [2025-02-13 05:14:18] Production.INFO: ProcessCDR(1,14464199,1,1,2) [2025-02-13 05:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464199', 'tblTempUsageDetail_20' ) start [2025-02-13 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464199', 'tblTempUsageDetail_20' ) end [2025-02-13 05:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 05:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 05:14:21] Production.INFO: ==27061== Releasing lock... [2025-02-13 05:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 05:14:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 02:15:05 [end_date_ymd] => 2025-02-13 05:15:05 [RateCDR] => 1 ) [2025-02-13 05: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-02-13 02:15:05' and `end` < '2025-02-13 05: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-02-13 05:15:18] Production.INFO: count ==170 [2025-02-13 05:15:18] Production.ERROR: pbx CDR StartTime 2025-02-13 02:15:05 - End Time 2025-02-13 05:15:05 [2025-02-13 05:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464204', 'tblTempUsageDetail_20' ) start [2025-02-13 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464204', 'tblTempUsageDetail_20' ) end [2025-02-13 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464204', 'tblTempVendorCDR_20' ) start [2025-02-13 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464204', 'tblTempVendorCDR_20' ) end [2025-02-13 05:15:18] Production.INFO: ProcessCDR(1,14464204,1,1,2) [2025-02-13 05:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464204', 'tblTempUsageDetail_20' ) start [2025-02-13 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464204', 'tblTempUsageDetail_20' ) end [2025-02-13 05:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 05:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 05:15:21] Production.INFO: ==27183== Releasing lock... [2025-02-13 05:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 05:15:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 02:16:05 [end_date_ymd] => 2025-02-13 05:16:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 02:16:05' and `end` < '2025-02-13 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-02-13 05:16:18] Production.INFO: count ==170 [2025-02-13 05:16:18] Production.ERROR: pbx CDR StartTime 2025-02-13 02:16:05 - End Time 2025-02-13 05:16:05 [2025-02-13 05:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464209', 'tblTempUsageDetail_20' ) start [2025-02-13 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464209', 'tblTempUsageDetail_20' ) end [2025-02-13 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464209', 'tblTempVendorCDR_20' ) start [2025-02-13 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464209', 'tblTempVendorCDR_20' ) end [2025-02-13 05:16:18] Production.INFO: ProcessCDR(1,14464209,1,1,2) [2025-02-13 05:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464209', 'tblTempUsageDetail_20' ) start [2025-02-13 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464209', 'tblTempUsageDetail_20' ) end [2025-02-13 05:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 05:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 05:16:21] Production.INFO: ==27268== Releasing lock... [2025-02-13 05:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 05:16:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 02:17:05 [end_date_ymd] => 2025-02-13 05:17:05 [RateCDR] => 1 ) [2025-02-13 05: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-02-13 02:17:05' and `end` < '2025-02-13 05: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-02-13 05:17:19] Production.INFO: count ==171 [2025-02-13 05:17:19] Production.ERROR: pbx CDR StartTime 2025-02-13 02:17:05 - End Time 2025-02-13 05:17:05 [2025-02-13 05:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 05:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464214', 'tblTempUsageDetail_20' ) start [2025-02-13 05:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464214', 'tblTempUsageDetail_20' ) end [2025-02-13 05:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464214', 'tblTempVendorCDR_20' ) start [2025-02-13 05:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464214', 'tblTempVendorCDR_20' ) end [2025-02-13 05:17:19] Production.INFO: ProcessCDR(1,14464214,1,1,2) [2025-02-13 05:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464214', 'tblTempUsageDetail_20' ) start [2025-02-13 05:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464214', 'tblTempUsageDetail_20' ) end [2025-02-13 05:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 05:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 05:17:23] Production.INFO: ==27353== Releasing lock... [2025-02-13 05:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 05:17:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 02:18:05 [end_date_ymd] => 2025-02-13 05:18:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 02:18:05' and `end` < '2025-02-13 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-02-13 05:18:18] Production.INFO: count ==174 [2025-02-13 05:18:18] Production.ERROR: pbx CDR StartTime 2025-02-13 02:18:05 - End Time 2025-02-13 05:18:05 [2025-02-13 05:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464219', 'tblTempUsageDetail_20' ) start [2025-02-13 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464219', 'tblTempUsageDetail_20' ) end [2025-02-13 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464219', 'tblTempVendorCDR_20' ) start [2025-02-13 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464219', 'tblTempVendorCDR_20' ) end [2025-02-13 05:18:18] Production.INFO: ProcessCDR(1,14464219,1,1,2) [2025-02-13 05:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464219', 'tblTempUsageDetail_20' ) start [2025-02-13 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464219', 'tblTempUsageDetail_20' ) end [2025-02-13 05:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 05:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 05:18:21] Production.INFO: ==27436== Releasing lock... [2025-02-13 05:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 05:18:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 02:19:05 [end_date_ymd] => 2025-02-13 05:19:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 02:19:05' and `end` < '2025-02-13 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-02-13 05:19:20] Production.INFO: count ==174 [2025-02-13 05:19:20] Production.ERROR: pbx CDR StartTime 2025-02-13 02:19:05 - End Time 2025-02-13 05:19:05 [2025-02-13 05:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 05:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464224', 'tblTempUsageDetail_20' ) start [2025-02-13 05:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464224', 'tblTempUsageDetail_20' ) end [2025-02-13 05:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464224', 'tblTempVendorCDR_20' ) start [2025-02-13 05:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464224', 'tblTempVendorCDR_20' ) end [2025-02-13 05:19:20] Production.INFO: ProcessCDR(1,14464224,1,1,2) [2025-02-13 05:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464224', 'tblTempUsageDetail_20' ) start [2025-02-13 05:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464224', 'tblTempUsageDetail_20' ) end [2025-02-13 05:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 05:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 05:19:23] Production.INFO: ==27524== Releasing lock... [2025-02-13 05:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 05:19:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 02:20:06 [end_date_ymd] => 2025-02-13 05:20:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 02:20:06' and `end` < '2025-02-13 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-02-13 05:20:20] Production.INFO: count ==176 [2025-02-13 05:20:20] Production.ERROR: pbx CDR StartTime 2025-02-13 02:20:06 - End Time 2025-02-13 05:20:06 [2025-02-13 05:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 05:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464230', 'tblTempUsageDetail_20' ) start [2025-02-13 05:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464230', 'tblTempUsageDetail_20' ) end [2025-02-13 05:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464230', 'tblTempVendorCDR_20' ) start [2025-02-13 05:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464230', 'tblTempVendorCDR_20' ) end [2025-02-13 05:20:20] Production.INFO: ProcessCDR(1,14464230,1,1,2) [2025-02-13 05:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464230', 'tblTempUsageDetail_20' ) start [2025-02-13 05:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464230', 'tblTempUsageDetail_20' ) end [2025-02-13 05:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 05:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 05:20:23] Production.INFO: ==27608== Releasing lock... [2025-02-13 05:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 05:20:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 02:21:05 [end_date_ymd] => 2025-02-13 05:21:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 02:21:05' and `end` < '2025-02-13 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-02-13 05:21:18] Production.INFO: count ==176 [2025-02-13 05:21:18] Production.ERROR: pbx CDR StartTime 2025-02-13 02:21:05 - End Time 2025-02-13 05:21:05 [2025-02-13 05:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464235', 'tblTempUsageDetail_20' ) start [2025-02-13 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464235', 'tblTempUsageDetail_20' ) end [2025-02-13 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464235', 'tblTempVendorCDR_20' ) start [2025-02-13 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464235', 'tblTempVendorCDR_20' ) end [2025-02-13 05:21:18] Production.INFO: ProcessCDR(1,14464235,1,1,2) [2025-02-13 05:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464235', 'tblTempUsageDetail_20' ) start [2025-02-13 05:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464235', 'tblTempUsageDetail_20' ) end [2025-02-13 05:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 05:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 05:21:22] Production.INFO: ==27689== Releasing lock... [2025-02-13 05:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 05:21:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 02:22:05 [end_date_ymd] => 2025-02-13 05:22:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 02:22:05' and `end` < '2025-02-13 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-02-13 05:22:18] Production.INFO: count ==176 [2025-02-13 05:22:18] Production.ERROR: pbx CDR StartTime 2025-02-13 02:22:05 - End Time 2025-02-13 05:22:05 [2025-02-13 05:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464240', 'tblTempUsageDetail_20' ) start [2025-02-13 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464240', 'tblTempUsageDetail_20' ) end [2025-02-13 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464240', 'tblTempVendorCDR_20' ) start [2025-02-13 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464240', 'tblTempVendorCDR_20' ) end [2025-02-13 05:22:18] Production.INFO: ProcessCDR(1,14464240,1,1,2) [2025-02-13 05:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464240', 'tblTempUsageDetail_20' ) start [2025-02-13 05:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464240', 'tblTempUsageDetail_20' ) end [2025-02-13 05:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 05:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 05:22:22] Production.INFO: ==27769== Releasing lock... [2025-02-13 05:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 05:22:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 02:23:05 [end_date_ymd] => 2025-02-13 05:23:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 02:23:05' and `end` < '2025-02-13 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-02-13 05:23:19] Production.INFO: count ==176 [2025-02-13 05:23:19] Production.ERROR: pbx CDR StartTime 2025-02-13 02:23:05 - End Time 2025-02-13 05:23:05 [2025-02-13 05:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 05:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464245', 'tblTempUsageDetail_20' ) start [2025-02-13 05:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464245', 'tblTempUsageDetail_20' ) end [2025-02-13 05:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464245', 'tblTempVendorCDR_20' ) start [2025-02-13 05:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464245', 'tblTempVendorCDR_20' ) end [2025-02-13 05:23:19] Production.INFO: ProcessCDR(1,14464245,1,1,2) [2025-02-13 05:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464245', 'tblTempUsageDetail_20' ) start [2025-02-13 05:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464245', 'tblTempUsageDetail_20' ) end [2025-02-13 05:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 05:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 05:23:22] Production.INFO: ==27846== Releasing lock... [2025-02-13 05:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 05:23:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 02:24:05 [end_date_ymd] => 2025-02-13 05:24:05 [RateCDR] => 1 ) [2025-02-13 05: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-02-13 02:24:05' and `end` < '2025-02-13 05: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-02-13 05:24:18] Production.INFO: count ==176 [2025-02-13 05:24:18] Production.ERROR: pbx CDR StartTime 2025-02-13 02:24:05 - End Time 2025-02-13 05:24:05 [2025-02-13 05:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464250', 'tblTempUsageDetail_20' ) start [2025-02-13 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464250', 'tblTempUsageDetail_20' ) end [2025-02-13 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464250', 'tblTempVendorCDR_20' ) start [2025-02-13 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464250', 'tblTempVendorCDR_20' ) end [2025-02-13 05:24:18] Production.INFO: ProcessCDR(1,14464250,1,1,2) [2025-02-13 05:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464250', 'tblTempUsageDetail_20' ) start [2025-02-13 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464250', 'tblTempUsageDetail_20' ) end [2025-02-13 05:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 05:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 05:24:21] Production.INFO: ==27920== Releasing lock... [2025-02-13 05:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 05:24:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 02:25:05 [end_date_ymd] => 2025-02-13 05:25:05 [RateCDR] => 1 ) [2025-02-13 05:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 02:25:05' and `end` < '2025-02-13 05:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-13 05:25:18] Production.INFO: count ==176 [2025-02-13 05:25:18] Production.ERROR: pbx CDR StartTime 2025-02-13 02:25:05 - End Time 2025-02-13 05:25:05 [2025-02-13 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464255', 'tblTempUsageDetail_20' ) start [2025-02-13 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464255', 'tblTempUsageDetail_20' ) end [2025-02-13 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464255', 'tblTempVendorCDR_20' ) start [2025-02-13 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464255', 'tblTempVendorCDR_20' ) end [2025-02-13 05:25:18] Production.INFO: ProcessCDR(1,14464255,1,1,2) [2025-02-13 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464255', 'tblTempUsageDetail_20' ) start [2025-02-13 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464255', 'tblTempUsageDetail_20' ) end [2025-02-13 05:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 05:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 05:25:21] Production.INFO: ==27998== Releasing lock... [2025-02-13 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 05:25:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 02:26:05 [end_date_ymd] => 2025-02-13 05:26:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 02:26:05' and `end` < '2025-02-13 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-02-13 05:26:19] Production.INFO: count ==176 [2025-02-13 05:26:19] Production.ERROR: pbx CDR StartTime 2025-02-13 02:26:05 - End Time 2025-02-13 05:26:05 [2025-02-13 05:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 05:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464260', 'tblTempUsageDetail_20' ) start [2025-02-13 05:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464260', 'tblTempUsageDetail_20' ) end [2025-02-13 05:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464260', 'tblTempVendorCDR_20' ) start [2025-02-13 05:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464260', 'tblTempVendorCDR_20' ) end [2025-02-13 05:26:19] Production.INFO: ProcessCDR(1,14464260,1,1,2) [2025-02-13 05:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464260', 'tblTempUsageDetail_20' ) start [2025-02-13 05:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464260', 'tblTempUsageDetail_20' ) end [2025-02-13 05:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 05:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 05:26:22] Production.INFO: ==28077== Releasing lock... [2025-02-13 05:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 05:26:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 02:27:05 [end_date_ymd] => 2025-02-13 05:27:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 02:27:05' and `end` < '2025-02-13 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-02-13 05:27:18] Production.INFO: count ==176 [2025-02-13 05:27:18] Production.ERROR: pbx CDR StartTime 2025-02-13 02:27:05 - End Time 2025-02-13 05:27:05 [2025-02-13 05:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464265', 'tblTempUsageDetail_20' ) start [2025-02-13 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464265', 'tblTempUsageDetail_20' ) end [2025-02-13 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464265', 'tblTempVendorCDR_20' ) start [2025-02-13 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464265', 'tblTempVendorCDR_20' ) end [2025-02-13 05:27:18] Production.INFO: ProcessCDR(1,14464265,1,1,2) [2025-02-13 05:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464265', 'tblTempUsageDetail_20' ) start [2025-02-13 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464265', 'tblTempUsageDetail_20' ) end [2025-02-13 05:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 05:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 05:27:21] Production.INFO: ==28152== Releasing lock... [2025-02-13 05:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 05:27:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 02:28:05 [end_date_ymd] => 2025-02-13 05:28:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 02:28:05' and `end` < '2025-02-13 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-02-13 05:28:18] Production.INFO: count ==176 [2025-02-13 05:28:18] Production.ERROR: pbx CDR StartTime 2025-02-13 02:28:05 - End Time 2025-02-13 05:28:05 [2025-02-13 05:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464270', 'tblTempUsageDetail_20' ) start [2025-02-13 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464270', 'tblTempUsageDetail_20' ) end [2025-02-13 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464270', 'tblTempVendorCDR_20' ) start [2025-02-13 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464270', 'tblTempVendorCDR_20' ) end [2025-02-13 05:28:18] Production.INFO: ProcessCDR(1,14464270,1,1,2) [2025-02-13 05:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464270', 'tblTempUsageDetail_20' ) start [2025-02-13 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464270', 'tblTempUsageDetail_20' ) end [2025-02-13 05:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 05:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 05:28:21] Production.INFO: ==28225== Releasing lock... [2025-02-13 05:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 05:28:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 02:29:05 [end_date_ymd] => 2025-02-13 05:29:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 02:29:05' and `end` < '2025-02-13 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-02-13 05:29:18] Production.INFO: count ==176 [2025-02-13 05:29:18] Production.ERROR: pbx CDR StartTime 2025-02-13 02:29:05 - End Time 2025-02-13 05:29:05 [2025-02-13 05:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464275', 'tblTempUsageDetail_20' ) start [2025-02-13 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464275', 'tblTempUsageDetail_20' ) end [2025-02-13 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464275', 'tblTempVendorCDR_20' ) start [2025-02-13 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464275', 'tblTempVendorCDR_20' ) end [2025-02-13 05:29:18] Production.INFO: ProcessCDR(1,14464275,1,1,2) [2025-02-13 05:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464275', 'tblTempUsageDetail_20' ) start [2025-02-13 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464275', 'tblTempUsageDetail_20' ) end [2025-02-13 05:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 05:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 05:29:21] Production.INFO: ==28301== Releasing lock... [2025-02-13 05:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 05:29:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 02:30:06 [end_date_ymd] => 2025-02-13 05:30:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 02:30:06' and `end` < '2025-02-13 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-02-13 05:30:19] Production.INFO: count ==171 [2025-02-13 05:30:19] Production.ERROR: pbx CDR StartTime 2025-02-13 02:30:06 - End Time 2025-02-13 05:30:06 [2025-02-13 05:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464281', 'tblTempUsageDetail_20' ) start [2025-02-13 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464281', 'tblTempUsageDetail_20' ) end [2025-02-13 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464281', 'tblTempVendorCDR_20' ) start [2025-02-13 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464281', 'tblTempVendorCDR_20' ) end [2025-02-13 05:30:19] Production.INFO: ProcessCDR(1,14464281,1,1,2) [2025-02-13 05:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464281', 'tblTempUsageDetail_20' ) start [2025-02-13 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464281', 'tblTempUsageDetail_20' ) end [2025-02-13 05:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 05:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 05:30:22] Production.INFO: ==28414== Releasing lock... [2025-02-13 05:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 05:30:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 02:31:05 [end_date_ymd] => 2025-02-13 05:31:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 02:31:05' and `end` < '2025-02-13 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-02-13 05:31:17] Production.INFO: count ==163 [2025-02-13 05:31:17] Production.ERROR: pbx CDR StartTime 2025-02-13 02:31:05 - End Time 2025-02-13 05:31:05 [2025-02-13 05:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464286', 'tblTempUsageDetail_20' ) start [2025-02-13 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464286', 'tblTempUsageDetail_20' ) end [2025-02-13 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464286', 'tblTempVendorCDR_20' ) start [2025-02-13 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464286', 'tblTempVendorCDR_20' ) end [2025-02-13 05:31:17] Production.INFO: ProcessCDR(1,14464286,1,1,2) [2025-02-13 05:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464286', 'tblTempUsageDetail_20' ) start [2025-02-13 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464286', 'tblTempUsageDetail_20' ) end [2025-02-13 05:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 05:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 05:31:21] Production.INFO: ==28492== Releasing lock... [2025-02-13 05:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 05:31:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 05:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 02:32:05 [end_date_ymd] => 2025-02-13 05:32:05 [RateCDR] => 1 ) [2025-02-13 05: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-02-13 02:32:05' and `end` < '2025-02-13 05: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-02-13 05:32:20] Production.INFO: count ==165 [2025-02-13 05:32:20] Production.ERROR: pbx CDR StartTime 2025-02-13 02:32:05 - End Time 2025-02-13 05:32:05 [2025-02-13 05:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 05:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464291', 'tblTempUsageDetail_20' ) start [2025-02-13 05:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464291', 'tblTempUsageDetail_20' ) end [2025-02-13 05:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464291', 'tblTempVendorCDR_20' ) start [2025-02-13 05:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464291', 'tblTempVendorCDR_20' ) end [2025-02-13 05:32:20] Production.INFO: ProcessCDR(1,14464291,1,1,2) [2025-02-13 05:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464291', 'tblTempUsageDetail_20' ) start [2025-02-13 05:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464291', 'tblTempUsageDetail_20' ) end [2025-02-13 05:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 05:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 05:32:23] Production.INFO: ==28566== Releasing lock... [2025-02-13 05:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 05:32:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 02:33:05 [end_date_ymd] => 2025-02-13 05:33:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 02:33:05' and `end` < '2025-02-13 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-02-13 05:33:18] Production.INFO: count ==167 [2025-02-13 05:33:18] Production.ERROR: pbx CDR StartTime 2025-02-13 02:33:05 - End Time 2025-02-13 05:33:05 [2025-02-13 05:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464296', 'tblTempUsageDetail_20' ) start [2025-02-13 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464296', 'tblTempUsageDetail_20' ) end [2025-02-13 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464296', 'tblTempVendorCDR_20' ) start [2025-02-13 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464296', 'tblTempVendorCDR_20' ) end [2025-02-13 05:33:18] Production.INFO: ProcessCDR(1,14464296,1,1,2) [2025-02-13 05:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464296', 'tblTempUsageDetail_20' ) start [2025-02-13 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464296', 'tblTempUsageDetail_20' ) end [2025-02-13 05:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 05:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 05:33:21] Production.INFO: ==28641== Releasing lock... [2025-02-13 05:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 05:33:21] Production.INFO: 29 MB #Memory Used# [2025-02-13 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 02:34:05 [end_date_ymd] => 2025-02-13 05:34:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 02:34:05' and `end` < '2025-02-13 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-02-13 05:34:19] Production.INFO: count ==167 [2025-02-13 05:34:19] Production.ERROR: pbx CDR StartTime 2025-02-13 02:34:05 - End Time 2025-02-13 05:34:05 [2025-02-13 05:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 05:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464301', 'tblTempUsageDetail_20' ) start [2025-02-13 05:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464301', 'tblTempUsageDetail_20' ) end [2025-02-13 05:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464301', 'tblTempVendorCDR_20' ) start [2025-02-13 05:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464301', 'tblTempVendorCDR_20' ) end [2025-02-13 05:34:19] Production.INFO: ProcessCDR(1,14464301,1,1,2) [2025-02-13 05:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464301', 'tblTempUsageDetail_20' ) start [2025-02-13 05:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464301', 'tblTempUsageDetail_20' ) end [2025-02-13 05:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 05:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 05:34:22] Production.INFO: ==28714== Releasing lock... [2025-02-13 05:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 05:34:22] Production.INFO: 29 MB #Memory Used# [2025-02-13 05:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 02:35:04 [end_date_ymd] => 2025-02-13 05:35:04 [RateCDR] => 1 ) [2025-02-13 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-02-13 02:35:04' and `end` < '2025-02-13 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-02-13 05:35:18] Production.INFO: count ==167 [2025-02-13 05:35:18] Production.ERROR: pbx CDR StartTime 2025-02-13 02:35:04 - End Time 2025-02-13 05:35:04 [2025-02-13 05:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464306', 'tblTempUsageDetail_20' ) start [2025-02-13 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464306', 'tblTempUsageDetail_20' ) end [2025-02-13 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464306', 'tblTempVendorCDR_20' ) start [2025-02-13 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464306', 'tblTempVendorCDR_20' ) end [2025-02-13 05:35:18] Production.INFO: ProcessCDR(1,14464306,1,1,2) [2025-02-13 05:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464306', 'tblTempUsageDetail_20' ) start [2025-02-13 05:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464306', 'tblTempUsageDetail_20' ) end [2025-02-13 05:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 05:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 05:35:22] Production.INFO: ==28784== Releasing lock... [2025-02-13 05:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 05:35:22] Production.INFO: 29 MB #Memory Used# [2025-02-13 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 02:36:05 [end_date_ymd] => 2025-02-13 05:36:05 [RateCDR] => 1 ) [2025-02-13 05: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-02-13 02:36:05' and `end` < '2025-02-13 05: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-02-13 05:36:19] Production.INFO: count ==167 [2025-02-13 05:36:19] Production.ERROR: pbx CDR StartTime 2025-02-13 02:36:05 - End Time 2025-02-13 05:36:05 [2025-02-13 05:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 05:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464311', 'tblTempUsageDetail_20' ) start [2025-02-13 05:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464311', 'tblTempUsageDetail_20' ) end [2025-02-13 05:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464311', 'tblTempVendorCDR_20' ) start [2025-02-13 05:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464311', 'tblTempVendorCDR_20' ) end [2025-02-13 05:36:19] Production.INFO: ProcessCDR(1,14464311,1,1,2) [2025-02-13 05:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464311', 'tblTempUsageDetail_20' ) start [2025-02-13 05:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464311', 'tblTempUsageDetail_20' ) end [2025-02-13 05:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 05:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 05:36:22] Production.INFO: ==28856== Releasing lock... [2025-02-13 05:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 05:36:22] Production.INFO: 29 MB #Memory Used# [2025-02-13 05:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 02:37:04 [end_date_ymd] => 2025-02-13 05:37:04 [RateCDR] => 1 ) [2025-02-13 05:37: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-02-13 02:37:04' and `end` < '2025-02-13 05:37: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-02-13 05:37:18] Production.INFO: count ==167 [2025-02-13 05:37:18] Production.ERROR: pbx CDR StartTime 2025-02-13 02:37:04 - End Time 2025-02-13 05:37:04 [2025-02-13 05:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464316', 'tblTempUsageDetail_20' ) start [2025-02-13 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464316', 'tblTempUsageDetail_20' ) end [2025-02-13 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464316', 'tblTempVendorCDR_20' ) start [2025-02-13 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464316', 'tblTempVendorCDR_20' ) end [2025-02-13 05:37:18] Production.INFO: ProcessCDR(1,14464316,1,1,2) [2025-02-13 05:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464316', 'tblTempUsageDetail_20' ) start [2025-02-13 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464316', 'tblTempUsageDetail_20' ) end [2025-02-13 05:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 05:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 05:37:21] Production.INFO: ==28929== Releasing lock... [2025-02-13 05:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 05:37:21] Production.INFO: 29 MB #Memory Used# [2025-02-13 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 02:38:05 [end_date_ymd] => 2025-02-13 05:38:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 02:38:05' and `end` < '2025-02-13 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-02-13 05:38:19] Production.INFO: count ==167 [2025-02-13 05:38:19] Production.ERROR: pbx CDR StartTime 2025-02-13 02:38:05 - End Time 2025-02-13 05:38:05 [2025-02-13 05:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464321', 'tblTempUsageDetail_20' ) start [2025-02-13 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464321', 'tblTempUsageDetail_20' ) end [2025-02-13 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464321', 'tblTempVendorCDR_20' ) start [2025-02-13 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464321', 'tblTempVendorCDR_20' ) end [2025-02-13 05:38:19] Production.INFO: ProcessCDR(1,14464321,1,1,2) [2025-02-13 05:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464321', 'tblTempUsageDetail_20' ) start [2025-02-13 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464321', 'tblTempUsageDetail_20' ) end [2025-02-13 05:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 05:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 05:38:22] Production.INFO: ==29002== Releasing lock... [2025-02-13 05:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 05:38:22] Production.INFO: 29 MB #Memory Used# [2025-02-13 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 02:39:05 [end_date_ymd] => 2025-02-13 05:39:05 [RateCDR] => 1 ) [2025-02-13 05: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-02-13 02:39:05' and `end` < '2025-02-13 05: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-02-13 05:39:18] Production.INFO: count ==163 [2025-02-13 05:39:18] Production.ERROR: pbx CDR StartTime 2025-02-13 02:39:05 - End Time 2025-02-13 05:39:05 [2025-02-13 05:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464326', 'tblTempUsageDetail_20' ) start [2025-02-13 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464326', 'tblTempUsageDetail_20' ) end [2025-02-13 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464326', 'tblTempVendorCDR_20' ) start [2025-02-13 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464326', 'tblTempVendorCDR_20' ) end [2025-02-13 05:39:18] Production.INFO: ProcessCDR(1,14464326,1,1,2) [2025-02-13 05:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464326', 'tblTempUsageDetail_20' ) start [2025-02-13 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464326', 'tblTempUsageDetail_20' ) end [2025-02-13 05:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 05:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 05:39:21] Production.INFO: ==29078== Releasing lock... [2025-02-13 05:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 05:39:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 05:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 02:40:05 [end_date_ymd] => 2025-02-13 05:40:05 [RateCDR] => 1 ) [2025-02-13 05: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-02-13 02:40:05' and `end` < '2025-02-13 05: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-02-13 05:40:18] Production.INFO: count ==160 [2025-02-13 05:40:19] Production.ERROR: pbx CDR StartTime 2025-02-13 02:40:05 - End Time 2025-02-13 05:40:05 [2025-02-13 05:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464331', 'tblTempUsageDetail_20' ) start [2025-02-13 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464331', 'tblTempUsageDetail_20' ) end [2025-02-13 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464331', 'tblTempVendorCDR_20' ) start [2025-02-13 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464331', 'tblTempVendorCDR_20' ) end [2025-02-13 05:40:19] Production.INFO: ProcessCDR(1,14464331,1,1,2) [2025-02-13 05:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464331', 'tblTempUsageDetail_20' ) start [2025-02-13 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464331', 'tblTempUsageDetail_20' ) end [2025-02-13 05:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 05:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 05:40:22] Production.INFO: ==29151== Releasing lock... [2025-02-13 05:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 05:40:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 05:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 02:41:06 [end_date_ymd] => 2025-02-13 05:41:06 [RateCDR] => 1 ) [2025-02-13 05: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-02-13 02:41:06' and `end` < '2025-02-13 05: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-02-13 05:41:20] Production.INFO: count ==160 [2025-02-13 05:41:20] Production.ERROR: pbx CDR StartTime 2025-02-13 02:41:06 - End Time 2025-02-13 05:41:06 [2025-02-13 05:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 05:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464337', 'tblTempUsageDetail_20' ) start [2025-02-13 05:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464337', 'tblTempUsageDetail_20' ) end [2025-02-13 05:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464337', 'tblTempVendorCDR_20' ) start [2025-02-13 05:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464337', 'tblTempVendorCDR_20' ) end [2025-02-13 05:41:20] Production.INFO: ProcessCDR(1,14464337,1,1,2) [2025-02-13 05:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464337', 'tblTempUsageDetail_20' ) start [2025-02-13 05:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464337', 'tblTempUsageDetail_20' ) end [2025-02-13 05:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 05:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 05:41:23] Production.INFO: ==29231== Releasing lock... [2025-02-13 05:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 05:41:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 02:42:05 [end_date_ymd] => 2025-02-13 05:42:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 02:42:05' and `end` < '2025-02-13 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-02-13 05:42:18] Production.INFO: count ==160 [2025-02-13 05:42:18] Production.ERROR: pbx CDR StartTime 2025-02-13 02:42:05 - End Time 2025-02-13 05:42:05 [2025-02-13 05:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464342', 'tblTempUsageDetail_20' ) start [2025-02-13 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464342', 'tblTempUsageDetail_20' ) end [2025-02-13 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464342', 'tblTempVendorCDR_20' ) start [2025-02-13 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464342', 'tblTempVendorCDR_20' ) end [2025-02-13 05:42:18] Production.INFO: ProcessCDR(1,14464342,1,1,2) [2025-02-13 05:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464342', 'tblTempUsageDetail_20' ) start [2025-02-13 05:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464342', 'tblTempUsageDetail_20' ) end [2025-02-13 05:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 05:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 05:42:22] Production.INFO: ==29304== Releasing lock... [2025-02-13 05:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 05:42:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 02:43:05 [end_date_ymd] => 2025-02-13 05:43:05 [RateCDR] => 1 ) [2025-02-13 05: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-02-13 02:43:05' and `end` < '2025-02-13 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-02-13 05:43:17] Production.INFO: count ==160 [2025-02-13 05:43:17] Production.ERROR: pbx CDR StartTime 2025-02-13 02:43:05 - End Time 2025-02-13 05:43:05 [2025-02-13 05:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464347', 'tblTempUsageDetail_20' ) start [2025-02-13 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464347', 'tblTempUsageDetail_20' ) end [2025-02-13 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464347', 'tblTempVendorCDR_20' ) start [2025-02-13 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464347', 'tblTempVendorCDR_20' ) end [2025-02-13 05:43:18] Production.INFO: ProcessCDR(1,14464347,1,1,2) [2025-02-13 05:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464347', 'tblTempUsageDetail_20' ) start [2025-02-13 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464347', 'tblTempUsageDetail_20' ) end [2025-02-13 05:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 05:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 05:43:21] Production.INFO: ==29374== Releasing lock... [2025-02-13 05:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 05:43:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 02:44:05 [end_date_ymd] => 2025-02-13 05:44:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 02:44:05' and `end` < '2025-02-13 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-02-13 05:44:18] Production.INFO: count ==159 [2025-02-13 05:44:18] Production.ERROR: pbx CDR StartTime 2025-02-13 02:44:05 - End Time 2025-02-13 05:44:05 [2025-02-13 05:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464352', 'tblTempUsageDetail_20' ) start [2025-02-13 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464352', 'tblTempUsageDetail_20' ) end [2025-02-13 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464352', 'tblTempVendorCDR_20' ) start [2025-02-13 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464352', 'tblTempVendorCDR_20' ) end [2025-02-13 05:44:18] Production.INFO: ProcessCDR(1,14464352,1,1,2) [2025-02-13 05:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464352', 'tblTempUsageDetail_20' ) start [2025-02-13 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464352', 'tblTempUsageDetail_20' ) end [2025-02-13 05:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 05:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 05:44:21] Production.INFO: ==29448== Releasing lock... [2025-02-13 05:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 05:44:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 02:45:05 [end_date_ymd] => 2025-02-13 05:45:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 02:45:05' and `end` < '2025-02-13 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-02-13 05:45:18] Production.INFO: count ==158 [2025-02-13 05:45:18] Production.ERROR: pbx CDR StartTime 2025-02-13 02:45:05 - End Time 2025-02-13 05:45:05 [2025-02-13 05:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464357', 'tblTempUsageDetail_20' ) start [2025-02-13 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464357', 'tblTempUsageDetail_20' ) end [2025-02-13 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464357', 'tblTempVendorCDR_20' ) start [2025-02-13 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464357', 'tblTempVendorCDR_20' ) end [2025-02-13 05:45:18] Production.INFO: ProcessCDR(1,14464357,1,1,2) [2025-02-13 05:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464357', 'tblTempUsageDetail_20' ) start [2025-02-13 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464357', 'tblTempUsageDetail_20' ) end [2025-02-13 05:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 05:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 05:45:21] Production.INFO: ==29522== Releasing lock... [2025-02-13 05:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 05:45:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 02:46:05 [end_date_ymd] => 2025-02-13 05:46:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 02:46:05' and `end` < '2025-02-13 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-02-13 05:46:18] Production.INFO: count ==149 [2025-02-13 05:46:18] Production.ERROR: pbx CDR StartTime 2025-02-13 02:46:05 - End Time 2025-02-13 05:46:05 [2025-02-13 05:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464362', 'tblTempUsageDetail_20' ) start [2025-02-13 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464362', 'tblTempUsageDetail_20' ) end [2025-02-13 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464362', 'tblTempVendorCDR_20' ) start [2025-02-13 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464362', 'tblTempVendorCDR_20' ) end [2025-02-13 05:46:18] Production.INFO: ProcessCDR(1,14464362,1,1,2) [2025-02-13 05:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464362', 'tblTempUsageDetail_20' ) start [2025-02-13 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464362', 'tblTempUsageDetail_20' ) end [2025-02-13 05:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 05:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 05:46:21] Production.INFO: ==29640== Releasing lock... [2025-02-13 05:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 05:46:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-13 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 02:47:05 [end_date_ymd] => 2025-02-13 05:47:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 02:47:05' and `end` < '2025-02-13 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-02-13 05:47:20] Production.INFO: count ==151 [2025-02-13 05:47:20] Production.ERROR: pbx CDR StartTime 2025-02-13 02:47:05 - End Time 2025-02-13 05:47:05 [2025-02-13 05:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 05:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464367', 'tblTempUsageDetail_20' ) start [2025-02-13 05:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464367', 'tblTempUsageDetail_20' ) end [2025-02-13 05:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464367', 'tblTempVendorCDR_20' ) start [2025-02-13 05:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464367', 'tblTempVendorCDR_20' ) end [2025-02-13 05:47:20] Production.INFO: ProcessCDR(1,14464367,1,1,2) [2025-02-13 05:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464367', 'tblTempUsageDetail_20' ) start [2025-02-13 05:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464367', 'tblTempUsageDetail_20' ) end [2025-02-13 05:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 05:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 05:47:23] Production.INFO: ==29715== Releasing lock... [2025-02-13 05:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 05:47:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-13 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 02:48:05 [end_date_ymd] => 2025-02-13 05:48:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 02:48:05' and `end` < '2025-02-13 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-02-13 05:48:18] Production.INFO: count ==153 [2025-02-13 05:48:18] Production.ERROR: pbx CDR StartTime 2025-02-13 02:48:05 - End Time 2025-02-13 05:48:05 [2025-02-13 05:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464372', 'tblTempUsageDetail_20' ) start [2025-02-13 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464372', 'tblTempUsageDetail_20' ) end [2025-02-13 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464372', 'tblTempVendorCDR_20' ) start [2025-02-13 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464372', 'tblTempVendorCDR_20' ) end [2025-02-13 05:48:18] Production.INFO: ProcessCDR(1,14464372,1,1,2) [2025-02-13 05:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464372', 'tblTempUsageDetail_20' ) start [2025-02-13 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464372', 'tblTempUsageDetail_20' ) end [2025-02-13 05:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 05:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 05:48:21] Production.INFO: ==29783== Releasing lock... [2025-02-13 05:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 05:48:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-13 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 02:49:05 [end_date_ymd] => 2025-02-13 05:49:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 02:49:05' and `end` < '2025-02-13 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-02-13 05:49:19] Production.INFO: count ==154 [2025-02-13 05:49:19] Production.ERROR: pbx CDR StartTime 2025-02-13 02:49:05 - End Time 2025-02-13 05:49:05 [2025-02-13 05:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 05:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464377', 'tblTempUsageDetail_20' ) start [2025-02-13 05:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464377', 'tblTempUsageDetail_20' ) end [2025-02-13 05:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464377', 'tblTempVendorCDR_20' ) start [2025-02-13 05:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464377', 'tblTempVendorCDR_20' ) end [2025-02-13 05:49:19] Production.INFO: ProcessCDR(1,14464377,1,1,2) [2025-02-13 05:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464377', 'tblTempUsageDetail_20' ) start [2025-02-13 05:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464377', 'tblTempUsageDetail_20' ) end [2025-02-13 05:49:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 05:49:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 05:49:24] Production.INFO: ==29856== Releasing lock... [2025-02-13 05:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 05:49:24] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 02:50:06 [end_date_ymd] => 2025-02-13 05:50:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 02:50:06' and `end` < '2025-02-13 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-02-13 05:50:21] Production.INFO: count ==150 [2025-02-13 05:50:21] Production.ERROR: pbx CDR StartTime 2025-02-13 02:50:06 - End Time 2025-02-13 05:50:06 [2025-02-13 05:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 05:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464383', 'tblTempUsageDetail_20' ) start [2025-02-13 05:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464383', 'tblTempUsageDetail_20' ) end [2025-02-13 05:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464383', 'tblTempVendorCDR_20' ) start [2025-02-13 05:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464383', 'tblTempVendorCDR_20' ) end [2025-02-13 05:50:21] Production.INFO: ProcessCDR(1,14464383,1,1,2) [2025-02-13 05:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464383', 'tblTempUsageDetail_20' ) start [2025-02-13 05:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464383', 'tblTempUsageDetail_20' ) end [2025-02-13 05:50:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 05:50:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 05:50:24] Production.INFO: ==29932== Releasing lock... [2025-02-13 05:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 05:50:24] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 02:51:05 [end_date_ymd] => 2025-02-13 05:51:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 02:51:05' and `end` < '2025-02-13 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-02-13 05:51:18] Production.INFO: count ==148 [2025-02-13 05:51:18] Production.ERROR: pbx CDR StartTime 2025-02-13 02:51:05 - End Time 2025-02-13 05:51:05 [2025-02-13 05:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464388', 'tblTempUsageDetail_20' ) start [2025-02-13 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464388', 'tblTempUsageDetail_20' ) end [2025-02-13 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464388', 'tblTempVendorCDR_20' ) start [2025-02-13 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464388', 'tblTempVendorCDR_20' ) end [2025-02-13 05:51:18] Production.INFO: ProcessCDR(1,14464388,1,1,2) [2025-02-13 05:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464388', 'tblTempUsageDetail_20' ) start [2025-02-13 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464388', 'tblTempUsageDetail_20' ) end [2025-02-13 05:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 05:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 05:51:21] Production.INFO: ==30004== Releasing lock... [2025-02-13 05:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 05:51:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 02:52:05 [end_date_ymd] => 2025-02-13 05:52:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 02:52:05' and `end` < '2025-02-13 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-02-13 05:52:18] Production.INFO: count ==148 [2025-02-13 05:52:18] Production.ERROR: pbx CDR StartTime 2025-02-13 02:52:05 - End Time 2025-02-13 05:52:05 [2025-02-13 05:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464393', 'tblTempUsageDetail_20' ) start [2025-02-13 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464393', 'tblTempUsageDetail_20' ) end [2025-02-13 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464393', 'tblTempVendorCDR_20' ) start [2025-02-13 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464393', 'tblTempVendorCDR_20' ) end [2025-02-13 05:52:18] Production.INFO: ProcessCDR(1,14464393,1,1,2) [2025-02-13 05:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464393', 'tblTempUsageDetail_20' ) start [2025-02-13 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464393', 'tblTempUsageDetail_20' ) end [2025-02-13 05:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 05:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 05:52:21] Production.INFO: ==30077== Releasing lock... [2025-02-13 05:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 05:52:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 02:53:05 [end_date_ymd] => 2025-02-13 05:53:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 02:53:05' and `end` < '2025-02-13 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-02-13 05:53:18] Production.INFO: count ==148 [2025-02-13 05:53:18] Production.ERROR: pbx CDR StartTime 2025-02-13 02:53:05 - End Time 2025-02-13 05:53:05 [2025-02-13 05:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464398', 'tblTempUsageDetail_20' ) start [2025-02-13 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464398', 'tblTempUsageDetail_20' ) end [2025-02-13 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464398', 'tblTempVendorCDR_20' ) start [2025-02-13 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464398', 'tblTempVendorCDR_20' ) end [2025-02-13 05:53:18] Production.INFO: ProcessCDR(1,14464398,1,1,2) [2025-02-13 05:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464398', 'tblTempUsageDetail_20' ) start [2025-02-13 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464398', 'tblTempUsageDetail_20' ) end [2025-02-13 05:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 05:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 05:53:21] Production.INFO: ==30147== Releasing lock... [2025-02-13 05:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 05:53:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 02:54:05 [end_date_ymd] => 2025-02-13 05:54:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 02:54:05' and `end` < '2025-02-13 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-02-13 05:54:19] Production.INFO: count ==152 [2025-02-13 05:54:19] Production.ERROR: pbx CDR StartTime 2025-02-13 02:54:05 - End Time 2025-02-13 05:54:05 [2025-02-13 05:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464403', 'tblTempUsageDetail_20' ) start [2025-02-13 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464403', 'tblTempUsageDetail_20' ) end [2025-02-13 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464403', 'tblTempVendorCDR_20' ) start [2025-02-13 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464403', 'tblTempVendorCDR_20' ) end [2025-02-13 05:54:19] Production.INFO: ProcessCDR(1,14464403,1,1,2) [2025-02-13 05:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464403', 'tblTempUsageDetail_20' ) start [2025-02-13 05:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464403', 'tblTempUsageDetail_20' ) end [2025-02-13 05:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 05:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 05:54:22] Production.INFO: ==30220== Releasing lock... [2025-02-13 05:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 05:54:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 02:55:05 [end_date_ymd] => 2025-02-13 05:55:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 02:55:05' and `end` < '2025-02-13 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-02-13 05:55:18] Production.INFO: count ==152 [2025-02-13 05:55:18] Production.ERROR: pbx CDR StartTime 2025-02-13 02:55:05 - End Time 2025-02-13 05:55:05 [2025-02-13 05:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464408', 'tblTempUsageDetail_20' ) start [2025-02-13 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464408', 'tblTempUsageDetail_20' ) end [2025-02-13 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464408', 'tblTempVendorCDR_20' ) start [2025-02-13 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464408', 'tblTempVendorCDR_20' ) end [2025-02-13 05:55:18] Production.INFO: ProcessCDR(1,14464408,1,1,2) [2025-02-13 05:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464408', 'tblTempUsageDetail_20' ) start [2025-02-13 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464408', 'tblTempUsageDetail_20' ) end [2025-02-13 05:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 05:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 05:55:21] Production.INFO: ==30293== Releasing lock... [2025-02-13 05:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 05:55:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 02:56:05 [end_date_ymd] => 2025-02-13 05:56:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 02:56:05' and `end` < '2025-02-13 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-02-13 05:56:18] Production.INFO: count ==152 [2025-02-13 05:56:18] Production.ERROR: pbx CDR StartTime 2025-02-13 02:56:05 - End Time 2025-02-13 05:56:05 [2025-02-13 05:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464413', 'tblTempUsageDetail_20' ) start [2025-02-13 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464413', 'tblTempUsageDetail_20' ) end [2025-02-13 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464413', 'tblTempVendorCDR_20' ) start [2025-02-13 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464413', 'tblTempVendorCDR_20' ) end [2025-02-13 05:56:18] Production.INFO: ProcessCDR(1,14464413,1,1,2) [2025-02-13 05:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464413', 'tblTempUsageDetail_20' ) start [2025-02-13 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464413', 'tblTempUsageDetail_20' ) end [2025-02-13 05:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 05:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 05:56:21] Production.INFO: ==30364== Releasing lock... [2025-02-13 05:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 05:56:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 02:57:05 [end_date_ymd] => 2025-02-13 05:57:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 02:57:05' and `end` < '2025-02-13 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-02-13 05:57:18] Production.INFO: count ==152 [2025-02-13 05:57:18] Production.ERROR: pbx CDR StartTime 2025-02-13 02:57:05 - End Time 2025-02-13 05:57:05 [2025-02-13 05:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464418', 'tblTempUsageDetail_20' ) start [2025-02-13 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464418', 'tblTempUsageDetail_20' ) end [2025-02-13 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464418', 'tblTempVendorCDR_20' ) start [2025-02-13 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464418', 'tblTempVendorCDR_20' ) end [2025-02-13 05:57:18] Production.INFO: ProcessCDR(1,14464418,1,1,2) [2025-02-13 05:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464418', 'tblTempUsageDetail_20' ) start [2025-02-13 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464418', 'tblTempUsageDetail_20' ) end [2025-02-13 05:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 05:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 05:57:21] Production.INFO: ==30435== Releasing lock... [2025-02-13 05:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 05:57:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 02:58:05 [end_date_ymd] => 2025-02-13 05:58:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 02:58:05' and `end` < '2025-02-13 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-02-13 05:58:18] Production.INFO: count ==152 [2025-02-13 05:58:18] Production.ERROR: pbx CDR StartTime 2025-02-13 02:58:05 - End Time 2025-02-13 05:58:05 [2025-02-13 05:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464423', 'tblTempUsageDetail_20' ) start [2025-02-13 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464423', 'tblTempUsageDetail_20' ) end [2025-02-13 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464423', 'tblTempVendorCDR_20' ) start [2025-02-13 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464423', 'tblTempVendorCDR_20' ) end [2025-02-13 05:58:18] Production.INFO: ProcessCDR(1,14464423,1,1,2) [2025-02-13 05:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464423', 'tblTempUsageDetail_20' ) start [2025-02-13 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464423', 'tblTempUsageDetail_20' ) end [2025-02-13 05:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 05:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 05:58:21] Production.INFO: ==30506== Releasing lock... [2025-02-13 05:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 05:58:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 02:59:05 [end_date_ymd] => 2025-02-13 05:59:05 [RateCDR] => 1 ) [2025-02-13 05: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-02-13 02:59:05' and `end` < '2025-02-13 05: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-02-13 05:59:19] Production.INFO: count ==152 [2025-02-13 05:59:19] Production.ERROR: pbx CDR StartTime 2025-02-13 02:59:05 - End Time 2025-02-13 05:59:05 [2025-02-13 05:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464428', 'tblTempUsageDetail_20' ) start [2025-02-13 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464428', 'tblTempUsageDetail_20' ) end [2025-02-13 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464428', 'tblTempVendorCDR_20' ) start [2025-02-13 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464428', 'tblTempVendorCDR_20' ) end [2025-02-13 05:59:19] Production.INFO: ProcessCDR(1,14464428,1,1,2) [2025-02-13 05:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 05:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 05:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464428', 'tblTempUsageDetail_20' ) start [2025-02-13 05:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464428', 'tblTempUsageDetail_20' ) end [2025-02-13 05:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 05:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 05:59:22] Production.INFO: ==30580== Releasing lock... [2025-02-13 05:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 05:59:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 03:00:06 [end_date_ymd] => 2025-02-13 06:00:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 03:00:06' and `end` < '2025-02-13 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-02-13 06:00:19] Production.INFO: count ==154 [2025-02-13 06:00:19] Production.ERROR: pbx CDR StartTime 2025-02-13 03:00:06 - End Time 2025-02-13 06:00:06 [2025-02-13 06:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464434', 'tblTempUsageDetail_20' ) start [2025-02-13 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464434', 'tblTempUsageDetail_20' ) end [2025-02-13 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464434', 'tblTempVendorCDR_20' ) start [2025-02-13 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464434', 'tblTempVendorCDR_20' ) end [2025-02-13 06:00:19] Production.INFO: ProcessCDR(1,14464434,1,1,2) [2025-02-13 06:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464434', 'tblTempUsageDetail_20' ) start [2025-02-13 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464434', 'tblTempUsageDetail_20' ) end [2025-02-13 06:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 06:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 06:00:22] Production.INFO: ==30657== Releasing lock... [2025-02-13 06:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 06:00:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 03:01:05 [end_date_ymd] => 2025-02-13 06:01:05 [RateCDR] => 1 ) [2025-02-13 06: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-02-13 03:01:05' and `end` < '2025-02-13 06: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-02-13 06:01:18] Production.INFO: count ==154 [2025-02-13 06:01:18] Production.ERROR: pbx CDR StartTime 2025-02-13 03:01:05 - End Time 2025-02-13 06:01:05 [2025-02-13 06:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464439', 'tblTempUsageDetail_20' ) start [2025-02-13 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464439', 'tblTempUsageDetail_20' ) end [2025-02-13 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464439', 'tblTempVendorCDR_20' ) start [2025-02-13 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464439', 'tblTempVendorCDR_20' ) end [2025-02-13 06:01:18] Production.INFO: ProcessCDR(1,14464439,1,1,2) [2025-02-13 06:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464439', 'tblTempUsageDetail_20' ) start [2025-02-13 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464439', 'tblTempUsageDetail_20' ) end [2025-02-13 06:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 06:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 06:01:21] Production.INFO: ==30786== Releasing lock... [2025-02-13 06:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 06:01:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 03:02:05 [end_date_ymd] => 2025-02-13 06:02:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 03:02:05' and `end` < '2025-02-13 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-02-13 06:02:19] Production.INFO: count ==154 [2025-02-13 06:02:19] Production.ERROR: pbx CDR StartTime 2025-02-13 03:02:05 - End Time 2025-02-13 06:02:05 [2025-02-13 06:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464444', 'tblTempUsageDetail_20' ) start [2025-02-13 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464444', 'tblTempUsageDetail_20' ) end [2025-02-13 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464444', 'tblTempVendorCDR_20' ) start [2025-02-13 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464444', 'tblTempVendorCDR_20' ) end [2025-02-13 06:02:19] Production.INFO: ProcessCDR(1,14464444,1,1,2) [2025-02-13 06:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464444', 'tblTempUsageDetail_20' ) start [2025-02-13 06:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464444', 'tblTempUsageDetail_20' ) end [2025-02-13 06:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 06:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 06:02:22] Production.INFO: ==30856== Releasing lock... [2025-02-13 06:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 06:02:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 03:03:05 [end_date_ymd] => 2025-02-13 06:03:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 03:03:05' and `end` < '2025-02-13 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-02-13 06:03:18] Production.INFO: count ==154 [2025-02-13 06:03:18] Production.ERROR: pbx CDR StartTime 2025-02-13 03:03:05 - End Time 2025-02-13 06:03:05 [2025-02-13 06:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464449', 'tblTempUsageDetail_20' ) start [2025-02-13 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464449', 'tblTempUsageDetail_20' ) end [2025-02-13 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464449', 'tblTempVendorCDR_20' ) start [2025-02-13 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464449', 'tblTempVendorCDR_20' ) end [2025-02-13 06:03:18] Production.INFO: ProcessCDR(1,14464449,1,1,2) [2025-02-13 06:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464449', 'tblTempUsageDetail_20' ) start [2025-02-13 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464449', 'tblTempUsageDetail_20' ) end [2025-02-13 06:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 06:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 06:03:21] Production.INFO: ==30931== Releasing lock... [2025-02-13 06:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 06:03:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 03:04:05 [end_date_ymd] => 2025-02-13 06:04:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 03:04:05' and `end` < '2025-02-13 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-02-13 06:04:19] Production.INFO: count ==154 [2025-02-13 06:04:19] Production.ERROR: pbx CDR StartTime 2025-02-13 03:04:05 - End Time 2025-02-13 06:04:05 [2025-02-13 06:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464454', 'tblTempUsageDetail_20' ) start [2025-02-13 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464454', 'tblTempUsageDetail_20' ) end [2025-02-13 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464454', 'tblTempVendorCDR_20' ) start [2025-02-13 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464454', 'tblTempVendorCDR_20' ) end [2025-02-13 06:04:19] Production.INFO: ProcessCDR(1,14464454,1,1,2) [2025-02-13 06:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464454', 'tblTempUsageDetail_20' ) start [2025-02-13 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464454', 'tblTempUsageDetail_20' ) end [2025-02-13 06:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 06:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 06:04:22] Production.INFO: ==31002== Releasing lock... [2025-02-13 06:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 06:04:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 03:05:05 [end_date_ymd] => 2025-02-13 06:05:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 03:05:05' and `end` < '2025-02-13 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-02-13 06:05:19] Production.INFO: count ==154 [2025-02-13 06:05:19] Production.ERROR: pbx CDR StartTime 2025-02-13 03:05:05 - End Time 2025-02-13 06:05:05 [2025-02-13 06:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 06:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464459', 'tblTempUsageDetail_20' ) start [2025-02-13 06:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464459', 'tblTempUsageDetail_20' ) end [2025-02-13 06:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464459', 'tblTempVendorCDR_20' ) start [2025-02-13 06:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464459', 'tblTempVendorCDR_20' ) end [2025-02-13 06:05:19] Production.INFO: ProcessCDR(1,14464459,1,1,2) [2025-02-13 06:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464459', 'tblTempUsageDetail_20' ) start [2025-02-13 06:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464459', 'tblTempUsageDetail_20' ) end [2025-02-13 06:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 06:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 06:05:22] Production.INFO: ==31072== Releasing lock... [2025-02-13 06:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 06:05:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 03:06:05 [end_date_ymd] => 2025-02-13 06:06:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 03:06:05' and `end` < '2025-02-13 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-02-13 06:06:18] Production.INFO: count ==156 [2025-02-13 06:06:18] Production.ERROR: pbx CDR StartTime 2025-02-13 03:06:05 - End Time 2025-02-13 06:06:05 [2025-02-13 06:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464464', 'tblTempUsageDetail_20' ) start [2025-02-13 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464464', 'tblTempUsageDetail_20' ) end [2025-02-13 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464464', 'tblTempVendorCDR_20' ) start [2025-02-13 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464464', 'tblTempVendorCDR_20' ) end [2025-02-13 06:06:18] Production.INFO: ProcessCDR(1,14464464,1,1,2) [2025-02-13 06:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464464', 'tblTempUsageDetail_20' ) start [2025-02-13 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464464', 'tblTempUsageDetail_20' ) end [2025-02-13 06:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 06:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 06:06:21] Production.INFO: ==31144== Releasing lock... [2025-02-13 06:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 06:06:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 06:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 03:07:06 [end_date_ymd] => 2025-02-13 06:07:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 03:07:06' and `end` < '2025-02-13 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-02-13 06:07:20] Production.INFO: count ==158 [2025-02-13 06:07:20] Production.ERROR: pbx CDR StartTime 2025-02-13 03:07:06 - End Time 2025-02-13 06:07:06 [2025-02-13 06:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 06:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464469', 'tblTempUsageDetail_20' ) start [2025-02-13 06:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464469', 'tblTempUsageDetail_20' ) end [2025-02-13 06:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464469', 'tblTempVendorCDR_20' ) start [2025-02-13 06:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464469', 'tblTempVendorCDR_20' ) end [2025-02-13 06:07:20] Production.INFO: ProcessCDR(1,14464469,1,1,2) [2025-02-13 06:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464469', 'tblTempUsageDetail_20' ) start [2025-02-13 06:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464469', 'tblTempUsageDetail_20' ) end [2025-02-13 06:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 06:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 06:07:23] Production.INFO: ==31215== Releasing lock... [2025-02-13 06:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 06:07:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 03:08:05 [end_date_ymd] => 2025-02-13 06:08:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 03:08:05' and `end` < '2025-02-13 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-02-13 06:08:18] Production.INFO: count ==158 [2025-02-13 06:08:18] Production.ERROR: pbx CDR StartTime 2025-02-13 03:08:05 - End Time 2025-02-13 06:08:05 [2025-02-13 06:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464474', 'tblTempUsageDetail_20' ) start [2025-02-13 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464474', 'tblTempUsageDetail_20' ) end [2025-02-13 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464474', 'tblTempVendorCDR_20' ) start [2025-02-13 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464474', 'tblTempVendorCDR_20' ) end [2025-02-13 06:08:18] Production.INFO: ProcessCDR(1,14464474,1,1,2) [2025-02-13 06:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464474', 'tblTempUsageDetail_20' ) start [2025-02-13 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464474', 'tblTempUsageDetail_20' ) end [2025-02-13 06:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 06:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 06:08:21] Production.INFO: ==31286== Releasing lock... [2025-02-13 06:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 06:08:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 03:09:05 [end_date_ymd] => 2025-02-13 06:09:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 03:09:05' and `end` < '2025-02-13 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-02-13 06:09:19] Production.INFO: count ==158 [2025-02-13 06:09:19] Production.ERROR: pbx CDR StartTime 2025-02-13 03:09:05 - End Time 2025-02-13 06:09:05 [2025-02-13 06:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 06:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464479', 'tblTempUsageDetail_20' ) start [2025-02-13 06:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464479', 'tblTempUsageDetail_20' ) end [2025-02-13 06:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464479', 'tblTempVendorCDR_20' ) start [2025-02-13 06:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464479', 'tblTempVendorCDR_20' ) end [2025-02-13 06:09:19] Production.INFO: ProcessCDR(1,14464479,1,1,2) [2025-02-13 06:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464479', 'tblTempUsageDetail_20' ) start [2025-02-13 06:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464479', 'tblTempUsageDetail_20' ) end [2025-02-13 06:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 06:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 06:09:22] Production.INFO: ==31356== Releasing lock... [2025-02-13 06:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 06:09:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 03:10:06 [end_date_ymd] => 2025-02-13 06:10:06 [RateCDR] => 1 ) [2025-02-13 06: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-02-13 03:10:06' and `end` < '2025-02-13 06: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-02-13 06:10:20] Production.INFO: count ==158 [2025-02-13 06:10:20] Production.ERROR: pbx CDR StartTime 2025-02-13 03:10:06 - End Time 2025-02-13 06:10:06 [2025-02-13 06:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 06:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464485', 'tblTempUsageDetail_20' ) start [2025-02-13 06:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464485', 'tblTempUsageDetail_20' ) end [2025-02-13 06:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464485', 'tblTempVendorCDR_20' ) start [2025-02-13 06:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464485', 'tblTempVendorCDR_20' ) end [2025-02-13 06:10:20] Production.INFO: ProcessCDR(1,14464485,1,1,2) [2025-02-13 06:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464485', 'tblTempUsageDetail_20' ) start [2025-02-13 06:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464485', 'tblTempUsageDetail_20' ) end [2025-02-13 06:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 06:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 06:10:23] Production.INFO: ==31427== Releasing lock... [2025-02-13 06:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 06:10:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 03:11:05 [end_date_ymd] => 2025-02-13 06:11:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 03:11:05' and `end` < '2025-02-13 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-02-13 06:11:19] Production.INFO: count ==158 [2025-02-13 06:11:19] Production.ERROR: pbx CDR StartTime 2025-02-13 03:11:05 - End Time 2025-02-13 06:11:05 [2025-02-13 06:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 06:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464490', 'tblTempUsageDetail_20' ) start [2025-02-13 06:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464490', 'tblTempUsageDetail_20' ) end [2025-02-13 06:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464490', 'tblTempVendorCDR_20' ) start [2025-02-13 06:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464490', 'tblTempVendorCDR_20' ) end [2025-02-13 06:11:19] Production.INFO: ProcessCDR(1,14464490,1,1,2) [2025-02-13 06:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464490', 'tblTempUsageDetail_20' ) start [2025-02-13 06:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464490', 'tblTempUsageDetail_20' ) end [2025-02-13 06:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 06:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 06:11:22] Production.INFO: ==31500== Releasing lock... [2025-02-13 06:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 06:11:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 03:12:05 [end_date_ymd] => 2025-02-13 06:12:05 [RateCDR] => 1 ) [2025-02-13 06: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-02-13 03:12:05' and `end` < '2025-02-13 06: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-02-13 06:12:19] Production.INFO: count ==158 [2025-02-13 06:12:19] Production.ERROR: pbx CDR StartTime 2025-02-13 03:12:05 - End Time 2025-02-13 06:12:05 [2025-02-13 06:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 06:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464495', 'tblTempUsageDetail_20' ) start [2025-02-13 06:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464495', 'tblTempUsageDetail_20' ) end [2025-02-13 06:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464495', 'tblTempVendorCDR_20' ) start [2025-02-13 06:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464495', 'tblTempVendorCDR_20' ) end [2025-02-13 06:12:19] Production.INFO: ProcessCDR(1,14464495,1,1,2) [2025-02-13 06:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464495', 'tblTempUsageDetail_20' ) start [2025-02-13 06:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464495', 'tblTempUsageDetail_20' ) end [2025-02-13 06:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 06:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 06:12:22] Production.INFO: ==31573== Releasing lock... [2025-02-13 06:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 06:12:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 03:13:05 [end_date_ymd] => 2025-02-13 06:13:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 03:13:05' and `end` < '2025-02-13 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-02-13 06:13:19] Production.INFO: count ==158 [2025-02-13 06:13:19] Production.ERROR: pbx CDR StartTime 2025-02-13 03:13:05 - End Time 2025-02-13 06:13:05 [2025-02-13 06:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 06:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464500', 'tblTempUsageDetail_20' ) start [2025-02-13 06:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464500', 'tblTempUsageDetail_20' ) end [2025-02-13 06:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464500', 'tblTempVendorCDR_20' ) start [2025-02-13 06:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464500', 'tblTempVendorCDR_20' ) end [2025-02-13 06:13:19] Production.INFO: ProcessCDR(1,14464500,1,1,2) [2025-02-13 06:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464500', 'tblTempUsageDetail_20' ) start [2025-02-13 06:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464500', 'tblTempUsageDetail_20' ) end [2025-02-13 06:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 06:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 06:13:22] Production.INFO: ==31645== Releasing lock... [2025-02-13 06:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 06:13:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 03:14:05 [end_date_ymd] => 2025-02-13 06:14:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 03:14:05' and `end` < '2025-02-13 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-02-13 06:14:18] Production.INFO: count ==158 [2025-02-13 06:14:18] Production.ERROR: pbx CDR StartTime 2025-02-13 03:14:05 - End Time 2025-02-13 06:14:05 [2025-02-13 06:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464505', 'tblTempUsageDetail_20' ) start [2025-02-13 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464505', 'tblTempUsageDetail_20' ) end [2025-02-13 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464505', 'tblTempVendorCDR_20' ) start [2025-02-13 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464505', 'tblTempVendorCDR_20' ) end [2025-02-13 06:14:18] Production.INFO: ProcessCDR(1,14464505,1,1,2) [2025-02-13 06:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464505', 'tblTempUsageDetail_20' ) start [2025-02-13 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464505', 'tblTempUsageDetail_20' ) end [2025-02-13 06:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 06:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 06:14:21] Production.INFO: ==31719== Releasing lock... [2025-02-13 06:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 06:14:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 03:15:05 [end_date_ymd] => 2025-02-13 06:15:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 03:15:05' and `end` < '2025-02-13 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-02-13 06:15:18] Production.INFO: count ==158 [2025-02-13 06:15:18] Production.ERROR: pbx CDR StartTime 2025-02-13 03:15:05 - End Time 2025-02-13 06:15:05 [2025-02-13 06:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464510', 'tblTempUsageDetail_20' ) start [2025-02-13 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464510', 'tblTempUsageDetail_20' ) end [2025-02-13 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464510', 'tblTempVendorCDR_20' ) start [2025-02-13 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464510', 'tblTempVendorCDR_20' ) end [2025-02-13 06:15:18] Production.INFO: ProcessCDR(1,14464510,1,1,2) [2025-02-13 06:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464510', 'tblTempUsageDetail_20' ) start [2025-02-13 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464510', 'tblTempUsageDetail_20' ) end [2025-02-13 06:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 06:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 06:15:21] Production.INFO: ==31793== Releasing lock... [2025-02-13 06:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 06:15:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 03:16:05 [end_date_ymd] => 2025-02-13 06:16:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 03:16:05' and `end` < '2025-02-13 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-02-13 06:16:18] Production.INFO: count ==158 [2025-02-13 06:16:18] Production.ERROR: pbx CDR StartTime 2025-02-13 03:16:05 - End Time 2025-02-13 06:16:05 [2025-02-13 06:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464515', 'tblTempUsageDetail_20' ) start [2025-02-13 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464515', 'tblTempUsageDetail_20' ) end [2025-02-13 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464515', 'tblTempVendorCDR_20' ) start [2025-02-13 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464515', 'tblTempVendorCDR_20' ) end [2025-02-13 06:16:18] Production.INFO: ProcessCDR(1,14464515,1,1,2) [2025-02-13 06:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464515', 'tblTempUsageDetail_20' ) start [2025-02-13 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464515', 'tblTempUsageDetail_20' ) end [2025-02-13 06:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 06:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 06:16:21] Production.INFO: ==31905== Releasing lock... [2025-02-13 06:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 06:16:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-13 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 03:17:05 [end_date_ymd] => 2025-02-13 06:17:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 03:17:05' and `end` < '2025-02-13 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-02-13 06:17:20] Production.INFO: count ==166 [2025-02-13 06:17:20] Production.ERROR: pbx CDR StartTime 2025-02-13 03:17:05 - End Time 2025-02-13 06:17:05 [2025-02-13 06:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 06:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464520', 'tblTempUsageDetail_20' ) start [2025-02-13 06:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464520', 'tblTempUsageDetail_20' ) end [2025-02-13 06:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464520', 'tblTempVendorCDR_20' ) start [2025-02-13 06:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464520', 'tblTempVendorCDR_20' ) end [2025-02-13 06:17:20] Production.INFO: ProcessCDR(1,14464520,1,1,2) [2025-02-13 06:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464520', 'tblTempUsageDetail_20' ) start [2025-02-13 06:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464520', 'tblTempUsageDetail_20' ) end [2025-02-13 06:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 06:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 06:17:23] Production.INFO: ==31976== Releasing lock... [2025-02-13 06:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 06:17:23] Production.INFO: 29 MB #Memory Used# [2025-02-13 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 03:18:05 [end_date_ymd] => 2025-02-13 06:18:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 03:18:05' and `end` < '2025-02-13 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-02-13 06:18:18] Production.INFO: count ==166 [2025-02-13 06:18:18] Production.ERROR: pbx CDR StartTime 2025-02-13 03:18:05 - End Time 2025-02-13 06:18:05 [2025-02-13 06:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464525', 'tblTempUsageDetail_20' ) start [2025-02-13 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464525', 'tblTempUsageDetail_20' ) end [2025-02-13 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464525', 'tblTempVendorCDR_20' ) start [2025-02-13 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464525', 'tblTempVendorCDR_20' ) end [2025-02-13 06:18:18] Production.INFO: ProcessCDR(1,14464525,1,1,2) [2025-02-13 06:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464525', 'tblTempUsageDetail_20' ) start [2025-02-13 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464525', 'tblTempUsageDetail_20' ) end [2025-02-13 06:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 06:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 06:18:21] Production.INFO: ==32048== Releasing lock... [2025-02-13 06:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 06:18:21] Production.INFO: 29 MB #Memory Used# [2025-02-13 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 03:19:05 [end_date_ymd] => 2025-02-13 06:19:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 03:19:05' and `end` < '2025-02-13 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-02-13 06:19:18] Production.INFO: count ==166 [2025-02-13 06:19:18] Production.ERROR: pbx CDR StartTime 2025-02-13 03:19:05 - End Time 2025-02-13 06:19:05 [2025-02-13 06:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464530', 'tblTempUsageDetail_20' ) start [2025-02-13 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464530', 'tblTempUsageDetail_20' ) end [2025-02-13 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464530', 'tblTempVendorCDR_20' ) start [2025-02-13 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464530', 'tblTempVendorCDR_20' ) end [2025-02-13 06:19:18] Production.INFO: ProcessCDR(1,14464530,1,1,2) [2025-02-13 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464530', 'tblTempUsageDetail_20' ) start [2025-02-13 06:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464530', 'tblTempUsageDetail_20' ) end [2025-02-13 06:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 06:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 06:19:22] Production.INFO: ==32118== Releasing lock... [2025-02-13 06:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 06:19:22] Production.INFO: 29 MB #Memory Used# [2025-02-13 06:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 03:20:05 [end_date_ymd] => 2025-02-13 06:20:05 [RateCDR] => 1 ) [2025-02-13 06: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-02-13 03:20:05' and `end` < '2025-02-13 06: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-02-13 06:20:19] Production.INFO: count ==168 [2025-02-13 06:20:19] Production.ERROR: pbx CDR StartTime 2025-02-13 03:20:05 - End Time 2025-02-13 06:20:05 [2025-02-13 06:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464536', 'tblTempUsageDetail_20' ) start [2025-02-13 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464536', 'tblTempUsageDetail_20' ) end [2025-02-13 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464536', 'tblTempVendorCDR_20' ) start [2025-02-13 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464536', 'tblTempVendorCDR_20' ) end [2025-02-13 06:20:19] Production.INFO: ProcessCDR(1,14464536,1,1,2) [2025-02-13 06:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464536', 'tblTempUsageDetail_20' ) start [2025-02-13 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464536', 'tblTempUsageDetail_20' ) end [2025-02-13 06:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 06:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 06:20:22] Production.INFO: ==32196== Releasing lock... [2025-02-13 06:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 06:20:22] Production.INFO: 29 MB #Memory Used# [2025-02-13 06:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 03:21:04 [end_date_ymd] => 2025-02-13 06:21:04 [RateCDR] => 1 ) [2025-02-13 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-02-13 03:21:04' and `end` < '2025-02-13 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-02-13 06:21:17] Production.INFO: count ==168 [2025-02-13 06:21:17] Production.ERROR: pbx CDR StartTime 2025-02-13 03:21:04 - End Time 2025-02-13 06:21:04 [2025-02-13 06:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464541', 'tblTempUsageDetail_20' ) start [2025-02-13 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464541', 'tblTempUsageDetail_20' ) end [2025-02-13 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464541', 'tblTempVendorCDR_20' ) start [2025-02-13 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464541', 'tblTempVendorCDR_20' ) end [2025-02-13 06:21:17] Production.INFO: ProcessCDR(1,14464541,1,1,2) [2025-02-13 06:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464541', 'tblTempUsageDetail_20' ) start [2025-02-13 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464541', 'tblTempUsageDetail_20' ) end [2025-02-13 06:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 06:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 06:21:21] Production.INFO: ==32271== Releasing lock... [2025-02-13 06:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 06:21:21] Production.INFO: 29 MB #Memory Used# [2025-02-13 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 03:22:05 [end_date_ymd] => 2025-02-13 06:22:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 03:22:05' and `end` < '2025-02-13 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-02-13 06:22:18] Production.INFO: count ==168 [2025-02-13 06:22:18] Production.ERROR: pbx CDR StartTime 2025-02-13 03:22:05 - End Time 2025-02-13 06:22:05 [2025-02-13 06:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464546', 'tblTempUsageDetail_20' ) start [2025-02-13 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464546', 'tblTempUsageDetail_20' ) end [2025-02-13 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464546', 'tblTempVendorCDR_20' ) start [2025-02-13 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464546', 'tblTempVendorCDR_20' ) end [2025-02-13 06:22:18] Production.INFO: ProcessCDR(1,14464546,1,1,2) [2025-02-13 06:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464546', 'tblTempUsageDetail_20' ) start [2025-02-13 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464546', 'tblTempUsageDetail_20' ) end [2025-02-13 06:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 06:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 06:22:21] Production.INFO: ==32341== Releasing lock... [2025-02-13 06:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 06:22:21] Production.INFO: 29 MB #Memory Used# [2025-02-13 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 03:23:05 [end_date_ymd] => 2025-02-13 06:23:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 03:23:05' and `end` < '2025-02-13 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-02-13 06:23:19] Production.INFO: count ==168 [2025-02-13 06:23:19] Production.ERROR: pbx CDR StartTime 2025-02-13 03:23:05 - End Time 2025-02-13 06:23:05 [2025-02-13 06:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 06:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464551', 'tblTempUsageDetail_20' ) start [2025-02-13 06:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464551', 'tblTempUsageDetail_20' ) end [2025-02-13 06:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464551', 'tblTempVendorCDR_20' ) start [2025-02-13 06:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464551', 'tblTempVendorCDR_20' ) end [2025-02-13 06:23:19] Production.INFO: ProcessCDR(1,14464551,1,1,2) [2025-02-13 06:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464551', 'tblTempUsageDetail_20' ) start [2025-02-13 06:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464551', 'tblTempUsageDetail_20' ) end [2025-02-13 06:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 06:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 06:23:22] Production.INFO: ==32412== Releasing lock... [2025-02-13 06:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 06:23:22] Production.INFO: 29 MB #Memory Used# [2025-02-13 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 03:24:05 [end_date_ymd] => 2025-02-13 06:24:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 03:24:05' and `end` < '2025-02-13 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-02-13 06:24:18] Production.INFO: count ==168 [2025-02-13 06:24:18] Production.ERROR: pbx CDR StartTime 2025-02-13 03:24:05 - End Time 2025-02-13 06:24:05 [2025-02-13 06:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464556', 'tblTempUsageDetail_20' ) start [2025-02-13 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464556', 'tblTempUsageDetail_20' ) end [2025-02-13 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464556', 'tblTempVendorCDR_20' ) start [2025-02-13 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464556', 'tblTempVendorCDR_20' ) end [2025-02-13 06:24:18] Production.INFO: ProcessCDR(1,14464556,1,1,2) [2025-02-13 06:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464556', 'tblTempUsageDetail_20' ) start [2025-02-13 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464556', 'tblTempUsageDetail_20' ) end [2025-02-13 06:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 06:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 06:24:21] Production.INFO: ==32483== Releasing lock... [2025-02-13 06:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 06:24:21] Production.INFO: 29 MB #Memory Used# [2025-02-13 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 03:25:05 [end_date_ymd] => 2025-02-13 06:25:05 [RateCDR] => 1 ) [2025-02-13 06:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 03:25:05' and `end` < '2025-02-13 06:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-13 06:25:19] Production.INFO: count ==169 [2025-02-13 06:25:19] Production.ERROR: pbx CDR StartTime 2025-02-13 03:25:05 - End Time 2025-02-13 06:25:05 [2025-02-13 06:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 06:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464561', 'tblTempUsageDetail_20' ) start [2025-02-13 06:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464561', 'tblTempUsageDetail_20' ) end [2025-02-13 06:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464561', 'tblTempVendorCDR_20' ) start [2025-02-13 06:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464561', 'tblTempVendorCDR_20' ) end [2025-02-13 06:25:19] Production.INFO: ProcessCDR(1,14464561,1,1,2) [2025-02-13 06:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464561', 'tblTempUsageDetail_20' ) start [2025-02-13 06:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464561', 'tblTempUsageDetail_20' ) end [2025-02-13 06:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 06:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 06:25:23] Production.INFO: ==32555== Releasing lock... [2025-02-13 06:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 06:25:23] Production.INFO: 29 MB #Memory Used# [2025-02-13 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 03:26:05 [end_date_ymd] => 2025-02-13 06:26:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 03:26:05' and `end` < '2025-02-13 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-02-13 06:26:18] Production.INFO: count ==169 [2025-02-13 06:26:18] Production.ERROR: pbx CDR StartTime 2025-02-13 03:26:05 - End Time 2025-02-13 06:26:05 [2025-02-13 06:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464566', 'tblTempUsageDetail_20' ) start [2025-02-13 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464566', 'tblTempUsageDetail_20' ) end [2025-02-13 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464566', 'tblTempVendorCDR_20' ) start [2025-02-13 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464566', 'tblTempVendorCDR_20' ) end [2025-02-13 06:26:18] Production.INFO: ProcessCDR(1,14464566,1,1,2) [2025-02-13 06:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464566', 'tblTempUsageDetail_20' ) start [2025-02-13 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464566', 'tblTempUsageDetail_20' ) end [2025-02-13 06:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 06:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 06:26:21] Production.INFO: ==32629== Releasing lock... [2025-02-13 06:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 06:26:21] Production.INFO: 29 MB #Memory Used# [2025-02-13 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 03:27:05 [end_date_ymd] => 2025-02-13 06:27:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 03:27:05' and `end` < '2025-02-13 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-02-13 06:27:18] Production.INFO: count ==169 [2025-02-13 06:27:18] Production.ERROR: pbx CDR StartTime 2025-02-13 03:27:05 - End Time 2025-02-13 06:27:05 [2025-02-13 06:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464570', 'tblTempUsageDetail_20' ) start [2025-02-13 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464570', 'tblTempUsageDetail_20' ) end [2025-02-13 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464570', 'tblTempVendorCDR_20' ) start [2025-02-13 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464570', 'tblTempVendorCDR_20' ) end [2025-02-13 06:27:18] Production.INFO: ProcessCDR(1,14464570,1,1,2) [2025-02-13 06:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464570', 'tblTempUsageDetail_20' ) start [2025-02-13 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464570', 'tblTempUsageDetail_20' ) end [2025-02-13 06:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 06:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 06:27:21] Production.INFO: ==32700== Releasing lock... [2025-02-13 06:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 06:27:21] Production.INFO: 29 MB #Memory Used# [2025-02-13 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 03:28:05 [end_date_ymd] => 2025-02-13 06:28:05 [RateCDR] => 1 ) [2025-02-13 06: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-02-13 03:28:05' and `end` < '2025-02-13 06: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-02-13 06:28:18] Production.INFO: count ==169 [2025-02-13 06:28:18] Production.ERROR: pbx CDR StartTime 2025-02-13 03:28:05 - End Time 2025-02-13 06:28:05 [2025-02-13 06:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464576', 'tblTempUsageDetail_20' ) start [2025-02-13 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464576', 'tblTempUsageDetail_20' ) end [2025-02-13 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464576', 'tblTempVendorCDR_20' ) start [2025-02-13 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464576', 'tblTempVendorCDR_20' ) end [2025-02-13 06:28:18] Production.INFO: ProcessCDR(1,14464576,1,1,2) [2025-02-13 06:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464576', 'tblTempUsageDetail_20' ) start [2025-02-13 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464576', 'tblTempUsageDetail_20' ) end [2025-02-13 06:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 06:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 06:28:21] Production.INFO: ==305== Releasing lock... [2025-02-13 06:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 06:28:21] Production.INFO: 29 MB #Memory Used# [2025-02-13 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 03:29:05 [end_date_ymd] => 2025-02-13 06:29:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 03:29:05' and `end` < '2025-02-13 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-02-13 06:29:19] Production.INFO: count ==169 [2025-02-13 06:29:20] Production.ERROR: pbx CDR StartTime 2025-02-13 03:29:05 - End Time 2025-02-13 06:29:05 [2025-02-13 06:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 06:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464581', 'tblTempUsageDetail_20' ) start [2025-02-13 06:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464581', 'tblTempUsageDetail_20' ) end [2025-02-13 06:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464581', 'tblTempVendorCDR_20' ) start [2025-02-13 06:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464581', 'tblTempVendorCDR_20' ) end [2025-02-13 06:29:20] Production.INFO: ProcessCDR(1,14464581,1,1,2) [2025-02-13 06:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464581', 'tblTempUsageDetail_20' ) start [2025-02-13 06:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464581', 'tblTempUsageDetail_20' ) end [2025-02-13 06:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 06:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 06:29:22] Production.INFO: ==398== Releasing lock... [2025-02-13 06:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 06:29:22] Production.INFO: 29 MB #Memory Used# [2025-02-13 06:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 03:30:05 [end_date_ymd] => 2025-02-13 06:30:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 03:30:05' and `end` < '2025-02-13 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-02-13 06:30:18] Production.INFO: count ==169 [2025-02-13 06:30:18] Production.ERROR: pbx CDR StartTime 2025-02-13 03:30:05 - End Time 2025-02-13 06:30:05 [2025-02-13 06:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464587', 'tblTempUsageDetail_20' ) start [2025-02-13 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464587', 'tblTempUsageDetail_20' ) end [2025-02-13 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464587', 'tblTempVendorCDR_20' ) start [2025-02-13 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464587', 'tblTempVendorCDR_20' ) end [2025-02-13 06:30:18] Production.INFO: ProcessCDR(1,14464587,1,1,2) [2025-02-13 06:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464587', 'tblTempUsageDetail_20' ) start [2025-02-13 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464587', 'tblTempUsageDetail_20' ) end [2025-02-13 06:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 06:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 06:30:21] Production.INFO: ==474== Releasing lock... [2025-02-13 06:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 06:30:21] Production.INFO: 29 MB #Memory Used# [2025-02-13 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 03:31:05 [end_date_ymd] => 2025-02-13 06:31:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 03:31:05' and `end` < '2025-02-13 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-02-13 06:31:19] Production.INFO: count ==166 [2025-02-13 06:31:19] Production.ERROR: pbx CDR StartTime 2025-02-13 03:31:05 - End Time 2025-02-13 06:31:05 [2025-02-13 06:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 06:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464592', 'tblTempUsageDetail_20' ) start [2025-02-13 06:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464592', 'tblTempUsageDetail_20' ) end [2025-02-13 06:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464592', 'tblTempVendorCDR_20' ) start [2025-02-13 06:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464592', 'tblTempVendorCDR_20' ) end [2025-02-13 06:31:19] Production.INFO: ProcessCDR(1,14464592,1,1,2) [2025-02-13 06:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464592', 'tblTempUsageDetail_20' ) start [2025-02-13 06:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464592', 'tblTempUsageDetail_20' ) end [2025-02-13 06:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 06:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 06:31:22] Production.INFO: ==553== Releasing lock... [2025-02-13 06:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 06:31:22] Production.INFO: 29 MB #Memory Used# [2025-02-13 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 03:32:05 [end_date_ymd] => 2025-02-13 06:32:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 03:32:05' and `end` < '2025-02-13 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-02-13 06:32:18] Production.INFO: count ==165 [2025-02-13 06:32:19] Production.ERROR: pbx CDR StartTime 2025-02-13 03:32:05 - End Time 2025-02-13 06:32:05 [2025-02-13 06:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464597', 'tblTempUsageDetail_20' ) start [2025-02-13 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464597', 'tblTempUsageDetail_20' ) end [2025-02-13 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464597', 'tblTempVendorCDR_20' ) start [2025-02-13 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464597', 'tblTempVendorCDR_20' ) end [2025-02-13 06:32:19] Production.INFO: ProcessCDR(1,14464597,1,1,2) [2025-02-13 06:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464597', 'tblTempUsageDetail_20' ) start [2025-02-13 06:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464597', 'tblTempUsageDetail_20' ) end [2025-02-13 06:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 06:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 06:32:22] Production.INFO: ==694== Releasing lock... [2025-02-13 06:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 06:32:22] Production.INFO: 29 MB #Memory Used# [2025-02-13 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 03:33:05 [end_date_ymd] => 2025-02-13 06:33:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 03:33:05' and `end` < '2025-02-13 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-02-13 06:33:18] Production.INFO: count ==165 [2025-02-13 06:33:18] Production.ERROR: pbx CDR StartTime 2025-02-13 03:33:05 - End Time 2025-02-13 06:33:05 [2025-02-13 06:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464602', 'tblTempUsageDetail_20' ) start [2025-02-13 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464602', 'tblTempUsageDetail_20' ) end [2025-02-13 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464602', 'tblTempVendorCDR_20' ) start [2025-02-13 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464602', 'tblTempVendorCDR_20' ) end [2025-02-13 06:33:18] Production.INFO: ProcessCDR(1,14464602,1,1,2) [2025-02-13 06:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464602', 'tblTempUsageDetail_20' ) start [2025-02-13 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464602', 'tblTempUsageDetail_20' ) end [2025-02-13 06:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 06:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 06:33:21] Production.INFO: ==776== Releasing lock... [2025-02-13 06:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 06:33:21] Production.INFO: 29 MB #Memory Used# [2025-02-13 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 03:34:05 [end_date_ymd] => 2025-02-13 06:34:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 03:34:05' and `end` < '2025-02-13 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-02-13 06:34:18] Production.INFO: count ==165 [2025-02-13 06:34:18] Production.ERROR: pbx CDR StartTime 2025-02-13 03:34:05 - End Time 2025-02-13 06:34:05 [2025-02-13 06:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464607', 'tblTempUsageDetail_20' ) start [2025-02-13 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464607', 'tblTempUsageDetail_20' ) end [2025-02-13 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464607', 'tblTempVendorCDR_20' ) start [2025-02-13 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464607', 'tblTempVendorCDR_20' ) end [2025-02-13 06:34:18] Production.INFO: ProcessCDR(1,14464607,1,1,2) [2025-02-13 06:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464607', 'tblTempUsageDetail_20' ) start [2025-02-13 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464607', 'tblTempUsageDetail_20' ) end [2025-02-13 06:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 06:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 06:34:21] Production.INFO: ==852== Releasing lock... [2025-02-13 06:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 06:34:21] Production.INFO: 29 MB #Memory Used# [2025-02-13 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 03:35:05 [end_date_ymd] => 2025-02-13 06:35:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 03:35:05' and `end` < '2025-02-13 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-02-13 06:35:18] Production.INFO: count ==165 [2025-02-13 06:35:18] Production.ERROR: pbx CDR StartTime 2025-02-13 03:35:05 - End Time 2025-02-13 06:35:05 [2025-02-13 06:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464612', 'tblTempUsageDetail_20' ) start [2025-02-13 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464612', 'tblTempUsageDetail_20' ) end [2025-02-13 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464612', 'tblTempVendorCDR_20' ) start [2025-02-13 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464612', 'tblTempVendorCDR_20' ) end [2025-02-13 06:35:18] Production.INFO: ProcessCDR(1,14464612,1,1,2) [2025-02-13 06:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464612', 'tblTempUsageDetail_20' ) start [2025-02-13 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464612', 'tblTempUsageDetail_20' ) end [2025-02-13 06:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 06:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 06:35:21] Production.INFO: ==924== Releasing lock... [2025-02-13 06:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 06:35:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-13 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 03:36:05 [end_date_ymd] => 2025-02-13 06:36:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 03:36:05' and `end` < '2025-02-13 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-02-13 06:36:19] Production.INFO: count ==165 [2025-02-13 06:36:19] Production.ERROR: pbx CDR StartTime 2025-02-13 03:36:05 - End Time 2025-02-13 06:36:05 [2025-02-13 06:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 06:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464617', 'tblTempUsageDetail_20' ) start [2025-02-13 06:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464617', 'tblTempUsageDetail_20' ) end [2025-02-13 06:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464617', 'tblTempVendorCDR_20' ) start [2025-02-13 06:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464617', 'tblTempVendorCDR_20' ) end [2025-02-13 06:36:19] Production.INFO: ProcessCDR(1,14464617,1,1,2) [2025-02-13 06:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464617', 'tblTempUsageDetail_20' ) start [2025-02-13 06:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464617', 'tblTempUsageDetail_20' ) end [2025-02-13 06:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 06:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 06:36:22] Production.INFO: ==998== Releasing lock... [2025-02-13 06:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 06:36:22] Production.INFO: 29 MB #Memory Used# [2025-02-13 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 03:37:05 [end_date_ymd] => 2025-02-13 06:37:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 03:37:05' and `end` < '2025-02-13 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-02-13 06:37:18] Production.INFO: count ==165 [2025-02-13 06:37:18] Production.ERROR: pbx CDR StartTime 2025-02-13 03:37:05 - End Time 2025-02-13 06:37:05 [2025-02-13 06:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464622', 'tblTempUsageDetail_20' ) start [2025-02-13 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464622', 'tblTempUsageDetail_20' ) end [2025-02-13 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464622', 'tblTempVendorCDR_20' ) start [2025-02-13 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464622', 'tblTempVendorCDR_20' ) end [2025-02-13 06:37:18] Production.INFO: ProcessCDR(1,14464622,1,1,2) [2025-02-13 06:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464622', 'tblTempUsageDetail_20' ) start [2025-02-13 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464622', 'tblTempUsageDetail_20' ) end [2025-02-13 06:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 06:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 06:37:21] Production.INFO: ==1071== Releasing lock... [2025-02-13 06:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 06:37:21] Production.INFO: 29 MB #Memory Used# [2025-02-13 06:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 03:38:04 [end_date_ymd] => 2025-02-13 06:38:04 [RateCDR] => 1 ) [2025-02-13 06:38: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-02-13 03:38:04' and `end` < '2025-02-13 06:38: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-02-13 06:38:17] Production.INFO: count ==165 [2025-02-13 06:38:17] Production.ERROR: pbx CDR StartTime 2025-02-13 03:38:04 - End Time 2025-02-13 06:38:04 [2025-02-13 06:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464627', 'tblTempUsageDetail_20' ) start [2025-02-13 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464627', 'tblTempUsageDetail_20' ) end [2025-02-13 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464627', 'tblTempVendorCDR_20' ) start [2025-02-13 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464627', 'tblTempVendorCDR_20' ) end [2025-02-13 06:38:17] Production.INFO: ProcessCDR(1,14464627,1,1,2) [2025-02-13 06:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464627', 'tblTempUsageDetail_20' ) start [2025-02-13 06:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464627', 'tblTempUsageDetail_20' ) end [2025-02-13 06:38:20] Production.ERROR: pbx prc_insertCDR start [2025-02-13 06:38:20] Production.ERROR: pbx prc_insertCDR end [2025-02-13 06:38:21] Production.INFO: ==1151== Releasing lock... [2025-02-13 06:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 06:38:21] Production.INFO: 29 MB #Memory Used# [2025-02-13 06:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 03:39:04 [end_date_ymd] => 2025-02-13 06:39:04 [RateCDR] => 1 ) [2025-02-13 06: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-02-13 03:39:04' and `end` < '2025-02-13 06: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-02-13 06:39:17] Production.INFO: count ==165 [2025-02-13 06:39:17] Production.ERROR: pbx CDR StartTime 2025-02-13 03:39:04 - End Time 2025-02-13 06:39:04 [2025-02-13 06:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464632', 'tblTempUsageDetail_20' ) start [2025-02-13 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464632', 'tblTempUsageDetail_20' ) end [2025-02-13 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464632', 'tblTempVendorCDR_20' ) start [2025-02-13 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464632', 'tblTempVendorCDR_20' ) end [2025-02-13 06:39:17] Production.INFO: ProcessCDR(1,14464632,1,1,2) [2025-02-13 06:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464632', 'tblTempUsageDetail_20' ) start [2025-02-13 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464632', 'tblTempUsageDetail_20' ) end [2025-02-13 06:39:20] Production.ERROR: pbx prc_insertCDR start [2025-02-13 06:39:20] Production.ERROR: pbx prc_insertCDR end [2025-02-13 06:39:20] Production.INFO: ==1235== Releasing lock... [2025-02-13 06:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 06:39:20] Production.INFO: 29 MB #Memory Used# [2025-02-13 06:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 03:40:05 [end_date_ymd] => 2025-02-13 06:40:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 03:40:05' and `end` < '2025-02-13 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-02-13 06:40:18] Production.INFO: count ==167 [2025-02-13 06:40:18] Production.ERROR: pbx CDR StartTime 2025-02-13 03:40:05 - End Time 2025-02-13 06:40:05 [2025-02-13 06:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464638', 'tblTempUsageDetail_20' ) start [2025-02-13 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464638', 'tblTempUsageDetail_20' ) end [2025-02-13 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464638', 'tblTempVendorCDR_20' ) start [2025-02-13 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464638', 'tblTempVendorCDR_20' ) end [2025-02-13 06:40:18] Production.INFO: ProcessCDR(1,14464638,1,1,2) [2025-02-13 06:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464638', 'tblTempUsageDetail_20' ) start [2025-02-13 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464638', 'tblTempUsageDetail_20' ) end [2025-02-13 06:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 06:40:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 06:40:21] Production.INFO: ==1324== Releasing lock... [2025-02-13 06:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 06:40:21] Production.INFO: 29 MB #Memory Used# [2025-02-13 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 03:41:05 [end_date_ymd] => 2025-02-13 06:41:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 03:41:05' and `end` < '2025-02-13 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-02-13 06:41:18] Production.INFO: count ==177 [2025-02-13 06:41:18] Production.ERROR: pbx CDR StartTime 2025-02-13 03:41:05 - End Time 2025-02-13 06:41:05 [2025-02-13 06:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464643', 'tblTempUsageDetail_20' ) start [2025-02-13 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464643', 'tblTempUsageDetail_20' ) end [2025-02-13 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464643', 'tblTempVendorCDR_20' ) start [2025-02-13 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464643', 'tblTempVendorCDR_20' ) end [2025-02-13 06:41:18] Production.INFO: ProcessCDR(1,14464643,1,1,2) [2025-02-13 06:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464643', 'tblTempUsageDetail_20' ) start [2025-02-13 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464643', 'tblTempUsageDetail_20' ) end [2025-02-13 06:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 06:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 06:41:21] Production.INFO: ==1405== Releasing lock... [2025-02-13 06:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 06:41:21] Production.INFO: 29 MB #Memory Used# [2025-02-13 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 03:42:05 [end_date_ymd] => 2025-02-13 06:42:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 03:42:05' and `end` < '2025-02-13 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-02-13 06:42:18] Production.INFO: count ==177 [2025-02-13 06:42:18] Production.ERROR: pbx CDR StartTime 2025-02-13 03:42:05 - End Time 2025-02-13 06:42:05 [2025-02-13 06:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464648', 'tblTempUsageDetail_20' ) start [2025-02-13 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464648', 'tblTempUsageDetail_20' ) end [2025-02-13 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464648', 'tblTempVendorCDR_20' ) start [2025-02-13 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464648', 'tblTempVendorCDR_20' ) end [2025-02-13 06:42:18] Production.INFO: ProcessCDR(1,14464648,1,1,2) [2025-02-13 06:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464648', 'tblTempUsageDetail_20' ) start [2025-02-13 06:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464648', 'tblTempUsageDetail_20' ) end [2025-02-13 06:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 06:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 06:42:22] Production.INFO: ==1483== Releasing lock... [2025-02-13 06:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 06:42:22] Production.INFO: 29 MB #Memory Used# [2025-02-13 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 03:43:05 [end_date_ymd] => 2025-02-13 06:43:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 03:43:05' and `end` < '2025-02-13 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-02-13 06:43:18] Production.INFO: count ==177 [2025-02-13 06:43:18] Production.ERROR: pbx CDR StartTime 2025-02-13 03:43:05 - End Time 2025-02-13 06:43:05 [2025-02-13 06:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464653', 'tblTempUsageDetail_20' ) start [2025-02-13 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464653', 'tblTempUsageDetail_20' ) end [2025-02-13 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464653', 'tblTempVendorCDR_20' ) start [2025-02-13 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464653', 'tblTempVendorCDR_20' ) end [2025-02-13 06:43:18] Production.INFO: ProcessCDR(1,14464653,1,1,2) [2025-02-13 06:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464653', 'tblTempUsageDetail_20' ) start [2025-02-13 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464653', 'tblTempUsageDetail_20' ) end [2025-02-13 06:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 06:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 06:43:21] Production.INFO: ==1596== Releasing lock... [2025-02-13 06:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 06:43:21] Production.INFO: 29 MB #Memory Used# [2025-02-13 06:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 03:44:04 [end_date_ymd] => 2025-02-13 06:44:04 [RateCDR] => 1 ) [2025-02-13 06:44: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-02-13 03:44:04' and `end` < '2025-02-13 06:44: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-02-13 06:44:18] Production.INFO: count ==179 [2025-02-13 06:44:18] Production.ERROR: pbx CDR StartTime 2025-02-13 03:44:04 - End Time 2025-02-13 06:44:04 [2025-02-13 06:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464658', 'tblTempUsageDetail_20' ) start [2025-02-13 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464658', 'tblTempUsageDetail_20' ) end [2025-02-13 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464658', 'tblTempVendorCDR_20' ) start [2025-02-13 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464658', 'tblTempVendorCDR_20' ) end [2025-02-13 06:44:18] Production.INFO: ProcessCDR(1,14464658,1,1,2) [2025-02-13 06:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464658', 'tblTempUsageDetail_20' ) start [2025-02-13 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464658', 'tblTempUsageDetail_20' ) end [2025-02-13 06:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 06:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 06:44:21] Production.INFO: ==1672== Releasing lock... [2025-02-13 06:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 06:44:21] Production.INFO: 29 MB #Memory Used# [2025-02-13 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 03:45:05 [end_date_ymd] => 2025-02-13 06:45:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 03:45:05' and `end` < '2025-02-13 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-02-13 06:45:18] Production.INFO: count ==182 [2025-02-13 06:45:18] Production.ERROR: pbx CDR StartTime 2025-02-13 03:45:05 - End Time 2025-02-13 06:45:05 [2025-02-13 06:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464663', 'tblTempUsageDetail_20' ) start [2025-02-13 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464663', 'tblTempUsageDetail_20' ) end [2025-02-13 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464663', 'tblTempVendorCDR_20' ) start [2025-02-13 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464663', 'tblTempVendorCDR_20' ) end [2025-02-13 06:45:18] Production.INFO: ProcessCDR(1,14464663,1,1,2) [2025-02-13 06:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464663', 'tblTempUsageDetail_20' ) start [2025-02-13 06:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464663', 'tblTempUsageDetail_20' ) end [2025-02-13 06:45:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 06:45:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 06:45:23] Production.INFO: ==1751== Releasing lock... [2025-02-13 06:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 06:45:23] Production.INFO: 29 MB #Memory Used# [2025-02-13 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 03:46:05 [end_date_ymd] => 2025-02-13 06:46:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 03:46:05' and `end` < '2025-02-13 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-02-13 06:46:18] Production.INFO: count ==184 [2025-02-13 06:46:18] Production.ERROR: pbx CDR StartTime 2025-02-13 03:46:05 - End Time 2025-02-13 06:46:05 [2025-02-13 06:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464668', 'tblTempUsageDetail_20' ) start [2025-02-13 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464668', 'tblTempUsageDetail_20' ) end [2025-02-13 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464668', 'tblTempVendorCDR_20' ) start [2025-02-13 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464668', 'tblTempVendorCDR_20' ) end [2025-02-13 06:46:18] Production.INFO: ProcessCDR(1,14464668,1,1,2) [2025-02-13 06:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464668', 'tblTempUsageDetail_20' ) start [2025-02-13 06:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464668', 'tblTempUsageDetail_20' ) end [2025-02-13 06:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 06:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 06:46:22] Production.INFO: ==1828== Releasing lock... [2025-02-13 06:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 06:46:22] Production.INFO: 29 MB #Memory Used# [2025-02-13 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 03:47:05 [end_date_ymd] => 2025-02-13 06:47:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 03:47:05' and `end` < '2025-02-13 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-02-13 06:47:20] Production.INFO: count ==186 [2025-02-13 06:47:20] Production.ERROR: pbx CDR StartTime 2025-02-13 03:47:05 - End Time 2025-02-13 06:47:05 [2025-02-13 06:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 06:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464673', 'tblTempUsageDetail_20' ) start [2025-02-13 06:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464673', 'tblTempUsageDetail_20' ) end [2025-02-13 06:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464673', 'tblTempVendorCDR_20' ) start [2025-02-13 06:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464673', 'tblTempVendorCDR_20' ) end [2025-02-13 06:47:20] Production.INFO: ProcessCDR(1,14464673,1,1,2) [2025-02-13 06:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464673', 'tblTempUsageDetail_20' ) start [2025-02-13 06:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464673', 'tblTempUsageDetail_20' ) end [2025-02-13 06:47:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 06:47:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 06:47:25] Production.INFO: ==1946== Releasing lock... [2025-02-13 06:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 06:47:25] Production.INFO: 29.25 MB #Memory Used# [2025-02-13 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 03:48:05 [end_date_ymd] => 2025-02-13 06:48:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 03:48:05' and `end` < '2025-02-13 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-02-13 06:48:18] Production.INFO: count ==187 [2025-02-13 06:48:18] Production.ERROR: pbx CDR StartTime 2025-02-13 03:48:05 - End Time 2025-02-13 06:48:05 [2025-02-13 06:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464678', 'tblTempUsageDetail_20' ) start [2025-02-13 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464678', 'tblTempUsageDetail_20' ) end [2025-02-13 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464678', 'tblTempVendorCDR_20' ) start [2025-02-13 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464678', 'tblTempVendorCDR_20' ) end [2025-02-13 06:48:18] Production.INFO: ProcessCDR(1,14464678,1,1,2) [2025-02-13 06:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464678', 'tblTempUsageDetail_20' ) start [2025-02-13 06:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464678', 'tblTempUsageDetail_20' ) end [2025-02-13 06:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 06:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 06:48:23] Production.INFO: ==2024== Releasing lock... [2025-02-13 06:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 06:48:23] Production.INFO: 29.25 MB #Memory Used# [2025-02-13 06:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 03:49:04 [end_date_ymd] => 2025-02-13 06:49:04 [RateCDR] => 1 ) [2025-02-13 06: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-02-13 03:49:04' and `end` < '2025-02-13 06: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-02-13 06:49:17] Production.INFO: count ==187 [2025-02-13 06:49:17] Production.ERROR: pbx CDR StartTime 2025-02-13 03:49:04 - End Time 2025-02-13 06:49:04 [2025-02-13 06:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464683', 'tblTempUsageDetail_20' ) start [2025-02-13 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464683', 'tblTempUsageDetail_20' ) end [2025-02-13 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464683', 'tblTempVendorCDR_20' ) start [2025-02-13 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464683', 'tblTempVendorCDR_20' ) end [2025-02-13 06:49:17] Production.INFO: ProcessCDR(1,14464683,1,1,2) [2025-02-13 06:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464683', 'tblTempUsageDetail_20' ) start [2025-02-13 06:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464683', 'tblTempUsageDetail_20' ) end [2025-02-13 06:49:20] Production.ERROR: pbx prc_insertCDR start [2025-02-13 06:49:20] Production.ERROR: pbx prc_insertCDR end [2025-02-13 06:49:20] Production.INFO: ==2097== Releasing lock... [2025-02-13 06:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 06:49:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-13 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 03:50:06 [end_date_ymd] => 2025-02-13 06:50:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 03:50:06' and `end` < '2025-02-13 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-02-13 06:50:19] Production.INFO: count ==195 [2025-02-13 06:50:19] Production.ERROR: pbx CDR StartTime 2025-02-13 03:50:06 - End Time 2025-02-13 06:50:06 [2025-02-13 06:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464688', 'tblTempUsageDetail_20' ) start [2025-02-13 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464688', 'tblTempUsageDetail_20' ) end [2025-02-13 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464688', 'tblTempVendorCDR_20' ) start [2025-02-13 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464688', 'tblTempVendorCDR_20' ) end [2025-02-13 06:50:19] Production.INFO: ProcessCDR(1,14464688,1,1,2) [2025-02-13 06:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464688', 'tblTempUsageDetail_20' ) start [2025-02-13 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464688', 'tblTempUsageDetail_20' ) end [2025-02-13 06:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 06:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 06:50:22] Production.INFO: ==2177== Releasing lock... [2025-02-13 06:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 06:50:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-13 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 03:51:05 [end_date_ymd] => 2025-02-13 06:51:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 03:51:05' and `end` < '2025-02-13 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-02-13 06:51:18] Production.INFO: count ==198 [2025-02-13 06:51:18] Production.ERROR: pbx CDR StartTime 2025-02-13 03:51:05 - End Time 2025-02-13 06:51:05 [2025-02-13 06:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464694', 'tblTempUsageDetail_20' ) start [2025-02-13 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464694', 'tblTempUsageDetail_20' ) end [2025-02-13 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464694', 'tblTempVendorCDR_20' ) start [2025-02-13 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464694', 'tblTempVendorCDR_20' ) end [2025-02-13 06:51:18] Production.INFO: ProcessCDR(1,14464694,1,1,2) [2025-02-13 06:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464694', 'tblTempUsageDetail_20' ) start [2025-02-13 06:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464694', 'tblTempUsageDetail_20' ) end [2025-02-13 06:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 06:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 06:51:22] Production.INFO: ==2258== Releasing lock... [2025-02-13 06:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 06:51:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-13 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 03:52:05 [end_date_ymd] => 2025-02-13 06:52:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 03:52:05' and `end` < '2025-02-13 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-02-13 06:52:19] Production.INFO: count ==202 [2025-02-13 06:52:19] Production.ERROR: pbx CDR StartTime 2025-02-13 03:52:05 - End Time 2025-02-13 06:52:05 [2025-02-13 06:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 06:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464699', 'tblTempUsageDetail_20' ) start [2025-02-13 06:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464699', 'tblTempUsageDetail_20' ) end [2025-02-13 06:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464699', 'tblTempVendorCDR_20' ) start [2025-02-13 06:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464699', 'tblTempVendorCDR_20' ) end [2025-02-13 06:52:19] Production.INFO: ProcessCDR(1,14464699,1,1,2) [2025-02-13 06:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464699', 'tblTempUsageDetail_20' ) start [2025-02-13 06:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464699', 'tblTempUsageDetail_20' ) end [2025-02-13 06:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 06:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 06:52:22] Production.INFO: ==2331== Releasing lock... [2025-02-13 06:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 06:52:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-13 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 03:53:05 [end_date_ymd] => 2025-02-13 06:53:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 03:53:05' and `end` < '2025-02-13 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-02-13 06:53:18] Production.INFO: count ==202 [2025-02-13 06:53:18] Production.ERROR: pbx CDR StartTime 2025-02-13 03:53:05 - End Time 2025-02-13 06:53:05 [2025-02-13 06:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464704', 'tblTempUsageDetail_20' ) start [2025-02-13 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464704', 'tblTempUsageDetail_20' ) end [2025-02-13 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464704', 'tblTempVendorCDR_20' ) start [2025-02-13 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464704', 'tblTempVendorCDR_20' ) end [2025-02-13 06:53:18] Production.INFO: ProcessCDR(1,14464704,1,1,2) [2025-02-13 06:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464704', 'tblTempUsageDetail_20' ) start [2025-02-13 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464704', 'tblTempUsageDetail_20' ) end [2025-02-13 06:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 06:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 06:53:21] Production.INFO: ==2410== Releasing lock... [2025-02-13 06:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 06:53:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-13 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 03:54:05 [end_date_ymd] => 2025-02-13 06:54:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 03:54:05' and `end` < '2025-02-13 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-02-13 06:54:19] Production.INFO: count ==202 [2025-02-13 06:54:19] Production.ERROR: pbx CDR StartTime 2025-02-13 03:54:05 - End Time 2025-02-13 06:54:05 [2025-02-13 06:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 06:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464709', 'tblTempUsageDetail_20' ) start [2025-02-13 06:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464709', 'tblTempUsageDetail_20' ) end [2025-02-13 06:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464709', 'tblTempVendorCDR_20' ) start [2025-02-13 06:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464709', 'tblTempVendorCDR_20' ) end [2025-02-13 06:54:19] Production.INFO: ProcessCDR(1,14464709,1,1,2) [2025-02-13 06:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464709', 'tblTempUsageDetail_20' ) start [2025-02-13 06:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464709', 'tblTempUsageDetail_20' ) end [2025-02-13 06:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 06:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 06:54:22] Production.INFO: ==2486== Releasing lock... [2025-02-13 06:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 06:54:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-13 06:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 03:55:06 [end_date_ymd] => 2025-02-13 06:55:06 [RateCDR] => 1 ) [2025-02-13 06: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-02-13 03:55:06' and `end` < '2025-02-13 06: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-02-13 06:55:19] Production.INFO: count ==202 [2025-02-13 06:55:19] Production.ERROR: pbx CDR StartTime 2025-02-13 03:55:06 - End Time 2025-02-13 06:55:06 [2025-02-13 06:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 06:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464714', 'tblTempUsageDetail_20' ) start [2025-02-13 06:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464714', 'tblTempUsageDetail_20' ) end [2025-02-13 06:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464714', 'tblTempVendorCDR_20' ) start [2025-02-13 06:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464714', 'tblTempVendorCDR_20' ) end [2025-02-13 06:55:19] Production.INFO: ProcessCDR(1,14464714,1,1,2) [2025-02-13 06:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464714', 'tblTempUsageDetail_20' ) start [2025-02-13 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464714', 'tblTempUsageDetail_20' ) end [2025-02-13 06:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 06:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 06:55:21] Production.INFO: ==2564== Releasing lock... [2025-02-13 06:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 06:55:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-13 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 03:56:05 [end_date_ymd] => 2025-02-13 06:56:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 03:56:05' and `end` < '2025-02-13 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-02-13 06:56:18] Production.INFO: count ==203 [2025-02-13 06:56:18] Production.ERROR: pbx CDR StartTime 2025-02-13 03:56:05 - End Time 2025-02-13 06:56:05 [2025-02-13 06:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464719', 'tblTempUsageDetail_20' ) start [2025-02-13 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464719', 'tblTempUsageDetail_20' ) end [2025-02-13 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464719', 'tblTempVendorCDR_20' ) start [2025-02-13 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464719', 'tblTempVendorCDR_20' ) end [2025-02-13 06:56:18] Production.INFO: ProcessCDR(1,14464719,1,1,2) [2025-02-13 06:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464719', 'tblTempUsageDetail_20' ) start [2025-02-13 06:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464719', 'tblTempUsageDetail_20' ) end [2025-02-13 06:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 06:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 06:56:22] Production.INFO: ==2644== Releasing lock... [2025-02-13 06:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 06:56:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-13 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 03:57:05 [end_date_ymd] => 2025-02-13 06:57:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 03:57:05' and `end` < '2025-02-13 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-02-13 06:57:18] Production.INFO: count ==206 [2025-02-13 06:57:18] Production.ERROR: pbx CDR StartTime 2025-02-13 03:57:05 - End Time 2025-02-13 06:57:05 [2025-02-13 06:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464724', 'tblTempUsageDetail_20' ) start [2025-02-13 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464724', 'tblTempUsageDetail_20' ) end [2025-02-13 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464724', 'tblTempVendorCDR_20' ) start [2025-02-13 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464724', 'tblTempVendorCDR_20' ) end [2025-02-13 06:57:18] Production.INFO: ProcessCDR(1,14464724,1,1,2) [2025-02-13 06:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464724', 'tblTempUsageDetail_20' ) start [2025-02-13 06:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464724', 'tblTempUsageDetail_20' ) end [2025-02-13 06:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 06:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 06:57:23] Production.INFO: ==2721== Releasing lock... [2025-02-13 06:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 06:57:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-13 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 03:58:05 [end_date_ymd] => 2025-02-13 06:58:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 03:58:05' and `end` < '2025-02-13 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-02-13 06:58:18] Production.INFO: count ==209 [2025-02-13 06:58:18] Production.ERROR: pbx CDR StartTime 2025-02-13 03:58:05 - End Time 2025-02-13 06:58:05 [2025-02-13 06:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464729', 'tblTempUsageDetail_20' ) start [2025-02-13 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464729', 'tblTempUsageDetail_20' ) end [2025-02-13 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464729', 'tblTempVendorCDR_20' ) start [2025-02-13 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464729', 'tblTempVendorCDR_20' ) end [2025-02-13 06:58:18] Production.INFO: ProcessCDR(1,14464729,1,1,2) [2025-02-13 06:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464729', 'tblTempUsageDetail_20' ) start [2025-02-13 06:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464729', 'tblTempUsageDetail_20' ) end [2025-02-13 06:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 06:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 06:58:22] Production.INFO: ==2799== Releasing lock... [2025-02-13 06:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 06:58:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-13 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 03:59:05 [end_date_ymd] => 2025-02-13 06:59:05 [RateCDR] => 1 ) [2025-02-13 06: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-02-13 03:59:05' and `end` < '2025-02-13 06: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-02-13 06:59:19] Production.INFO: count ==210 [2025-02-13 06:59:19] Production.ERROR: pbx CDR StartTime 2025-02-13 03:59:05 - End Time 2025-02-13 06:59:05 [2025-02-13 06:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 06:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464734', 'tblTempUsageDetail_20' ) start [2025-02-13 06:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464734', 'tblTempUsageDetail_20' ) end [2025-02-13 06:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464734', 'tblTempVendorCDR_20' ) start [2025-02-13 06:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464734', 'tblTempVendorCDR_20' ) end [2025-02-13 06:59:19] Production.INFO: ProcessCDR(1,14464734,1,1,2) [2025-02-13 06:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 06:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 06:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464734', 'tblTempUsageDetail_20' ) start [2025-02-13 06:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464734', 'tblTempUsageDetail_20' ) end [2025-02-13 06:59:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 06:59:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 06:59:24] Production.INFO: ==2876== Releasing lock... [2025-02-13 06:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 06:59:24] Production.INFO: 29.75 MB #Memory Used# [2025-02-13 07:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 04:00:05 [end_date_ymd] => 2025-02-13 07:00:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 04:00:05' and `end` < '2025-02-13 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-02-13 07:00:18] Production.INFO: count ==210 [2025-02-13 07:00:18] Production.ERROR: pbx CDR StartTime 2025-02-13 04:00:05 - End Time 2025-02-13 07:00:05 [2025-02-13 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464740', 'tblTempUsageDetail_20' ) start [2025-02-13 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464740', 'tblTempUsageDetail_20' ) end [2025-02-13 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464740', 'tblTempVendorCDR_20' ) start [2025-02-13 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464740', 'tblTempVendorCDR_20' ) end [2025-02-13 07:00:18] Production.INFO: ProcessCDR(1,14464740,1,1,2) [2025-02-13 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464740', 'tblTempUsageDetail_20' ) start [2025-02-13 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464740', 'tblTempUsageDetail_20' ) end [2025-02-13 07:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 07:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 07:00:23] Production.INFO: ==2961== Releasing lock... [2025-02-13 07:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 07:00:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-13 07:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 04:01:06 [end_date_ymd] => 2025-02-13 07:01:06 [RateCDR] => 1 ) [2025-02-13 07: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-02-13 04:01:06' and `end` < '2025-02-13 07: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-02-13 07:02:16] Production.INFO: count ==210 [2025-02-13 07:02:16] Production.ERROR: pbx CDR StartTime 2025-02-13 04:01:06 - End Time 2025-02-13 07:01:06 [2025-02-13 07:02:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 07:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464745', 'tblTempUsageDetail_20' ) start [2025-02-13 07:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464745', 'tblTempUsageDetail_20' ) end [2025-02-13 07:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464745', 'tblTempVendorCDR_20' ) start [2025-02-13 07:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464745', 'tblTempVendorCDR_20' ) end [2025-02-13 07:02:16] Production.INFO: ProcessCDR(1,14464745,1,1,2) [2025-02-13 07:02:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:02:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:02:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:02:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:02:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464745', 'tblTempUsageDetail_20' ) start [2025-02-13 07:02:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464745', 'tblTempUsageDetail_20' ) end [2025-02-13 07:02:19] Production.ERROR: pbx prc_insertCDR start [2025-02-13 07:02:19] Production.ERROR: pbx prc_insertCDR end [2025-02-13 07:02:19] Production.INFO: ==3055== Releasing lock... [2025-02-13 07:02:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 07:02:19] Production.INFO: 29.75 MB #Memory Used# [2025-02-13 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 04:03:05 [end_date_ymd] => 2025-02-13 07:03:05 [RateCDR] => 1 ) [2025-02-13 07: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-02-13 04:03:05' and `end` < '2025-02-13 07: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-02-13 07:03:21] Production.INFO: count ==212 [2025-02-13 07:03:21] Production.ERROR: pbx CDR StartTime 2025-02-13 04:03:05 - End Time 2025-02-13 07:03:05 [2025-02-13 07:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 07:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464754', 'tblTempUsageDetail_20' ) start [2025-02-13 07:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464754', 'tblTempUsageDetail_20' ) end [2025-02-13 07:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464754', 'tblTempVendorCDR_20' ) start [2025-02-13 07:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464754', 'tblTempVendorCDR_20' ) end [2025-02-13 07:03:21] Production.INFO: ProcessCDR(1,14464754,1,1,2) [2025-02-13 07:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464754', 'tblTempUsageDetail_20' ) start [2025-02-13 07:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464754', 'tblTempUsageDetail_20' ) end [2025-02-13 07:03:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 07:03:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 07:03:25] Production.INFO: ==3319== Releasing lock... [2025-02-13 07:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 07:03:25] Production.INFO: 29.75 MB #Memory Used# [2025-02-13 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 04:04:05 [end_date_ymd] => 2025-02-13 07:04:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 04:04:05' and `end` < '2025-02-13 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-02-13 07:04:20] Production.INFO: count ==212 [2025-02-13 07:04:20] Production.ERROR: pbx CDR StartTime 2025-02-13 04:04:05 - End Time 2025-02-13 07:04:05 [2025-02-13 07:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464759', 'tblTempUsageDetail_20' ) start [2025-02-13 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464759', 'tblTempUsageDetail_20' ) end [2025-02-13 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464759', 'tblTempVendorCDR_20' ) start [2025-02-13 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464759', 'tblTempVendorCDR_20' ) end [2025-02-13 07:04:20] Production.INFO: ProcessCDR(1,14464759,1,1,2) [2025-02-13 07:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464759', 'tblTempUsageDetail_20' ) start [2025-02-13 07:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464759', 'tblTempUsageDetail_20' ) end [2025-02-13 07:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 07:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 07:04:23] Production.INFO: ==3398== Releasing lock... [2025-02-13 07:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 07:04:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-13 07:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 04:05:05 [end_date_ymd] => 2025-02-13 07:05:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 04:05:05' and `end` < '2025-02-13 07: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-02-13 07:05:20] Production.INFO: count ==209 [2025-02-13 07:05:20] Production.ERROR: pbx CDR StartTime 2025-02-13 04:05:05 - End Time 2025-02-13 07:05:05 [2025-02-13 07:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 07:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464764', 'tblTempUsageDetail_20' ) start [2025-02-13 07:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464764', 'tblTempUsageDetail_20' ) end [2025-02-13 07:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464764', 'tblTempVendorCDR_20' ) start [2025-02-13 07:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464764', 'tblTempVendorCDR_20' ) end [2025-02-13 07:05:20] Production.INFO: ProcessCDR(1,14464764,1,1,2) [2025-02-13 07:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464764', 'tblTempUsageDetail_20' ) start [2025-02-13 07:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464764', 'tblTempUsageDetail_20' ) end [2025-02-13 07:05:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 07:05:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 07:05:25] Production.INFO: ==3550== Releasing lock... [2025-02-13 07:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 07:05:25] Production.INFO: 29.75 MB #Memory Used# [2025-02-13 07:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 04:06:06 [end_date_ymd] => 2025-02-13 07:06:06 [RateCDR] => 1 ) [2025-02-13 07: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-02-13 04:06:06' and `end` < '2025-02-13 07: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-02-13 07:06:21] Production.INFO: count ==211 [2025-02-13 07:06:21] Production.ERROR: pbx CDR StartTime 2025-02-13 04:06:06 - End Time 2025-02-13 07:06:06 [2025-02-13 07:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 07:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464769', 'tblTempUsageDetail_20' ) start [2025-02-13 07:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464769', 'tblTempUsageDetail_20' ) end [2025-02-13 07:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464769', 'tblTempVendorCDR_20' ) start [2025-02-13 07:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464769', 'tblTempVendorCDR_20' ) end [2025-02-13 07:06:21] Production.INFO: ProcessCDR(1,14464769,1,1,2) [2025-02-13 07:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464769', 'tblTempUsageDetail_20' ) start [2025-02-13 07:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464769', 'tblTempUsageDetail_20' ) end [2025-02-13 07:06:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 07:06:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 07:06:26] Production.INFO: ==3625== Releasing lock... [2025-02-13 07:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 07:06:26] Production.INFO: 29.75 MB #Memory Used# [2025-02-13 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 04:07:05 [end_date_ymd] => 2025-02-13 07:07:05 [RateCDR] => 1 ) [2025-02-13 07: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-02-13 04:07:05' and `end` < '2025-02-13 07: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-02-13 07:07:20] Production.INFO: count ==211 [2025-02-13 07:07:20] Production.ERROR: pbx CDR StartTime 2025-02-13 04:07:05 - End Time 2025-02-13 07:07:05 [2025-02-13 07:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 07:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464774', 'tblTempUsageDetail_20' ) start [2025-02-13 07:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464774', 'tblTempUsageDetail_20' ) end [2025-02-13 07:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464774', 'tblTempVendorCDR_20' ) start [2025-02-13 07:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464774', 'tblTempVendorCDR_20' ) end [2025-02-13 07:07:20] Production.INFO: ProcessCDR(1,14464774,1,1,2) [2025-02-13 07:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464774', 'tblTempUsageDetail_20' ) start [2025-02-13 07:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464774', 'tblTempUsageDetail_20' ) end [2025-02-13 07:07:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 07:07:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 07:07:26] Production.INFO: ==3701== Releasing lock... [2025-02-13 07:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 07:07:26] Production.INFO: 29.75 MB #Memory Used# [2025-02-13 07:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 04:08:06 [end_date_ymd] => 2025-02-13 07:08:06 [RateCDR] => 1 ) [2025-02-13 07: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-02-13 04:08:06' and `end` < '2025-02-13 07: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-02-13 07:08:21] Production.INFO: count ==212 [2025-02-13 07:08:21] Production.ERROR: pbx CDR StartTime 2025-02-13 04:08:06 - End Time 2025-02-13 07:08:06 [2025-02-13 07:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 07:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464779', 'tblTempUsageDetail_20' ) start [2025-02-13 07:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464779', 'tblTempUsageDetail_20' ) end [2025-02-13 07:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464779', 'tblTempVendorCDR_20' ) start [2025-02-13 07:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464779', 'tblTempVendorCDR_20' ) end [2025-02-13 07:08:22] Production.INFO: ProcessCDR(1,14464779,1,1,2) [2025-02-13 07:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464779', 'tblTempUsageDetail_20' ) start [2025-02-13 07:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464779', 'tblTempUsageDetail_20' ) end [2025-02-13 07:08:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 07:08:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 07:08:27] Production.INFO: ==3841== Releasing lock... [2025-02-13 07:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 07:08:27] Production.INFO: 29.75 MB #Memory Used# [2025-02-13 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 04:09:05 [end_date_ymd] => 2025-02-13 07:09:05 [RateCDR] => 1 ) [2025-02-13 07: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-02-13 04:09:05' and `end` < '2025-02-13 07: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-02-13 07:09:20] Production.INFO: count ==213 [2025-02-13 07:09:20] Production.ERROR: pbx CDR StartTime 2025-02-13 04:09:05 - End Time 2025-02-13 07:09:05 [2025-02-13 07:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 07:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464784', 'tblTempUsageDetail_20' ) start [2025-02-13 07:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464784', 'tblTempUsageDetail_20' ) end [2025-02-13 07:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464784', 'tblTempVendorCDR_20' ) start [2025-02-13 07:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464784', 'tblTempVendorCDR_20' ) end [2025-02-13 07:09:20] Production.INFO: ProcessCDR(1,14464784,1,1,2) [2025-02-13 07:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464784', 'tblTempUsageDetail_20' ) start [2025-02-13 07:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464784', 'tblTempUsageDetail_20' ) end [2025-02-13 07:09:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 07:09:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 07:09:24] Production.INFO: ==3936== Releasing lock... [2025-02-13 07:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 07:09:24] Production.INFO: 29.75 MB #Memory Used# [2025-02-13 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 04:10:06 [end_date_ymd] => 2025-02-13 07:10:06 [RateCDR] => 1 ) [2025-02-13 07: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-02-13 04:10:06' and `end` < '2025-02-13 07: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-02-13 07:10:20] Production.INFO: count ==215 [2025-02-13 07:10:20] Production.ERROR: pbx CDR StartTime 2025-02-13 04:10:06 - End Time 2025-02-13 07:10:06 [2025-02-13 07:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464790', 'tblTempUsageDetail_20' ) start [2025-02-13 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464790', 'tblTempUsageDetail_20' ) end [2025-02-13 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464790', 'tblTempVendorCDR_20' ) start [2025-02-13 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464790', 'tblTempVendorCDR_20' ) end [2025-02-13 07:10:20] Production.INFO: ProcessCDR(1,14464790,1,1,2) [2025-02-13 07:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464790', 'tblTempUsageDetail_20' ) start [2025-02-13 07:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464790', 'tblTempUsageDetail_20' ) end [2025-02-13 07:10:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 07:10:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 07:10:25] Production.INFO: ==4017== Releasing lock... [2025-02-13 07:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 07:10:25] Production.INFO: 30 MB #Memory Used# [2025-02-13 07:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 04:11:04 [end_date_ymd] => 2025-02-13 07:11:04 [RateCDR] => 1 ) [2025-02-13 07: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-02-13 04:11:04' and `end` < '2025-02-13 07: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-02-13 07:11:20] Production.INFO: count ==216 [2025-02-13 07:11:20] Production.ERROR: pbx CDR StartTime 2025-02-13 04:11:04 - End Time 2025-02-13 07:11:04 [2025-02-13 07:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464795', 'tblTempUsageDetail_20' ) start [2025-02-13 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464795', 'tblTempUsageDetail_20' ) end [2025-02-13 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464795', 'tblTempVendorCDR_20' ) start [2025-02-13 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464795', 'tblTempVendorCDR_20' ) end [2025-02-13 07:11:20] Production.INFO: ProcessCDR(1,14464795,1,1,2) [2025-02-13 07:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464795', 'tblTempUsageDetail_20' ) start [2025-02-13 07:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464795', 'tblTempUsageDetail_20' ) end [2025-02-13 07:11:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 07:11:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 07:11:25] Production.INFO: ==4096== Releasing lock... [2025-02-13 07:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 07:11:25] Production.INFO: 29.75 MB #Memory Used# [2025-02-13 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 04:12:05 [end_date_ymd] => 2025-02-13 07:12:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 04:12:05' and `end` < '2025-02-13 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-02-13 07:12:20] Production.INFO: count ==217 [2025-02-13 07:12:20] Production.ERROR: pbx CDR StartTime 2025-02-13 04:12:05 - End Time 2025-02-13 07:12:05 [2025-02-13 07:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 07:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464800', 'tblTempUsageDetail_20' ) start [2025-02-13 07:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464800', 'tblTempUsageDetail_20' ) end [2025-02-13 07:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464800', 'tblTempVendorCDR_20' ) start [2025-02-13 07:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464800', 'tblTempVendorCDR_20' ) end [2025-02-13 07:12:20] Production.INFO: ProcessCDR(1,14464800,1,1,2) [2025-02-13 07:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464800', 'tblTempUsageDetail_20' ) start [2025-02-13 07:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464800', 'tblTempUsageDetail_20' ) end [2025-02-13 07:12:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 07:12:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 07:12:25] Production.INFO: ==4249== Releasing lock... [2025-02-13 07:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 07:12:25] Production.INFO: 29.75 MB #Memory Used# [2025-02-13 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 04:13:05 [end_date_ymd] => 2025-02-13 07:13:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 04:13:05' and `end` < '2025-02-13 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-02-13 07:13:21] Production.INFO: count ==218 [2025-02-13 07:13:21] Production.ERROR: pbx CDR StartTime 2025-02-13 04:13:05 - End Time 2025-02-13 07:13:05 [2025-02-13 07:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 07:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464805', 'tblTempUsageDetail_20' ) start [2025-02-13 07:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464805', 'tblTempUsageDetail_20' ) end [2025-02-13 07:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464805', 'tblTempVendorCDR_20' ) start [2025-02-13 07:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464805', 'tblTempVendorCDR_20' ) end [2025-02-13 07:13:21] Production.INFO: ProcessCDR(1,14464805,1,1,2) [2025-02-13 07:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464805', 'tblTempUsageDetail_20' ) start [2025-02-13 07:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464805', 'tblTempUsageDetail_20' ) end [2025-02-13 07:13:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 07:13:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 07:13:26] Production.INFO: ==4323== Releasing lock... [2025-02-13 07:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 07:13:26] Production.INFO: 29.75 MB #Memory Used# [2025-02-13 07:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 04:14:04 [end_date_ymd] => 2025-02-13 07:14:04 [RateCDR] => 1 ) [2025-02-13 07:14: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-02-13 04:14:04' and `end` < '2025-02-13 07:14: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-02-13 07:14:18] Production.INFO: count ==218 [2025-02-13 07:14:18] Production.ERROR: pbx CDR StartTime 2025-02-13 04:14:04 - End Time 2025-02-13 07:14:04 [2025-02-13 07:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464810', 'tblTempUsageDetail_20' ) start [2025-02-13 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464810', 'tblTempUsageDetail_20' ) end [2025-02-13 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464810', 'tblTempVendorCDR_20' ) start [2025-02-13 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464810', 'tblTempVendorCDR_20' ) end [2025-02-13 07:14:18] Production.INFO: ProcessCDR(1,14464810,1,1,2) [2025-02-13 07:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464810', 'tblTempUsageDetail_20' ) start [2025-02-13 07:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464810', 'tblTempUsageDetail_20' ) end [2025-02-13 07:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 07:14:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 07:14:23] Production.INFO: ==4397== Releasing lock... [2025-02-13 07:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 07:14:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-13 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 04:15:05 [end_date_ymd] => 2025-02-13 07:15:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 04:15:05' and `end` < '2025-02-13 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-02-13 07:15:21] Production.INFO: count ==223 [2025-02-13 07:15:21] Production.ERROR: pbx CDR StartTime 2025-02-13 04:15:05 - End Time 2025-02-13 07:15:05 [2025-02-13 07:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 07:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464815', 'tblTempUsageDetail_20' ) start [2025-02-13 07:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464815', 'tblTempUsageDetail_20' ) end [2025-02-13 07:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464815', 'tblTempVendorCDR_20' ) start [2025-02-13 07:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464815', 'tblTempVendorCDR_20' ) end [2025-02-13 07:15:21] Production.INFO: ProcessCDR(1,14464815,1,1,2) [2025-02-13 07:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464815', 'tblTempUsageDetail_20' ) start [2025-02-13 07:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464815', 'tblTempUsageDetail_20' ) end [2025-02-13 07:15:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 07:15:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 07:15:25] Production.INFO: ==4517== Releasing lock... [2025-02-13 07:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 07:15:25] Production.INFO: 29.75 MB #Memory Used# [2025-02-13 07:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 04:16:04 [end_date_ymd] => 2025-02-13 07:16:04 [RateCDR] => 1 ) [2025-02-13 07: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-02-13 04:16:04' and `end` < '2025-02-13 07: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-02-13 07:16:19] Production.INFO: count ==224 [2025-02-13 07:16:19] Production.ERROR: pbx CDR StartTime 2025-02-13 04:16:04 - End Time 2025-02-13 07:16:04 [2025-02-13 07:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464820', 'tblTempUsageDetail_20' ) start [2025-02-13 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464820', 'tblTempUsageDetail_20' ) end [2025-02-13 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464820', 'tblTempVendorCDR_20' ) start [2025-02-13 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464820', 'tblTempVendorCDR_20' ) end [2025-02-13 07:16:19] Production.INFO: ProcessCDR(1,14464820,1,1,2) [2025-02-13 07:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464820', 'tblTempUsageDetail_20' ) start [2025-02-13 07:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464820', 'tblTempUsageDetail_20' ) end [2025-02-13 07:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 07:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 07:16:23] Production.INFO: ==4635== Releasing lock... [2025-02-13 07:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 07:16:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-13 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 04:17:05 [end_date_ymd] => 2025-02-13 07:17:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 04:17:05' and `end` < '2025-02-13 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-02-13 07:17:21] Production.INFO: count ==224 [2025-02-13 07:17:21] Production.ERROR: pbx CDR StartTime 2025-02-13 04:17:05 - End Time 2025-02-13 07:17:05 [2025-02-13 07:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 07:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464825', 'tblTempUsageDetail_20' ) start [2025-02-13 07:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464825', 'tblTempUsageDetail_20' ) end [2025-02-13 07:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464825', 'tblTempVendorCDR_20' ) start [2025-02-13 07:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464825', 'tblTempVendorCDR_20' ) end [2025-02-13 07:17:21] Production.INFO: ProcessCDR(1,14464825,1,1,2) [2025-02-13 07:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464825', 'tblTempUsageDetail_20' ) start [2025-02-13 07:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464825', 'tblTempUsageDetail_20' ) end [2025-02-13 07:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 07:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 07:17:24] Production.INFO: ==4709== Releasing lock... [2025-02-13 07:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 07:17:24] Production.INFO: 29.75 MB #Memory Used# [2025-02-13 07:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 04:18:04 [end_date_ymd] => 2025-02-13 07:18:04 [RateCDR] => 1 ) [2025-02-13 07:18: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-02-13 04:18:04' and `end` < '2025-02-13 07: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-02-13 07:18:21] Production.INFO: count ==225 [2025-02-13 07:18:21] Production.ERROR: pbx CDR StartTime 2025-02-13 04:18:04 - End Time 2025-02-13 07:18:04 [2025-02-13 07:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 07:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464830', 'tblTempUsageDetail_20' ) start [2025-02-13 07:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464830', 'tblTempUsageDetail_20' ) end [2025-02-13 07:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464830', 'tblTempVendorCDR_20' ) start [2025-02-13 07:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464830', 'tblTempVendorCDR_20' ) end [2025-02-13 07:18:21] Production.INFO: ProcessCDR(1,14464830,1,1,2) [2025-02-13 07:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464830', 'tblTempUsageDetail_20' ) start [2025-02-13 07:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464830', 'tblTempUsageDetail_20' ) end [2025-02-13 07:18:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 07:18:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 07:18:25] Production.INFO: ==4827== Releasing lock... [2025-02-13 07:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 07:18:25] Production.INFO: 29.75 MB #Memory Used# [2025-02-13 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 04:19:05 [end_date_ymd] => 2025-02-13 07:19:05 [RateCDR] => 1 ) [2025-02-13 07: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-02-13 04:19:05' and `end` < '2025-02-13 07: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-02-13 07:19:20] Production.INFO: count ==225 [2025-02-13 07:19:20] Production.ERROR: pbx CDR StartTime 2025-02-13 04:19:05 - End Time 2025-02-13 07:19:05 [2025-02-13 07:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 07:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464835', 'tblTempUsageDetail_20' ) start [2025-02-13 07:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464835', 'tblTempUsageDetail_20' ) end [2025-02-13 07:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464835', 'tblTempVendorCDR_20' ) start [2025-02-13 07:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464835', 'tblTempVendorCDR_20' ) end [2025-02-13 07:19:20] Production.INFO: ProcessCDR(1,14464835,1,1,2) [2025-02-13 07:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464835', 'tblTempUsageDetail_20' ) start [2025-02-13 07:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464835', 'tblTempUsageDetail_20' ) end [2025-02-13 07:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 07:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 07:19:23] Production.INFO: ==4903== Releasing lock... [2025-02-13 07:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 07:19:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-13 07:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 04:20:05 [end_date_ymd] => 2025-02-13 07:20:05 [RateCDR] => 1 ) [2025-02-13 07: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-02-13 04:20:05' and `end` < '2025-02-13 07: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-02-13 07:20:18] Production.INFO: count ==230 [2025-02-13 07:20:18] Production.ERROR: pbx CDR StartTime 2025-02-13 04:20:05 - End Time 2025-02-13 07:20:05 [2025-02-13 07:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464840', 'tblTempUsageDetail_20' ) start [2025-02-13 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464840', 'tblTempUsageDetail_20' ) end [2025-02-13 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464840', 'tblTempVendorCDR_20' ) start [2025-02-13 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464840', 'tblTempVendorCDR_20' ) end [2025-02-13 07:20:18] Production.INFO: ProcessCDR(1,14464840,1,1,2) [2025-02-13 07:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464840', 'tblTempUsageDetail_20' ) start [2025-02-13 07:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464840', 'tblTempUsageDetail_20' ) end [2025-02-13 07:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 07:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 07:20:23] Production.INFO: ==4982== Releasing lock... [2025-02-13 07:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 07:20:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-13 07:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 04:21:04 [end_date_ymd] => 2025-02-13 07:21:04 [RateCDR] => 1 ) [2025-02-13 07: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-02-13 04:21:04' and `end` < '2025-02-13 07: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-02-13 07:21:19] Production.INFO: count ==234 [2025-02-13 07:21:19] Production.ERROR: pbx CDR StartTime 2025-02-13 04:21:04 - End Time 2025-02-13 07:21:04 [2025-02-13 07:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464846', 'tblTempUsageDetail_20' ) start [2025-02-13 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464846', 'tblTempUsageDetail_20' ) end [2025-02-13 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464846', 'tblTempVendorCDR_20' ) start [2025-02-13 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464846', 'tblTempVendorCDR_20' ) end [2025-02-13 07:21:19] Production.INFO: ProcessCDR(1,14464846,1,1,2) [2025-02-13 07:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464846', 'tblTempUsageDetail_20' ) start [2025-02-13 07:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464846', 'tblTempUsageDetail_20' ) end [2025-02-13 07:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 07:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 07:21:23] Production.INFO: ==5059== Releasing lock... [2025-02-13 07:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 07:21:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-13 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 04:22:05 [end_date_ymd] => 2025-02-13 07:22:05 [RateCDR] => 1 ) [2025-02-13 07: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-02-13 04:22:05' and `end` < '2025-02-13 07: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-02-13 07:22:19] Production.INFO: count ==236 [2025-02-13 07:22:19] Production.ERROR: pbx CDR StartTime 2025-02-13 04:22:05 - End Time 2025-02-13 07:22:05 [2025-02-13 07:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464851', 'tblTempUsageDetail_20' ) start [2025-02-13 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464851', 'tblTempUsageDetail_20' ) end [2025-02-13 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464851', 'tblTempVendorCDR_20' ) start [2025-02-13 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464851', 'tblTempVendorCDR_20' ) end [2025-02-13 07:22:19] Production.INFO: ProcessCDR(1,14464851,1,1,2) [2025-02-13 07:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464851', 'tblTempUsageDetail_20' ) start [2025-02-13 07:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464851', 'tblTempUsageDetail_20' ) end [2025-02-13 07:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 07:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 07:22:23] Production.INFO: ==5130== Releasing lock... [2025-02-13 07:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 07:22:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-13 07:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 04:23:04 [end_date_ymd] => 2025-02-13 07:23:04 [RateCDR] => 1 ) [2025-02-13 07: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-02-13 04:23:04' and `end` < '2025-02-13 07: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-02-13 07:23:17] Production.INFO: count ==239 [2025-02-13 07:23:17] Production.ERROR: pbx CDR StartTime 2025-02-13 04:23:04 - End Time 2025-02-13 07:23:04 [2025-02-13 07:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464856', 'tblTempUsageDetail_20' ) start [2025-02-13 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464856', 'tblTempUsageDetail_20' ) end [2025-02-13 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464856', 'tblTempVendorCDR_20' ) start [2025-02-13 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464856', 'tblTempVendorCDR_20' ) end [2025-02-13 07:23:17] Production.INFO: ProcessCDR(1,14464856,1,1,2) [2025-02-13 07:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464856', 'tblTempUsageDetail_20' ) start [2025-02-13 07:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464856', 'tblTempUsageDetail_20' ) end [2025-02-13 07:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 07:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 07:23:22] Production.INFO: ==5206== Releasing lock... [2025-02-13 07:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 07:23:22] Production.INFO: 30 MB #Memory Used# [2025-02-13 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 04:24:05 [end_date_ymd] => 2025-02-13 07:24:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 04:24:05' and `end` < '2025-02-13 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-02-13 07:24:18] Production.INFO: count ==244 [2025-02-13 07:24:18] Production.ERROR: pbx CDR StartTime 2025-02-13 04:24:05 - End Time 2025-02-13 07:24:05 [2025-02-13 07:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464861', 'tblTempUsageDetail_20' ) start [2025-02-13 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464861', 'tblTempUsageDetail_20' ) end [2025-02-13 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464861', 'tblTempVendorCDR_20' ) start [2025-02-13 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464861', 'tblTempVendorCDR_20' ) end [2025-02-13 07:24:18] Production.INFO: ProcessCDR(1,14464861,1,1,2) [2025-02-13 07:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464861', 'tblTempUsageDetail_20' ) start [2025-02-13 07:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464861', 'tblTempUsageDetail_20' ) end [2025-02-13 07:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 07:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 07:24:23] Production.INFO: ==5277== Releasing lock... [2025-02-13 07:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 07:24:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-13 07:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 04:25:04 [end_date_ymd] => 2025-02-13 07:25:04 [RateCDR] => 1 ) [2025-02-13 07:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 04:25:04' and `end` < '2025-02-13 07:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-13 07:25:17] Production.INFO: count ==248 [2025-02-13 07:25:17] Production.ERROR: pbx CDR StartTime 2025-02-13 04:25:04 - End Time 2025-02-13 07:25:04 [2025-02-13 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464866', 'tblTempUsageDetail_20' ) start [2025-02-13 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464866', 'tblTempUsageDetail_20' ) end [2025-02-13 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464866', 'tblTempVendorCDR_20' ) start [2025-02-13 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464866', 'tblTempVendorCDR_20' ) end [2025-02-13 07:25:17] Production.INFO: ProcessCDR(1,14464866,1,1,2) [2025-02-13 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464866', 'tblTempUsageDetail_20' ) start [2025-02-13 07:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464866', 'tblTempUsageDetail_20' ) end [2025-02-13 07:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 07:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 07:25:22] Production.INFO: ==5348== Releasing lock... [2025-02-13 07:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 07:25:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 04:26:05 [end_date_ymd] => 2025-02-13 07:26:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 04:26:05' and `end` < '2025-02-13 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-02-13 07:26:18] Production.INFO: count ==250 [2025-02-13 07:26:18] Production.ERROR: pbx CDR StartTime 2025-02-13 04:26:05 - End Time 2025-02-13 07:26:05 [2025-02-13 07:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464871', 'tblTempUsageDetail_20' ) start [2025-02-13 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464871', 'tblTempUsageDetail_20' ) end [2025-02-13 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464871', 'tblTempVendorCDR_20' ) start [2025-02-13 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464871', 'tblTempVendorCDR_20' ) end [2025-02-13 07:26:18] Production.INFO: ProcessCDR(1,14464871,1,1,2) [2025-02-13 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464871', 'tblTempUsageDetail_20' ) start [2025-02-13 07:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464871', 'tblTempUsageDetail_20' ) end [2025-02-13 07:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 07:26:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 07:26:23] Production.INFO: ==5421== Releasing lock... [2025-02-13 07:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 07:26:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 07:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 04:27:06 [end_date_ymd] => 2025-02-13 07:27:06 [RateCDR] => 1 ) [2025-02-13 07: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-02-13 04:27:06' and `end` < '2025-02-13 07: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-02-13 07:27:22] Production.INFO: count ==250 [2025-02-13 07:27:22] Production.ERROR: pbx CDR StartTime 2025-02-13 04:27:06 - End Time 2025-02-13 07:27:06 [2025-02-13 07:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 07:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464876', 'tblTempUsageDetail_20' ) start [2025-02-13 07:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464876', 'tblTempUsageDetail_20' ) end [2025-02-13 07:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464876', 'tblTempVendorCDR_20' ) start [2025-02-13 07:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464876', 'tblTempVendorCDR_20' ) end [2025-02-13 07:27:22] Production.INFO: ProcessCDR(1,14464876,1,1,2) [2025-02-13 07:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464876', 'tblTempUsageDetail_20' ) start [2025-02-13 07:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464876', 'tblTempUsageDetail_20' ) end [2025-02-13 07:27:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 07:27:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 07:27:25] Production.INFO: ==5494== Releasing lock... [2025-02-13 07:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 07:27:25] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 07:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 04:28:06 [end_date_ymd] => 2025-02-13 07:28:06 [RateCDR] => 1 ) [2025-02-13 07: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-02-13 04:28:06' and `end` < '2025-02-13 07: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-02-13 07:28:19] Production.INFO: count ==251 [2025-02-13 07:28:19] Production.ERROR: pbx CDR StartTime 2025-02-13 04:28:06 - End Time 2025-02-13 07:28:06 [2025-02-13 07:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464881', 'tblTempUsageDetail_20' ) start [2025-02-13 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464881', 'tblTempUsageDetail_20' ) end [2025-02-13 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464881', 'tblTempVendorCDR_20' ) start [2025-02-13 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464881', 'tblTempVendorCDR_20' ) end [2025-02-13 07:28:19] Production.INFO: ProcessCDR(1,14464881,1,1,2) [2025-02-13 07:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464881', 'tblTempUsageDetail_20' ) start [2025-02-13 07:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464881', 'tblTempUsageDetail_20' ) end [2025-02-13 07:28:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 07:28:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 07:28:24] Production.INFO: ==5566== Releasing lock... [2025-02-13 07:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 07:28:24] Production.INFO: 30 MB #Memory Used# [2025-02-13 07:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 04:29:06 [end_date_ymd] => 2025-02-13 07:29:06 [RateCDR] => 1 ) [2025-02-13 07: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-02-13 04:29:06' and `end` < '2025-02-13 07: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-02-13 07:29:19] Production.INFO: count ==251 [2025-02-13 07:29:19] Production.ERROR: pbx CDR StartTime 2025-02-13 04:29:06 - End Time 2025-02-13 07:29:06 [2025-02-13 07:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 07:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464886', 'tblTempUsageDetail_20' ) start [2025-02-13 07:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464886', 'tblTempUsageDetail_20' ) end [2025-02-13 07:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464886', 'tblTempVendorCDR_20' ) start [2025-02-13 07:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464886', 'tblTempVendorCDR_20' ) end [2025-02-13 07:29:19] Production.INFO: ProcessCDR(1,14464886,1,1,2) [2025-02-13 07:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464886', 'tblTempUsageDetail_20' ) start [2025-02-13 07:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464886', 'tblTempUsageDetail_20' ) end [2025-02-13 07:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 07:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 07:29:23] Production.INFO: ==5637== Releasing lock... [2025-02-13 07:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 07:29:23] Production.INFO: 30 MB #Memory Used# [2025-02-13 07:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 04:30:05 [end_date_ymd] => 2025-02-13 07:30:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 04:30:05' and `end` < '2025-02-13 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-02-13 07:30:18] Production.INFO: count ==251 [2025-02-13 07:30:18] Production.ERROR: pbx CDR StartTime 2025-02-13 04:30:05 - End Time 2025-02-13 07:30:05 [2025-02-13 07:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464892', 'tblTempUsageDetail_20' ) start [2025-02-13 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464892', 'tblTempUsageDetail_20' ) end [2025-02-13 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464892', 'tblTempVendorCDR_20' ) start [2025-02-13 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464892', 'tblTempVendorCDR_20' ) end [2025-02-13 07:30:18] Production.INFO: ProcessCDR(1,14464892,1,1,2) [2025-02-13 07:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464892', 'tblTempUsageDetail_20' ) start [2025-02-13 07:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464892', 'tblTempUsageDetail_20' ) end [2025-02-13 07:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 07:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 07:30:23] Production.INFO: ==5712== Releasing lock... [2025-02-13 07:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 07:30:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 04:31:05 [end_date_ymd] => 2025-02-13 07:31:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 04:31:05' and `end` < '2025-02-13 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-02-13 07:31:18] Production.INFO: count ==264 [2025-02-13 07:31:18] Production.ERROR: pbx CDR StartTime 2025-02-13 04:31:05 - End Time 2025-02-13 07:31:05 [2025-02-13 07:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464897', 'tblTempUsageDetail_20' ) start [2025-02-13 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464897', 'tblTempUsageDetail_20' ) end [2025-02-13 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464897', 'tblTempVendorCDR_20' ) start [2025-02-13 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464897', 'tblTempVendorCDR_20' ) end [2025-02-13 07:31:18] Production.INFO: ProcessCDR(1,14464897,1,1,2) [2025-02-13 07:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464897', 'tblTempUsageDetail_20' ) start [2025-02-13 07:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464897', 'tblTempUsageDetail_20' ) end [2025-02-13 07:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 07:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 07:31:23] Production.INFO: ==5784== Releasing lock... [2025-02-13 07:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 07:31:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 07:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 04:32:04 [end_date_ymd] => 2025-02-13 07:32:04 [RateCDR] => 1 ) [2025-02-13 07: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-02-13 04:32:04' and `end` < '2025-02-13 07: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-02-13 07:32:18] Production.INFO: count ==264 [2025-02-13 07:32:18] Production.ERROR: pbx CDR StartTime 2025-02-13 04:32:04 - End Time 2025-02-13 07:32:04 [2025-02-13 07:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464902', 'tblTempUsageDetail_20' ) start [2025-02-13 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464902', 'tblTempUsageDetail_20' ) end [2025-02-13 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464902', 'tblTempVendorCDR_20' ) start [2025-02-13 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464902', 'tblTempVendorCDR_20' ) end [2025-02-13 07:32:18] Production.INFO: ProcessCDR(1,14464902,1,1,2) [2025-02-13 07:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464902', 'tblTempUsageDetail_20' ) start [2025-02-13 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464902', 'tblTempUsageDetail_20' ) end [2025-02-13 07:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 07:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 07:32:21] Production.INFO: ==5855== Releasing lock... [2025-02-13 07:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 07:32:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 04:33:05 [end_date_ymd] => 2025-02-13 07:33:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 04:33:05' and `end` < '2025-02-13 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-02-13 07:33:19] Production.INFO: count ==266 [2025-02-13 07:33:19] Production.ERROR: pbx CDR StartTime 2025-02-13 04:33:05 - End Time 2025-02-13 07:33:05 [2025-02-13 07:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464907', 'tblTempUsageDetail_20' ) start [2025-02-13 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464907', 'tblTempUsageDetail_20' ) end [2025-02-13 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464907', 'tblTempVendorCDR_20' ) start [2025-02-13 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464907', 'tblTempVendorCDR_20' ) end [2025-02-13 07:33:19] Production.INFO: ProcessCDR(1,14464907,1,1,2) [2025-02-13 07:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464907', 'tblTempUsageDetail_20' ) start [2025-02-13 07:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464907', 'tblTempUsageDetail_20' ) end [2025-02-13 07:33:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 07:33:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 07:33:23] Production.INFO: ==5926== Releasing lock... [2025-02-13 07:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 07:33:23] Production.INFO: 30 MB #Memory Used# [2025-02-13 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 04:34:05 [end_date_ymd] => 2025-02-13 07:34:05 [RateCDR] => 1 ) [2025-02-13 07: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-02-13 04:34:05' and `end` < '2025-02-13 07: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-02-13 07:34:19] Production.INFO: count ==266 [2025-02-13 07:34:19] Production.ERROR: pbx CDR StartTime 2025-02-13 04:34:05 - End Time 2025-02-13 07:34:05 [2025-02-13 07:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464912', 'tblTempUsageDetail_20' ) start [2025-02-13 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464912', 'tblTempUsageDetail_20' ) end [2025-02-13 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464912', 'tblTempVendorCDR_20' ) start [2025-02-13 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464912', 'tblTempVendorCDR_20' ) end [2025-02-13 07:34:19] Production.INFO: ProcessCDR(1,14464912,1,1,2) [2025-02-13 07:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464912', 'tblTempUsageDetail_20' ) start [2025-02-13 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464912', 'tblTempUsageDetail_20' ) end [2025-02-13 07:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 07:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 07:34:22] Production.INFO: ==6035== Releasing lock... [2025-02-13 07:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 07:34:22] Production.INFO: 30 MB #Memory Used# [2025-02-13 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 04:35:05 [end_date_ymd] => 2025-02-13 07:35:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 04:35:05' and `end` < '2025-02-13 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-02-13 07:35:19] Production.INFO: count ==267 [2025-02-13 07:35:19] Production.ERROR: pbx CDR StartTime 2025-02-13 04:35:05 - End Time 2025-02-13 07:35:05 [2025-02-13 07:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 07:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464917', 'tblTempUsageDetail_20' ) start [2025-02-13 07:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464917', 'tblTempUsageDetail_20' ) end [2025-02-13 07:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464917', 'tblTempVendorCDR_20' ) start [2025-02-13 07:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464917', 'tblTempVendorCDR_20' ) end [2025-02-13 07:35:19] Production.INFO: ProcessCDR(1,14464917,1,1,2) [2025-02-13 07:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464917', 'tblTempUsageDetail_20' ) start [2025-02-13 07:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464917', 'tblTempUsageDetail_20' ) end [2025-02-13 07:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 07:35:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 07:35:24] Production.INFO: ==6106== Releasing lock... [2025-02-13 07:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 07:35:24] Production.INFO: 30 MB #Memory Used# [2025-02-13 07:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 04:36:04 [end_date_ymd] => 2025-02-13 07:36:04 [RateCDR] => 1 ) [2025-02-13 07:36: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-02-13 04:36:04' and `end` < '2025-02-13 07:36: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-02-13 07:36:19] Production.INFO: count ==270 [2025-02-13 07:36:19] Production.ERROR: pbx CDR StartTime 2025-02-13 04:36:04 - End Time 2025-02-13 07:36:04 [2025-02-13 07:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 07:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464922', 'tblTempUsageDetail_20' ) start [2025-02-13 07:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464922', 'tblTempUsageDetail_20' ) end [2025-02-13 07:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464922', 'tblTempVendorCDR_20' ) start [2025-02-13 07:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464922', 'tblTempVendorCDR_20' ) end [2025-02-13 07:36:19] Production.INFO: ProcessCDR(1,14464922,1,1,2) [2025-02-13 07:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464922', 'tblTempUsageDetail_20' ) start [2025-02-13 07:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464922', 'tblTempUsageDetail_20' ) end [2025-02-13 07:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 07:36:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 07:36:24] Production.INFO: ==6179== Releasing lock... [2025-02-13 07:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 07:36:24] Production.INFO: 30.5 MB #Memory Used# [2025-02-13 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 04:37:05 [end_date_ymd] => 2025-02-13 07:37:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 04:37:05' and `end` < '2025-02-13 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-02-13 07:37:18] Production.INFO: count ==272 [2025-02-13 07:37:18] Production.ERROR: pbx CDR StartTime 2025-02-13 04:37:05 - End Time 2025-02-13 07:37:05 [2025-02-13 07:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464927', 'tblTempUsageDetail_20' ) start [2025-02-13 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464927', 'tblTempUsageDetail_20' ) end [2025-02-13 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464927', 'tblTempVendorCDR_20' ) start [2025-02-13 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464927', 'tblTempVendorCDR_20' ) end [2025-02-13 07:37:18] Production.INFO: ProcessCDR(1,14464927,1,1,2) [2025-02-13 07:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464927', 'tblTempUsageDetail_20' ) start [2025-02-13 07:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464927', 'tblTempUsageDetail_20' ) end [2025-02-13 07:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 07:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 07:37:23] Production.INFO: ==6259== Releasing lock... [2025-02-13 07:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 07:37:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-13 07:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 04:38:06 [end_date_ymd] => 2025-02-13 07:38:06 [RateCDR] => 1 ) [2025-02-13 07: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-02-13 04:38:06' and `end` < '2025-02-13 07: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-02-13 07:38:19] Production.INFO: count ==273 [2025-02-13 07:38:19] Production.ERROR: pbx CDR StartTime 2025-02-13 04:38:06 - End Time 2025-02-13 07:38:06 [2025-02-13 07:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 07:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464932', 'tblTempUsageDetail_20' ) start [2025-02-13 07:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464932', 'tblTempUsageDetail_20' ) end [2025-02-13 07:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464932', 'tblTempVendorCDR_20' ) start [2025-02-13 07:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464932', 'tblTempVendorCDR_20' ) end [2025-02-13 07:38:19] Production.INFO: ProcessCDR(1,14464932,1,1,2) [2025-02-13 07:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464932', 'tblTempUsageDetail_20' ) start [2025-02-13 07:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464932', 'tblTempUsageDetail_20' ) end [2025-02-13 07:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 07:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 07:38:23] Production.INFO: ==6331== Releasing lock... [2025-02-13 07:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 07:38:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-13 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 04:39:05 [end_date_ymd] => 2025-02-13 07:39:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 04:39:05' and `end` < '2025-02-13 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-02-13 07:39:19] Production.INFO: count ==274 [2025-02-13 07:39:19] Production.ERROR: pbx CDR StartTime 2025-02-13 04:39:05 - End Time 2025-02-13 07:39:05 [2025-02-13 07:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 07:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464937', 'tblTempUsageDetail_20' ) start [2025-02-13 07:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464937', 'tblTempUsageDetail_20' ) end [2025-02-13 07:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464937', 'tblTempVendorCDR_20' ) start [2025-02-13 07:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464937', 'tblTempVendorCDR_20' ) end [2025-02-13 07:39:19] Production.INFO: ProcessCDR(1,14464937,1,1,2) [2025-02-13 07:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464937', 'tblTempUsageDetail_20' ) start [2025-02-13 07:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464937', 'tblTempUsageDetail_20' ) end [2025-02-13 07:39:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 07:39:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 07:39:24] Production.INFO: ==6401== Releasing lock... [2025-02-13 07:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 07:39:24] Production.INFO: 30.25 MB #Memory Used# [2025-02-13 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 04:40:06 [end_date_ymd] => 2025-02-13 07:40:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 04:40:06' and `end` < '2025-02-13 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-02-13 07:40:19] Production.INFO: count ==287 [2025-02-13 07:40:19] Production.ERROR: pbx CDR StartTime 2025-02-13 04:40:06 - End Time 2025-02-13 07:40:06 [2025-02-13 07:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464943', 'tblTempUsageDetail_20' ) start [2025-02-13 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464943', 'tblTempUsageDetail_20' ) end [2025-02-13 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464943', 'tblTempVendorCDR_20' ) start [2025-02-13 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464943', 'tblTempVendorCDR_20' ) end [2025-02-13 07:40:19] Production.INFO: ProcessCDR(1,14464943,1,1,2) [2025-02-13 07:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464943', 'tblTempUsageDetail_20' ) start [2025-02-13 07:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464943', 'tblTempUsageDetail_20' ) end [2025-02-13 07:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 07:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 07:40:24] Production.INFO: ==6473== Releasing lock... [2025-02-13 07:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 07:40:24] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 07:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 04:41:04 [end_date_ymd] => 2025-02-13 07:41:04 [RateCDR] => 1 ) [2025-02-13 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-02-13 04:41:04' and `end` < '2025-02-13 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-02-13 07:41:19] Production.INFO: count ==295 [2025-02-13 07:41:19] Production.ERROR: pbx CDR StartTime 2025-02-13 04:41:04 - End Time 2025-02-13 07:41:04 [2025-02-13 07:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464948', 'tblTempUsageDetail_20' ) start [2025-02-13 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464948', 'tblTempUsageDetail_20' ) end [2025-02-13 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464948', 'tblTempVendorCDR_20' ) start [2025-02-13 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464948', 'tblTempVendorCDR_20' ) end [2025-02-13 07:41:19] Production.INFO: ProcessCDR(1,14464948,1,1,2) [2025-02-13 07:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464948', 'tblTempUsageDetail_20' ) start [2025-02-13 07:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464948', 'tblTempUsageDetail_20' ) end [2025-02-13 07:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 07:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 07:41:22] Production.INFO: ==6549== Releasing lock... [2025-02-13 07:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 07:41:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 04:42:05 [end_date_ymd] => 2025-02-13 07:42:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 04:42:05' and `end` < '2025-02-13 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-02-13 07:42:18] Production.INFO: count ==297 [2025-02-13 07:42:18] Production.ERROR: pbx CDR StartTime 2025-02-13 04:42:05 - End Time 2025-02-13 07:42:05 [2025-02-13 07:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464953', 'tblTempUsageDetail_20' ) start [2025-02-13 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464953', 'tblTempUsageDetail_20' ) end [2025-02-13 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464953', 'tblTempVendorCDR_20' ) start [2025-02-13 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464953', 'tblTempVendorCDR_20' ) end [2025-02-13 07:42:18] Production.INFO: ProcessCDR(1,14464953,1,1,2) [2025-02-13 07:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464953', 'tblTempUsageDetail_20' ) start [2025-02-13 07:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464953', 'tblTempUsageDetail_20' ) end [2025-02-13 07:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 07:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 07:42:23] Production.INFO: ==6619== Releasing lock... [2025-02-13 07:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 07:42:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-13 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 04:43:05 [end_date_ymd] => 2025-02-13 07:43:05 [RateCDR] => 1 ) [2025-02-13 07: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-02-13 04:43:05' and `end` < '2025-02-13 07: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-02-13 07:43:18] Production.INFO: count ==303 [2025-02-13 07:43:18] Production.ERROR: pbx CDR StartTime 2025-02-13 04:43:05 - End Time 2025-02-13 07:43:05 [2025-02-13 07:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464958', 'tblTempUsageDetail_20' ) start [2025-02-13 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464958', 'tblTempUsageDetail_20' ) end [2025-02-13 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464958', 'tblTempVendorCDR_20' ) start [2025-02-13 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464958', 'tblTempVendorCDR_20' ) end [2025-02-13 07:43:18] Production.INFO: ProcessCDR(1,14464958,1,1,2) [2025-02-13 07:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464958', 'tblTempUsageDetail_20' ) start [2025-02-13 07:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464958', 'tblTempUsageDetail_20' ) end [2025-02-13 07:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 07:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 07:43:22] Production.INFO: ==6689== Releasing lock... [2025-02-13 07:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 07:43:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 04:44:05 [end_date_ymd] => 2025-02-13 07:44:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 04:44:05' and `end` < '2025-02-13 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-02-13 07:44:18] Production.INFO: count ==304 [2025-02-13 07:44:18] Production.ERROR: pbx CDR StartTime 2025-02-13 04:44:05 - End Time 2025-02-13 07:44:05 [2025-02-13 07:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464963', 'tblTempUsageDetail_20' ) start [2025-02-13 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464963', 'tblTempUsageDetail_20' ) end [2025-02-13 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464963', 'tblTempVendorCDR_20' ) start [2025-02-13 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464963', 'tblTempVendorCDR_20' ) end [2025-02-13 07:44:18] Production.INFO: ProcessCDR(1,14464963,1,1,2) [2025-02-13 07:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464963', 'tblTempUsageDetail_20' ) start [2025-02-13 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464963', 'tblTempUsageDetail_20' ) end [2025-02-13 07:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 07:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 07:44:21] Production.INFO: ==6760== Releasing lock... [2025-02-13 07:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 07:44:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 04:45:05 [end_date_ymd] => 2025-02-13 07:45:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 04:45:05' and `end` < '2025-02-13 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-02-13 07:45:18] Production.INFO: count ==308 [2025-02-13 07:45:18] Production.ERROR: pbx CDR StartTime 2025-02-13 04:45:05 - End Time 2025-02-13 07:45:05 [2025-02-13 07:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464968', 'tblTempUsageDetail_20' ) start [2025-02-13 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464968', 'tblTempUsageDetail_20' ) end [2025-02-13 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464968', 'tblTempVendorCDR_20' ) start [2025-02-13 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464968', 'tblTempVendorCDR_20' ) end [2025-02-13 07:45:18] Production.INFO: ProcessCDR(1,14464968,1,1,2) [2025-02-13 07:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464968', 'tblTempUsageDetail_20' ) start [2025-02-13 07:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464968', 'tblTempUsageDetail_20' ) end [2025-02-13 07:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 07:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 07:45:22] Production.INFO: ==6833== Releasing lock... [2025-02-13 07:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 07:45:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 04:46:05 [end_date_ymd] => 2025-02-13 07:46:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 04:46:05' and `end` < '2025-02-13 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-02-13 07:46:18] Production.INFO: count ==313 [2025-02-13 07:46:18] Production.ERROR: pbx CDR StartTime 2025-02-13 04:46:05 - End Time 2025-02-13 07:46:05 [2025-02-13 07:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464973', 'tblTempUsageDetail_20' ) start [2025-02-13 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464973', 'tblTempUsageDetail_20' ) end [2025-02-13 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464973', 'tblTempVendorCDR_20' ) start [2025-02-13 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464973', 'tblTempVendorCDR_20' ) end [2025-02-13 07:46:18] Production.INFO: ProcessCDR(1,14464973,1,1,2) [2025-02-13 07:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464973', 'tblTempUsageDetail_20' ) start [2025-02-13 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464973', 'tblTempUsageDetail_20' ) end [2025-02-13 07:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 07:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 07:46:21] Production.INFO: ==6904== Releasing lock... [2025-02-13 07:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 07:46:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 04:47:05 [end_date_ymd] => 2025-02-13 07:47:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 04:47:05' and `end` < '2025-02-13 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-02-13 07:47:18] Production.INFO: count ==312 [2025-02-13 07:47:18] Production.ERROR: pbx CDR StartTime 2025-02-13 04:47:05 - End Time 2025-02-13 07:47:05 [2025-02-13 07:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464978', 'tblTempUsageDetail_20' ) start [2025-02-13 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464978', 'tblTempUsageDetail_20' ) end [2025-02-13 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464978', 'tblTempVendorCDR_20' ) start [2025-02-13 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464978', 'tblTempVendorCDR_20' ) end [2025-02-13 07:47:18] Production.INFO: ProcessCDR(1,14464978,1,1,2) [2025-02-13 07:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464978', 'tblTempUsageDetail_20' ) start [2025-02-13 07:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464978', 'tblTempUsageDetail_20' ) end [2025-02-13 07:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 07:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 07:47:22] Production.INFO: ==6974== Releasing lock... [2025-02-13 07:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 07:47:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 04:48:05 [end_date_ymd] => 2025-02-13 07:48:05 [RateCDR] => 1 ) [2025-02-13 07: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-02-13 04:48:05' and `end` < '2025-02-13 07: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-02-13 07:48:18] Production.INFO: count ==314 [2025-02-13 07:48:18] Production.ERROR: pbx CDR StartTime 2025-02-13 04:48:05 - End Time 2025-02-13 07:48:05 [2025-02-13 07:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464983', 'tblTempUsageDetail_20' ) start [2025-02-13 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464983', 'tblTempUsageDetail_20' ) end [2025-02-13 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464983', 'tblTempVendorCDR_20' ) start [2025-02-13 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464983', 'tblTempVendorCDR_20' ) end [2025-02-13 07:48:18] Production.INFO: ProcessCDR(1,14464983,1,1,2) [2025-02-13 07:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464983', 'tblTempUsageDetail_20' ) start [2025-02-13 07:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464983', 'tblTempUsageDetail_20' ) end [2025-02-13 07:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 07:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 07:48:22] Production.INFO: ==7044== Releasing lock... [2025-02-13 07:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 07:48:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-13 07:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 04:49:06 [end_date_ymd] => 2025-02-13 07:49:06 [RateCDR] => 1 ) [2025-02-13 07: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-02-13 04:49:06' and `end` < '2025-02-13 07: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-02-13 07:49:19] Production.INFO: count ==315 [2025-02-13 07:49:19] Production.ERROR: pbx CDR StartTime 2025-02-13 04:49:06 - End Time 2025-02-13 07:49:06 [2025-02-13 07:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 07:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464988', 'tblTempUsageDetail_20' ) start [2025-02-13 07:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464988', 'tblTempUsageDetail_20' ) end [2025-02-13 07:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464988', 'tblTempVendorCDR_20' ) start [2025-02-13 07:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464988', 'tblTempVendorCDR_20' ) end [2025-02-13 07:49:19] Production.INFO: ProcessCDR(1,14464988,1,1,2) [2025-02-13 07:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464988', 'tblTempUsageDetail_20' ) start [2025-02-13 07:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464988', 'tblTempUsageDetail_20' ) end [2025-02-13 07:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 07:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 07:49:22] Production.INFO: ==7157== Releasing lock... [2025-02-13 07:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 07:49:22] Production.INFO: 31 MB #Memory Used# [2025-02-13 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 04:50:06 [end_date_ymd] => 2025-02-13 07:50:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 04:50:06' and `end` < '2025-02-13 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-02-13 07:50:19] Production.INFO: count ==319 [2025-02-13 07:50:19] Production.ERROR: pbx CDR StartTime 2025-02-13 04:50:06 - End Time 2025-02-13 07:50:06 [2025-02-13 07:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464994', 'tblTempUsageDetail_20' ) start [2025-02-13 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464994', 'tblTempUsageDetail_20' ) end [2025-02-13 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464994', 'tblTempVendorCDR_20' ) start [2025-02-13 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464994', 'tblTempVendorCDR_20' ) end [2025-02-13 07:50:19] Production.INFO: ProcessCDR(1,14464994,1,1,2) [2025-02-13 07:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464994', 'tblTempUsageDetail_20' ) start [2025-02-13 07:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464994', 'tblTempUsageDetail_20' ) end [2025-02-13 07:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 07:50:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 07:50:24] Production.INFO: ==7231== Releasing lock... [2025-02-13 07:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 07:50:24] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 07:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 04:51:06 [end_date_ymd] => 2025-02-13 07:51:06 [RateCDR] => 1 ) [2025-02-13 07: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-02-13 04:51:06' and `end` < '2025-02-13 07: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-02-13 07:51:19] Production.INFO: count ==330 [2025-02-13 07:51:19] Production.ERROR: pbx CDR StartTime 2025-02-13 04:51:06 - End Time 2025-02-13 07:51:06 [2025-02-13 07:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 07:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464999', 'tblTempUsageDetail_20' ) start [2025-02-13 07:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14464999', 'tblTempUsageDetail_20' ) end [2025-02-13 07:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464999', 'tblTempVendorCDR_20' ) start [2025-02-13 07:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14464999', 'tblTempVendorCDR_20' ) end [2025-02-13 07:51:19] Production.INFO: ProcessCDR(1,14464999,1,1,2) [2025-02-13 07:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14464999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14464999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14464999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14464999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464999', 'tblTempUsageDetail_20' ) start [2025-02-13 07:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14464999', 'tblTempUsageDetail_20' ) end [2025-02-13 07:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 07:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 07:51:22] Production.INFO: ==7308== Releasing lock... [2025-02-13 07:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 07:51:22] Production.INFO: 31 MB #Memory Used# [2025-02-13 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 04:52:05 [end_date_ymd] => 2025-02-13 07:52:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 04:52:05' and `end` < '2025-02-13 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-02-13 07:52:19] Production.INFO: count ==336 [2025-02-13 07:52:19] Production.ERROR: pbx CDR StartTime 2025-02-13 04:52:05 - End Time 2025-02-13 07:52:05 [2025-02-13 07:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 07:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465004', 'tblTempUsageDetail_20' ) start [2025-02-13 07:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465004', 'tblTempUsageDetail_20' ) end [2025-02-13 07:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465004', 'tblTempVendorCDR_20' ) start [2025-02-13 07:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465004', 'tblTempVendorCDR_20' ) end [2025-02-13 07:52:19] Production.INFO: ProcessCDR(1,14465004,1,1,2) [2025-02-13 07:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465004', 'tblTempUsageDetail_20' ) start [2025-02-13 07:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465004', 'tblTempUsageDetail_20' ) end [2025-02-13 07:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 07:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 07:52:23] Production.INFO: ==7378== Releasing lock... [2025-02-13 07:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 07:52:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 07:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 04:53:04 [end_date_ymd] => 2025-02-13 07:53:04 [RateCDR] => 1 ) [2025-02-13 07: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-02-13 04:53:04' and `end` < '2025-02-13 07: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-02-13 07:53:19] Production.INFO: count ==337 [2025-02-13 07:53:19] Production.ERROR: pbx CDR StartTime 2025-02-13 04:53:04 - End Time 2025-02-13 07:53:04 [2025-02-13 07:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 07:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465009', 'tblTempUsageDetail_20' ) start [2025-02-13 07:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465009', 'tblTempUsageDetail_20' ) end [2025-02-13 07:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465009', 'tblTempVendorCDR_20' ) start [2025-02-13 07:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465009', 'tblTempVendorCDR_20' ) end [2025-02-13 07:53:19] Production.INFO: ProcessCDR(1,14465009,1,1,2) [2025-02-13 07:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465009', 'tblTempUsageDetail_20' ) start [2025-02-13 07:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465009', 'tblTempUsageDetail_20' ) end [2025-02-13 07:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 07:53:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 07:53:24] Production.INFO: ==7450== Releasing lock... [2025-02-13 07:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 07:53:24] Production.INFO: 31 MB #Memory Used# [2025-02-13 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 04:54:05 [end_date_ymd] => 2025-02-13 07:54:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 04:54:05' and `end` < '2025-02-13 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-02-13 07:54:18] Production.INFO: count ==338 [2025-02-13 07:54:18] Production.ERROR: pbx CDR StartTime 2025-02-13 04:54:05 - End Time 2025-02-13 07:54:05 [2025-02-13 07:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465014', 'tblTempUsageDetail_20' ) start [2025-02-13 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465014', 'tblTempUsageDetail_20' ) end [2025-02-13 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465014', 'tblTempVendorCDR_20' ) start [2025-02-13 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465014', 'tblTempVendorCDR_20' ) end [2025-02-13 07:54:18] Production.INFO: ProcessCDR(1,14465014,1,1,2) [2025-02-13 07:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465014', 'tblTempUsageDetail_20' ) start [2025-02-13 07:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465014', 'tblTempUsageDetail_20' ) end [2025-02-13 07:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 07:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 07:54:23] Production.INFO: ==7519== Releasing lock... [2025-02-13 07:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 07:54:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 04:55:05 [end_date_ymd] => 2025-02-13 07:55:05 [RateCDR] => 1 ) [2025-02-13 07: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-02-13 04:55:05' and `end` < '2025-02-13 07: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-02-13 07:55:18] Production.INFO: count ==341 [2025-02-13 07:55:18] Production.ERROR: pbx CDR StartTime 2025-02-13 04:55:05 - End Time 2025-02-13 07:55:05 [2025-02-13 07:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465019', 'tblTempUsageDetail_20' ) start [2025-02-13 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465019', 'tblTempUsageDetail_20' ) end [2025-02-13 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465019', 'tblTempVendorCDR_20' ) start [2025-02-13 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465019', 'tblTempVendorCDR_20' ) end [2025-02-13 07:55:18] Production.INFO: ProcessCDR(1,14465019,1,1,2) [2025-02-13 07:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465019', 'tblTempUsageDetail_20' ) start [2025-02-13 07:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465019', 'tblTempUsageDetail_20' ) end [2025-02-13 07:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 07:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 07:55:22] Production.INFO: ==7588== Releasing lock... [2025-02-13 07:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 07:55:22] Production.INFO: 31 MB #Memory Used# [2025-02-13 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 04:56:05 [end_date_ymd] => 2025-02-13 07:56:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 04:56:05' and `end` < '2025-02-13 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-02-13 07:56:18] Production.INFO: count ==343 [2025-02-13 07:56:18] Production.ERROR: pbx CDR StartTime 2025-02-13 04:56:05 - End Time 2025-02-13 07:56:05 [2025-02-13 07:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465024', 'tblTempUsageDetail_20' ) start [2025-02-13 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465024', 'tblTempUsageDetail_20' ) end [2025-02-13 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465024', 'tblTempVendorCDR_20' ) start [2025-02-13 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465024', 'tblTempVendorCDR_20' ) end [2025-02-13 07:56:18] Production.INFO: ProcessCDR(1,14465024,1,1,2) [2025-02-13 07:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465024', 'tblTempUsageDetail_20' ) start [2025-02-13 07:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465024', 'tblTempUsageDetail_20' ) end [2025-02-13 07:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 07:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 07:56:23] Production.INFO: ==7660== Releasing lock... [2025-02-13 07:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 07:56:23] Production.INFO: 31 MB #Memory Used# [2025-02-13 07:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 04:57:04 [end_date_ymd] => 2025-02-13 07:57:04 [RateCDR] => 1 ) [2025-02-13 07: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-02-13 04:57:04' and `end` < '2025-02-13 07: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-02-13 07:57:18] Production.INFO: count ==344 [2025-02-13 07:57:18] Production.ERROR: pbx CDR StartTime 2025-02-13 04:57:04 - End Time 2025-02-13 07:57:04 [2025-02-13 07:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465029', 'tblTempUsageDetail_20' ) start [2025-02-13 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465029', 'tblTempUsageDetail_20' ) end [2025-02-13 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465029', 'tblTempVendorCDR_20' ) start [2025-02-13 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465029', 'tblTempVendorCDR_20' ) end [2025-02-13 07:57:18] Production.INFO: ProcessCDR(1,14465029,1,1,2) [2025-02-13 07:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465029', 'tblTempUsageDetail_20' ) start [2025-02-13 07:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465029', 'tblTempUsageDetail_20' ) end [2025-02-13 07:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 07:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 07:57:22] Production.INFO: ==7736== Releasing lock... [2025-02-13 07:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 07:57:22] Production.INFO: 31 MB #Memory Used# [2025-02-13 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 04:58:05 [end_date_ymd] => 2025-02-13 07:58:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 04:58:05' and `end` < '2025-02-13 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-02-13 07:58:19] Production.INFO: count ==347 [2025-02-13 07:58:19] Production.ERROR: pbx CDR StartTime 2025-02-13 04:58:05 - End Time 2025-02-13 07:58:05 [2025-02-13 07:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465034', 'tblTempUsageDetail_20' ) start [2025-02-13 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465034', 'tblTempUsageDetail_20' ) end [2025-02-13 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465034', 'tblTempVendorCDR_20' ) start [2025-02-13 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465034', 'tblTempVendorCDR_20' ) end [2025-02-13 07:58:19] Production.INFO: ProcessCDR(1,14465034,1,1,2) [2025-02-13 07:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465034', 'tblTempUsageDetail_20' ) start [2025-02-13 07:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465034', 'tblTempUsageDetail_20' ) end [2025-02-13 07:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 07:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 07:58:23] Production.INFO: ==7807== Releasing lock... [2025-02-13 07:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 07:58:23] Production.INFO: 31 MB #Memory Used# [2025-02-13 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 04:59:05 [end_date_ymd] => 2025-02-13 07:59:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 04:59:05' and `end` < '2025-02-13 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-02-13 07:59:18] Production.INFO: count ==352 [2025-02-13 07:59:18] Production.ERROR: pbx CDR StartTime 2025-02-13 04:59:05 - End Time 2025-02-13 07:59:05 [2025-02-13 07:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465039', 'tblTempUsageDetail_20' ) start [2025-02-13 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465039', 'tblTempUsageDetail_20' ) end [2025-02-13 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465039', 'tblTempVendorCDR_20' ) start [2025-02-13 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465039', 'tblTempVendorCDR_20' ) end [2025-02-13 07:59:18] Production.INFO: ProcessCDR(1,14465039,1,1,2) [2025-02-13 07:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 07:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 07:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465039', 'tblTempUsageDetail_20' ) start [2025-02-13 07:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465039', 'tblTempUsageDetail_20' ) end [2025-02-13 07:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 07:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 07:59:22] Production.INFO: ==7876== Releasing lock... [2025-02-13 07:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 07:59:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-13 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 05:00:06 [end_date_ymd] => 2025-02-13 08:00:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 05:00:06' and `end` < '2025-02-13 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-02-13 08:00:19] Production.INFO: count ==352 [2025-02-13 08:00:19] Production.ERROR: pbx CDR StartTime 2025-02-13 05:00:06 - End Time 2025-02-13 08:00:06 [2025-02-13 08:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465045', 'tblTempUsageDetail_20' ) start [2025-02-13 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465045', 'tblTempUsageDetail_20' ) end [2025-02-13 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465045', 'tblTempVendorCDR_20' ) start [2025-02-13 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465045', 'tblTempVendorCDR_20' ) end [2025-02-13 08:00:19] Production.INFO: ProcessCDR(1,14465045,1,1,2) [2025-02-13 08:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465045', 'tblTempUsageDetail_20' ) start [2025-02-13 08:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465045', 'tblTempUsageDetail_20' ) end [2025-02-13 08:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 08:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 08:00:24] Production.INFO: ==7952== Releasing lock... [2025-02-13 08:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 08:00:24] Production.INFO: 31 MB #Memory Used# [2025-02-13 08:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 05:01:06 [end_date_ymd] => 2025-02-13 08:01:06 [RateCDR] => 1 ) [2025-02-13 08: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-02-13 05:01:06' and `end` < '2025-02-13 08: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-02-13 08:01:19] Production.INFO: count ==362 [2025-02-13 08:01:19] Production.ERROR: pbx CDR StartTime 2025-02-13 05:01:06 - End Time 2025-02-13 08:01:06 [2025-02-13 08:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465050', 'tblTempUsageDetail_20' ) start [2025-02-13 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465050', 'tblTempUsageDetail_20' ) end [2025-02-13 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465050', 'tblTempVendorCDR_20' ) start [2025-02-13 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465050', 'tblTempVendorCDR_20' ) end [2025-02-13 08:01:19] Production.INFO: ProcessCDR(1,14465050,1,1,2) [2025-02-13 08:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465050', 'tblTempUsageDetail_20' ) start [2025-02-13 08:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465050', 'tblTempUsageDetail_20' ) end [2025-02-13 08:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 08:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 08:01:23] Production.INFO: ==8037== Releasing lock... [2025-02-13 08:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 08:01:23] Production.INFO: 31.25 MB #Memory Used# [2025-02-13 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 05:02:05 [end_date_ymd] => 2025-02-13 08:02:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 05:02:05' and `end` < '2025-02-13 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-02-13 08:02:18] Production.INFO: count ==367 [2025-02-13 08:02:18] Production.ERROR: pbx CDR StartTime 2025-02-13 05:02:05 - End Time 2025-02-13 08:02:05 [2025-02-13 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465055', 'tblTempUsageDetail_20' ) start [2025-02-13 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465055', 'tblTempUsageDetail_20' ) end [2025-02-13 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465055', 'tblTempVendorCDR_20' ) start [2025-02-13 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465055', 'tblTempVendorCDR_20' ) end [2025-02-13 08:02:18] Production.INFO: ProcessCDR(1,14465055,1,1,2) [2025-02-13 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465055', 'tblTempUsageDetail_20' ) start [2025-02-13 08:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465055', 'tblTempUsageDetail_20' ) end [2025-02-13 08:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 08:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 08:02:23] Production.INFO: ==8115== Releasing lock... [2025-02-13 08:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 08:02:23] Production.INFO: 31.25 MB #Memory Used# [2025-02-13 08:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 05:03:06 [end_date_ymd] => 2025-02-13 08:03:06 [RateCDR] => 1 ) [2025-02-13 08: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-02-13 05:03:06' and `end` < '2025-02-13 08: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-02-13 08:03:20] Production.INFO: count ==383 [2025-02-13 08:03:20] Production.ERROR: pbx CDR StartTime 2025-02-13 05:03:06 - End Time 2025-02-13 08:03:06 [2025-02-13 08:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 08:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465060', 'tblTempUsageDetail_20' ) start [2025-02-13 08:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465060', 'tblTempUsageDetail_20' ) end [2025-02-13 08:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465060', 'tblTempVendorCDR_20' ) start [2025-02-13 08:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465060', 'tblTempVendorCDR_20' ) end [2025-02-13 08:03:20] Production.INFO: ProcessCDR(1,14465060,1,1,2) [2025-02-13 08:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465060', 'tblTempUsageDetail_20' ) start [2025-02-13 08:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465060', 'tblTempUsageDetail_20' ) end [2025-02-13 08:03:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 08:03:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 08:03:25] Production.INFO: ==8187== Releasing lock... [2025-02-13 08:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 08:03:25] Production.INFO: 31.75 MB #Memory Used# [2025-02-13 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 05:04:05 [end_date_ymd] => 2025-02-13 08:04:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 05:04:05' and `end` < '2025-02-13 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-02-13 08:04:18] Production.INFO: count ==400 [2025-02-13 08:04:18] Production.ERROR: pbx CDR StartTime 2025-02-13 05:04:05 - End Time 2025-02-13 08:04:05 [2025-02-13 08:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465065', 'tblTempUsageDetail_20' ) start [2025-02-13 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465065', 'tblTempUsageDetail_20' ) end [2025-02-13 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465065', 'tblTempVendorCDR_20' ) start [2025-02-13 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465065', 'tblTempVendorCDR_20' ) end [2025-02-13 08:04:18] Production.INFO: ProcessCDR(1,14465065,1,1,2) [2025-02-13 08:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465065', 'tblTempUsageDetail_20' ) start [2025-02-13 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465065', 'tblTempUsageDetail_20' ) end [2025-02-13 08:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 08:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 08:04:21] Production.INFO: ==8258== Releasing lock... [2025-02-13 08:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 08:04:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-13 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 05:05:05 [end_date_ymd] => 2025-02-13 08:05:05 [RateCDR] => 1 ) [2025-02-13 08: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-02-13 05:05:05' and `end` < '2025-02-13 08: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-02-13 08:05:18] Production.INFO: count ==420 [2025-02-13 08:05:19] Production.ERROR: pbx CDR StartTime 2025-02-13 05:05:05 - End Time 2025-02-13 08:05:05 [2025-02-13 08:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 08:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465070', 'tblTempUsageDetail_20' ) start [2025-02-13 08:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465070', 'tblTempUsageDetail_20' ) end [2025-02-13 08:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465070', 'tblTempVendorCDR_20' ) start [2025-02-13 08:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465070', 'tblTempVendorCDR_20' ) end [2025-02-13 08:05:19] Production.INFO: ProcessCDR(1,14465070,1,1,2) [2025-02-13 08:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465070', 'tblTempUsageDetail_20' ) start [2025-02-13 08:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465070', 'tblTempUsageDetail_20' ) end [2025-02-13 08:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 08:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 08:05:23] Production.INFO: ==8370== Releasing lock... [2025-02-13 08:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 08:05:23] Production.INFO: 31.25 MB #Memory Used# [2025-02-13 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 05:06:05 [end_date_ymd] => 2025-02-13 08:06:05 [RateCDR] => 1 ) [2025-02-13 08: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-02-13 05:06:05' and `end` < '2025-02-13 08: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-02-13 08:06:18] Production.INFO: count ==423 [2025-02-13 08:06:18] Production.ERROR: pbx CDR StartTime 2025-02-13 05:06:05 - End Time 2025-02-13 08:06:05 [2025-02-13 08:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465075', 'tblTempUsageDetail_20' ) start [2025-02-13 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465075', 'tblTempUsageDetail_20' ) end [2025-02-13 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465075', 'tblTempVendorCDR_20' ) start [2025-02-13 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465075', 'tblTempVendorCDR_20' ) end [2025-02-13 08:06:18] Production.INFO: ProcessCDR(1,14465075,1,1,2) [2025-02-13 08:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465075', 'tblTempUsageDetail_20' ) start [2025-02-13 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465075', 'tblTempUsageDetail_20' ) end [2025-02-13 08:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 08:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 08:06:22] Production.INFO: ==8440== Releasing lock... [2025-02-13 08:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 08:06:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-13 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 05:07:05 [end_date_ymd] => 2025-02-13 08:07:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 05:07:05' and `end` < '2025-02-13 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-02-13 08:07:19] Production.INFO: count ==452 [2025-02-13 08:07:19] Production.ERROR: pbx CDR StartTime 2025-02-13 05:07:05 - End Time 2025-02-13 08:07:05 [2025-02-13 08:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 08:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465080', 'tblTempUsageDetail_20' ) start [2025-02-13 08:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465080', 'tblTempUsageDetail_20' ) end [2025-02-13 08:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465080', 'tblTempVendorCDR_20' ) start [2025-02-13 08:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465080', 'tblTempVendorCDR_20' ) end [2025-02-13 08:07:19] Production.INFO: ProcessCDR(1,14465080,1,1,2) [2025-02-13 08:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465080', 'tblTempUsageDetail_20' ) start [2025-02-13 08:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465080', 'tblTempUsageDetail_20' ) end [2025-02-13 08:07:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 08:07:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 08:07:24] Production.INFO: ==8511== Releasing lock... [2025-02-13 08:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 08:07:24] Production.INFO: 32.25 MB #Memory Used# [2025-02-13 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 05:08:05 [end_date_ymd] => 2025-02-13 08:08:05 [RateCDR] => 1 ) [2025-02-13 08: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-02-13 05:08:05' and `end` < '2025-02-13 08: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-02-13 08:08:19] Production.INFO: count ==466 [2025-02-13 08:08:19] Production.ERROR: pbx CDR StartTime 2025-02-13 05:08:05 - End Time 2025-02-13 08:08:05 [2025-02-13 08:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465085', 'tblTempUsageDetail_20' ) start [2025-02-13 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465085', 'tblTempUsageDetail_20' ) end [2025-02-13 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465085', 'tblTempVendorCDR_20' ) start [2025-02-13 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465085', 'tblTempVendorCDR_20' ) end [2025-02-13 08:08:19] Production.INFO: ProcessCDR(1,14465085,1,1,2) [2025-02-13 08:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465085', 'tblTempUsageDetail_20' ) start [2025-02-13 08:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465085', 'tblTempUsageDetail_20' ) end [2025-02-13 08:08:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 08:08:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 08:08:24] Production.INFO: ==8584== Releasing lock... [2025-02-13 08:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 08:08:24] Production.INFO: 32.25 MB #Memory Used# [2025-02-13 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 05:09:05 [end_date_ymd] => 2025-02-13 08:09:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 05:09:05' and `end` < '2025-02-13 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-02-13 08:09:19] Production.INFO: count ==486 [2025-02-13 08:09:20] Production.ERROR: pbx CDR StartTime 2025-02-13 05:09:05 - End Time 2025-02-13 08:09:05 [2025-02-13 08:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 08:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465090', 'tblTempUsageDetail_20' ) start [2025-02-13 08:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465090', 'tblTempUsageDetail_20' ) end [2025-02-13 08:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465090', 'tblTempVendorCDR_20' ) start [2025-02-13 08:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465090', 'tblTempVendorCDR_20' ) end [2025-02-13 08:09:20] Production.INFO: ProcessCDR(1,14465090,1,1,2) [2025-02-13 08:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465090', 'tblTempUsageDetail_20' ) start [2025-02-13 08:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465090', 'tblTempUsageDetail_20' ) end [2025-02-13 08:09:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 08:09:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 08:09:24] Production.INFO: ==8654== Releasing lock... [2025-02-13 08:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 08:09:24] Production.INFO: 32 MB #Memory Used# [2025-02-13 08:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 05:10:05 [end_date_ymd] => 2025-02-13 08:10:05 [RateCDR] => 1 ) [2025-02-13 08: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-02-13 05:10:05' and `end` < '2025-02-13 08: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-02-13 08:10:18] Production.INFO: count ==489 [2025-02-13 08:10:19] Production.ERROR: pbx CDR StartTime 2025-02-13 05:10:05 - End Time 2025-02-13 08:10:05 [2025-02-13 08:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465096', 'tblTempUsageDetail_20' ) start [2025-02-13 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465096', 'tblTempUsageDetail_20' ) end [2025-02-13 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465096', 'tblTempVendorCDR_20' ) start [2025-02-13 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465096', 'tblTempVendorCDR_20' ) end [2025-02-13 08:10:19] Production.INFO: ProcessCDR(1,14465096,1,1,2) [2025-02-13 08:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465096', 'tblTempUsageDetail_20' ) start [2025-02-13 08:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465096', 'tblTempUsageDetail_20' ) end [2025-02-13 08:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 08:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 08:10:23] Production.INFO: ==8728== Releasing lock... [2025-02-13 08:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 08:10:23] Production.INFO: 32 MB #Memory Used# [2025-02-13 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 05:11:05 [end_date_ymd] => 2025-02-13 08:11:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 05:11:05' and `end` < '2025-02-13 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-02-13 08:11:18] Production.INFO: count ==510 [2025-02-13 08:11:18] Production.ERROR: pbx CDR StartTime 2025-02-13 05:11:05 - End Time 2025-02-13 08:11:05 [2025-02-13 08:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465101', 'tblTempUsageDetail_20' ) start [2025-02-13 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465101', 'tblTempUsageDetail_20' ) end [2025-02-13 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465101', 'tblTempVendorCDR_20' ) start [2025-02-13 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465101', 'tblTempVendorCDR_20' ) end [2025-02-13 08:11:18] Production.INFO: ProcessCDR(1,14465101,1,1,2) [2025-02-13 08:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465101', 'tblTempUsageDetail_20' ) start [2025-02-13 08:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465101', 'tblTempUsageDetail_20' ) end [2025-02-13 08:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 08:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 08:11:23] Production.INFO: ==8802== Releasing lock... [2025-02-13 08:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 08:11:23] Production.INFO: 32.5 MB #Memory Used# [2025-02-13 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 05:12:05 [end_date_ymd] => 2025-02-13 08:12:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 05:12:05' and `end` < '2025-02-13 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-02-13 08:12:19] Production.INFO: count ==511 [2025-02-13 08:12:19] Production.ERROR: pbx CDR StartTime 2025-02-13 05:12:05 - End Time 2025-02-13 08:12:05 [2025-02-13 08:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 08:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465106', 'tblTempUsageDetail_20' ) start [2025-02-13 08:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465106', 'tblTempUsageDetail_20' ) end [2025-02-13 08:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465106', 'tblTempVendorCDR_20' ) start [2025-02-13 08:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465106', 'tblTempVendorCDR_20' ) end [2025-02-13 08:12:19] Production.INFO: ProcessCDR(1,14465106,1,1,2) [2025-02-13 08:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465106', 'tblTempUsageDetail_20' ) start [2025-02-13 08:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465106', 'tblTempUsageDetail_20' ) end [2025-02-13 08:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 08:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 08:12:23] Production.INFO: ==8872== Releasing lock... [2025-02-13 08:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 08:12:23] Production.INFO: 33 MB #Memory Used# [2025-02-13 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 05:13:05 [end_date_ymd] => 2025-02-13 08:13:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 05:13:05' and `end` < '2025-02-13 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-02-13 08:13:18] Production.INFO: count ==520 [2025-02-13 08:13:19] Production.ERROR: pbx CDR StartTime 2025-02-13 05:13:05 - End Time 2025-02-13 08:13:05 [2025-02-13 08:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 08:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465111', 'tblTempUsageDetail_20' ) start [2025-02-13 08:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465111', 'tblTempUsageDetail_20' ) end [2025-02-13 08:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465111', 'tblTempVendorCDR_20' ) start [2025-02-13 08:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465111', 'tblTempVendorCDR_20' ) end [2025-02-13 08:13:19] Production.INFO: ProcessCDR(1,14465111,1,1,2) [2025-02-13 08:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465111', 'tblTempUsageDetail_20' ) start [2025-02-13 08:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465111', 'tblTempUsageDetail_20' ) end [2025-02-13 08:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 08:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 08:13:23] Production.INFO: ==8943== Releasing lock... [2025-02-13 08:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 08:13:23] Production.INFO: 32.25 MB #Memory Used# [2025-02-13 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 05:14:05 [end_date_ymd] => 2025-02-13 08:14:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 05:14:05' and `end` < '2025-02-13 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-02-13 08:14:20] Production.INFO: count ==528 [2025-02-13 08:14:20] Production.ERROR: pbx CDR StartTime 2025-02-13 05:14:05 - End Time 2025-02-13 08:14:05 [2025-02-13 08:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 08:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465116', 'tblTempUsageDetail_20' ) start [2025-02-13 08:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465116', 'tblTempUsageDetail_20' ) end [2025-02-13 08:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465116', 'tblTempVendorCDR_20' ) start [2025-02-13 08:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465116', 'tblTempVendorCDR_20' ) end [2025-02-13 08:14:20] Production.INFO: ProcessCDR(1,14465116,1,1,2) [2025-02-13 08:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465116', 'tblTempUsageDetail_20' ) start [2025-02-13 08:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465116', 'tblTempUsageDetail_20' ) end [2025-02-13 08:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 08:14:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 08:14:23] Production.INFO: ==9016== Releasing lock... [2025-02-13 08:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 08:14:23] Production.INFO: 32.25 MB #Memory Used# [2025-02-13 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 05:15:05 [end_date_ymd] => 2025-02-13 08:15:05 [RateCDR] => 1 ) [2025-02-13 08: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-02-13 05:15:05' and `end` < '2025-02-13 08: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-02-13 08:15:18] Production.INFO: count ==530 [2025-02-13 08:15:18] Production.ERROR: pbx CDR StartTime 2025-02-13 05:15:05 - End Time 2025-02-13 08:15:05 [2025-02-13 08:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465121', 'tblTempUsageDetail_20' ) start [2025-02-13 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465121', 'tblTempUsageDetail_20' ) end [2025-02-13 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465121', 'tblTempVendorCDR_20' ) start [2025-02-13 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465121', 'tblTempVendorCDR_20' ) end [2025-02-13 08:15:18] Production.INFO: ProcessCDR(1,14465121,1,1,2) [2025-02-13 08:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465121', 'tblTempUsageDetail_20' ) start [2025-02-13 08:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465121', 'tblTempUsageDetail_20' ) end [2025-02-13 08:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 08:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 08:15:22] Production.INFO: ==9094== Releasing lock... [2025-02-13 08:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 08:15:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-13 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 05:16:05 [end_date_ymd] => 2025-02-13 08:16:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 05:16:05' and `end` < '2025-02-13 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-02-13 08:16:18] Production.INFO: count ==530 [2025-02-13 08:16:18] Production.ERROR: pbx CDR StartTime 2025-02-13 05:16:05 - End Time 2025-02-13 08:16:05 [2025-02-13 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465126', 'tblTempUsageDetail_20' ) start [2025-02-13 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465126', 'tblTempUsageDetail_20' ) end [2025-02-13 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465126', 'tblTempVendorCDR_20' ) start [2025-02-13 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465126', 'tblTempVendorCDR_20' ) end [2025-02-13 08:16:18] Production.INFO: ProcessCDR(1,14465126,1,1,2) [2025-02-13 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465126', 'tblTempUsageDetail_20' ) start [2025-02-13 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465126', 'tblTempUsageDetail_20' ) end [2025-02-13 08:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 08:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 08:16:21] Production.INFO: ==9171== Releasing lock... [2025-02-13 08:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 08:16:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-13 08:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 05:17:04 [end_date_ymd] => 2025-02-13 08:17:04 [RateCDR] => 1 ) [2025-02-13 08: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-02-13 05:17:04' and `end` < '2025-02-13 08: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-02-13 08:17:18] Production.INFO: count ==530 [2025-02-13 08:17:18] Production.ERROR: pbx CDR StartTime 2025-02-13 05:17:04 - End Time 2025-02-13 08:17:04 [2025-02-13 08:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465131', 'tblTempUsageDetail_20' ) start [2025-02-13 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465131', 'tblTempUsageDetail_20' ) end [2025-02-13 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465131', 'tblTempVendorCDR_20' ) start [2025-02-13 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465131', 'tblTempVendorCDR_20' ) end [2025-02-13 08:17:18] Production.INFO: ProcessCDR(1,14465131,1,1,2) [2025-02-13 08:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465131', 'tblTempUsageDetail_20' ) start [2025-02-13 08:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465131', 'tblTempUsageDetail_20' ) end [2025-02-13 08:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 08:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 08:17:23] Production.INFO: ==9241== Releasing lock... [2025-02-13 08:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 08:17:23] Production.INFO: 32.5 MB #Memory Used# [2025-02-13 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 05:18:05 [end_date_ymd] => 2025-02-13 08:18:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 05:18:05' and `end` < '2025-02-13 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-02-13 08:18:19] Production.INFO: count ==530 [2025-02-13 08:18:19] Production.ERROR: pbx CDR StartTime 2025-02-13 05:18:05 - End Time 2025-02-13 08:18:05 [2025-02-13 08:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465136', 'tblTempUsageDetail_20' ) start [2025-02-13 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465136', 'tblTempUsageDetail_20' ) end [2025-02-13 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465136', 'tblTempVendorCDR_20' ) start [2025-02-13 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465136', 'tblTempVendorCDR_20' ) end [2025-02-13 08:18:19] Production.INFO: ProcessCDR(1,14465136,1,1,2) [2025-02-13 08:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465136', 'tblTempUsageDetail_20' ) start [2025-02-13 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465136', 'tblTempUsageDetail_20' ) end [2025-02-13 08:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 08:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 08:18:22] Production.INFO: ==9322== Releasing lock... [2025-02-13 08:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 08:18:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-13 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 05:19:05 [end_date_ymd] => 2025-02-13 08:19:05 [RateCDR] => 1 ) [2025-02-13 08: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-02-13 05:19:05' and `end` < '2025-02-13 08: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-02-13 08:19:18] Production.INFO: count ==534 [2025-02-13 08:19:18] Production.ERROR: pbx CDR StartTime 2025-02-13 05:19:05 - End Time 2025-02-13 08:19:05 [2025-02-13 08:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465141', 'tblTempUsageDetail_20' ) start [2025-02-13 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465141', 'tblTempUsageDetail_20' ) end [2025-02-13 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465141', 'tblTempVendorCDR_20' ) start [2025-02-13 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465141', 'tblTempVendorCDR_20' ) end [2025-02-13 08:19:18] Production.INFO: ProcessCDR(1,14465141,1,1,2) [2025-02-13 08:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465141', 'tblTempUsageDetail_20' ) start [2025-02-13 08:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465141', 'tblTempUsageDetail_20' ) end [2025-02-13 08:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 08:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 08:19:23] Production.INFO: ==9426== Releasing lock... [2025-02-13 08:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 08:19:23] Production.INFO: 32.75 MB #Memory Used# [2025-02-13 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 05:20:06 [end_date_ymd] => 2025-02-13 08:20:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 05:20:06' and `end` < '2025-02-13 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-02-13 08:20:19] Production.INFO: count ==542 [2025-02-13 08:20:19] Production.ERROR: pbx CDR StartTime 2025-02-13 05:20:06 - End Time 2025-02-13 08:20:06 [2025-02-13 08:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465147', 'tblTempUsageDetail_20' ) start [2025-02-13 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465147', 'tblTempUsageDetail_20' ) end [2025-02-13 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465147', 'tblTempVendorCDR_20' ) start [2025-02-13 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465147', 'tblTempVendorCDR_20' ) end [2025-02-13 08:20:19] Production.INFO: ProcessCDR(1,14465147,1,1,2) [2025-02-13 08:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465147', 'tblTempUsageDetail_20' ) start [2025-02-13 08:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465147', 'tblTempUsageDetail_20' ) end [2025-02-13 08:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 08:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 08:20:23] Production.INFO: ==9579== Releasing lock... [2025-02-13 08:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 08:20:23] Production.INFO: 32.5 MB #Memory Used# [2025-02-13 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 05:21:05 [end_date_ymd] => 2025-02-13 08:21:05 [RateCDR] => 1 ) [2025-02-13 08: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-02-13 05:21:05' and `end` < '2025-02-13 08: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-02-13 08:21:18] Production.INFO: count ==623 [2025-02-13 08:21:18] Production.ERROR: pbx CDR StartTime 2025-02-13 05:21:05 - End Time 2025-02-13 08:21:05 [2025-02-13 08:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465152', 'tblTempUsageDetail_20' ) start [2025-02-13 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465152', 'tblTempUsageDetail_20' ) end [2025-02-13 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465152', 'tblTempVendorCDR_20' ) start [2025-02-13 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465152', 'tblTempVendorCDR_20' ) end [2025-02-13 08:21:18] Production.INFO: ProcessCDR(1,14465152,1,1,2) [2025-02-13 08:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465152', 'tblTempUsageDetail_20' ) start [2025-02-13 08:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465152', 'tblTempUsageDetail_20' ) end [2025-02-13 08:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 08:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 08:21:23] Production.INFO: ==9666== Releasing lock... [2025-02-13 08:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 08:21:23] Production.INFO: 33.25 MB #Memory Used# [2025-02-13 08:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 05:22:04 [end_date_ymd] => 2025-02-13 08:22:04 [RateCDR] => 1 ) [2025-02-13 08:22: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-02-13 05:22:04' and `end` < '2025-02-13 08:22: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-02-13 08:22:17] Production.INFO: count ==626 [2025-02-13 08:22:18] Production.ERROR: pbx CDR StartTime 2025-02-13 05:22:04 - End Time 2025-02-13 08:22:04 [2025-02-13 08:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465157', 'tblTempUsageDetail_20' ) start [2025-02-13 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465157', 'tblTempUsageDetail_20' ) end [2025-02-13 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465157', 'tblTempVendorCDR_20' ) start [2025-02-13 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465157', 'tblTempVendorCDR_20' ) end [2025-02-13 08:22:18] Production.INFO: ProcessCDR(1,14465157,1,1,2) [2025-02-13 08:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465157', 'tblTempUsageDetail_20' ) start [2025-02-13 08:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465157', 'tblTempUsageDetail_20' ) end [2025-02-13 08:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 08:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 08:22:22] Production.INFO: ==9736== Releasing lock... [2025-02-13 08:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 08:22:22] Production.INFO: 33 MB #Memory Used# [2025-02-13 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 05:23:05 [end_date_ymd] => 2025-02-13 08:23:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 05:23:05' and `end` < '2025-02-13 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-02-13 08:23:18] Production.INFO: count ==633 [2025-02-13 08:23:18] Production.ERROR: pbx CDR StartTime 2025-02-13 05:23:05 - End Time 2025-02-13 08:23:05 [2025-02-13 08:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465162', 'tblTempUsageDetail_20' ) start [2025-02-13 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465162', 'tblTempUsageDetail_20' ) end [2025-02-13 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465162', 'tblTempVendorCDR_20' ) start [2025-02-13 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465162', 'tblTempVendorCDR_20' ) end [2025-02-13 08:23:18] Production.INFO: ProcessCDR(1,14465162,1,1,2) [2025-02-13 08:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465162', 'tblTempUsageDetail_20' ) start [2025-02-13 08:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465162', 'tblTempUsageDetail_20' ) end [2025-02-13 08:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 08:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 08:23:23] Production.INFO: ==9808== Releasing lock... [2025-02-13 08:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 08:23:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-13 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 05:24:05 [end_date_ymd] => 2025-02-13 08:24:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 05:24:05' and `end` < '2025-02-13 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-02-13 08:24:19] Production.INFO: count ==640 [2025-02-13 08:24:19] Production.ERROR: pbx CDR StartTime 2025-02-13 05:24:05 - End Time 2025-02-13 08:24:05 [2025-02-13 08:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465167', 'tblTempUsageDetail_20' ) start [2025-02-13 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465167', 'tblTempUsageDetail_20' ) end [2025-02-13 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465167', 'tblTempVendorCDR_20' ) start [2025-02-13 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465167', 'tblTempVendorCDR_20' ) end [2025-02-13 08:24:19] Production.INFO: ProcessCDR(1,14465167,1,1,2) [2025-02-13 08:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465167', 'tblTempUsageDetail_20' ) start [2025-02-13 08:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465167', 'tblTempUsageDetail_20' ) end [2025-02-13 08:24:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 08:24:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 08:24:24] Production.INFO: ==9878== Releasing lock... [2025-02-13 08:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 08:24:24] Production.INFO: 33.5 MB #Memory Used# [2025-02-13 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 05:25:05 [end_date_ymd] => 2025-02-13 08:25:05 [RateCDR] => 1 ) [2025-02-13 08:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 05:25:05' and `end` < '2025-02-13 08:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-13 08:25:18] Production.INFO: count ==646 [2025-02-13 08:25:18] Production.ERROR: pbx CDR StartTime 2025-02-13 05:25:05 - End Time 2025-02-13 08:25:05 [2025-02-13 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465172', 'tblTempUsageDetail_20' ) start [2025-02-13 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465172', 'tblTempUsageDetail_20' ) end [2025-02-13 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465172', 'tblTempVendorCDR_20' ) start [2025-02-13 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465172', 'tblTempVendorCDR_20' ) end [2025-02-13 08:25:18] Production.INFO: ProcessCDR(1,14465172,1,1,2) [2025-02-13 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465172', 'tblTempUsageDetail_20' ) start [2025-02-13 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465172', 'tblTempUsageDetail_20' ) end [2025-02-13 08:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 08:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 08:25:23] Production.INFO: ==9947== Releasing lock... [2025-02-13 08:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 08:25:23] Production.INFO: 33.75 MB #Memory Used# [2025-02-13 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 05:26:05 [end_date_ymd] => 2025-02-13 08:26:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 05:26:05' and `end` < '2025-02-13 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-02-13 08:26:18] Production.INFO: count ==649 [2025-02-13 08:26:18] Production.ERROR: pbx CDR StartTime 2025-02-13 05:26:05 - End Time 2025-02-13 08:26:05 [2025-02-13 08:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465177', 'tblTempUsageDetail_20' ) start [2025-02-13 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465177', 'tblTempUsageDetail_20' ) end [2025-02-13 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465177', 'tblTempVendorCDR_20' ) start [2025-02-13 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465177', 'tblTempVendorCDR_20' ) end [2025-02-13 08:26:18] Production.INFO: ProcessCDR(1,14465177,1,1,2) [2025-02-13 08:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465177', 'tblTempUsageDetail_20' ) start [2025-02-13 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465177', 'tblTempUsageDetail_20' ) end [2025-02-13 08:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 08:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 08:26:21] Production.INFO: ==10020== Releasing lock... [2025-02-13 08:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 08:26:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-13 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 05:27:05 [end_date_ymd] => 2025-02-13 08:27:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 05:27:05' and `end` < '2025-02-13 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-02-13 08:27:19] Production.INFO: count ==655 [2025-02-13 08:27:19] Production.ERROR: pbx CDR StartTime 2025-02-13 05:27:05 - End Time 2025-02-13 08:27:05 [2025-02-13 08:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 08:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465182', 'tblTempUsageDetail_20' ) start [2025-02-13 08:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465182', 'tblTempUsageDetail_20' ) end [2025-02-13 08:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465182', 'tblTempVendorCDR_20' ) start [2025-02-13 08:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465182', 'tblTempVendorCDR_20' ) end [2025-02-13 08:27:19] Production.INFO: ProcessCDR(1,14465182,1,1,2) [2025-02-13 08:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465182', 'tblTempUsageDetail_20' ) start [2025-02-13 08:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465182', 'tblTempUsageDetail_20' ) end [2025-02-13 08:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 08:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 08:27:22] Production.INFO: ==10090== Releasing lock... [2025-02-13 08:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 08:27:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-13 08:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 05:28:06 [end_date_ymd] => 2025-02-13 08:28:06 [RateCDR] => 1 ) [2025-02-13 08: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-02-13 05:28:06' and `end` < '2025-02-13 08: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-02-13 08:28:19] Production.INFO: count ==661 [2025-02-13 08:28:19] Production.ERROR: pbx CDR StartTime 2025-02-13 05:28:06 - End Time 2025-02-13 08:28:06 [2025-02-13 08:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465187', 'tblTempUsageDetail_20' ) start [2025-02-13 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465187', 'tblTempUsageDetail_20' ) end [2025-02-13 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465187', 'tblTempVendorCDR_20' ) start [2025-02-13 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465187', 'tblTempVendorCDR_20' ) end [2025-02-13 08:28:19] Production.INFO: ProcessCDR(1,14465187,1,1,2) [2025-02-13 08:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465187', 'tblTempUsageDetail_20' ) start [2025-02-13 08:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465187', 'tblTempUsageDetail_20' ) end [2025-02-13 08:28:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 08:28:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 08:28:24] Production.INFO: ==10162== Releasing lock... [2025-02-13 08:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 08:28:24] Production.INFO: 33.5 MB #Memory Used# [2025-02-13 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 05:29:05 [end_date_ymd] => 2025-02-13 08:29:05 [RateCDR] => 1 ) [2025-02-13 08: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-02-13 05:29:05' and `end` < '2025-02-13 08: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-02-13 08:29:19] Production.INFO: count ==667 [2025-02-13 08:29:19] Production.ERROR: pbx CDR StartTime 2025-02-13 05:29:05 - End Time 2025-02-13 08:29:05 [2025-02-13 08:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465192', 'tblTempUsageDetail_20' ) start [2025-02-13 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465192', 'tblTempUsageDetail_20' ) end [2025-02-13 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465192', 'tblTempVendorCDR_20' ) start [2025-02-13 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465192', 'tblTempVendorCDR_20' ) end [2025-02-13 08:29:19] Production.INFO: ProcessCDR(1,14465192,1,1,2) [2025-02-13 08:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465192', 'tblTempUsageDetail_20' ) start [2025-02-13 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465192', 'tblTempUsageDetail_20' ) end [2025-02-13 08:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 08:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 08:29:22] Production.INFO: ==10234== Releasing lock... [2025-02-13 08:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 08:29:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-13 08:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 05:30:05 [end_date_ymd] => 2025-02-13 08:30:05 [RateCDR] => 1 ) [2025-02-13 08: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-02-13 05:30:05' and `end` < '2025-02-13 08: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-02-13 08:30:18] Production.INFO: count ==669 [2025-02-13 08:30:19] Production.ERROR: pbx CDR StartTime 2025-02-13 05:30:05 - End Time 2025-02-13 08:30:05 [2025-02-13 08:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465198', 'tblTempUsageDetail_20' ) start [2025-02-13 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465198', 'tblTempUsageDetail_20' ) end [2025-02-13 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465198', 'tblTempVendorCDR_20' ) start [2025-02-13 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465198', 'tblTempVendorCDR_20' ) end [2025-02-13 08:30:19] Production.INFO: ProcessCDR(1,14465198,1,1,2) [2025-02-13 08:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465198', 'tblTempUsageDetail_20' ) start [2025-02-13 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465198', 'tblTempUsageDetail_20' ) end [2025-02-13 08:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 08:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 08:30:22] Production.INFO: ==10309== Releasing lock... [2025-02-13 08:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 08:30:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-13 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 05:31:05 [end_date_ymd] => 2025-02-13 08:31:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 05:31:05' and `end` < '2025-02-13 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-02-13 08:31:20] Production.INFO: count ==706 [2025-02-13 08:31:20] Production.ERROR: pbx CDR StartTime 2025-02-13 05:31:05 - End Time 2025-02-13 08:31:05 [2025-02-13 08:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 08:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465203', 'tblTempUsageDetail_20' ) start [2025-02-13 08:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465203', 'tblTempUsageDetail_20' ) end [2025-02-13 08:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465203', 'tblTempVendorCDR_20' ) start [2025-02-13 08:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465203', 'tblTempVendorCDR_20' ) end [2025-02-13 08:31:20] Production.INFO: ProcessCDR(1,14465203,1,1,2) [2025-02-13 08:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465203', 'tblTempUsageDetail_20' ) start [2025-02-13 08:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465203', 'tblTempUsageDetail_20' ) end [2025-02-13 08:31:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 08:31:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 08:31:25] Production.INFO: ==10383== Releasing lock... [2025-02-13 08:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 08:31:25] Production.INFO: 33.75 MB #Memory Used# [2025-02-13 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 05:32:05 [end_date_ymd] => 2025-02-13 08:32:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 05:32:05' and `end` < '2025-02-13 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-02-13 08:32:18] Production.INFO: count ==705 [2025-02-13 08:32:18] Production.ERROR: pbx CDR StartTime 2025-02-13 05:32:05 - End Time 2025-02-13 08:32:05 [2025-02-13 08:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465208', 'tblTempUsageDetail_20' ) start [2025-02-13 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465208', 'tblTempUsageDetail_20' ) end [2025-02-13 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465208', 'tblTempVendorCDR_20' ) start [2025-02-13 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465208', 'tblTempVendorCDR_20' ) end [2025-02-13 08:32:18] Production.INFO: ProcessCDR(1,14465208,1,1,2) [2025-02-13 08:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465208', 'tblTempUsageDetail_20' ) start [2025-02-13 08:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465208', 'tblTempUsageDetail_20' ) end [2025-02-13 08:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 08:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 08:32:23] Production.INFO: ==10452== Releasing lock... [2025-02-13 08:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 08:32:23] Production.INFO: 34 MB #Memory Used# [2025-02-13 08:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 05:33:04 [end_date_ymd] => 2025-02-13 08:33:04 [RateCDR] => 1 ) [2025-02-13 08:33: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-02-13 05:33:04' and `end` < '2025-02-13 08:33: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-02-13 08:33:18] Production.INFO: count ==730 [2025-02-13 08:33:18] Production.ERROR: pbx CDR StartTime 2025-02-13 05:33:04 - End Time 2025-02-13 08:33:04 [2025-02-13 08:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465213', 'tblTempUsageDetail_20' ) start [2025-02-13 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465213', 'tblTempUsageDetail_20' ) end [2025-02-13 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465213', 'tblTempVendorCDR_20' ) start [2025-02-13 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465213', 'tblTempVendorCDR_20' ) end [2025-02-13 08:33:18] Production.INFO: ProcessCDR(1,14465213,1,1,2) [2025-02-13 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465213', 'tblTempUsageDetail_20' ) start [2025-02-13 08:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465213', 'tblTempUsageDetail_20' ) end [2025-02-13 08:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 08:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 08:33:22] Production.INFO: ==10529== Releasing lock... [2025-02-13 08:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 08:33:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-13 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 05:34:05 [end_date_ymd] => 2025-02-13 08:34:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 05:34:05' and `end` < '2025-02-13 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-02-13 08:34:19] Production.INFO: count ==733 [2025-02-13 08:34:19] Production.ERROR: pbx CDR StartTime 2025-02-13 05:34:05 - End Time 2025-02-13 08:34:05 [2025-02-13 08:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465218', 'tblTempUsageDetail_20' ) start [2025-02-13 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465218', 'tblTempUsageDetail_20' ) end [2025-02-13 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465218', 'tblTempVendorCDR_20' ) start [2025-02-13 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465218', 'tblTempVendorCDR_20' ) end [2025-02-13 08:34:19] Production.INFO: ProcessCDR(1,14465218,1,1,2) [2025-02-13 08:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465218', 'tblTempUsageDetail_20' ) start [2025-02-13 08:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465218', 'tblTempUsageDetail_20' ) end [2025-02-13 08:34:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 08:34:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 08:34:24] Production.INFO: ==10600== Releasing lock... [2025-02-13 08:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 08:34:24] Production.INFO: 33.75 MB #Memory Used# [2025-02-13 08:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 05:35:04 [end_date_ymd] => 2025-02-13 08:35:04 [RateCDR] => 1 ) [2025-02-13 08: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-02-13 05:35:04' and `end` < '2025-02-13 08: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-02-13 08:35:17] Production.INFO: count ==738 [2025-02-13 08:35:18] Production.ERROR: pbx CDR StartTime 2025-02-13 05:35:04 - End Time 2025-02-13 08:35:04 [2025-02-13 08:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465223', 'tblTempUsageDetail_20' ) start [2025-02-13 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465223', 'tblTempUsageDetail_20' ) end [2025-02-13 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465223', 'tblTempVendorCDR_20' ) start [2025-02-13 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465223', 'tblTempVendorCDR_20' ) end [2025-02-13 08:35:18] Production.INFO: ProcessCDR(1,14465223,1,1,2) [2025-02-13 08:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465223', 'tblTempUsageDetail_20' ) start [2025-02-13 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465223', 'tblTempUsageDetail_20' ) end [2025-02-13 08:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 08:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 08:35:21] Production.INFO: ==10711== Releasing lock... [2025-02-13 08:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 08:35:21] Production.INFO: 33.75 MB #Memory Used# [2025-02-13 08:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 05:36:06 [end_date_ymd] => 2025-02-13 08:36:06 [RateCDR] => 1 ) [2025-02-13 08: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-02-13 05:36:06' and `end` < '2025-02-13 08: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-02-13 08:36:19] Production.INFO: count ==741 [2025-02-13 08:36:19] Production.ERROR: pbx CDR StartTime 2025-02-13 05:36:06 - End Time 2025-02-13 08:36:06 [2025-02-13 08:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465228', 'tblTempUsageDetail_20' ) start [2025-02-13 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465228', 'tblTempUsageDetail_20' ) end [2025-02-13 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465228', 'tblTempVendorCDR_20' ) start [2025-02-13 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465228', 'tblTempVendorCDR_20' ) end [2025-02-13 08:36:19] Production.INFO: ProcessCDR(1,14465228,1,1,2) [2025-02-13 08:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465228', 'tblTempUsageDetail_20' ) start [2025-02-13 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465228', 'tblTempUsageDetail_20' ) end [2025-02-13 08:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 08:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 08:36:22] Production.INFO: ==10788== Releasing lock... [2025-02-13 08:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 08:36:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-13 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 05:37:05 [end_date_ymd] => 2025-02-13 08:37:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 05:37:05' and `end` < '2025-02-13 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-02-13 08:37:18] Production.INFO: count ==742 [2025-02-13 08:37:18] Production.ERROR: pbx CDR StartTime 2025-02-13 05:37:05 - End Time 2025-02-13 08:37:05 [2025-02-13 08:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465233', 'tblTempUsageDetail_20' ) start [2025-02-13 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465233', 'tblTempUsageDetail_20' ) end [2025-02-13 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465233', 'tblTempVendorCDR_20' ) start [2025-02-13 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465233', 'tblTempVendorCDR_20' ) end [2025-02-13 08:37:18] Production.INFO: ProcessCDR(1,14465233,1,1,2) [2025-02-13 08:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465233', 'tblTempUsageDetail_20' ) start [2025-02-13 08:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465233', 'tblTempUsageDetail_20' ) end [2025-02-13 08:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 08:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 08:37:23] Production.INFO: ==10861== Releasing lock... [2025-02-13 08:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 08:37:23] Production.INFO: 33.75 MB #Memory Used# [2025-02-13 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 05:38:05 [end_date_ymd] => 2025-02-13 08:38:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 05:38:05' and `end` < '2025-02-13 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-02-13 08:38:19] Production.INFO: count ==752 [2025-02-13 08:38:19] Production.ERROR: pbx CDR StartTime 2025-02-13 05:38:05 - End Time 2025-02-13 08:38:05 [2025-02-13 08:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465238', 'tblTempUsageDetail_20' ) start [2025-02-13 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465238', 'tblTempUsageDetail_20' ) end [2025-02-13 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465238', 'tblTempVendorCDR_20' ) start [2025-02-13 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465238', 'tblTempVendorCDR_20' ) end [2025-02-13 08:38:19] Production.INFO: ProcessCDR(1,14465238,1,1,2) [2025-02-13 08:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465238', 'tblTempUsageDetail_20' ) start [2025-02-13 08:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465238', 'tblTempUsageDetail_20' ) end [2025-02-13 08:38:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 08:38:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 08:38:24] Production.INFO: ==10931== Releasing lock... [2025-02-13 08:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 08:38:24] Production.INFO: 33.75 MB #Memory Used# [2025-02-13 08:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 05:39:04 [end_date_ymd] => 2025-02-13 08:39:04 [RateCDR] => 1 ) [2025-02-13 08: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-02-13 05:39:04' and `end` < '2025-02-13 08: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-02-13 08:39:18] Production.INFO: count ==754 [2025-02-13 08:39:18] Production.ERROR: pbx CDR StartTime 2025-02-13 05:39:04 - End Time 2025-02-13 08:39:04 [2025-02-13 08:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465243', 'tblTempUsageDetail_20' ) start [2025-02-13 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465243', 'tblTempUsageDetail_20' ) end [2025-02-13 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465243', 'tblTempVendorCDR_20' ) start [2025-02-13 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465243', 'tblTempVendorCDR_20' ) end [2025-02-13 08:39:18] Production.INFO: ProcessCDR(1,14465243,1,1,2) [2025-02-13 08:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465243', 'tblTempUsageDetail_20' ) start [2025-02-13 08:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465243', 'tblTempUsageDetail_20' ) end [2025-02-13 08:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 08:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 08:39:23] Production.INFO: ==11000== Releasing lock... [2025-02-13 08:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 08:39:23] Production.INFO: 33.75 MB #Memory Used# [2025-02-13 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 05:40:06 [end_date_ymd] => 2025-02-13 08:40:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 05:40:06' and `end` < '2025-02-13 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-02-13 08:40:19] Production.INFO: count ==761 [2025-02-13 08:40:19] Production.ERROR: pbx CDR StartTime 2025-02-13 05:40:06 - End Time 2025-02-13 08:40:06 [2025-02-13 08:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465249', 'tblTempUsageDetail_20' ) start [2025-02-13 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465249', 'tblTempUsageDetail_20' ) end [2025-02-13 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465249', 'tblTempVendorCDR_20' ) start [2025-02-13 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465249', 'tblTempVendorCDR_20' ) end [2025-02-13 08:40:19] Production.INFO: ProcessCDR(1,14465249,1,1,2) [2025-02-13 08:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465249', 'tblTempUsageDetail_20' ) start [2025-02-13 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465249', 'tblTempUsageDetail_20' ) end [2025-02-13 08:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 08:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 08:40:22] Production.INFO: ==11072== Releasing lock... [2025-02-13 08:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 08:40:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-13 08:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 05:41:06 [end_date_ymd] => 2025-02-13 08:41:06 [RateCDR] => 1 ) [2025-02-13 08: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-02-13 05:41:06' and `end` < '2025-02-13 08: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-02-13 08:41:19] Production.INFO: count ==780 [2025-02-13 08:41:19] Production.ERROR: pbx CDR StartTime 2025-02-13 05:41:06 - End Time 2025-02-13 08:41:06 [2025-02-13 08:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465254', 'tblTempUsageDetail_20' ) start [2025-02-13 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465254', 'tblTempUsageDetail_20' ) end [2025-02-13 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465254', 'tblTempVendorCDR_20' ) start [2025-02-13 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465254', 'tblTempVendorCDR_20' ) end [2025-02-13 08:41:19] Production.INFO: ProcessCDR(1,14465254,1,1,2) [2025-02-13 08:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465254', 'tblTempUsageDetail_20' ) start [2025-02-13 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465254', 'tblTempUsageDetail_20' ) end [2025-02-13 08:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 08:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 08:41:22] Production.INFO: ==11147== Releasing lock... [2025-02-13 08:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 08:41:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-13 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 05:42:05 [end_date_ymd] => 2025-02-13 08:42:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 05:42:05' and `end` < '2025-02-13 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-02-13 08:42:18] Production.INFO: count ==789 [2025-02-13 08:42:18] Production.ERROR: pbx CDR StartTime 2025-02-13 05:42:05 - End Time 2025-02-13 08:42:05 [2025-02-13 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465259', 'tblTempUsageDetail_20' ) start [2025-02-13 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465259', 'tblTempUsageDetail_20' ) end [2025-02-13 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465259', 'tblTempVendorCDR_20' ) start [2025-02-13 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465259', 'tblTempVendorCDR_20' ) end [2025-02-13 08:42:18] Production.INFO: ProcessCDR(1,14465259,1,1,2) [2025-02-13 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465259', 'tblTempUsageDetail_20' ) start [2025-02-13 08:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465259', 'tblTempUsageDetail_20' ) end [2025-02-13 08:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 08:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 08:42:22] Production.INFO: ==11220== Releasing lock... [2025-02-13 08:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 08:42:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-13 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 05:43:05 [end_date_ymd] => 2025-02-13 08:43:05 [RateCDR] => 1 ) [2025-02-13 08: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-02-13 05:43:05' and `end` < '2025-02-13 08: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-02-13 08:43:19] Production.INFO: count ==789 [2025-02-13 08:43:19] Production.ERROR: pbx CDR StartTime 2025-02-13 05:43:05 - End Time 2025-02-13 08:43:05 [2025-02-13 08:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 08:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465264', 'tblTempUsageDetail_20' ) start [2025-02-13 08:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465264', 'tblTempUsageDetail_20' ) end [2025-02-13 08:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465264', 'tblTempVendorCDR_20' ) start [2025-02-13 08:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465264', 'tblTempVendorCDR_20' ) end [2025-02-13 08:43:19] Production.INFO: ProcessCDR(1,14465264,1,1,2) [2025-02-13 08:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465264', 'tblTempUsageDetail_20' ) start [2025-02-13 08:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465264', 'tblTempUsageDetail_20' ) end [2025-02-13 08:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 08:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 08:43:22] Production.INFO: ==11291== Releasing lock... [2025-02-13 08:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 08:43:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-13 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 05:44:05 [end_date_ymd] => 2025-02-13 08:44:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 05:44:05' and `end` < '2025-02-13 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-02-13 08:44:18] Production.INFO: count ==801 [2025-02-13 08:44:18] Production.ERROR: pbx CDR StartTime 2025-02-13 05:44:05 - End Time 2025-02-13 08:44:05 [2025-02-13 08:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465269', 'tblTempUsageDetail_20' ) start [2025-02-13 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465269', 'tblTempUsageDetail_20' ) end [2025-02-13 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465269', 'tblTempVendorCDR_20' ) start [2025-02-13 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465269', 'tblTempVendorCDR_20' ) end [2025-02-13 08:44:18] Production.INFO: ProcessCDR(1,14465269,1,1,2) [2025-02-13 08:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465269', 'tblTempUsageDetail_20' ) start [2025-02-13 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465269', 'tblTempUsageDetail_20' ) end [2025-02-13 08:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 08:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 08:44:22] Production.INFO: ==11363== Releasing lock... [2025-02-13 08:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 08:44:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-13 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 05:45:05 [end_date_ymd] => 2025-02-13 08:45:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 05:45:05' and `end` < '2025-02-13 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-02-13 08:45:18] Production.INFO: count ==798 [2025-02-13 08:45:18] Production.ERROR: pbx CDR StartTime 2025-02-13 05:45:05 - End Time 2025-02-13 08:45:05 [2025-02-13 08:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465274', 'tblTempUsageDetail_20' ) start [2025-02-13 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465274', 'tblTempUsageDetail_20' ) end [2025-02-13 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465274', 'tblTempVendorCDR_20' ) start [2025-02-13 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465274', 'tblTempVendorCDR_20' ) end [2025-02-13 08:45:18] Production.INFO: ProcessCDR(1,14465274,1,1,2) [2025-02-13 08:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465274', 'tblTempUsageDetail_20' ) start [2025-02-13 08:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465274', 'tblTempUsageDetail_20' ) end [2025-02-13 08:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 08:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 08:45:22] Production.INFO: ==11435== Releasing lock... [2025-02-13 08:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 08:45:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-13 08:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 05:46:04 [end_date_ymd] => 2025-02-13 08:46:04 [RateCDR] => 1 ) [2025-02-13 08:46: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-02-13 05:46:04' and `end` < '2025-02-13 08:46: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-02-13 08:46:18] Production.INFO: count ==801 [2025-02-13 08:46:18] Production.ERROR: pbx CDR StartTime 2025-02-13 05:46:04 - End Time 2025-02-13 08:46:04 [2025-02-13 08:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465279', 'tblTempUsageDetail_20' ) start [2025-02-13 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465279', 'tblTempUsageDetail_20' ) end [2025-02-13 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465279', 'tblTempVendorCDR_20' ) start [2025-02-13 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465279', 'tblTempVendorCDR_20' ) end [2025-02-13 08:46:18] Production.INFO: ProcessCDR(1,14465279,1,1,2) [2025-02-13 08:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465279', 'tblTempUsageDetail_20' ) start [2025-02-13 08:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465279', 'tblTempUsageDetail_20' ) end [2025-02-13 08:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 08:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 08:46:21] Production.INFO: ==11508== Releasing lock... [2025-02-13 08:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 08:46:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-13 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 05:47:05 [end_date_ymd] => 2025-02-13 08:47:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 05:47:05' and `end` < '2025-02-13 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-02-13 08:47:18] Production.INFO: count ==805 [2025-02-13 08:47:18] Production.ERROR: pbx CDR StartTime 2025-02-13 05:47:05 - End Time 2025-02-13 08:47:05 [2025-02-13 08:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465284', 'tblTempUsageDetail_20' ) start [2025-02-13 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465284', 'tblTempUsageDetail_20' ) end [2025-02-13 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465284', 'tblTempVendorCDR_20' ) start [2025-02-13 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465284', 'tblTempVendorCDR_20' ) end [2025-02-13 08:47:19] Production.INFO: ProcessCDR(1,14465284,1,1,2) [2025-02-13 08:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465284', 'tblTempUsageDetail_20' ) start [2025-02-13 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465284', 'tblTempUsageDetail_20' ) end [2025-02-13 08:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 08:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 08:47:22] Production.INFO: ==11586== Releasing lock... [2025-02-13 08:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 08:47:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-13 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 05:48:05 [end_date_ymd] => 2025-02-13 08:48:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 05:48:05' and `end` < '2025-02-13 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-02-13 08:48:19] Production.INFO: count ==807 [2025-02-13 08:48:20] Production.ERROR: pbx CDR StartTime 2025-02-13 05:48:05 - End Time 2025-02-13 08:48:05 [2025-02-13 08:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 08:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465289', 'tblTempUsageDetail_20' ) start [2025-02-13 08:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465289', 'tblTempUsageDetail_20' ) end [2025-02-13 08:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465289', 'tblTempVendorCDR_20' ) start [2025-02-13 08:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465289', 'tblTempVendorCDR_20' ) end [2025-02-13 08:48:20] Production.INFO: ProcessCDR(1,14465289,1,1,2) [2025-02-13 08:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465289', 'tblTempUsageDetail_20' ) start [2025-02-13 08:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465289', 'tblTempUsageDetail_20' ) end [2025-02-13 08:48:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 08:48:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 08:48:25] Production.INFO: ==11656== Releasing lock... [2025-02-13 08:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 08:48:25] Production.INFO: 34.5 MB #Memory Used# [2025-02-13 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 05:49:05 [end_date_ymd] => 2025-02-13 08:49:05 [RateCDR] => 1 ) [2025-02-13 08: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-02-13 05:49:05' and `end` < '2025-02-13 08: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-02-13 08:49:18] Production.INFO: count ==808 [2025-02-13 08:49:18] Production.ERROR: pbx CDR StartTime 2025-02-13 05:49:05 - End Time 2025-02-13 08:49:05 [2025-02-13 08:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465294', 'tblTempUsageDetail_20' ) start [2025-02-13 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465294', 'tblTempUsageDetail_20' ) end [2025-02-13 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465294', 'tblTempVendorCDR_20' ) start [2025-02-13 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465294', 'tblTempVendorCDR_20' ) end [2025-02-13 08:49:18] Production.INFO: ProcessCDR(1,14465294,1,1,2) [2025-02-13 08:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465294', 'tblTempUsageDetail_20' ) start [2025-02-13 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465294', 'tblTempUsageDetail_20' ) end [2025-02-13 08:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 08:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 08:49:22] Production.INFO: ==11729== Releasing lock... [2025-02-13 08:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 08:49:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-13 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 05:50:06 [end_date_ymd] => 2025-02-13 08:50:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 05:50:06' and `end` < '2025-02-13 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-02-13 08:50:20] Production.INFO: count ==814 [2025-02-13 08:50:20] Production.ERROR: pbx CDR StartTime 2025-02-13 05:50:06 - End Time 2025-02-13 08:50:06 [2025-02-13 08:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 08:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465299', 'tblTempUsageDetail_20' ) start [2025-02-13 08:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465299', 'tblTempUsageDetail_20' ) end [2025-02-13 08:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465299', 'tblTempVendorCDR_20' ) start [2025-02-13 08:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465299', 'tblTempVendorCDR_20' ) end [2025-02-13 08:50:20] Production.INFO: ProcessCDR(1,14465299,1,1,2) [2025-02-13 08:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465299', 'tblTempUsageDetail_20' ) start [2025-02-13 08:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465299', 'tblTempUsageDetail_20' ) end [2025-02-13 08:50:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 08:50:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 08:50:24] Production.INFO: ==11803== Releasing lock... [2025-02-13 08:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 08:50:24] Production.INFO: 34 MB #Memory Used# [2025-02-13 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 05:51:05 [end_date_ymd] => 2025-02-13 08:51:05 [RateCDR] => 1 ) [2025-02-13 08: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-02-13 05:51:05' and `end` < '2025-02-13 08: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-02-13 08:51:18] Production.INFO: count ==866 [2025-02-13 08:51:18] Production.ERROR: pbx CDR StartTime 2025-02-13 05:51:05 - End Time 2025-02-13 08:51:05 [2025-02-13 08:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465305', 'tblTempUsageDetail_20' ) start [2025-02-13 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465305', 'tblTempUsageDetail_20' ) end [2025-02-13 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465305', 'tblTempVendorCDR_20' ) start [2025-02-13 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465305', 'tblTempVendorCDR_20' ) end [2025-02-13 08:51:18] Production.INFO: ProcessCDR(1,14465305,1,1,2) [2025-02-13 08:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465305', 'tblTempUsageDetail_20' ) start [2025-02-13 08:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465305', 'tblTempUsageDetail_20' ) end [2025-02-13 08:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 08:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 08:51:23] Production.INFO: ==11917== Releasing lock... [2025-02-13 08:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 08:51:23] Production.INFO: 34.75 MB #Memory Used# [2025-02-13 08:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 05:52:04 [end_date_ymd] => 2025-02-13 08:52:04 [RateCDR] => 1 ) [2025-02-13 08:52: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-02-13 05:52:04' and `end` < '2025-02-13 08:52: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-02-13 08:52:18] Production.INFO: count ==867 [2025-02-13 08:52:19] Production.ERROR: pbx CDR StartTime 2025-02-13 05:52:04 - End Time 2025-02-13 08:52:04 [2025-02-13 08:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465310', 'tblTempUsageDetail_20' ) start [2025-02-13 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465310', 'tblTempUsageDetail_20' ) end [2025-02-13 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465310', 'tblTempVendorCDR_20' ) start [2025-02-13 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465310', 'tblTempVendorCDR_20' ) end [2025-02-13 08:52:19] Production.INFO: ProcessCDR(1,14465310,1,1,2) [2025-02-13 08:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465310', 'tblTempUsageDetail_20' ) start [2025-02-13 08:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465310', 'tblTempUsageDetail_20' ) end [2025-02-13 08:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 08:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 08:52:22] Production.INFO: ==11985== Releasing lock... [2025-02-13 08:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 08:52:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-13 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 05:53:05 [end_date_ymd] => 2025-02-13 08:53:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 05:53:05' and `end` < '2025-02-13 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-02-13 08:53:19] Production.INFO: count ==874 [2025-02-13 08:53:19] Production.ERROR: pbx CDR StartTime 2025-02-13 05:53:05 - End Time 2025-02-13 08:53:05 [2025-02-13 08:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465315', 'tblTempUsageDetail_20' ) start [2025-02-13 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465315', 'tblTempUsageDetail_20' ) end [2025-02-13 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465315', 'tblTempVendorCDR_20' ) start [2025-02-13 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465315', 'tblTempVendorCDR_20' ) end [2025-02-13 08:53:19] Production.INFO: ProcessCDR(1,14465315,1,1,2) [2025-02-13 08:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465315', 'tblTempUsageDetail_20' ) start [2025-02-13 08:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465315', 'tblTempUsageDetail_20' ) end [2025-02-13 08:53:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 08:53:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 08:53:24] Production.INFO: ==12057== Releasing lock... [2025-02-13 08:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 08:53:24] Production.INFO: 34.5 MB #Memory Used# [2025-02-13 08:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 05:54:06 [end_date_ymd] => 2025-02-13 08:54:06 [RateCDR] => 1 ) [2025-02-13 08: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-02-13 05:54:06' and `end` < '2025-02-13 08: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-02-13 08:54:20] Production.INFO: count ==874 [2025-02-13 08:54:20] Production.ERROR: pbx CDR StartTime 2025-02-13 05:54:06 - End Time 2025-02-13 08:54:06 [2025-02-13 08:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 08:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465320', 'tblTempUsageDetail_20' ) start [2025-02-13 08:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465320', 'tblTempUsageDetail_20' ) end [2025-02-13 08:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465320', 'tblTempVendorCDR_20' ) start [2025-02-13 08:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465320', 'tblTempVendorCDR_20' ) end [2025-02-13 08:54:20] Production.INFO: ProcessCDR(1,14465320,1,1,2) [2025-02-13 08:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465320', 'tblTempUsageDetail_20' ) start [2025-02-13 08:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465320', 'tblTempUsageDetail_20' ) end [2025-02-13 08:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 08:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 08:54:23] Production.INFO: ==12127== Releasing lock... [2025-02-13 08:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 08:54:23] Production.INFO: 34.5 MB #Memory Used# [2025-02-13 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 05:55:05 [end_date_ymd] => 2025-02-13 08:55:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 05:55:05' and `end` < '2025-02-13 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-02-13 08:55:18] Production.INFO: count ==891 [2025-02-13 08:55:18] Production.ERROR: pbx CDR StartTime 2025-02-13 05:55:05 - End Time 2025-02-13 08:55:05 [2025-02-13 08:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465325', 'tblTempUsageDetail_20' ) start [2025-02-13 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465325', 'tblTempUsageDetail_20' ) end [2025-02-13 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465325', 'tblTempVendorCDR_20' ) start [2025-02-13 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465325', 'tblTempVendorCDR_20' ) end [2025-02-13 08:55:18] Production.INFO: ProcessCDR(1,14465325,1,1,2) [2025-02-13 08:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465325', 'tblTempUsageDetail_20' ) start [2025-02-13 08:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465325', 'tblTempUsageDetail_20' ) end [2025-02-13 08:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 08:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 08:55:23] Production.INFO: ==12203== Releasing lock... [2025-02-13 08:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 08:55:23] Production.INFO: 35 MB #Memory Used# [2025-02-13 08:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 05:56:06 [end_date_ymd] => 2025-02-13 08:56:06 [RateCDR] => 1 ) [2025-02-13 08: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-02-13 05:56:06' and `end` < '2025-02-13 08: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-02-13 08:56:19] Production.INFO: count ==900 [2025-02-13 08:56:19] Production.ERROR: pbx CDR StartTime 2025-02-13 05:56:06 - End Time 2025-02-13 08:56:06 [2025-02-13 08:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465330', 'tblTempUsageDetail_20' ) start [2025-02-13 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465330', 'tblTempUsageDetail_20' ) end [2025-02-13 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465330', 'tblTempVendorCDR_20' ) start [2025-02-13 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465330', 'tblTempVendorCDR_20' ) end [2025-02-13 08:56:19] Production.INFO: ProcessCDR(1,14465330,1,1,2) [2025-02-13 08:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465330', 'tblTempUsageDetail_20' ) start [2025-02-13 08:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465330', 'tblTempUsageDetail_20' ) end [2025-02-13 08:56:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 08:56:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 08:56:24] Production.INFO: ==12276== Releasing lock... [2025-02-13 08:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 08:56:24] Production.INFO: 35 MB #Memory Used# [2025-02-13 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 05:57:05 [end_date_ymd] => 2025-02-13 08:57:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 05:57:05' and `end` < '2025-02-13 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-02-13 08:57:19] Production.INFO: count ==906 [2025-02-13 08:57:19] Production.ERROR: pbx CDR StartTime 2025-02-13 05:57:05 - End Time 2025-02-13 08:57:05 [2025-02-13 08:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465335', 'tblTempUsageDetail_20' ) start [2025-02-13 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465335', 'tblTempUsageDetail_20' ) end [2025-02-13 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465335', 'tblTempVendorCDR_20' ) start [2025-02-13 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465335', 'tblTempVendorCDR_20' ) end [2025-02-13 08:57:19] Production.INFO: ProcessCDR(1,14465335,1,1,2) [2025-02-13 08:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465335', 'tblTempUsageDetail_20' ) start [2025-02-13 08:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465335', 'tblTempUsageDetail_20' ) end [2025-02-13 08:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 08:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 08:57:24] Production.INFO: ==12346== Releasing lock... [2025-02-13 08:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 08:57:24] Production.INFO: 35.25 MB #Memory Used# [2025-02-13 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 05:58:05 [end_date_ymd] => 2025-02-13 08:58:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 05:58:05' and `end` < '2025-02-13 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-02-13 08:58:18] Production.INFO: count ==906 [2025-02-13 08:58:19] Production.ERROR: pbx CDR StartTime 2025-02-13 05:58:05 - End Time 2025-02-13 08:58:05 [2025-02-13 08:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465340', 'tblTempUsageDetail_20' ) start [2025-02-13 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465340', 'tblTempUsageDetail_20' ) end [2025-02-13 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465340', 'tblTempVendorCDR_20' ) start [2025-02-13 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465340', 'tblTempVendorCDR_20' ) end [2025-02-13 08:58:19] Production.INFO: ProcessCDR(1,14465340,1,1,2) [2025-02-13 08:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465340', 'tblTempUsageDetail_20' ) start [2025-02-13 08:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465340', 'tblTempUsageDetail_20' ) end [2025-02-13 08:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 08:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 08:58:22] Production.INFO: ==12417== Releasing lock... [2025-02-13 08:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 08:58:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-13 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 05:59:05 [end_date_ymd] => 2025-02-13 08:59:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 05:59:05' and `end` < '2025-02-13 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-02-13 08:59:18] Production.INFO: count ==906 [2025-02-13 08:59:18] Production.ERROR: pbx CDR StartTime 2025-02-13 05:59:05 - End Time 2025-02-13 08:59:05 [2025-02-13 08:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465345', 'tblTempUsageDetail_20' ) start [2025-02-13 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465345', 'tblTempUsageDetail_20' ) end [2025-02-13 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465345', 'tblTempVendorCDR_20' ) start [2025-02-13 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465345', 'tblTempVendorCDR_20' ) end [2025-02-13 08:59:18] Production.INFO: ProcessCDR(1,14465345,1,1,2) [2025-02-13 08:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 08:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 08:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465345', 'tblTempUsageDetail_20' ) start [2025-02-13 08:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465345', 'tblTempUsageDetail_20' ) end [2025-02-13 08:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 08:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 08:59:21] Production.INFO: ==12487== Releasing lock... [2025-02-13 08:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 08:59:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-13 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 06:00:06 [end_date_ymd] => 2025-02-13 09:00:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 06:00:06' and `end` < '2025-02-13 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-02-13 09:00:19] Production.INFO: count ==920 [2025-02-13 09:00:19] Production.ERROR: pbx CDR StartTime 2025-02-13 06:00:06 - End Time 2025-02-13 09:00:06 [2025-02-13 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465350', 'tblTempUsageDetail_20' ) start [2025-02-13 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465350', 'tblTempUsageDetail_20' ) end [2025-02-13 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465350', 'tblTempVendorCDR_20' ) start [2025-02-13 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465350', 'tblTempVendorCDR_20' ) end [2025-02-13 09:00:19] Production.INFO: ProcessCDR(1,14465350,1,1,2) [2025-02-13 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465350', 'tblTempUsageDetail_20' ) start [2025-02-13 09:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465350', 'tblTempUsageDetail_20' ) end [2025-02-13 09:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 09:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 09:00:24] Production.INFO: ==12560== Releasing lock... [2025-02-13 09:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 09:00:24] Production.INFO: 34.75 MB #Memory Used# [2025-02-13 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 06:01:05 [end_date_ymd] => 2025-02-13 09:01:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 06:01:05' and `end` < '2025-02-13 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-02-13 09:01:18] Production.INFO: count ==961 [2025-02-13 09:01:18] Production.ERROR: pbx CDR StartTime 2025-02-13 06:01:05 - End Time 2025-02-13 09:01:05 [2025-02-13 09:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465356', 'tblTempUsageDetail_20' ) start [2025-02-13 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465356', 'tblTempUsageDetail_20' ) end [2025-02-13 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465356', 'tblTempVendorCDR_20' ) start [2025-02-13 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465356', 'tblTempVendorCDR_20' ) end [2025-02-13 09:01:18] Production.INFO: ProcessCDR(1,14465356,1,1,2) [2025-02-13 09:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465356', 'tblTempUsageDetail_20' ) start [2025-02-13 09:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465356', 'tblTempUsageDetail_20' ) end [2025-02-13 09:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 09:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 09:01:23] Production.INFO: ==12654== Releasing lock... [2025-02-13 09:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 09:01:23] Production.INFO: 35.5 MB #Memory Used# [2025-02-13 09:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 06:02:06 [end_date_ymd] => 2025-02-13 09:02:06 [RateCDR] => 1 ) [2025-02-13 09: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-02-13 06:02:06' and `end` < '2025-02-13 09: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-02-13 09:02:19] Production.INFO: count ==997 [2025-02-13 09:02:19] Production.ERROR: pbx CDR StartTime 2025-02-13 06:02:06 - End Time 2025-02-13 09:02:06 [2025-02-13 09:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465361', 'tblTempUsageDetail_20' ) start [2025-02-13 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465361', 'tblTempUsageDetail_20' ) end [2025-02-13 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465361', 'tblTempVendorCDR_20' ) start [2025-02-13 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465361', 'tblTempVendorCDR_20' ) end [2025-02-13 09:02:19] Production.INFO: ProcessCDR(1,14465361,1,1,2) [2025-02-13 09:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465361', 'tblTempUsageDetail_20' ) start [2025-02-13 09:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465361', 'tblTempUsageDetail_20' ) end [2025-02-13 09:02:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 09:02:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 09:02:25] Production.INFO: ==12727== Releasing lock... [2025-02-13 09:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 09:02:25] Production.INFO: 36.25 MB #Memory Used# [2025-02-13 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 06:03:05 [end_date_ymd] => 2025-02-13 09:03:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 06:03:05' and `end` < '2025-02-13 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-02-13 09:03:18] Production.INFO: count ==1025 [2025-02-13 09:03:18] Production.ERROR: pbx CDR StartTime 2025-02-13 06:03:05 - End Time 2025-02-13 09:03:05 [2025-02-13 09:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465366', 'tblTempUsageDetail_20' ) start [2025-02-13 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465366', 'tblTempUsageDetail_20' ) end [2025-02-13 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465366', 'tblTempVendorCDR_20' ) start [2025-02-13 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465366', 'tblTempVendorCDR_20' ) end [2025-02-13 09:03:18] Production.INFO: ProcessCDR(1,14465366,1,1,2) [2025-02-13 09:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465366', 'tblTempUsageDetail_20' ) start [2025-02-13 09:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465366', 'tblTempUsageDetail_20' ) end [2025-02-13 09:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 09:03:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 09:03:24] Production.INFO: ==12797== Releasing lock... [2025-02-13 09:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 09:03:24] Production.INFO: 36.25 MB #Memory Used# [2025-02-13 09:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 06:04:06 [end_date_ymd] => 2025-02-13 09:04:06 [RateCDR] => 1 ) [2025-02-13 09: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-02-13 06:04:06' and `end` < '2025-02-13 09: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-02-13 09:04:19] Production.INFO: count ==1046 [2025-02-13 09:04:20] Production.ERROR: pbx CDR StartTime 2025-02-13 06:04:06 - End Time 2025-02-13 09:04:06 [2025-02-13 09:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 09:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465371', 'tblTempUsageDetail_20' ) start [2025-02-13 09:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465371', 'tblTempUsageDetail_20' ) end [2025-02-13 09:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465371', 'tblTempVendorCDR_20' ) start [2025-02-13 09:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465371', 'tblTempVendorCDR_20' ) end [2025-02-13 09:04:20] Production.INFO: ProcessCDR(1,14465371,1,1,2) [2025-02-13 09:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465371', 'tblTempUsageDetail_20' ) start [2025-02-13 09:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465371', 'tblTempUsageDetail_20' ) end [2025-02-13 09:04:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 09:04:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 09:04:25] Production.INFO: ==12870== Releasing lock... [2025-02-13 09:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 09:04:25] Production.INFO: 36.25 MB #Memory Used# [2025-02-13 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 06:05:05 [end_date_ymd] => 2025-02-13 09:05:05 [RateCDR] => 1 ) [2025-02-13 09: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-02-13 06:05:05' and `end` < '2025-02-13 09: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-02-13 09:05:19] Production.INFO: count ==1063 [2025-02-13 09:05:19] Production.ERROR: pbx CDR StartTime 2025-02-13 06:05:05 - End Time 2025-02-13 09:05:05 [2025-02-13 09:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465376', 'tblTempUsageDetail_20' ) start [2025-02-13 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465376', 'tblTempUsageDetail_20' ) end [2025-02-13 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465376', 'tblTempVendorCDR_20' ) start [2025-02-13 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465376', 'tblTempVendorCDR_20' ) end [2025-02-13 09:05:19] Production.INFO: ProcessCDR(1,14465376,1,1,2) [2025-02-13 09:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465376', 'tblTempUsageDetail_20' ) start [2025-02-13 09:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465376', 'tblTempUsageDetail_20' ) end [2025-02-13 09:05:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 09:05:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 09:05:25] Production.INFO: ==12941== Releasing lock... [2025-02-13 09:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 09:05:25] Production.INFO: 36.25 MB #Memory Used# [2025-02-13 09:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 06:06:06 [end_date_ymd] => 2025-02-13 09:06:06 [RateCDR] => 1 ) [2025-02-13 09: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-02-13 06:06:06' and `end` < '2025-02-13 09: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-02-13 09:06:19] Production.INFO: count ==1082 [2025-02-13 09:06:20] Production.ERROR: pbx CDR StartTime 2025-02-13 06:06:06 - End Time 2025-02-13 09:06:06 [2025-02-13 09:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 09:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465381', 'tblTempUsageDetail_20' ) start [2025-02-13 09:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465381', 'tblTempUsageDetail_20' ) end [2025-02-13 09:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465381', 'tblTempVendorCDR_20' ) start [2025-02-13 09:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465381', 'tblTempVendorCDR_20' ) end [2025-02-13 09:06:20] Production.INFO: ProcessCDR(1,14465381,1,1,2) [2025-02-13 09:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465381', 'tblTempUsageDetail_20' ) start [2025-02-13 09:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465381', 'tblTempUsageDetail_20' ) end [2025-02-13 09:06:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 09:06:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 09:06:24] Production.INFO: ==13051== Releasing lock... [2025-02-13 09:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 09:06:24] Production.INFO: 36.5 MB #Memory Used# [2025-02-13 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 06:07:05 [end_date_ymd] => 2025-02-13 09:07:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 06:07:05' and `end` < '2025-02-13 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-02-13 09:07:18] Production.INFO: count ==1086 [2025-02-13 09:07:18] Production.ERROR: pbx CDR StartTime 2025-02-13 06:07:05 - End Time 2025-02-13 09:07:05 [2025-02-13 09:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465386', 'tblTempUsageDetail_20' ) start [2025-02-13 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465386', 'tblTempUsageDetail_20' ) end [2025-02-13 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465386', 'tblTempVendorCDR_20' ) start [2025-02-13 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465386', 'tblTempVendorCDR_20' ) end [2025-02-13 09:07:18] Production.INFO: ProcessCDR(1,14465386,1,1,2) [2025-02-13 09:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465386', 'tblTempUsageDetail_20' ) start [2025-02-13 09:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465386', 'tblTempUsageDetail_20' ) end [2025-02-13 09:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 09:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 09:07:23] Production.INFO: ==13122== Releasing lock... [2025-02-13 09:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 09:07:23] Production.INFO: 36.75 MB #Memory Used# [2025-02-13 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 06:08:05 [end_date_ymd] => 2025-02-13 09:08:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 06:08:05' and `end` < '2025-02-13 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-02-13 09:08:18] Production.INFO: count ==1114 [2025-02-13 09:08:19] Production.ERROR: pbx CDR StartTime 2025-02-13 06:08:05 - End Time 2025-02-13 09:08:05 [2025-02-13 09:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465391', 'tblTempUsageDetail_20' ) start [2025-02-13 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465391', 'tblTempUsageDetail_20' ) end [2025-02-13 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465391', 'tblTempVendorCDR_20' ) start [2025-02-13 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465391', 'tblTempVendorCDR_20' ) end [2025-02-13 09:08:19] Production.INFO: ProcessCDR(1,14465391,1,1,2) [2025-02-13 09:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465391', 'tblTempUsageDetail_20' ) start [2025-02-13 09:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465391', 'tblTempUsageDetail_20' ) end [2025-02-13 09:08:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 09:08:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 09:08:24] Production.INFO: ==13195== Releasing lock... [2025-02-13 09:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 09:08:24] Production.INFO: 37 MB #Memory Used# [2025-02-13 09:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 06:09:04 [end_date_ymd] => 2025-02-13 09:09:04 [RateCDR] => 1 ) [2025-02-13 09: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-02-13 06:09:04' and `end` < '2025-02-13 09: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-02-13 09:09:17] Production.INFO: count ==1139 [2025-02-13 09:09:18] Production.ERROR: pbx CDR StartTime 2025-02-13 06:09:04 - End Time 2025-02-13 09:09:04 [2025-02-13 09:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465396', 'tblTempUsageDetail_20' ) start [2025-02-13 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465396', 'tblTempUsageDetail_20' ) end [2025-02-13 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465396', 'tblTempVendorCDR_20' ) start [2025-02-13 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465396', 'tblTempVendorCDR_20' ) end [2025-02-13 09:09:18] Production.INFO: ProcessCDR(1,14465396,1,1,2) [2025-02-13 09:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465396', 'tblTempUsageDetail_20' ) start [2025-02-13 09:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465396', 'tblTempUsageDetail_20' ) end [2025-02-13 09:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 09:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 09:09:21] Production.INFO: ==13266== Releasing lock... [2025-02-13 09:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 09:09:21] Production.INFO: 36.75 MB #Memory Used# [2025-02-13 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 06:10:06 [end_date_ymd] => 2025-02-13 09:10:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 06:10:06' and `end` < '2025-02-13 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-02-13 09:10:19] Production.INFO: count ==1161 [2025-02-13 09:10:19] Production.ERROR: pbx CDR StartTime 2025-02-13 06:10:06 - End Time 2025-02-13 09:10:06 [2025-02-13 09:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465402', 'tblTempUsageDetail_20' ) start [2025-02-13 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465402', 'tblTempUsageDetail_20' ) end [2025-02-13 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465402', 'tblTempVendorCDR_20' ) start [2025-02-13 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465402', 'tblTempVendorCDR_20' ) end [2025-02-13 09:10:19] Production.INFO: ProcessCDR(1,14465402,1,1,2) [2025-02-13 09:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465402', 'tblTempUsageDetail_20' ) start [2025-02-13 09:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465402', 'tblTempUsageDetail_20' ) end [2025-02-13 09:10:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 09:10:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 09:10:24] Production.INFO: ==13338== Releasing lock... [2025-02-13 09:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 09:10:24] Production.INFO: 37.5 MB #Memory Used# [2025-02-13 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 06:11:05 [end_date_ymd] => 2025-02-13 09:11:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 06:11:05' and `end` < '2025-02-13 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-02-13 09:11:18] Production.INFO: count ==1198 [2025-02-13 09:11:19] Production.ERROR: pbx CDR StartTime 2025-02-13 06:11:05 - End Time 2025-02-13 09:11:05 [2025-02-13 09:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465407', 'tblTempUsageDetail_20' ) start [2025-02-13 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465407', 'tblTempUsageDetail_20' ) end [2025-02-13 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465407', 'tblTempVendorCDR_20' ) start [2025-02-13 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465407', 'tblTempVendorCDR_20' ) end [2025-02-13 09:11:19] Production.INFO: ProcessCDR(1,14465407,1,1,2) [2025-02-13 09:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465407', 'tblTempUsageDetail_20' ) start [2025-02-13 09:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465407', 'tblTempUsageDetail_20' ) end [2025-02-13 09:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 09:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 09:11:22] Production.INFO: ==13412== Releasing lock... [2025-02-13 09:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 09:11:22] Production.INFO: 37 MB #Memory Used# [2025-02-13 09:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 06:12:05 [end_date_ymd] => 2025-02-13 09:12:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 06:12:05' and `end` < '2025-02-13 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-02-13 09:12:18] Production.INFO: count ==1227 [2025-02-13 09:12:19] Production.ERROR: pbx CDR StartTime 2025-02-13 06:12:05 - End Time 2025-02-13 09:12:05 [2025-02-13 09:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465412', 'tblTempUsageDetail_20' ) start [2025-02-13 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465412', 'tblTempUsageDetail_20' ) end [2025-02-13 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465412', 'tblTempVendorCDR_20' ) start [2025-02-13 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465412', 'tblTempVendorCDR_20' ) end [2025-02-13 09:12:19] Production.INFO: ProcessCDR(1,14465412,1,1,2) [2025-02-13 09:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465412', 'tblTempUsageDetail_20' ) start [2025-02-13 09:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465412', 'tblTempUsageDetail_20' ) end [2025-02-13 09:12:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 09:12:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 09:12:24] Production.INFO: ==13483== Releasing lock... [2025-02-13 09:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 09:12:24] Production.INFO: 37.25 MB #Memory Used# [2025-02-13 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 06:13:05 [end_date_ymd] => 2025-02-13 09:13:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 06:13:05' and `end` < '2025-02-13 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-02-13 09:13:18] Production.INFO: count ==1247 [2025-02-13 09:13:19] Production.ERROR: pbx CDR StartTime 2025-02-13 06:13:05 - End Time 2025-02-13 09:13:05 [2025-02-13 09:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465417', 'tblTempUsageDetail_20' ) start [2025-02-13 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465417', 'tblTempUsageDetail_20' ) end [2025-02-13 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465417', 'tblTempVendorCDR_20' ) start [2025-02-13 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465417', 'tblTempVendorCDR_20' ) end [2025-02-13 09:13:19] Production.INFO: ProcessCDR(1,14465417,1,1,2) [2025-02-13 09:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465417', 'tblTempUsageDetail_20' ) start [2025-02-13 09:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465417', 'tblTempUsageDetail_20' ) end [2025-02-13 09:13:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 09:13:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 09:13:25] Production.INFO: ==13557== Releasing lock... [2025-02-13 09:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 09:13:25] Production.INFO: 37.75 MB #Memory Used# [2025-02-13 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 06:14:05 [end_date_ymd] => 2025-02-13 09:14:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 06:14:05' and `end` < '2025-02-13 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-02-13 09:14:18] Production.INFO: count ==1251 [2025-02-13 09:14:18] Production.ERROR: pbx CDR StartTime 2025-02-13 06:14:05 - End Time 2025-02-13 09:14:05 [2025-02-13 09:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465422', 'tblTempUsageDetail_20' ) start [2025-02-13 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465422', 'tblTempUsageDetail_20' ) end [2025-02-13 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465422', 'tblTempVendorCDR_20' ) start [2025-02-13 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465422', 'tblTempVendorCDR_20' ) end [2025-02-13 09:14:19] Production.INFO: ProcessCDR(1,14465422,1,1,2) [2025-02-13 09:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465422', 'tblTempUsageDetail_20' ) start [2025-02-13 09:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465422', 'tblTempUsageDetail_20' ) end [2025-02-13 09:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 09:14:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 09:14:23] Production.INFO: ==13632== Releasing lock... [2025-02-13 09:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 09:14:23] Production.INFO: 37.75 MB #Memory Used# [2025-02-13 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 06:15:05 [end_date_ymd] => 2025-02-13 09:15:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 06:15:05' and `end` < '2025-02-13 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-02-13 09:15:18] Production.INFO: count ==1255 [2025-02-13 09:15:19] Production.ERROR: pbx CDR StartTime 2025-02-13 06:15:05 - End Time 2025-02-13 09:15:05 [2025-02-13 09:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465427', 'tblTempUsageDetail_20' ) start [2025-02-13 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465427', 'tblTempUsageDetail_20' ) end [2025-02-13 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465427', 'tblTempVendorCDR_20' ) start [2025-02-13 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465427', 'tblTempVendorCDR_20' ) end [2025-02-13 09:15:19] Production.INFO: ProcessCDR(1,14465427,1,1,2) [2025-02-13 09:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465427', 'tblTempUsageDetail_20' ) start [2025-02-13 09:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465427', 'tblTempUsageDetail_20' ) end [2025-02-13 09:15:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 09:15:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 09:15:24] Production.INFO: ==13708== Releasing lock... [2025-02-13 09:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 09:15:24] Production.INFO: 38 MB #Memory Used# [2025-02-13 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 06:16:05 [end_date_ymd] => 2025-02-13 09:16:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 06:16:05' and `end` < '2025-02-13 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-02-13 09:16:18] Production.INFO: count ==1266 [2025-02-13 09:16:19] Production.ERROR: pbx CDR StartTime 2025-02-13 06:16:05 - End Time 2025-02-13 09:16:05 [2025-02-13 09:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465432', 'tblTempUsageDetail_20' ) start [2025-02-13 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465432', 'tblTempUsageDetail_20' ) end [2025-02-13 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465432', 'tblTempVendorCDR_20' ) start [2025-02-13 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465432', 'tblTempVendorCDR_20' ) end [2025-02-13 09:16:19] Production.INFO: ProcessCDR(1,14465432,1,1,2) [2025-02-13 09:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465432', 'tblTempUsageDetail_20' ) start [2025-02-13 09:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465432', 'tblTempUsageDetail_20' ) end [2025-02-13 09:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 09:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 09:16:22] Production.INFO: ==13782== Releasing lock... [2025-02-13 09:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 09:16:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-13 09:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 06:17:06 [end_date_ymd] => 2025-02-13 09:17:06 [RateCDR] => 1 ) [2025-02-13 09: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-02-13 06:17:06' and `end` < '2025-02-13 09: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-02-13 09:17:20] Production.INFO: count ==1270 [2025-02-13 09:17:20] Production.ERROR: pbx CDR StartTime 2025-02-13 06:17:06 - End Time 2025-02-13 09:17:06 [2025-02-13 09:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 09:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465437', 'tblTempUsageDetail_20' ) start [2025-02-13 09:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465437', 'tblTempUsageDetail_20' ) end [2025-02-13 09:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465437', 'tblTempVendorCDR_20' ) start [2025-02-13 09:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465437', 'tblTempVendorCDR_20' ) end [2025-02-13 09:17:20] Production.INFO: ProcessCDR(1,14465437,1,1,2) [2025-02-13 09:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465437', 'tblTempUsageDetail_20' ) start [2025-02-13 09:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465437', 'tblTempUsageDetail_20' ) end [2025-02-13 09:17:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 09:17:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 09:17:26] Production.INFO: ==13853== Releasing lock... [2025-02-13 09:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 09:17:26] Production.INFO: 37.5 MB #Memory Used# [2025-02-13 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 06:18:05 [end_date_ymd] => 2025-02-13 09:18:05 [RateCDR] => 1 ) [2025-02-13 09: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-02-13 06:18:05' and `end` < '2025-02-13 09: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-02-13 09:18:18] Production.INFO: count ==1275 [2025-02-13 09:18:19] Production.ERROR: pbx CDR StartTime 2025-02-13 06:18:05 - End Time 2025-02-13 09:18:05 [2025-02-13 09:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465442', 'tblTempUsageDetail_20' ) start [2025-02-13 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465442', 'tblTempUsageDetail_20' ) end [2025-02-13 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465442', 'tblTempVendorCDR_20' ) start [2025-02-13 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465442', 'tblTempVendorCDR_20' ) end [2025-02-13 09:18:19] Production.INFO: ProcessCDR(1,14465442,1,1,2) [2025-02-13 09:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465442', 'tblTempUsageDetail_20' ) start [2025-02-13 09:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465442', 'tblTempUsageDetail_20' ) end [2025-02-13 09:18:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 09:18:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 09:18:24] Production.INFO: ==13925== Releasing lock... [2025-02-13 09:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 09:18:24] Production.INFO: 38 MB #Memory Used# [2025-02-13 09:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 06:19:06 [end_date_ymd] => 2025-02-13 09:19:06 [RateCDR] => 1 ) [2025-02-13 09: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-02-13 06:19:06' and `end` < '2025-02-13 09: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-02-13 09:19:19] Production.INFO: count ==1290 [2025-02-13 09:19:20] Production.ERROR: pbx CDR StartTime 2025-02-13 06:19:06 - End Time 2025-02-13 09:19:06 [2025-02-13 09:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 09:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465447', 'tblTempUsageDetail_20' ) start [2025-02-13 09:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465447', 'tblTempUsageDetail_20' ) end [2025-02-13 09:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465447', 'tblTempVendorCDR_20' ) start [2025-02-13 09:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465447', 'tblTempVendorCDR_20' ) end [2025-02-13 09:19:20] Production.INFO: ProcessCDR(1,14465447,1,1,2) [2025-02-13 09:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465447', 'tblTempUsageDetail_20' ) start [2025-02-13 09:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465447', 'tblTempUsageDetail_20' ) end [2025-02-13 09:19:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 09:19:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 09:19:26] Production.INFO: ==13997== Releasing lock... [2025-02-13 09:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 09:19:26] Production.INFO: 37.5 MB #Memory Used# [2025-02-13 09:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 06:20:06 [end_date_ymd] => 2025-02-13 09:20:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 06:20:06' and `end` < '2025-02-13 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-02-13 09:20:19] Production.INFO: count ==1306 [2025-02-13 09:20:20] Production.ERROR: pbx CDR StartTime 2025-02-13 06:20:06 - End Time 2025-02-13 09:20:06 [2025-02-13 09:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465453', 'tblTempUsageDetail_20' ) start [2025-02-13 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465453', 'tblTempUsageDetail_20' ) end [2025-02-13 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465453', 'tblTempVendorCDR_20' ) start [2025-02-13 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465453', 'tblTempVendorCDR_20' ) end [2025-02-13 09:20:20] Production.INFO: ProcessCDR(1,14465453,1,1,2) [2025-02-13 09:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465453', 'tblTempUsageDetail_20' ) start [2025-02-13 09:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465453', 'tblTempUsageDetail_20' ) end [2025-02-13 09:20:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 09:20:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 09:20:25] Production.INFO: ==14069== Releasing lock... [2025-02-13 09:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 09:20:25] Production.INFO: 38 MB #Memory Used# [2025-02-13 09:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 06:21:06 [end_date_ymd] => 2025-02-13 09:21:06 [RateCDR] => 1 ) [2025-02-13 09: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-02-13 06:21:06' and `end` < '2025-02-13 09: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-02-13 09:21:24] Production.INFO: count ==1402 [2025-02-13 09:21:24] Production.ERROR: pbx CDR StartTime 2025-02-13 06:21:06 - End Time 2025-02-13 09:21:06 [2025-02-13 09:21:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 09:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465458', 'tblTempUsageDetail_20' ) start [2025-02-13 09:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465458', 'tblTempUsageDetail_20' ) end [2025-02-13 09:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465458', 'tblTempVendorCDR_20' ) start [2025-02-13 09:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465458', 'tblTempVendorCDR_20' ) end [2025-02-13 09:21:24] Production.INFO: ProcessCDR(1,14465458,1,1,2) [2025-02-13 09:21:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465458', 'tblTempUsageDetail_20' ) start [2025-02-13 09:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465458', 'tblTempUsageDetail_20' ) end [2025-02-13 09:21:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 09:21:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 09:21:27] Production.INFO: ==14146== Releasing lock... [2025-02-13 09:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 09:21:27] Production.INFO: 38.5 MB #Memory Used# [2025-02-13 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 06:22:05 [end_date_ymd] => 2025-02-13 09:22:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 06:22:05' and `end` < '2025-02-13 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-02-13 09:22:19] Production.INFO: count ==1428 [2025-02-13 09:22:19] Production.ERROR: pbx CDR StartTime 2025-02-13 06:22:05 - End Time 2025-02-13 09:22:05 [2025-02-13 09:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465463', 'tblTempUsageDetail_20' ) start [2025-02-13 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465463', 'tblTempUsageDetail_20' ) end [2025-02-13 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465463', 'tblTempVendorCDR_20' ) start [2025-02-13 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465463', 'tblTempVendorCDR_20' ) end [2025-02-13 09:22:19] Production.INFO: ProcessCDR(1,14465463,1,1,2) [2025-02-13 09:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465463', 'tblTempUsageDetail_20' ) start [2025-02-13 09:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465463', 'tblTempUsageDetail_20' ) end [2025-02-13 09:22:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 09:22:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 09:22:24] Production.INFO: ==14254== Releasing lock... [2025-02-13 09:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 09:22:24] Production.INFO: 38.5 MB #Memory Used# [2025-02-13 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 06:23:05 [end_date_ymd] => 2025-02-13 09:23:05 [RateCDR] => 1 ) [2025-02-13 09: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-02-13 06:23:05' and `end` < '2025-02-13 09: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-02-13 09:23:19] Production.INFO: count ==1442 [2025-02-13 09:23:20] Production.ERROR: pbx CDR StartTime 2025-02-13 06:23:05 - End Time 2025-02-13 09:23:05 [2025-02-13 09:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 09:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465468', 'tblTempUsageDetail_20' ) start [2025-02-13 09:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465468', 'tblTempUsageDetail_20' ) end [2025-02-13 09:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465468', 'tblTempVendorCDR_20' ) start [2025-02-13 09:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465468', 'tblTempVendorCDR_20' ) end [2025-02-13 09:23:20] Production.INFO: ProcessCDR(1,14465468,1,1,2) [2025-02-13 09:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465468', 'tblTempUsageDetail_20' ) start [2025-02-13 09:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465468', 'tblTempUsageDetail_20' ) end [2025-02-13 09:23:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 09:23:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 09:23:25] Production.INFO: ==14324== Releasing lock... [2025-02-13 09:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 09:23:25] Production.INFO: 38.75 MB #Memory Used# [2025-02-13 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 06:24:04 [end_date_ymd] => 2025-02-13 09:24:04 [RateCDR] => 1 ) [2025-02-13 09: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-02-13 06:24:04' and `end` < '2025-02-13 09:24: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-02-13 09:24:18] Production.INFO: count ==1459 [2025-02-13 09:24:18] Production.ERROR: pbx CDR StartTime 2025-02-13 06:24:04 - End Time 2025-02-13 09:24:04 [2025-02-13 09:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465473', 'tblTempUsageDetail_20' ) start [2025-02-13 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465473', 'tblTempUsageDetail_20' ) end [2025-02-13 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465473', 'tblTempVendorCDR_20' ) start [2025-02-13 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465473', 'tblTempVendorCDR_20' ) end [2025-02-13 09:24:18] Production.INFO: ProcessCDR(1,14465473,1,1,2) [2025-02-13 09:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465473', 'tblTempUsageDetail_20' ) start [2025-02-13 09:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465473', 'tblTempUsageDetail_20' ) end [2025-02-13 09:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 09:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 09:24:23] Production.INFO: ==14396== Releasing lock... [2025-02-13 09:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 09:24:23] Production.INFO: 39 MB #Memory Used# [2025-02-13 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 06:25:05 [end_date_ymd] => 2025-02-13 09:25:05 [RateCDR] => 1 ) [2025-02-13 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 06:25:05' and `end` < '2025-02-13 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-13 09:25:19] Production.INFO: count ==1468 [2025-02-13 09:25:19] Production.ERROR: pbx CDR StartTime 2025-02-13 06:25:05 - End Time 2025-02-13 09:25:05 [2025-02-13 09:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465478', 'tblTempUsageDetail_20' ) start [2025-02-13 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465478', 'tblTempUsageDetail_20' ) end [2025-02-13 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465478', 'tblTempVendorCDR_20' ) start [2025-02-13 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465478', 'tblTempVendorCDR_20' ) end [2025-02-13 09:25:19] Production.INFO: ProcessCDR(1,14465478,1,1,2) [2025-02-13 09:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465478', 'tblTempUsageDetail_20' ) start [2025-02-13 09:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465478', 'tblTempUsageDetail_20' ) end [2025-02-13 09:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 09:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 09:25:22] Production.INFO: ==14467== Releasing lock... [2025-02-13 09:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 09:25:22] Production.INFO: 39 MB #Memory Used# [2025-02-13 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 06:26:05 [end_date_ymd] => 2025-02-13 09:26:05 [RateCDR] => 1 ) [2025-02-13 09: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-02-13 06:26:05' and `end` < '2025-02-13 09: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-02-13 09:26:20] Production.INFO: count ==1529 [2025-02-13 09:26:21] Production.ERROR: pbx CDR StartTime 2025-02-13 06:26:05 - End Time 2025-02-13 09:26:05 [2025-02-13 09:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 09:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465483', 'tblTempUsageDetail_20' ) start [2025-02-13 09:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465483', 'tblTempUsageDetail_20' ) end [2025-02-13 09:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465483', 'tblTempVendorCDR_20' ) start [2025-02-13 09:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465483', 'tblTempVendorCDR_20' ) end [2025-02-13 09:26:21] Production.INFO: ProcessCDR(1,14465483,1,1,2) [2025-02-13 09:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465483', 'tblTempUsageDetail_20' ) start [2025-02-13 09:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465483', 'tblTempUsageDetail_20' ) end [2025-02-13 09:26:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 09:26:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 09:26:26] Production.INFO: ==14538== Releasing lock... [2025-02-13 09:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 09:26:26] Production.INFO: 39.75 MB #Memory Used# [2025-02-13 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 06:27:05 [end_date_ymd] => 2025-02-13 09:27:05 [RateCDR] => 1 ) [2025-02-13 09: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-02-13 06:27:05' and `end` < '2025-02-13 09: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-02-13 09:27:19] Production.INFO: count ==1545 [2025-02-13 09:27:20] Production.ERROR: pbx CDR StartTime 2025-02-13 06:27:05 - End Time 2025-02-13 09:27:05 [2025-02-13 09:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 09:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465488', 'tblTempUsageDetail_20' ) start [2025-02-13 09:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465488', 'tblTempUsageDetail_20' ) end [2025-02-13 09:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465488', 'tblTempVendorCDR_20' ) start [2025-02-13 09:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465488', 'tblTempVendorCDR_20' ) end [2025-02-13 09:27:20] Production.INFO: ProcessCDR(1,14465488,1,1,2) [2025-02-13 09:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465488', 'tblTempUsageDetail_20' ) start [2025-02-13 09:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465488', 'tblTempUsageDetail_20' ) end [2025-02-13 09:27:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 09:27:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 09:27:24] Production.INFO: ==14610== Releasing lock... [2025-02-13 09:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 09:27:24] Production.INFO: 39.75 MB #Memory Used# [2025-02-13 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 06:28:05 [end_date_ymd] => 2025-02-13 09:28:05 [RateCDR] => 1 ) [2025-02-13 09: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-02-13 06:28:05' and `end` < '2025-02-13 09: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-02-13 09:28:19] Production.INFO: count ==1546 [2025-02-13 09:28:19] Production.ERROR: pbx CDR StartTime 2025-02-13 06:28:05 - End Time 2025-02-13 09:28:05 [2025-02-13 09:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465493', 'tblTempUsageDetail_20' ) start [2025-02-13 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465493', 'tblTempUsageDetail_20' ) end [2025-02-13 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465493', 'tblTempVendorCDR_20' ) start [2025-02-13 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465493', 'tblTempVendorCDR_20' ) end [2025-02-13 09:28:19] Production.INFO: ProcessCDR(1,14465493,1,1,2) [2025-02-13 09:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465493', 'tblTempUsageDetail_20' ) start [2025-02-13 09:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465493', 'tblTempUsageDetail_20' ) end [2025-02-13 09:28:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 09:28:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 09:28:24] Production.INFO: ==14679== Releasing lock... [2025-02-13 09:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 09:28:24] Production.INFO: 39.75 MB #Memory Used# [2025-02-13 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 06:29:05 [end_date_ymd] => 2025-02-13 09:29:05 [RateCDR] => 1 ) [2025-02-13 09: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-02-13 06:29:05' and `end` < '2025-02-13 09: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-02-13 09:29:22] Production.INFO: count ==1565 [2025-02-13 09:29:23] Production.ERROR: pbx CDR StartTime 2025-02-13 06:29:05 - End Time 2025-02-13 09:29:05 [2025-02-13 09:29:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 09:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465498', 'tblTempUsageDetail_20' ) start [2025-02-13 09:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465498', 'tblTempUsageDetail_20' ) end [2025-02-13 09:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465498', 'tblTempVendorCDR_20' ) start [2025-02-13 09:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465498', 'tblTempVendorCDR_20' ) end [2025-02-13 09:29:23] Production.INFO: ProcessCDR(1,14465498,1,1,2) [2025-02-13 09:29:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465498', 'tblTempUsageDetail_20' ) start [2025-02-13 09:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465498', 'tblTempUsageDetail_20' ) end [2025-02-13 09:29:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 09:29:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 09:29:27] Production.INFO: ==14758== Releasing lock... [2025-02-13 09:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 09:29:27] Production.INFO: 40 MB #Memory Used# [2025-02-13 09:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 06:30:05 [end_date_ymd] => 2025-02-13 09:30:05 [RateCDR] => 1 ) [2025-02-13 09: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-02-13 06:30:05' and `end` < '2025-02-13 09: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-02-13 09:30:22] Production.INFO: count ==1568 [2025-02-13 09:30:22] Production.ERROR: pbx CDR StartTime 2025-02-13 06:30:05 - End Time 2025-02-13 09:30:05 [2025-02-13 09:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 09:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465503', 'tblTempUsageDetail_20' ) start [2025-02-13 09:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465503', 'tblTempUsageDetail_20' ) end [2025-02-13 09:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465503', 'tblTempVendorCDR_20' ) start [2025-02-13 09:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465503', 'tblTempVendorCDR_20' ) end [2025-02-13 09:30:22] Production.INFO: ProcessCDR(1,14465503,1,1,2) [2025-02-13 09:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465503', 'tblTempUsageDetail_20' ) start [2025-02-13 09:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465503', 'tblTempUsageDetail_20' ) end [2025-02-13 09:30:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 09:30:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 09:30:27] Production.INFO: ==14833== Releasing lock... [2025-02-13 09:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 09:30:27] Production.INFO: 39.75 MB #Memory Used# [2025-02-13 09:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 06:31:04 [end_date_ymd] => 2025-02-13 09:31:04 [RateCDR] => 1 ) [2025-02-13 09:31: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-02-13 06:31:04' and `end` < '2025-02-13 09:31: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-02-13 09:31:18] Production.INFO: count ==1644 [2025-02-13 09:31:18] Production.ERROR: pbx CDR StartTime 2025-02-13 06:31:04 - End Time 2025-02-13 09:31:04 [2025-02-13 09:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465509', 'tblTempUsageDetail_20' ) start [2025-02-13 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465509', 'tblTempUsageDetail_20' ) end [2025-02-13 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465509', 'tblTempVendorCDR_20' ) start [2025-02-13 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465509', 'tblTempVendorCDR_20' ) end [2025-02-13 09:31:19] Production.INFO: ProcessCDR(1,14465509,1,1,2) [2025-02-13 09:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465509', 'tblTempUsageDetail_20' ) start [2025-02-13 09:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465509', 'tblTempUsageDetail_20' ) end [2025-02-13 09:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 09:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 09:31:24] Production.INFO: ==14913== Releasing lock... [2025-02-13 09:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 09:31:24] Production.INFO: 40.5 MB #Memory Used# [2025-02-13 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 06:32:05 [end_date_ymd] => 2025-02-13 09:32:05 [RateCDR] => 1 ) [2025-02-13 09: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-02-13 06:32:05' and `end` < '2025-02-13 09: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-02-13 09:32:27] Production.INFO: count ==1659 [2025-02-13 09:32:28] Production.ERROR: pbx CDR StartTime 2025-02-13 06:32:05 - End Time 2025-02-13 09:32:05 [2025-02-13 09:32:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 09:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465514', 'tblTempUsageDetail_20' ) start [2025-02-13 09:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465514', 'tblTempUsageDetail_20' ) end [2025-02-13 09:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465514', 'tblTempVendorCDR_20' ) start [2025-02-13 09:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465514', 'tblTempVendorCDR_20' ) end [2025-02-13 09:32:28] Production.INFO: ProcessCDR(1,14465514,1,1,2) [2025-02-13 09:32:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:32:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:32:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:32:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:32:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465514', 'tblTempUsageDetail_20' ) start [2025-02-13 09:32:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465514', 'tblTempUsageDetail_20' ) end [2025-02-13 09:32:34] Production.ERROR: pbx prc_insertCDR start [2025-02-13 09:32:34] Production.ERROR: pbx prc_insertCDR end [2025-02-13 09:32:34] Production.INFO: ==14991== Releasing lock... [2025-02-13 09:32:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 09:32:34] Production.INFO: 40.5 MB #Memory Used# [2025-02-13 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 06:33:05 [end_date_ymd] => 2025-02-13 09:33:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 06:33:05' and `end` < '2025-02-13 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-02-13 09:33:21] Production.INFO: count ==1673 [2025-02-13 09:33:22] Production.ERROR: pbx CDR StartTime 2025-02-13 06:33:05 - End Time 2025-02-13 09:33:05 [2025-02-13 09:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 09:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465519', 'tblTempUsageDetail_20' ) start [2025-02-13 09:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465519', 'tblTempUsageDetail_20' ) end [2025-02-13 09:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465519', 'tblTempVendorCDR_20' ) start [2025-02-13 09:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465519', 'tblTempVendorCDR_20' ) end [2025-02-13 09:33:22] Production.INFO: ProcessCDR(1,14465519,1,1,2) [2025-02-13 09:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465519', 'tblTempUsageDetail_20' ) start [2025-02-13 09:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465519', 'tblTempUsageDetail_20' ) end [2025-02-13 09:33:28] Production.ERROR: pbx prc_insertCDR start [2025-02-13 09:33:28] Production.ERROR: pbx prc_insertCDR end [2025-02-13 09:33:28] Production.INFO: ==15063== Releasing lock... [2025-02-13 09:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 09:33:28] Production.INFO: 40.5 MB #Memory Used# [2025-02-13 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 06:34:05 [end_date_ymd] => 2025-02-13 09:34:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 06:34:05' and `end` < '2025-02-13 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-02-13 09:34:20] Production.INFO: count ==1686 [2025-02-13 09:34:21] Production.ERROR: pbx CDR StartTime 2025-02-13 06:34:05 - End Time 2025-02-13 09:34:05 [2025-02-13 09:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 09:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465524', 'tblTempUsageDetail_20' ) start [2025-02-13 09:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465524', 'tblTempUsageDetail_20' ) end [2025-02-13 09:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465524', 'tblTempVendorCDR_20' ) start [2025-02-13 09:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465524', 'tblTempVendorCDR_20' ) end [2025-02-13 09:34:21] Production.INFO: ProcessCDR(1,14465524,1,1,2) [2025-02-13 09:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465524', 'tblTempUsageDetail_20' ) start [2025-02-13 09:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465524', 'tblTempUsageDetail_20' ) end [2025-02-13 09:34:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 09:34:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 09:34:26] Production.INFO: ==15150== Releasing lock... [2025-02-13 09:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 09:34:26] Production.INFO: 40.75 MB #Memory Used# [2025-02-13 09:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 06:35:06 [end_date_ymd] => 2025-02-13 09:35:06 [RateCDR] => 1 ) [2025-02-13 09: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-02-13 06:35:06' and `end` < '2025-02-13 09: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-02-13 09:35:21] Production.INFO: count ==1693 [2025-02-13 09:35:22] Production.ERROR: pbx CDR StartTime 2025-02-13 06:35:06 - End Time 2025-02-13 09:35:06 [2025-02-13 09:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 09:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465529', 'tblTempUsageDetail_20' ) start [2025-02-13 09:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465529', 'tblTempUsageDetail_20' ) end [2025-02-13 09:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465529', 'tblTempVendorCDR_20' ) start [2025-02-13 09:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465529', 'tblTempVendorCDR_20' ) end [2025-02-13 09:35:22] Production.INFO: ProcessCDR(1,14465529,1,1,2) [2025-02-13 09:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465529', 'tblTempUsageDetail_20' ) start [2025-02-13 09:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465529', 'tblTempUsageDetail_20' ) end [2025-02-13 09:35:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 09:35:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 09:35:27] Production.INFO: ==15225== Releasing lock... [2025-02-13 09:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 09:35:27] Production.INFO: 40.75 MB #Memory Used# [2025-02-13 09:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 06:36:06 [end_date_ymd] => 2025-02-13 09:36:06 [RateCDR] => 1 ) [2025-02-13 09: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-02-13 06:36:06' and `end` < '2025-02-13 09: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-02-13 09:36:19] Production.INFO: count ==1699 [2025-02-13 09:36:19] Production.ERROR: pbx CDR StartTime 2025-02-13 06:36:06 - End Time 2025-02-13 09:36:06 [2025-02-13 09:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465534', 'tblTempUsageDetail_20' ) start [2025-02-13 09:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465534', 'tblTempUsageDetail_20' ) end [2025-02-13 09:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465534', 'tblTempVendorCDR_20' ) start [2025-02-13 09:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465534', 'tblTempVendorCDR_20' ) end [2025-02-13 09:36:20] Production.INFO: ProcessCDR(1,14465534,1,1,2) [2025-02-13 09:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465534', 'tblTempUsageDetail_20' ) start [2025-02-13 09:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465534', 'tblTempUsageDetail_20' ) end [2025-02-13 09:36:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 09:36:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 09:36:25] Production.INFO: ==15301== Releasing lock... [2025-02-13 09:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 09:36:25] Production.INFO: 40.75 MB #Memory Used# [2025-02-13 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 06:37:05 [end_date_ymd] => 2025-02-13 09:37:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 06:37:05' and `end` < '2025-02-13 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-02-13 09:37:19] Production.INFO: count ==1719 [2025-02-13 09:37:20] Production.ERROR: pbx CDR StartTime 2025-02-13 06:37:05 - End Time 2025-02-13 09:37:05 [2025-02-13 09:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 09:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465539', 'tblTempUsageDetail_20' ) start [2025-02-13 09:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465539', 'tblTempUsageDetail_20' ) end [2025-02-13 09:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465539', 'tblTempVendorCDR_20' ) start [2025-02-13 09:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465539', 'tblTempVendorCDR_20' ) end [2025-02-13 09:37:20] Production.INFO: ProcessCDR(1,14465539,1,1,2) [2025-02-13 09:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465539', 'tblTempUsageDetail_20' ) start [2025-02-13 09:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465539', 'tblTempUsageDetail_20' ) end [2025-02-13 09:37:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 09:37:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 09:37:26] Production.INFO: ==15426== Releasing lock... [2025-02-13 09:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 09:37:26] Production.INFO: 41 MB #Memory Used# [2025-02-13 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 06:38:05 [end_date_ymd] => 2025-02-13 09:38:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 06:38:05' and `end` < '2025-02-13 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-02-13 09:38:21] Production.INFO: count ==1723 [2025-02-13 09:38:22] Production.ERROR: pbx CDR StartTime 2025-02-13 06:38:05 - End Time 2025-02-13 09:38:05 [2025-02-13 09:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 09:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465544', 'tblTempUsageDetail_20' ) start [2025-02-13 09:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465544', 'tblTempUsageDetail_20' ) end [2025-02-13 09:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465544', 'tblTempVendorCDR_20' ) start [2025-02-13 09:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465544', 'tblTempVendorCDR_20' ) end [2025-02-13 09:38:22] Production.INFO: ProcessCDR(1,14465544,1,1,2) [2025-02-13 09:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465544', 'tblTempUsageDetail_20' ) start [2025-02-13 09:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465544', 'tblTempUsageDetail_20' ) end [2025-02-13 09:38:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 09:38:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 09:38:26] Production.INFO: ==15504== Releasing lock... [2025-02-13 09:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 09:38:26] Production.INFO: 41.25 MB #Memory Used# [2025-02-13 09:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 06:39:06 [end_date_ymd] => 2025-02-13 09:39:06 [RateCDR] => 1 ) [2025-02-13 09: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-02-13 06:39:06' and `end` < '2025-02-13 09: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-02-13 09:39:20] Production.INFO: count ==1741 [2025-02-13 09:39:21] Production.ERROR: pbx CDR StartTime 2025-02-13 06:39:06 - End Time 2025-02-13 09:39:06 [2025-02-13 09:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 09:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465549', 'tblTempUsageDetail_20' ) start [2025-02-13 09:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465549', 'tblTempUsageDetail_20' ) end [2025-02-13 09:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465549', 'tblTempVendorCDR_20' ) start [2025-02-13 09:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465549', 'tblTempVendorCDR_20' ) end [2025-02-13 09:39:21] Production.INFO: ProcessCDR(1,14465549,1,1,2) [2025-02-13 09:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465549', 'tblTempUsageDetail_20' ) start [2025-02-13 09:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465549', 'tblTempUsageDetail_20' ) end [2025-02-13 09:39:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 09:39:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 09:39:26] Production.INFO: ==15585== Releasing lock... [2025-02-13 09:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 09:39:26] Production.INFO: 41.25 MB #Memory Used# [2025-02-13 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 06:40:06 [end_date_ymd] => 2025-02-13 09:40:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 06:40:06' and `end` < '2025-02-13 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-02-13 09:40:19] Production.INFO: count ==1763 [2025-02-13 09:40:20] Production.ERROR: pbx CDR StartTime 2025-02-13 06:40:06 - End Time 2025-02-13 09:40:06 [2025-02-13 09:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465555', 'tblTempUsageDetail_20' ) start [2025-02-13 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465555', 'tblTempUsageDetail_20' ) end [2025-02-13 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465555', 'tblTempVendorCDR_20' ) start [2025-02-13 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465555', 'tblTempVendorCDR_20' ) end [2025-02-13 09:40:20] Production.INFO: ProcessCDR(1,14465555,1,1,2) [2025-02-13 09:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465555', 'tblTempUsageDetail_20' ) start [2025-02-13 09:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465555', 'tblTempUsageDetail_20' ) end [2025-02-13 09:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 09:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 09:40:23] Production.INFO: ==15670== Releasing lock... [2025-02-13 09:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 09:40:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-13 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 06:41:05 [end_date_ymd] => 2025-02-13 09:41:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 06:41:05' and `end` < '2025-02-13 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-02-13 09:41:19] Production.INFO: count ==1820 [2025-02-13 09:41:19] Production.ERROR: pbx CDR StartTime 2025-02-13 06:41:05 - End Time 2025-02-13 09:41:05 [2025-02-13 09:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465560', 'tblTempUsageDetail_20' ) start [2025-02-13 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465560', 'tblTempUsageDetail_20' ) end [2025-02-13 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465560', 'tblTempVendorCDR_20' ) start [2025-02-13 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465560', 'tblTempVendorCDR_20' ) end [2025-02-13 09:41:19] Production.INFO: ProcessCDR(1,14465560,1,1,2) [2025-02-13 09:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465560', 'tblTempUsageDetail_20' ) start [2025-02-13 09:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465560', 'tblTempUsageDetail_20' ) end [2025-02-13 09:41:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 09:41:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 09:41:24] Production.INFO: ==15755== Releasing lock... [2025-02-13 09:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 09:41:24] Production.INFO: 42 MB #Memory Used# [2025-02-13 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 06:42:05 [end_date_ymd] => 2025-02-13 09:42:05 [RateCDR] => 1 ) [2025-02-13 09: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-02-13 06:42:05' and `end` < '2025-02-13 09: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-02-13 09:42:25] Production.INFO: count ==1833 [2025-02-13 09:42:26] Production.ERROR: pbx CDR StartTime 2025-02-13 06:42:05 - End Time 2025-02-13 09:42:05 [2025-02-13 09:42:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 09:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465565', 'tblTempUsageDetail_20' ) start [2025-02-13 09:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465565', 'tblTempUsageDetail_20' ) end [2025-02-13 09:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465565', 'tblTempVendorCDR_20' ) start [2025-02-13 09:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465565', 'tblTempVendorCDR_20' ) end [2025-02-13 09:42:26] Production.INFO: ProcessCDR(1,14465565,1,1,2) [2025-02-13 09:42:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:42:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:42:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:42:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:42:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465565', 'tblTempUsageDetail_20' ) start [2025-02-13 09:42:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465565', 'tblTempUsageDetail_20' ) end [2025-02-13 09:42:30] Production.ERROR: pbx prc_insertCDR start [2025-02-13 09:42:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 09:42:30] Production.INFO: ==15835== Releasing lock... [2025-02-13 09:42:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 09:42:30] Production.INFO: 42 MB #Memory Used# [2025-02-13 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 06:43:05 [end_date_ymd] => 2025-02-13 09:43:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 06:43:05' and `end` < '2025-02-13 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-02-13 09:43:19] Production.INFO: count ==1856 [2025-02-13 09:43:19] Production.ERROR: pbx CDR StartTime 2025-02-13 06:43:05 - End Time 2025-02-13 09:43:05 [2025-02-13 09:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465570', 'tblTempUsageDetail_20' ) start [2025-02-13 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465570', 'tblTempUsageDetail_20' ) end [2025-02-13 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465570', 'tblTempVendorCDR_20' ) start [2025-02-13 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465570', 'tblTempVendorCDR_20' ) end [2025-02-13 09:43:20] Production.INFO: ProcessCDR(1,14465570,1,1,2) [2025-02-13 09:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465570', 'tblTempUsageDetail_20' ) start [2025-02-13 09:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465570', 'tblTempUsageDetail_20' ) end [2025-02-13 09:43:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 09:43:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 09:43:24] Production.INFO: ==15922== Releasing lock... [2025-02-13 09:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 09:43:24] Production.INFO: 42 MB #Memory Used# [2025-02-13 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 06:44:05 [end_date_ymd] => 2025-02-13 09:44:05 [RateCDR] => 1 ) [2025-02-13 09: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-02-13 06:44:05' and `end` < '2025-02-13 09: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-02-13 09:44:19] Production.INFO: count ==1871 [2025-02-13 09:44:20] Production.ERROR: pbx CDR StartTime 2025-02-13 06:44:05 - End Time 2025-02-13 09:44:05 [2025-02-13 09:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 09:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465575', 'tblTempUsageDetail_20' ) start [2025-02-13 09:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465575', 'tblTempUsageDetail_20' ) end [2025-02-13 09:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465575', 'tblTempVendorCDR_20' ) start [2025-02-13 09:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465575', 'tblTempVendorCDR_20' ) end [2025-02-13 09:44:20] Production.INFO: ProcessCDR(1,14465575,1,1,2) [2025-02-13 09:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465575', 'tblTempUsageDetail_20' ) start [2025-02-13 09:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465575', 'tblTempUsageDetail_20' ) end [2025-02-13 09:44:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 09:44:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 09:44:25] Production.INFO: ==16004== Releasing lock... [2025-02-13 09:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 09:44:25] Production.INFO: 42 MB #Memory Used# [2025-02-13 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 06:45:05 [end_date_ymd] => 2025-02-13 09:45:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 06:45:05' and `end` < '2025-02-13 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-02-13 09:45:19] Production.INFO: count ==1904 [2025-02-13 09:45:20] Production.ERROR: pbx CDR StartTime 2025-02-13 06:45:05 - End Time 2025-02-13 09:45:05 [2025-02-13 09:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 09:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465580', 'tblTempUsageDetail_20' ) start [2025-02-13 09:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465580', 'tblTempUsageDetail_20' ) end [2025-02-13 09:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465580', 'tblTempVendorCDR_20' ) start [2025-02-13 09:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465580', 'tblTempVendorCDR_20' ) end [2025-02-13 09:45:20] Production.INFO: ProcessCDR(1,14465580,1,1,2) [2025-02-13 09:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465580', 'tblTempUsageDetail_20' ) start [2025-02-13 09:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465580', 'tblTempUsageDetail_20' ) end [2025-02-13 09:45:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 09:45:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 09:45:25] Production.INFO: ==16096== Releasing lock... [2025-02-13 09:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 09:45:25] Production.INFO: 42.5 MB #Memory Used# [2025-02-13 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 06:46:05 [end_date_ymd] => 2025-02-13 09:46:05 [RateCDR] => 1 ) [2025-02-13 09: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-02-13 06:46:05' and `end` < '2025-02-13 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-02-13 09:46:19] Production.INFO: count ==1910 [2025-02-13 09:46:20] Production.ERROR: pbx CDR StartTime 2025-02-13 06:46:05 - End Time 2025-02-13 09:46:05 [2025-02-13 09:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 09:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465585', 'tblTempUsageDetail_20' ) start [2025-02-13 09:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465585', 'tblTempUsageDetail_20' ) end [2025-02-13 09:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465585', 'tblTempVendorCDR_20' ) start [2025-02-13 09:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465585', 'tblTempVendorCDR_20' ) end [2025-02-13 09:46:20] Production.INFO: ProcessCDR(1,14465585,1,1,2) [2025-02-13 09:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465585', 'tblTempUsageDetail_20' ) start [2025-02-13 09:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465585', 'tblTempUsageDetail_20' ) end [2025-02-13 09:46:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 09:46:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 09:46:24] Production.INFO: ==16178== Releasing lock... [2025-02-13 09:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 09:46:24] Production.INFO: 42.5 MB #Memory Used# [2025-02-13 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 06:47:05 [end_date_ymd] => 2025-02-13 09:47:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 06:47:05' and `end` < '2025-02-13 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-02-13 09:47:21] Production.INFO: count ==1910 [2025-02-13 09:47:22] Production.ERROR: pbx CDR StartTime 2025-02-13 06:47:05 - End Time 2025-02-13 09:47:05 [2025-02-13 09:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 09:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465590', 'tblTempUsageDetail_20' ) start [2025-02-13 09:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465590', 'tblTempUsageDetail_20' ) end [2025-02-13 09:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465590', 'tblTempVendorCDR_20' ) start [2025-02-13 09:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465590', 'tblTempVendorCDR_20' ) end [2025-02-13 09:47:22] Production.INFO: ProcessCDR(1,14465590,1,1,2) [2025-02-13 09:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465590', 'tblTempUsageDetail_20' ) start [2025-02-13 09:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465590', 'tblTempUsageDetail_20' ) end [2025-02-13 09:47:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 09:47:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 09:47:27] Production.INFO: ==16267== Releasing lock... [2025-02-13 09:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 09:47:27] Production.INFO: 42.75 MB #Memory Used# [2025-02-13 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 06:48:05 [end_date_ymd] => 2025-02-13 09:48:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 06:48:05' and `end` < '2025-02-13 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-02-13 09:48:18] Production.INFO: count ==1911 [2025-02-13 09:48:19] Production.ERROR: pbx CDR StartTime 2025-02-13 06:48:05 - End Time 2025-02-13 09:48:05 [2025-02-13 09:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465595', 'tblTempUsageDetail_20' ) start [2025-02-13 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465595', 'tblTempUsageDetail_20' ) end [2025-02-13 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465595', 'tblTempVendorCDR_20' ) start [2025-02-13 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465595', 'tblTempVendorCDR_20' ) end [2025-02-13 09:48:19] Production.INFO: ProcessCDR(1,14465595,1,1,2) [2025-02-13 09:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465595', 'tblTempUsageDetail_20' ) start [2025-02-13 09:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465595', 'tblTempUsageDetail_20' ) end [2025-02-13 09:48:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 09:48:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 09:48:24] Production.INFO: ==16356== Releasing lock... [2025-02-13 09:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 09:48:24] Production.INFO: 42.75 MB #Memory Used# [2025-02-13 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 06:49:05 [end_date_ymd] => 2025-02-13 09:49:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 06:49:05' and `end` < '2025-02-13 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-02-13 09:49:23] Production.INFO: count ==1921 [2025-02-13 09:49:24] Production.ERROR: pbx CDR StartTime 2025-02-13 06:49:05 - End Time 2025-02-13 09:49:05 [2025-02-13 09:49:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 09:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465600', 'tblTempUsageDetail_20' ) start [2025-02-13 09:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465600', 'tblTempUsageDetail_20' ) end [2025-02-13 09:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465600', 'tblTempVendorCDR_20' ) start [2025-02-13 09:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465600', 'tblTempVendorCDR_20' ) end [2025-02-13 09:49:24] Production.INFO: ProcessCDR(1,14465600,1,1,2) [2025-02-13 09:49:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:49:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:49:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:49:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465600', 'tblTempUsageDetail_20' ) start [2025-02-13 09:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465600', 'tblTempUsageDetail_20' ) end [2025-02-13 09:49:29] Production.ERROR: pbx prc_insertCDR start [2025-02-13 09:49:29] Production.ERROR: pbx prc_insertCDR end [2025-02-13 09:49:29] Production.INFO: ==16443== Releasing lock... [2025-02-13 09:49:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 09:49:29] Production.INFO: 42.5 MB #Memory Used# [2025-02-13 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 06:50:06 [end_date_ymd] => 2025-02-13 09:50:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 06:50:06' and `end` < '2025-02-13 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-02-13 09:50:30] Production.INFO: count ==1938 [2025-02-13 09:50:31] Production.ERROR: pbx CDR StartTime 2025-02-13 06:50:06 - End Time 2025-02-13 09:50:06 [2025-02-13 09:50:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 09:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465606', 'tblTempUsageDetail_20' ) start [2025-02-13 09:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465606', 'tblTempUsageDetail_20' ) end [2025-02-13 09:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465606', 'tblTempVendorCDR_20' ) start [2025-02-13 09:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465606', 'tblTempVendorCDR_20' ) end [2025-02-13 09:50:31] Production.INFO: ProcessCDR(1,14465606,1,1,2) [2025-02-13 09:50:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:50:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:50:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:50:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:50:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465606', 'tblTempUsageDetail_20' ) start [2025-02-13 09:50:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465606', 'tblTempUsageDetail_20' ) end [2025-02-13 09:50:37] Production.ERROR: pbx prc_insertCDR start [2025-02-13 09:50:37] Production.ERROR: pbx prc_insertCDR end [2025-02-13 09:50:37] Production.INFO: ==16532== Releasing lock... [2025-02-13 09:50:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 09:50:37] Production.INFO: 42.5 MB #Memory Used# [2025-02-13 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 06:51:05 [end_date_ymd] => 2025-02-13 09:51:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 06:51:05' and `end` < '2025-02-13 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-02-13 09:51:22] Production.INFO: count ==2019 [2025-02-13 09:51:23] Production.ERROR: pbx CDR StartTime 2025-02-13 06:51:05 - End Time 2025-02-13 09:51:05 [2025-02-13 09:51:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 09:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465611', 'tblTempUsageDetail_20' ) start [2025-02-13 09:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465611', 'tblTempUsageDetail_20' ) end [2025-02-13 09:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465611', 'tblTempVendorCDR_20' ) start [2025-02-13 09:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465611', 'tblTempVendorCDR_20' ) end [2025-02-13 09:51:23] Production.INFO: ProcessCDR(1,14465611,1,1,2) [2025-02-13 09:51:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:51:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:51:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465611', 'tblTempUsageDetail_20' ) start [2025-02-13 09:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465611', 'tblTempUsageDetail_20' ) end [2025-02-13 09:51:28] Production.ERROR: pbx prc_insertCDR start [2025-02-13 09:51:28] Production.ERROR: pbx prc_insertCDR end [2025-02-13 09:51:28] Production.INFO: ==16618== Releasing lock... [2025-02-13 09:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 09:51:28] Production.INFO: 43.25 MB #Memory Used# [2025-02-13 09:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 06:52:06 [end_date_ymd] => 2025-02-13 09:52:06 [RateCDR] => 1 ) [2025-02-13 09: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-02-13 06:52:06' and `end` < '2025-02-13 09: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-02-13 09:52:21] Production.INFO: count ==2041 [2025-02-13 09:52:21] Production.ERROR: pbx CDR StartTime 2025-02-13 06:52:06 - End Time 2025-02-13 09:52:06 [2025-02-13 09:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 09:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465616', 'tblTempUsageDetail_20' ) start [2025-02-13 09:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465616', 'tblTempUsageDetail_20' ) end [2025-02-13 09:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465616', 'tblTempVendorCDR_20' ) start [2025-02-13 09:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465616', 'tblTempVendorCDR_20' ) end [2025-02-13 09:52:21] Production.INFO: ProcessCDR(1,14465616,1,1,2) [2025-02-13 09:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465616', 'tblTempUsageDetail_20' ) start [2025-02-13 09:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465616', 'tblTempUsageDetail_20' ) end [2025-02-13 09:52:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 09:52:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 09:52:27] Production.INFO: ==16702== Releasing lock... [2025-02-13 09:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 09:52:27] Production.INFO: 43.5 MB #Memory Used# [2025-02-13 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 06:53:05 [end_date_ymd] => 2025-02-13 09:53:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 06:53:05' and `end` < '2025-02-13 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-02-13 09:53:20] Production.INFO: count ==2059 [2025-02-13 09:53:21] Production.ERROR: pbx CDR StartTime 2025-02-13 06:53:05 - End Time 2025-02-13 09:53:05 [2025-02-13 09:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 09:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465621', 'tblTempUsageDetail_20' ) start [2025-02-13 09:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465621', 'tblTempUsageDetail_20' ) end [2025-02-13 09:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465621', 'tblTempVendorCDR_20' ) start [2025-02-13 09:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465621', 'tblTempVendorCDR_20' ) end [2025-02-13 09:53:21] Production.INFO: ProcessCDR(1,14465621,1,1,2) [2025-02-13 09:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465621', 'tblTempUsageDetail_20' ) start [2025-02-13 09:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465621', 'tblTempUsageDetail_20' ) end [2025-02-13 09:53:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 09:53:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 09:53:26] Production.INFO: ==16836== Releasing lock... [2025-02-13 09:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 09:53:26] Production.INFO: 43.75 MB #Memory Used# [2025-02-13 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 06:54:05 [end_date_ymd] => 2025-02-13 09:54:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 06:54:05' and `end` < '2025-02-13 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-02-13 09:54:22] Production.INFO: count ==2071 [2025-02-13 09:54:22] Production.ERROR: pbx CDR StartTime 2025-02-13 06:54:05 - End Time 2025-02-13 09:54:05 [2025-02-13 09:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 09:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465626', 'tblTempUsageDetail_20' ) start [2025-02-13 09:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465626', 'tblTempUsageDetail_20' ) end [2025-02-13 09:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465626', 'tblTempVendorCDR_20' ) start [2025-02-13 09:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465626', 'tblTempVendorCDR_20' ) end [2025-02-13 09:54:22] Production.INFO: ProcessCDR(1,14465626,1,1,2) [2025-02-13 09:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465626', 'tblTempUsageDetail_20' ) start [2025-02-13 09:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465626', 'tblTempUsageDetail_20' ) end [2025-02-13 09:54:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 09:54:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 09:54:27] Production.INFO: ==16918== Releasing lock... [2025-02-13 09:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 09:54:27] Production.INFO: 44 MB #Memory Used# [2025-02-13 09:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 06:55:04 [end_date_ymd] => 2025-02-13 09:55:04 [RateCDR] => 1 ) [2025-02-13 09: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-02-13 06:55:04' and `end` < '2025-02-13 09: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-02-13 09:55:19] Production.INFO: count ==2079 [2025-02-13 09:55:20] Production.ERROR: pbx CDR StartTime 2025-02-13 06:55:04 - End Time 2025-02-13 09:55:04 [2025-02-13 09:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 09:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465631', 'tblTempUsageDetail_20' ) start [2025-02-13 09:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465631', 'tblTempUsageDetail_20' ) end [2025-02-13 09:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465631', 'tblTempVendorCDR_20' ) start [2025-02-13 09:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465631', 'tblTempVendorCDR_20' ) end [2025-02-13 09:55:20] Production.INFO: ProcessCDR(1,14465631,1,1,2) [2025-02-13 09:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465631', 'tblTempUsageDetail_20' ) start [2025-02-13 09:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465631', 'tblTempUsageDetail_20' ) end [2025-02-13 09:55:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 09:55:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 09:55:24] Production.INFO: ==17009== Releasing lock... [2025-02-13 09:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 09:55:24] Production.INFO: 43.75 MB #Memory Used# [2025-02-13 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 06:56:05 [end_date_ymd] => 2025-02-13 09:56:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 06:56:05' and `end` < '2025-02-13 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-02-13 09:56:21] Production.INFO: count ==2096 [2025-02-13 09:56:22] Production.ERROR: pbx CDR StartTime 2025-02-13 06:56:05 - End Time 2025-02-13 09:56:05 [2025-02-13 09:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 09:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465636', 'tblTempUsageDetail_20' ) start [2025-02-13 09:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465636', 'tblTempUsageDetail_20' ) end [2025-02-13 09:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465636', 'tblTempVendorCDR_20' ) start [2025-02-13 09:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465636', 'tblTempVendorCDR_20' ) end [2025-02-13 09:56:22] Production.INFO: ProcessCDR(1,14465636,1,1,2) [2025-02-13 09:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465636', 'tblTempUsageDetail_20' ) start [2025-02-13 09:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465636', 'tblTempUsageDetail_20' ) end [2025-02-13 09:56:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 09:56:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 09:56:27] Production.INFO: ==17097== Releasing lock... [2025-02-13 09:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 09:56:27] Production.INFO: 43.75 MB #Memory Used# [2025-02-13 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 06:57:05 [end_date_ymd] => 2025-02-13 09:57:05 [RateCDR] => 1 ) [2025-02-13 09: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-02-13 06:57:05' and `end` < '2025-02-13 09: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-02-13 09:57:21] Production.INFO: count ==2114 [2025-02-13 09:57:22] Production.ERROR: pbx CDR StartTime 2025-02-13 06:57:05 - End Time 2025-02-13 09:57:05 [2025-02-13 09:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 09:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465641', 'tblTempUsageDetail_20' ) start [2025-02-13 09:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465641', 'tblTempUsageDetail_20' ) end [2025-02-13 09:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465641', 'tblTempVendorCDR_20' ) start [2025-02-13 09:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465641', 'tblTempVendorCDR_20' ) end [2025-02-13 09:57:22] Production.INFO: ProcessCDR(1,14465641,1,1,2) [2025-02-13 09:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465641', 'tblTempUsageDetail_20' ) start [2025-02-13 09:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465641', 'tblTempUsageDetail_20' ) end [2025-02-13 09:57:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 09:57:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 09:57:27] Production.INFO: ==17186== Releasing lock... [2025-02-13 09:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 09:57:27] Production.INFO: 44 MB #Memory Used# [2025-02-13 09:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 06:58:06 [end_date_ymd] => 2025-02-13 09:58:06 [RateCDR] => 1 ) [2025-02-13 09: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-02-13 06:58:06' and `end` < '2025-02-13 09: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-02-13 09:58:21] Production.INFO: count ==2134 [2025-02-13 09:58:22] Production.ERROR: pbx CDR StartTime 2025-02-13 06:58:06 - End Time 2025-02-13 09:58:06 [2025-02-13 09:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 09:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465646', 'tblTempUsageDetail_20' ) start [2025-02-13 09:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465646', 'tblTempUsageDetail_20' ) end [2025-02-13 09:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465646', 'tblTempVendorCDR_20' ) start [2025-02-13 09:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465646', 'tblTempVendorCDR_20' ) end [2025-02-13 09:58:22] Production.INFO: ProcessCDR(1,14465646,1,1,2) [2025-02-13 09:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465646', 'tblTempUsageDetail_20' ) start [2025-02-13 09:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465646', 'tblTempUsageDetail_20' ) end [2025-02-13 09:58:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 09:58:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 09:58:27] Production.INFO: ==17269== Releasing lock... [2025-02-13 09:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 09:58:27] Production.INFO: 44 MB #Memory Used# [2025-02-13 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 06:59:05 [end_date_ymd] => 2025-02-13 09:59:05 [RateCDR] => 1 ) [2025-02-13 09: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-02-13 06:59:05' and `end` < '2025-02-13 09: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-02-13 09:59:18] Production.INFO: count ==2136 [2025-02-13 09:59:19] Production.ERROR: pbx CDR StartTime 2025-02-13 06:59:05 - End Time 2025-02-13 09:59:05 [2025-02-13 09:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465651', 'tblTempUsageDetail_20' ) start [2025-02-13 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465651', 'tblTempUsageDetail_20' ) end [2025-02-13 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465651', 'tblTempVendorCDR_20' ) start [2025-02-13 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465651', 'tblTempVendorCDR_20' ) end [2025-02-13 09:59:19] Production.INFO: ProcessCDR(1,14465651,1,1,2) [2025-02-13 09:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 09:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 09:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465651', 'tblTempUsageDetail_20' ) start [2025-02-13 09:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465651', 'tblTempUsageDetail_20' ) end [2025-02-13 09:59:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 09:59:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 09:59:24] Production.INFO: ==17360== Releasing lock... [2025-02-13 09:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 09:59:24] Production.INFO: 44 MB #Memory Used# [2025-02-13 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 07:00:06 [end_date_ymd] => 2025-02-13 10:00:06 [RateCDR] => 1 ) [2025-02-13 10: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-02-13 07:00:06' and `end` < '2025-02-13 10: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-02-13 10:00:21] Production.INFO: count ==2159 [2025-02-13 10:00:22] Production.ERROR: pbx CDR StartTime 2025-02-13 07:00:06 - End Time 2025-02-13 10:00:06 [2025-02-13 10:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 10:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465656', 'tblTempUsageDetail_20' ) start [2025-02-13 10:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465656', 'tblTempUsageDetail_20' ) end [2025-02-13 10:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465656', 'tblTempVendorCDR_20' ) start [2025-02-13 10:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465656', 'tblTempVendorCDR_20' ) end [2025-02-13 10:00:22] Production.INFO: ProcessCDR(1,14465656,1,1,2) [2025-02-13 10:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465656', 'tblTempUsageDetail_20' ) start [2025-02-13 10:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465656', 'tblTempUsageDetail_20' ) end [2025-02-13 10:00:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 10:00:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 10:00:26] Production.INFO: ==17476== Releasing lock... [2025-02-13 10:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 10:00:26] Production.INFO: 44.25 MB #Memory Used# [2025-02-13 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 07:01:05 [end_date_ymd] => 2025-02-13 10:01:05 [RateCDR] => 1 ) [2025-02-13 10: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-02-13 07:01:05' and `end` < '2025-02-13 10: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-02-13 10:01:23] Production.INFO: count ==2272 [2025-02-13 10:01:24] Production.ERROR: pbx CDR StartTime 2025-02-13 07:01:05 - End Time 2025-02-13 10:01:05 [2025-02-13 10:01:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 10:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465662', 'tblTempUsageDetail_20' ) start [2025-02-13 10:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465662', 'tblTempUsageDetail_20' ) end [2025-02-13 10:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465662', 'tblTempVendorCDR_20' ) start [2025-02-13 10:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465662', 'tblTempVendorCDR_20' ) end [2025-02-13 10:01:24] Production.INFO: ProcessCDR(1,14465662,1,1,2) [2025-02-13 10:01:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:01:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:01:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:01:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465662', 'tblTempUsageDetail_20' ) start [2025-02-13 10:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465662', 'tblTempUsageDetail_20' ) end [2025-02-13 10:01:29] Production.ERROR: pbx prc_insertCDR start [2025-02-13 10:01:29] Production.ERROR: pbx prc_insertCDR end [2025-02-13 10:01:29] Production.INFO: ==17581== Releasing lock... [2025-02-13 10:01:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 10:01:29] Production.INFO: 45 MB #Memory Used# [2025-02-13 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 07:02:05 [end_date_ymd] => 2025-02-13 10:02:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 07:02:05' and `end` < '2025-02-13 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-02-13 10:02:21] Production.INFO: count ==2302 [2025-02-13 10:02:22] Production.ERROR: pbx CDR StartTime 2025-02-13 07:02:05 - End Time 2025-02-13 10:02:05 [2025-02-13 10:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 10:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465667', 'tblTempUsageDetail_20' ) start [2025-02-13 10:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465667', 'tblTempUsageDetail_20' ) end [2025-02-13 10:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465667', 'tblTempVendorCDR_20' ) start [2025-02-13 10:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465667', 'tblTempVendorCDR_20' ) end [2025-02-13 10:02:22] Production.INFO: ProcessCDR(1,14465667,1,1,2) [2025-02-13 10:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465667', 'tblTempUsageDetail_20' ) start [2025-02-13 10:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465667', 'tblTempUsageDetail_20' ) end [2025-02-13 10:02:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 10:02:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 10:02:26] Production.INFO: ==17666== Releasing lock... [2025-02-13 10:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 10:02:26] Production.INFO: 45.25 MB #Memory Used# [2025-02-13 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 07:03:05 [end_date_ymd] => 2025-02-13 10:03:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 07:03:05' and `end` < '2025-02-13 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-02-13 10:03:18] Production.INFO: count ==2324 [2025-02-13 10:03:19] Production.ERROR: pbx CDR StartTime 2025-02-13 07:03:05 - End Time 2025-02-13 10:03:05 [2025-02-13 10:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465672', 'tblTempUsageDetail_20' ) start [2025-02-13 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465672', 'tblTempUsageDetail_20' ) end [2025-02-13 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465672', 'tblTempVendorCDR_20' ) start [2025-02-13 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465672', 'tblTempVendorCDR_20' ) end [2025-02-13 10:03:20] Production.INFO: ProcessCDR(1,14465672,1,1,2) [2025-02-13 10:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465672', 'tblTempUsageDetail_20' ) start [2025-02-13 10:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465672', 'tblTempUsageDetail_20' ) end [2025-02-13 10:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 10:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 10:03:23] Production.INFO: ==17745== Releasing lock... [2025-02-13 10:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 10:03:23] Production.INFO: 45.5 MB #Memory Used# [2025-02-13 10:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 07:04:06 [end_date_ymd] => 2025-02-13 10:04:06 [RateCDR] => 1 ) [2025-02-13 10: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-02-13 07:04:06' and `end` < '2025-02-13 10: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-02-13 10:04:19] Production.INFO: count ==2352 [2025-02-13 10:04:20] Production.ERROR: pbx CDR StartTime 2025-02-13 07:04:06 - End Time 2025-02-13 10:04:06 [2025-02-13 10:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465677', 'tblTempUsageDetail_20' ) start [2025-02-13 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465677', 'tblTempUsageDetail_20' ) end [2025-02-13 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465677', 'tblTempVendorCDR_20' ) start [2025-02-13 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465677', 'tblTempVendorCDR_20' ) end [2025-02-13 10:04:20] Production.INFO: ProcessCDR(1,14465677,1,1,2) [2025-02-13 10:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465677', 'tblTempUsageDetail_20' ) start [2025-02-13 10:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465677', 'tblTempUsageDetail_20' ) end [2025-02-13 10:04:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 10:04:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 10:04:26] Production.INFO: ==17826== Releasing lock... [2025-02-13 10:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 10:04:26] Production.INFO: 45.75 MB #Memory Used# [2025-02-13 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 07:05:05 [end_date_ymd] => 2025-02-13 10:05:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 07:05:05' and `end` < '2025-02-13 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-02-13 10:05:18] Production.INFO: count ==2365 [2025-02-13 10:05:19] Production.ERROR: pbx CDR StartTime 2025-02-13 07:05:05 - End Time 2025-02-13 10:05:05 [2025-02-13 10:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465682', 'tblTempUsageDetail_20' ) start [2025-02-13 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465682', 'tblTempUsageDetail_20' ) end [2025-02-13 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465682', 'tblTempVendorCDR_20' ) start [2025-02-13 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465682', 'tblTempVendorCDR_20' ) end [2025-02-13 10:05:19] Production.INFO: ProcessCDR(1,14465682,1,1,2) [2025-02-13 10:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465682', 'tblTempUsageDetail_20' ) start [2025-02-13 10:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465682', 'tblTempUsageDetail_20' ) end [2025-02-13 10:05:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 10:05:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 10:05:25] Production.INFO: ==17905== Releasing lock... [2025-02-13 10:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 10:05:25] Production.INFO: 45.75 MB #Memory Used# [2025-02-13 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 07:06:05 [end_date_ymd] => 2025-02-13 10:06:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 07:06:05' and `end` < '2025-02-13 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-02-13 10:06:22] Production.INFO: count ==2372 [2025-02-13 10:06:23] Production.ERROR: pbx CDR StartTime 2025-02-13 07:06:05 - End Time 2025-02-13 10:06:05 [2025-02-13 10:06:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 10:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465687', 'tblTempUsageDetail_20' ) start [2025-02-13 10:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465687', 'tblTempUsageDetail_20' ) end [2025-02-13 10:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465687', 'tblTempVendorCDR_20' ) start [2025-02-13 10:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465687', 'tblTempVendorCDR_20' ) end [2025-02-13 10:06:23] Production.INFO: ProcessCDR(1,14465687,1,1,2) [2025-02-13 10:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:06:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:06:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465687', 'tblTempUsageDetail_20' ) start [2025-02-13 10:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465687', 'tblTempUsageDetail_20' ) end [2025-02-13 10:06:29] Production.ERROR: pbx prc_insertCDR start [2025-02-13 10:06:29] Production.ERROR: pbx prc_insertCDR end [2025-02-13 10:06:29] Production.INFO: ==17984== Releasing lock... [2025-02-13 10:06:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 10:06:29] Production.INFO: 45.75 MB #Memory Used# [2025-02-13 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 07:07:05 [end_date_ymd] => 2025-02-13 10:07:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 07:07:05' and `end` < '2025-02-13 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-02-13 10:07:19] Production.INFO: count ==2376 [2025-02-13 10:07:20] Production.ERROR: pbx CDR StartTime 2025-02-13 07:07:05 - End Time 2025-02-13 10:07:05 [2025-02-13 10:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465692', 'tblTempUsageDetail_20' ) start [2025-02-13 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465692', 'tblTempUsageDetail_20' ) end [2025-02-13 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465692', 'tblTempVendorCDR_20' ) start [2025-02-13 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465692', 'tblTempVendorCDR_20' ) end [2025-02-13 10:07:20] Production.INFO: ProcessCDR(1,14465692,1,1,2) [2025-02-13 10:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465692', 'tblTempUsageDetail_20' ) start [2025-02-13 10:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465692', 'tblTempUsageDetail_20' ) end [2025-02-13 10:07:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 10:07:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 10:07:26] Production.INFO: ==18064== Releasing lock... [2025-02-13 10:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 10:07:26] Production.INFO: 46 MB #Memory Used# [2025-02-13 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 07:08:05 [end_date_ymd] => 2025-02-13 10:08:05 [RateCDR] => 1 ) [2025-02-13 10: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-02-13 07:08:05' and `end` < '2025-02-13 10: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-02-13 10:08:19] Production.INFO: count ==2376 [2025-02-13 10:08:20] Production.ERROR: pbx CDR StartTime 2025-02-13 07:08:05 - End Time 2025-02-13 10:08:05 [2025-02-13 10:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465697', 'tblTempUsageDetail_20' ) start [2025-02-13 10:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465697', 'tblTempUsageDetail_20' ) end [2025-02-13 10:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465697', 'tblTempVendorCDR_20' ) start [2025-02-13 10:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465697', 'tblTempVendorCDR_20' ) end [2025-02-13 10:08:21] Production.INFO: ProcessCDR(1,14465697,1,1,2) [2025-02-13 10:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465697', 'tblTempUsageDetail_20' ) start [2025-02-13 10:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465697', 'tblTempUsageDetail_20' ) end [2025-02-13 10:08:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 10:08:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 10:08:26] Production.INFO: ==18181== Releasing lock... [2025-02-13 10:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 10:08:26] Production.INFO: 46 MB #Memory Used# [2025-02-13 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 07:09:05 [end_date_ymd] => 2025-02-13 10:09:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 07:09:05' and `end` < '2025-02-13 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-02-13 10:09:19] Production.INFO: count ==2378 [2025-02-13 10:09:20] Production.ERROR: pbx CDR StartTime 2025-02-13 07:09:05 - End Time 2025-02-13 10:09:05 [2025-02-13 10:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465702', 'tblTempUsageDetail_20' ) start [2025-02-13 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465702', 'tblTempUsageDetail_20' ) end [2025-02-13 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465702', 'tblTempVendorCDR_20' ) start [2025-02-13 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465702', 'tblTempVendorCDR_20' ) end [2025-02-13 10:09:20] Production.INFO: ProcessCDR(1,14465702,1,1,2) [2025-02-13 10:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465702', 'tblTempUsageDetail_20' ) start [2025-02-13 10:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465702', 'tblTempUsageDetail_20' ) end [2025-02-13 10:09:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 10:09:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 10:09:26] Production.INFO: ==18258== Releasing lock... [2025-02-13 10:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 10:09:26] Production.INFO: 46 MB #Memory Used# [2025-02-13 10:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 07:10:07 [end_date_ymd] => 2025-02-13 10:10:07 [RateCDR] => 1 ) [2025-02-13 10: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-02-13 07:10:07' and `end` < '2025-02-13 10: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-02-13 10:10:20] Production.INFO: count ==2399 [2025-02-13 10:10:21] Production.ERROR: pbx CDR StartTime 2025-02-13 07:10:07 - End Time 2025-02-13 10:10:07 [2025-02-13 10:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465708', 'tblTempUsageDetail_20' ) start [2025-02-13 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465708', 'tblTempUsageDetail_20' ) end [2025-02-13 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465708', 'tblTempVendorCDR_20' ) start [2025-02-13 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465708', 'tblTempVendorCDR_20' ) end [2025-02-13 10:10:21] Production.INFO: ProcessCDR(1,14465708,1,1,2) [2025-02-13 10:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465708', 'tblTempUsageDetail_20' ) start [2025-02-13 10:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465708', 'tblTempUsageDetail_20' ) end [2025-02-13 10:10:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 10:10:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 10:10:27] Production.INFO: ==18340== Releasing lock... [2025-02-13 10:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 10:10:27] Production.INFO: 46 MB #Memory Used# [2025-02-13 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 07:11:05 [end_date_ymd] => 2025-02-13 10:11:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 07:11:05' and `end` < '2025-02-13 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-02-13 10:11:24] Production.INFO: count ==2531 [2025-02-13 10:11:25] Production.ERROR: pbx CDR StartTime 2025-02-13 07:11:05 - End Time 2025-02-13 10:11:05 [2025-02-13 10:11:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 10:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465713', 'tblTempUsageDetail_20' ) start [2025-02-13 10:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465713', 'tblTempUsageDetail_20' ) end [2025-02-13 10:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465713', 'tblTempVendorCDR_20' ) start [2025-02-13 10:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465713', 'tblTempVendorCDR_20' ) end [2025-02-13 10:11:25] Production.INFO: ProcessCDR(1,14465713,1,1,2) [2025-02-13 10:11:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:11:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:11:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:11:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465713', 'tblTempUsageDetail_20' ) start [2025-02-13 10:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465713', 'tblTempUsageDetail_20' ) end [2025-02-13 10:11:30] Production.ERROR: pbx prc_insertCDR start [2025-02-13 10:11:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 10:11:30] Production.INFO: ==18422== Releasing lock... [2025-02-13 10:11:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 10:11:30] Production.INFO: 47 MB #Memory Used# [2025-02-13 10:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 07:12:05 [end_date_ymd] => 2025-02-13 10:12:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 07:12:05' and `end` < '2025-02-13 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-02-13 10:12:19] Production.INFO: count ==2541 [2025-02-13 10:12:20] Production.ERROR: pbx CDR StartTime 2025-02-13 07:12:05 - End Time 2025-02-13 10:12:05 [2025-02-13 10:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465718', 'tblTempUsageDetail_20' ) start [2025-02-13 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465718', 'tblTempUsageDetail_20' ) end [2025-02-13 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465718', 'tblTempVendorCDR_20' ) start [2025-02-13 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465718', 'tblTempVendorCDR_20' ) end [2025-02-13 10:12:20] Production.INFO: ProcessCDR(1,14465718,1,1,2) [2025-02-13 10:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465718', 'tblTempUsageDetail_20' ) start [2025-02-13 10:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465718', 'tblTempUsageDetail_20' ) end [2025-02-13 10:12:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 10:12:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 10:12:25] Production.INFO: ==18511== Releasing lock... [2025-02-13 10:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 10:12:25] Production.INFO: 47.25 MB #Memory Used# [2025-02-13 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 07:13:05 [end_date_ymd] => 2025-02-13 10:13:05 [RateCDR] => 1 ) [2025-02-13 10: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-02-13 07:13:05' and `end` < '2025-02-13 10: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-02-13 10:13:19] Production.INFO: count ==2544 [2025-02-13 10:13:20] Production.ERROR: pbx CDR StartTime 2025-02-13 07:13:05 - End Time 2025-02-13 10:13:05 [2025-02-13 10:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465723', 'tblTempUsageDetail_20' ) start [2025-02-13 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465723', 'tblTempUsageDetail_20' ) end [2025-02-13 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465723', 'tblTempVendorCDR_20' ) start [2025-02-13 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465723', 'tblTempVendorCDR_20' ) end [2025-02-13 10:13:20] Production.INFO: ProcessCDR(1,14465723,1,1,2) [2025-02-13 10:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465723', 'tblTempUsageDetail_20' ) start [2025-02-13 10:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465723', 'tblTempUsageDetail_20' ) end [2025-02-13 10:13:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 10:13:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 10:13:26] Production.INFO: ==18589== Releasing lock... [2025-02-13 10:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 10:13:26] Production.INFO: 47 MB #Memory Used# [2025-02-13 10:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 07:14:06 [end_date_ymd] => 2025-02-13 10:14:06 [RateCDR] => 1 ) [2025-02-13 10: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-02-13 07:14:06' and `end` < '2025-02-13 10: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-02-13 10:14:22] Production.INFO: count ==2548 [2025-02-13 10:14:23] Production.ERROR: pbx CDR StartTime 2025-02-13 07:14:06 - End Time 2025-02-13 10:14:06 [2025-02-13 10:14:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 10:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465728', 'tblTempUsageDetail_20' ) start [2025-02-13 10:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465728', 'tblTempUsageDetail_20' ) end [2025-02-13 10:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465728', 'tblTempVendorCDR_20' ) start [2025-02-13 10:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465728', 'tblTempVendorCDR_20' ) end [2025-02-13 10:14:23] Production.INFO: ProcessCDR(1,14465728,1,1,2) [2025-02-13 10:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:14:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:14:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465728', 'tblTempUsageDetail_20' ) start [2025-02-13 10:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465728', 'tblTempUsageDetail_20' ) end [2025-02-13 10:14:28] Production.ERROR: pbx prc_insertCDR start [2025-02-13 10:14:28] Production.ERROR: pbx prc_insertCDR end [2025-02-13 10:14:28] Production.INFO: ==18665== Releasing lock... [2025-02-13 10:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 10:14:28] Production.INFO: 47.25 MB #Memory Used# [2025-02-13 10:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 07:15:06 [end_date_ymd] => 2025-02-13 10:15:06 [RateCDR] => 1 ) [2025-02-13 10: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-02-13 07:15:06' and `end` < '2025-02-13 10: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-02-13 10:15:21] Production.INFO: count ==2550 [2025-02-13 10:15:23] Production.ERROR: pbx CDR StartTime 2025-02-13 07:15:06 - End Time 2025-02-13 10:15:06 [2025-02-13 10:15:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 10:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465733', 'tblTempUsageDetail_20' ) start [2025-02-13 10:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465733', 'tblTempUsageDetail_20' ) end [2025-02-13 10:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465733', 'tblTempVendorCDR_20' ) start [2025-02-13 10:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465733', 'tblTempVendorCDR_20' ) end [2025-02-13 10:15:23] Production.INFO: ProcessCDR(1,14465733,1,1,2) [2025-02-13 10:15:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:15:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465733', 'tblTempUsageDetail_20' ) start [2025-02-13 10:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465733', 'tblTempUsageDetail_20' ) end [2025-02-13 10:15:28] Production.ERROR: pbx prc_insertCDR start [2025-02-13 10:15:28] Production.ERROR: pbx prc_insertCDR end [2025-02-13 10:15:28] Production.INFO: ==18744== Releasing lock... [2025-02-13 10:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 10:15:28] Production.INFO: 47.25 MB #Memory Used# [2025-02-13 10:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 07:16:06 [end_date_ymd] => 2025-02-13 10:16:06 [RateCDR] => 1 ) [2025-02-13 10: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-02-13 07:16:06' and `end` < '2025-02-13 10: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-02-13 10:16:22] Production.INFO: count ==2558 [2025-02-13 10:16:23] Production.ERROR: pbx CDR StartTime 2025-02-13 07:16:06 - End Time 2025-02-13 10:16:06 [2025-02-13 10:16:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 10:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465738', 'tblTempUsageDetail_20' ) start [2025-02-13 10:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465738', 'tblTempUsageDetail_20' ) end [2025-02-13 10:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465738', 'tblTempVendorCDR_20' ) start [2025-02-13 10:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465738', 'tblTempVendorCDR_20' ) end [2025-02-13 10:16:23] Production.INFO: ProcessCDR(1,14465738,1,1,2) [2025-02-13 10:16:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:16:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:16:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:16:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465738', 'tblTempUsageDetail_20' ) start [2025-02-13 10:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465738', 'tblTempUsageDetail_20' ) end [2025-02-13 10:16:29] Production.ERROR: pbx prc_insertCDR start [2025-02-13 10:16:29] Production.ERROR: pbx prc_insertCDR end [2025-02-13 10:16:29] Production.INFO: ==18821== Releasing lock... [2025-02-13 10:16:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 10:16:29] Production.INFO: 47.25 MB #Memory Used# [2025-02-13 10:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 07:17:06 [end_date_ymd] => 2025-02-13 10:17:06 [RateCDR] => 1 ) [2025-02-13 10: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-02-13 07:17:06' and `end` < '2025-02-13 10: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-02-13 10:17:20] Production.INFO: count ==2570 [2025-02-13 10:17:21] Production.ERROR: pbx CDR StartTime 2025-02-13 07:17:06 - End Time 2025-02-13 10:17:06 [2025-02-13 10:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 10:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465743', 'tblTempUsageDetail_20' ) start [2025-02-13 10:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465743', 'tblTempUsageDetail_20' ) end [2025-02-13 10:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465743', 'tblTempVendorCDR_20' ) start [2025-02-13 10:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465743', 'tblTempVendorCDR_20' ) end [2025-02-13 10:17:21] Production.INFO: ProcessCDR(1,14465743,1,1,2) [2025-02-13 10:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465743', 'tblTempUsageDetail_20' ) start [2025-02-13 10:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465743', 'tblTempUsageDetail_20' ) end [2025-02-13 10:17:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 10:17:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 10:17:26] Production.INFO: ==18899== Releasing lock... [2025-02-13 10:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 10:17:26] Production.INFO: 47.25 MB #Memory Used# [2025-02-13 10:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 07:18:06 [end_date_ymd] => 2025-02-13 10:18:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 07:18:06' and `end` < '2025-02-13 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-02-13 10:18:23] Production.INFO: count ==2609 [2025-02-13 10:18:24] Production.ERROR: pbx CDR StartTime 2025-02-13 07:18:06 - End Time 2025-02-13 10:18:06 [2025-02-13 10:18:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 10:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465748', 'tblTempUsageDetail_20' ) start [2025-02-13 10:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465748', 'tblTempUsageDetail_20' ) end [2025-02-13 10:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465748', 'tblTempVendorCDR_20' ) start [2025-02-13 10:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465748', 'tblTempVendorCDR_20' ) end [2025-02-13 10:18:25] Production.INFO: ProcessCDR(1,14465748,1,1,2) [2025-02-13 10:18:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:18:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:18:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:18:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465748', 'tblTempUsageDetail_20' ) start [2025-02-13 10:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465748', 'tblTempUsageDetail_20' ) end [2025-02-13 10:18:30] Production.ERROR: pbx prc_insertCDR start [2025-02-13 10:18:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 10:18:30] Production.INFO: ==18975== Releasing lock... [2025-02-13 10:18:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 10:18:30] Production.INFO: 47.75 MB #Memory Used# [2025-02-13 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 07:19:05 [end_date_ymd] => 2025-02-13 10:19:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 07:19:05' and `end` < '2025-02-13 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-02-13 10:19:20] Production.INFO: count ==2619 [2025-02-13 10:19:21] Production.ERROR: pbx CDR StartTime 2025-02-13 07:19:05 - End Time 2025-02-13 10:19:05 [2025-02-13 10:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 10:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465753', 'tblTempUsageDetail_20' ) start [2025-02-13 10:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465753', 'tblTempUsageDetail_20' ) end [2025-02-13 10:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465753', 'tblTempVendorCDR_20' ) start [2025-02-13 10:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465753', 'tblTempVendorCDR_20' ) end [2025-02-13 10:19:21] Production.INFO: ProcessCDR(1,14465753,1,1,2) [2025-02-13 10:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465753', 'tblTempUsageDetail_20' ) start [2025-02-13 10:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465753', 'tblTempUsageDetail_20' ) end [2025-02-13 10:19:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 10:19:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 10:19:26] Production.INFO: ==19050== Releasing lock... [2025-02-13 10:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 10:19:26] Production.INFO: 47.75 MB #Memory Used# [2025-02-13 10:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 07:20:07 [end_date_ymd] => 2025-02-13 10:20:07 [RateCDR] => 1 ) [2025-02-13 10: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-02-13 07:20:07' and `end` < '2025-02-13 10: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-02-13 10:20:22] Production.INFO: count ==2633 [2025-02-13 10:20:23] Production.ERROR: pbx CDR StartTime 2025-02-13 07:20:07 - End Time 2025-02-13 10:20:07 [2025-02-13 10:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 10:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465759', 'tblTempUsageDetail_20' ) start [2025-02-13 10:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465759', 'tblTempUsageDetail_20' ) end [2025-02-13 10:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465759', 'tblTempVendorCDR_20' ) start [2025-02-13 10:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465759', 'tblTempVendorCDR_20' ) end [2025-02-13 10:20:23] Production.INFO: ProcessCDR(1,14465759,1,1,2) [2025-02-13 10:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465759', 'tblTempUsageDetail_20' ) start [2025-02-13 10:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465759', 'tblTempUsageDetail_20' ) end [2025-02-13 10:20:29] Production.ERROR: pbx prc_insertCDR start [2025-02-13 10:20:29] Production.ERROR: pbx prc_insertCDR end [2025-02-13 10:20:29] Production.INFO: ==19177== Releasing lock... [2025-02-13 10:20:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 10:20:29] Production.INFO: 47.75 MB #Memory Used# [2025-02-13 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 07:21:05 [end_date_ymd] => 2025-02-13 10:21:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 07:21:05' and `end` < '2025-02-13 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-02-13 10:21:23] Production.INFO: count ==2718 [2025-02-13 10:21:24] Production.ERROR: pbx CDR StartTime 2025-02-13 07:21:05 - End Time 2025-02-13 10:21:05 [2025-02-13 10:21:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 10:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465764', 'tblTempUsageDetail_20' ) start [2025-02-13 10:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465764', 'tblTempUsageDetail_20' ) end [2025-02-13 10:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465764', 'tblTempVendorCDR_20' ) start [2025-02-13 10:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465764', 'tblTempVendorCDR_20' ) end [2025-02-13 10:21:24] Production.INFO: ProcessCDR(1,14465764,1,1,2) [2025-02-13 10:21:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:21:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:21:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:21:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465764', 'tblTempUsageDetail_20' ) start [2025-02-13 10:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465764', 'tblTempUsageDetail_20' ) end [2025-02-13 10:21:29] Production.ERROR: pbx prc_insertCDR start [2025-02-13 10:21:29] Production.ERROR: pbx prc_insertCDR end [2025-02-13 10:21:29] Production.INFO: ==19299== Releasing lock... [2025-02-13 10:21:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 10:21:29] Production.INFO: 48.5 MB #Memory Used# [2025-02-13 10:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 07:22:06 [end_date_ymd] => 2025-02-13 10:22:06 [RateCDR] => 1 ) [2025-02-13 10: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-02-13 07:22:06' and `end` < '2025-02-13 10: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-02-13 10:22:19] Production.INFO: count ==2719 [2025-02-13 10:22:21] Production.ERROR: pbx CDR StartTime 2025-02-13 07:22:06 - End Time 2025-02-13 10:22:06 [2025-02-13 10:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 10:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465769', 'tblTempUsageDetail_20' ) start [2025-02-13 10:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465769', 'tblTempUsageDetail_20' ) end [2025-02-13 10:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465769', 'tblTempVendorCDR_20' ) start [2025-02-13 10:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465769', 'tblTempVendorCDR_20' ) end [2025-02-13 10:22:21] Production.INFO: ProcessCDR(1,14465769,1,1,2) [2025-02-13 10:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465769', 'tblTempUsageDetail_20' ) start [2025-02-13 10:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465769', 'tblTempUsageDetail_20' ) end [2025-02-13 10:22:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 10:22:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 10:22:26] Production.INFO: ==19418== Releasing lock... [2025-02-13 10:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 10:22:26] Production.INFO: 48.5 MB #Memory Used# [2025-02-13 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 07:23:05 [end_date_ymd] => 2025-02-13 10:23:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 07:23:05' and `end` < '2025-02-13 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-02-13 10:23:19] Production.INFO: count ==2747 [2025-02-13 10:23:20] Production.ERROR: pbx CDR StartTime 2025-02-13 07:23:05 - End Time 2025-02-13 10:23:05 [2025-02-13 10:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465774', 'tblTempUsageDetail_20' ) start [2025-02-13 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465774', 'tblTempUsageDetail_20' ) end [2025-02-13 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465774', 'tblTempVendorCDR_20' ) start [2025-02-13 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465774', 'tblTempVendorCDR_20' ) end [2025-02-13 10:23:20] Production.INFO: ProcessCDR(1,14465774,1,1,2) [2025-02-13 10:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465774', 'tblTempUsageDetail_20' ) start [2025-02-13 10:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465774', 'tblTempUsageDetail_20' ) end [2025-02-13 10:23:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 10:23:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 10:23:25] Production.INFO: ==19535== Releasing lock... [2025-02-13 10:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 10:23:25] Production.INFO: 48.75 MB #Memory Used# [2025-02-13 10:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 07:24:06 [end_date_ymd] => 2025-02-13 10:24:06 [RateCDR] => 1 ) [2025-02-13 10: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-02-13 07:24:06' and `end` < '2025-02-13 10: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-02-13 10:24:20] Production.INFO: count ==2766 [2025-02-13 10:24:22] Production.ERROR: pbx CDR StartTime 2025-02-13 07:24:06 - End Time 2025-02-13 10:24:06 [2025-02-13 10:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 10:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465779', 'tblTempUsageDetail_20' ) start [2025-02-13 10:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465779', 'tblTempUsageDetail_20' ) end [2025-02-13 10:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465779', 'tblTempVendorCDR_20' ) start [2025-02-13 10:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465779', 'tblTempVendorCDR_20' ) end [2025-02-13 10:24:22] Production.INFO: ProcessCDR(1,14465779,1,1,2) [2025-02-13 10:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465779', 'tblTempUsageDetail_20' ) start [2025-02-13 10:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465779', 'tblTempUsageDetail_20' ) end [2025-02-13 10:24:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 10:24:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 10:24:27] Production.INFO: ==19699== Releasing lock... [2025-02-13 10:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 10:24:27] Production.INFO: 48.75 MB #Memory Used# [2025-02-13 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 07:25:05 [end_date_ymd] => 2025-02-13 10:25:05 [RateCDR] => 1 ) [2025-02-13 10:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 07:25:05' and `end` < '2025-02-13 10:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-13 10:25:18] Production.INFO: count ==2765 [2025-02-13 10:25:19] Production.ERROR: pbx CDR StartTime 2025-02-13 07:25:05 - End Time 2025-02-13 10:25:05 [2025-02-13 10:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465783', 'tblTempUsageDetail_20' ) start [2025-02-13 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465783', 'tblTempUsageDetail_20' ) end [2025-02-13 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465783', 'tblTempVendorCDR_20' ) start [2025-02-13 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465783', 'tblTempVendorCDR_20' ) end [2025-02-13 10:25:19] Production.INFO: ProcessCDR(1,14465783,1,1,2) [2025-02-13 10:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465783', 'tblTempUsageDetail_20' ) start [2025-02-13 10:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465783', 'tblTempUsageDetail_20' ) end [2025-02-13 10:25:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 10:25:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 10:25:24] Production.INFO: ==19818== Releasing lock... [2025-02-13 10:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 10:25:24] Production.INFO: 48.75 MB #Memory Used# [2025-02-13 10:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 07:26:06 [end_date_ymd] => 2025-02-13 10:26:06 [RateCDR] => 1 ) [2025-02-13 10: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-02-13 07:26:06' and `end` < '2025-02-13 10: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-02-13 10:26:20] Production.INFO: count ==2767 [2025-02-13 10:26:21] Production.ERROR: pbx CDR StartTime 2025-02-13 07:26:06 - End Time 2025-02-13 10:26:06 [2025-02-13 10:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 10:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465789', 'tblTempUsageDetail_20' ) start [2025-02-13 10:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465789', 'tblTempUsageDetail_20' ) end [2025-02-13 10:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465789', 'tblTempVendorCDR_20' ) start [2025-02-13 10:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465789', 'tblTempVendorCDR_20' ) end [2025-02-13 10:26:22] Production.INFO: ProcessCDR(1,14465789,1,1,2) [2025-02-13 10:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465789', 'tblTempUsageDetail_20' ) start [2025-02-13 10:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465789', 'tblTempUsageDetail_20' ) end [2025-02-13 10:26:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 10:26:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 10:26:25] Production.INFO: ==19955== Releasing lock... [2025-02-13 10:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 10:26:25] Production.INFO: 48.75 MB #Memory Used# [2025-02-13 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 07:27:05 [end_date_ymd] => 2025-02-13 10:27:05 [RateCDR] => 1 ) [2025-02-13 10: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-02-13 07:27:05' and `end` < '2025-02-13 10: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-02-13 10:27:20] Production.INFO: count ==2776 [2025-02-13 10:27:21] Production.ERROR: pbx CDR StartTime 2025-02-13 07:27:05 - End Time 2025-02-13 10:27:05 [2025-02-13 10:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 10:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465794', 'tblTempUsageDetail_20' ) start [2025-02-13 10:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465794', 'tblTempUsageDetail_20' ) end [2025-02-13 10:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465794', 'tblTempVendorCDR_20' ) start [2025-02-13 10:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465794', 'tblTempVendorCDR_20' ) end [2025-02-13 10:27:21] Production.INFO: ProcessCDR(1,14465794,1,1,2) [2025-02-13 10:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465794', 'tblTempUsageDetail_20' ) start [2025-02-13 10:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465794', 'tblTempUsageDetail_20' ) end [2025-02-13 10:27:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 10:27:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 10:27:27] Production.INFO: ==20089== Releasing lock... [2025-02-13 10:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 10:27:27] Production.INFO: 49 MB #Memory Used# [2025-02-13 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 07:28:05 [end_date_ymd] => 2025-02-13 10:28:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 07:28:05' and `end` < '2025-02-13 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-02-13 10:28:20] Production.INFO: count ==2782 [2025-02-13 10:28:21] Production.ERROR: pbx CDR StartTime 2025-02-13 07:28:05 - End Time 2025-02-13 10:28:05 [2025-02-13 10:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 10:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465799', 'tblTempUsageDetail_20' ) start [2025-02-13 10:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465799', 'tblTempUsageDetail_20' ) end [2025-02-13 10:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465799', 'tblTempVendorCDR_20' ) start [2025-02-13 10:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465799', 'tblTempVendorCDR_20' ) end [2025-02-13 10:28:21] Production.INFO: ProcessCDR(1,14465799,1,1,2) [2025-02-13 10:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465799', 'tblTempUsageDetail_20' ) start [2025-02-13 10:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465799', 'tblTempUsageDetail_20' ) end [2025-02-13 10:28:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 10:28:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 10:28:27] Production.INFO: ==20206== Releasing lock... [2025-02-13 10:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 10:28:27] Production.INFO: 49 MB #Memory Used# [2025-02-13 10:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 07:29:05 [end_date_ymd] => 2025-02-13 10:29:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 07:29:05' and `end` < '2025-02-13 10: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-02-13 10:29:19] Production.INFO: count ==2785 [2025-02-13 10:29:20] Production.ERROR: pbx CDR StartTime 2025-02-13 07:29:05 - End Time 2025-02-13 10:29:05 [2025-02-13 10:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465804', 'tblTempUsageDetail_20' ) start [2025-02-13 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465804', 'tblTempUsageDetail_20' ) end [2025-02-13 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465804', 'tblTempVendorCDR_20' ) start [2025-02-13 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465804', 'tblTempVendorCDR_20' ) end [2025-02-13 10:29:20] Production.INFO: ProcessCDR(1,14465804,1,1,2) [2025-02-13 10:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465804', 'tblTempUsageDetail_20' ) start [2025-02-13 10:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465804', 'tblTempUsageDetail_20' ) end [2025-02-13 10:29:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 10:29:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 10:29:25] Production.INFO: ==20319== Releasing lock... [2025-02-13 10:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 10:29:25] Production.INFO: 49 MB #Memory Used# [2025-02-13 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 07:30:06 [end_date_ymd] => 2025-02-13 10:30:06 [RateCDR] => 1 ) [2025-02-13 10: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-02-13 07:30:06' and `end` < '2025-02-13 10: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-02-13 10:30:28] Production.INFO: count ==2801 [2025-02-13 10:30:29] Production.ERROR: pbx CDR StartTime 2025-02-13 07:30:06 - End Time 2025-02-13 10:30:06 [2025-02-13 10:30:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 10:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465810', 'tblTempUsageDetail_20' ) start [2025-02-13 10:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465810', 'tblTempUsageDetail_20' ) end [2025-02-13 10:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465810', 'tblTempVendorCDR_20' ) start [2025-02-13 10:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465810', 'tblTempVendorCDR_20' ) end [2025-02-13 10:30:29] Production.INFO: ProcessCDR(1,14465810,1,1,2) [2025-02-13 10:30:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:30:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:30:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:30:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:30:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465810', 'tblTempUsageDetail_20' ) start [2025-02-13 10:30:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465810', 'tblTempUsageDetail_20' ) end [2025-02-13 10:30:34] Production.ERROR: pbx prc_insertCDR start [2025-02-13 10:30:35] Production.ERROR: pbx prc_insertCDR end [2025-02-13 10:30:35] Production.INFO: ==20474== Releasing lock... [2025-02-13 10:30:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 10:30:35] Production.INFO: 49.25 MB #Memory Used# [2025-02-13 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 07:31:05 [end_date_ymd] => 2025-02-13 10:31:05 [RateCDR] => 1 ) [2025-02-13 10: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-02-13 07:31:05' and `end` < '2025-02-13 10: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-02-13 10:31:22] Production.INFO: count ==2870 [2025-02-13 10:31:23] Production.ERROR: pbx CDR StartTime 2025-02-13 07:31:05 - End Time 2025-02-13 10:31:05 [2025-02-13 10:31:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 10:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465815', 'tblTempUsageDetail_20' ) start [2025-02-13 10:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465815', 'tblTempUsageDetail_20' ) end [2025-02-13 10:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465815', 'tblTempVendorCDR_20' ) start [2025-02-13 10:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465815', 'tblTempVendorCDR_20' ) end [2025-02-13 10:31:23] Production.INFO: ProcessCDR(1,14465815,1,1,2) [2025-02-13 10:31:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:31:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:31:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:31:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465815', 'tblTempUsageDetail_20' ) start [2025-02-13 10:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465815', 'tblTempUsageDetail_20' ) end [2025-02-13 10:31:28] Production.ERROR: pbx prc_insertCDR start [2025-02-13 10:31:28] Production.ERROR: pbx prc_insertCDR end [2025-02-13 10:31:28] Production.INFO: ==20613== Releasing lock... [2025-02-13 10:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 10:31:28] Production.INFO: 49.25 MB #Memory Used# [2025-02-13 10:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 07:32:06 [end_date_ymd] => 2025-02-13 10:32:06 [RateCDR] => 1 ) [2025-02-13 10: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-02-13 07:32:06' and `end` < '2025-02-13 10: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-02-13 10:32:19] Production.INFO: count ==2880 [2025-02-13 10:32:21] Production.ERROR: pbx CDR StartTime 2025-02-13 07:32:06 - End Time 2025-02-13 10:32:06 [2025-02-13 10:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 10:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465820', 'tblTempUsageDetail_20' ) start [2025-02-13 10:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465820', 'tblTempUsageDetail_20' ) end [2025-02-13 10:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465820', 'tblTempVendorCDR_20' ) start [2025-02-13 10:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465820', 'tblTempVendorCDR_20' ) end [2025-02-13 10:32:21] Production.INFO: ProcessCDR(1,14465820,1,1,2) [2025-02-13 10:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465820', 'tblTempUsageDetail_20' ) start [2025-02-13 10:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465820', 'tblTempUsageDetail_20' ) end [2025-02-13 10:32:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 10:32:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 10:32:26] Production.INFO: ==20750== Releasing lock... [2025-02-13 10:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 10:32:26] Production.INFO: 49.5 MB #Memory Used# [2025-02-13 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 07:33:05 [end_date_ymd] => 2025-02-13 10:33:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 07:33:05' and `end` < '2025-02-13 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-02-13 10:33:19] Production.INFO: count ==2910 [2025-02-13 10:33:20] Production.ERROR: pbx CDR StartTime 2025-02-13 07:33:05 - End Time 2025-02-13 10:33:05 [2025-02-13 10:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465825', 'tblTempUsageDetail_20' ) start [2025-02-13 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465825', 'tblTempUsageDetail_20' ) end [2025-02-13 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465825', 'tblTempVendorCDR_20' ) start [2025-02-13 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465825', 'tblTempVendorCDR_20' ) end [2025-02-13 10:33:20] Production.INFO: ProcessCDR(1,14465825,1,1,2) [2025-02-13 10:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465825', 'tblTempUsageDetail_20' ) start [2025-02-13 10:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465825', 'tblTempUsageDetail_20' ) end [2025-02-13 10:33:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 10:33:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 10:33:26] Production.INFO: ==20898== Releasing lock... [2025-02-13 10:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 10:33:26] Production.INFO: 49.5 MB #Memory Used# [2025-02-13 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 07:34:05 [end_date_ymd] => 2025-02-13 10:34:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 07:34:05' and `end` < '2025-02-13 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-02-13 10:34:19] Production.INFO: count ==2917 [2025-02-13 10:34:20] Production.ERROR: pbx CDR StartTime 2025-02-13 07:34:05 - End Time 2025-02-13 10:34:05 [2025-02-13 10:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465830', 'tblTempUsageDetail_20' ) start [2025-02-13 10:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465830', 'tblTempUsageDetail_20' ) end [2025-02-13 10:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465830', 'tblTempVendorCDR_20' ) start [2025-02-13 10:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465830', 'tblTempVendorCDR_20' ) end [2025-02-13 10:34:21] Production.INFO: ProcessCDR(1,14465830,1,1,2) [2025-02-13 10:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465830', 'tblTempUsageDetail_20' ) start [2025-02-13 10:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465830', 'tblTempUsageDetail_20' ) end [2025-02-13 10:34:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 10:34:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 10:34:26] Production.INFO: ==21025== Releasing lock... [2025-02-13 10:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 10:34:26] Production.INFO: 49.5 MB #Memory Used# [2025-02-13 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 07:35:05 [end_date_ymd] => 2025-02-13 10:35:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 07:35:05' and `end` < '2025-02-13 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-02-13 10:35:19] Production.INFO: count ==2919 [2025-02-13 10:35:21] Production.ERROR: pbx CDR StartTime 2025-02-13 07:35:05 - End Time 2025-02-13 10:35:05 [2025-02-13 10:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 10:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465835', 'tblTempUsageDetail_20' ) start [2025-02-13 10:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465835', 'tblTempUsageDetail_20' ) end [2025-02-13 10:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465835', 'tblTempVendorCDR_20' ) start [2025-02-13 10:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465835', 'tblTempVendorCDR_20' ) end [2025-02-13 10:35:21] Production.INFO: ProcessCDR(1,14465835,1,1,2) [2025-02-13 10:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465835', 'tblTempUsageDetail_20' ) start [2025-02-13 10:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465835', 'tblTempUsageDetail_20' ) end [2025-02-13 10:35:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 10:35:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 10:35:24] Production.INFO: ==21175== Releasing lock... [2025-02-13 10:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 10:35:24] Production.INFO: 49.5 MB #Memory Used# [2025-02-13 10:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 07:36:06 [end_date_ymd] => 2025-02-13 10:36:06 [RateCDR] => 1 ) [2025-02-13 10: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-02-13 07:36:06' and `end` < '2025-02-13 10: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-02-13 10:36:20] Production.INFO: count ==2919 [2025-02-13 10:36:22] Production.ERROR: pbx CDR StartTime 2025-02-13 07:36:06 - End Time 2025-02-13 10:36:06 [2025-02-13 10:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 10:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465840', 'tblTempUsageDetail_20' ) start [2025-02-13 10:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465840', 'tblTempUsageDetail_20' ) end [2025-02-13 10:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465840', 'tblTempVendorCDR_20' ) start [2025-02-13 10:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465840', 'tblTempVendorCDR_20' ) end [2025-02-13 10:36:22] Production.INFO: ProcessCDR(1,14465840,1,1,2) [2025-02-13 10:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465840', 'tblTempUsageDetail_20' ) start [2025-02-13 10:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465840', 'tblTempUsageDetail_20' ) end [2025-02-13 10:36:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 10:36:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 10:36:27] Production.INFO: ==21294== Releasing lock... [2025-02-13 10:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 10:36:27] Production.INFO: 49.5 MB #Memory Used# [2025-02-13 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 07:37:05 [end_date_ymd] => 2025-02-13 10:37:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 07:37:05' and `end` < '2025-02-13 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-02-13 10:37:22] Production.INFO: count ==2919 [2025-02-13 10:37:24] Production.ERROR: pbx CDR StartTime 2025-02-13 07:37:05 - End Time 2025-02-13 10:37:05 [2025-02-13 10:37:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 10:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465845', 'tblTempUsageDetail_20' ) start [2025-02-13 10:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465845', 'tblTempUsageDetail_20' ) end [2025-02-13 10:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465845', 'tblTempVendorCDR_20' ) start [2025-02-13 10:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465845', 'tblTempVendorCDR_20' ) end [2025-02-13 10:37:24] Production.INFO: ProcessCDR(1,14465845,1,1,2) [2025-02-13 10:37:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:37:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:37:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:37:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465845', 'tblTempUsageDetail_20' ) start [2025-02-13 10:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465845', 'tblTempUsageDetail_20' ) end [2025-02-13 10:37:29] Production.ERROR: pbx prc_insertCDR start [2025-02-13 10:37:29] Production.ERROR: pbx prc_insertCDR end [2025-02-13 10:37:29] Production.INFO: ==21441== Releasing lock... [2025-02-13 10:37:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 10:37:29] Production.INFO: 49.5 MB #Memory Used# [2025-02-13 10:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 07:38:06 [end_date_ymd] => 2025-02-13 10:38:06 [RateCDR] => 1 ) [2025-02-13 10: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-02-13 07:38:06' and `end` < '2025-02-13 10: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-02-13 10:38:24] Production.INFO: count ==2933 [2025-02-13 10:38:25] Production.ERROR: pbx CDR StartTime 2025-02-13 07:38:06 - End Time 2025-02-13 10:38:06 [2025-02-13 10:38:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 10:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465850', 'tblTempUsageDetail_20' ) start [2025-02-13 10:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465850', 'tblTempUsageDetail_20' ) end [2025-02-13 10:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465850', 'tblTempVendorCDR_20' ) start [2025-02-13 10:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465850', 'tblTempVendorCDR_20' ) end [2025-02-13 10:38:25] Production.INFO: ProcessCDR(1,14465850,1,1,2) [2025-02-13 10:38:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:38:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:38:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:38:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:38:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465850', 'tblTempUsageDetail_20' ) start [2025-02-13 10:38:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465850', 'tblTempUsageDetail_20' ) end [2025-02-13 10:38:30] Production.ERROR: pbx prc_insertCDR start [2025-02-13 10:38:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 10:38:30] Production.INFO: ==21556== Releasing lock... [2025-02-13 10:38:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 10:38:30] Production.INFO: 49.5 MB #Memory Used# [2025-02-13 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 07:39:05 [end_date_ymd] => 2025-02-13 10:39:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 07:39:05' and `end` < '2025-02-13 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-02-13 10:39:20] Production.INFO: count ==2935 [2025-02-13 10:39:21] Production.ERROR: pbx CDR StartTime 2025-02-13 07:39:05 - End Time 2025-02-13 10:39:05 [2025-02-13 10:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 10:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465855', 'tblTempUsageDetail_20' ) start [2025-02-13 10:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465855', 'tblTempUsageDetail_20' ) end [2025-02-13 10:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465855', 'tblTempVendorCDR_20' ) start [2025-02-13 10:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465855', 'tblTempVendorCDR_20' ) end [2025-02-13 10:39:22] Production.INFO: ProcessCDR(1,14465855,1,1,2) [2025-02-13 10:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465855', 'tblTempUsageDetail_20' ) start [2025-02-13 10:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465855', 'tblTempUsageDetail_20' ) end [2025-02-13 10:39:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 10:39:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 10:39:27] Production.INFO: ==21699== Releasing lock... [2025-02-13 10:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 10:39:27] Production.INFO: 49.75 MB #Memory Used# [2025-02-13 10:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 07:40:07 [end_date_ymd] => 2025-02-13 10:40:07 [RateCDR] => 1 ) [2025-02-13 10: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-02-13 07:40:07' and `end` < '2025-02-13 10: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-02-13 10:40:24] Production.INFO: count ==2948 [2025-02-13 10:40:26] Production.ERROR: pbx CDR StartTime 2025-02-13 07:40:07 - End Time 2025-02-13 10:40:07 [2025-02-13 10:40:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 10:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465861', 'tblTempUsageDetail_20' ) start [2025-02-13 10:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465861', 'tblTempUsageDetail_20' ) end [2025-02-13 10:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465861', 'tblTempVendorCDR_20' ) start [2025-02-13 10:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465861', 'tblTempVendorCDR_20' ) end [2025-02-13 10:40:26] Production.INFO: ProcessCDR(1,14465861,1,1,2) [2025-02-13 10:40:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:40:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:40:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:40:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465861', 'tblTempUsageDetail_20' ) start [2025-02-13 10:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465861', 'tblTempUsageDetail_20' ) end [2025-02-13 10:40:31] Production.ERROR: pbx prc_insertCDR start [2025-02-13 10:40:32] Production.ERROR: pbx prc_insertCDR end [2025-02-13 10:40:32] Production.INFO: ==21780== Releasing lock... [2025-02-13 10:40:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 10:40:32] Production.INFO: 49.75 MB #Memory Used# [2025-02-13 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 07:41:05 [end_date_ymd] => 2025-02-13 10:41:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 07:41:05' and `end` < '2025-02-13 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-02-13 10:41:22] Production.INFO: count ==3062 [2025-02-13 10:41:23] Production.ERROR: pbx CDR StartTime 2025-02-13 07:41:05 - End Time 2025-02-13 10:41:05 [2025-02-13 10:41:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 10:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465866', 'tblTempUsageDetail_20' ) start [2025-02-13 10:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465866', 'tblTempUsageDetail_20' ) end [2025-02-13 10:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465866', 'tblTempVendorCDR_20' ) start [2025-02-13 10:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465866', 'tblTempVendorCDR_20' ) end [2025-02-13 10:41:23] Production.INFO: ProcessCDR(1,14465866,1,1,2) [2025-02-13 10:41:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:41:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:41:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:41:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465866', 'tblTempUsageDetail_20' ) start [2025-02-13 10:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465866', 'tblTempUsageDetail_20' ) end [2025-02-13 10:41:29] Production.ERROR: pbx prc_insertCDR start [2025-02-13 10:41:29] Production.ERROR: pbx prc_insertCDR end [2025-02-13 10:41:29] Production.INFO: ==21879== Releasing lock... [2025-02-13 10:41:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 10:41:29] Production.INFO: 51 MB #Memory Used# [2025-02-13 10:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 07:42:06 [end_date_ymd] => 2025-02-13 10:42:06 [RateCDR] => 1 ) [2025-02-13 10: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-02-13 07:42:06' and `end` < '2025-02-13 10: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-02-13 10:42:22] Production.INFO: count ==3068 [2025-02-13 10:42:24] Production.ERROR: pbx CDR StartTime 2025-02-13 07:42:06 - End Time 2025-02-13 10:42:06 [2025-02-13 10:42:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 10:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465871', 'tblTempUsageDetail_20' ) start [2025-02-13 10:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465871', 'tblTempUsageDetail_20' ) end [2025-02-13 10:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465871', 'tblTempVendorCDR_20' ) start [2025-02-13 10:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465871', 'tblTempVendorCDR_20' ) end [2025-02-13 10:42:24] Production.INFO: ProcessCDR(1,14465871,1,1,2) [2025-02-13 10:42:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:42:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:42:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:42:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465871', 'tblTempUsageDetail_20' ) start [2025-02-13 10:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465871', 'tblTempUsageDetail_20' ) end [2025-02-13 10:42:29] Production.ERROR: pbx prc_insertCDR start [2025-02-13 10:42:29] Production.ERROR: pbx prc_insertCDR end [2025-02-13 10:42:29] Production.INFO: ==21950== Releasing lock... [2025-02-13 10:42:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 10:42:29] Production.INFO: 51 MB #Memory Used# [2025-02-13 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 07:43:05 [end_date_ymd] => 2025-02-13 10:43:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 07:43:05' and `end` < '2025-02-13 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-02-13 10:43:21] Production.INFO: count ==3080 [2025-02-13 10:43:22] Production.ERROR: pbx CDR StartTime 2025-02-13 07:43:05 - End Time 2025-02-13 10:43:05 [2025-02-13 10:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 10:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465876', 'tblTempUsageDetail_20' ) start [2025-02-13 10:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465876', 'tblTempUsageDetail_20' ) end [2025-02-13 10:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465876', 'tblTempVendorCDR_20' ) start [2025-02-13 10:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465876', 'tblTempVendorCDR_20' ) end [2025-02-13 10:43:22] Production.INFO: ProcessCDR(1,14465876,1,1,2) [2025-02-13 10:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465876', 'tblTempUsageDetail_20' ) start [2025-02-13 10:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465876', 'tblTempUsageDetail_20' ) end [2025-02-13 10:43:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 10:43:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 10:43:27] Production.INFO: ==22058== Releasing lock... [2025-02-13 10:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 10:43:27] Production.INFO: 51.5 MB #Memory Used# [2025-02-13 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 07:44:05 [end_date_ymd] => 2025-02-13 10:44:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 07:44:05' and `end` < '2025-02-13 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-02-13 10:44:27] Production.INFO: count ==3077 [2025-02-13 10:44:28] Production.ERROR: pbx CDR StartTime 2025-02-13 07:44:05 - End Time 2025-02-13 10:44:05 [2025-02-13 10:44:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 10:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465881', 'tblTempUsageDetail_20' ) start [2025-02-13 10:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465881', 'tblTempUsageDetail_20' ) end [2025-02-13 10:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465881', 'tblTempVendorCDR_20' ) start [2025-02-13 10:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465881', 'tblTempVendorCDR_20' ) end [2025-02-13 10:44:28] Production.INFO: ProcessCDR(1,14465881,1,1,2) [2025-02-13 10:44:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:44:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:44:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:44:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:44:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465881', 'tblTempUsageDetail_20' ) start [2025-02-13 10:44:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465881', 'tblTempUsageDetail_20' ) end [2025-02-13 10:44:33] Production.ERROR: pbx prc_insertCDR start [2025-02-13 10:44:33] Production.ERROR: pbx prc_insertCDR end [2025-02-13 10:44:33] Production.INFO: ==22135== Releasing lock... [2025-02-13 10:44:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 10:44:33] Production.INFO: 51.25 MB #Memory Used# [2025-02-13 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 07:45:05 [end_date_ymd] => 2025-02-13 10:45:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 07:45:05' and `end` < '2025-02-13 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-02-13 10:45:25] Production.INFO: count ==3090 [2025-02-13 10:45:26] Production.ERROR: pbx CDR StartTime 2025-02-13 07:45:05 - End Time 2025-02-13 10:45:05 [2025-02-13 10:45:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 10:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465886', 'tblTempUsageDetail_20' ) start [2025-02-13 10:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465886', 'tblTempUsageDetail_20' ) end [2025-02-13 10:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465886', 'tblTempVendorCDR_20' ) start [2025-02-13 10:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465886', 'tblTempVendorCDR_20' ) end [2025-02-13 10:45:27] Production.INFO: ProcessCDR(1,14465886,1,1,2) [2025-02-13 10:45:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:45:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:45:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:45:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:45:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465886', 'tblTempUsageDetail_20' ) start [2025-02-13 10:45:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465886', 'tblTempUsageDetail_20' ) end [2025-02-13 10:45:32] Production.ERROR: pbx prc_insertCDR start [2025-02-13 10:45:32] Production.ERROR: pbx prc_insertCDR end [2025-02-13 10:45:32] Production.INFO: ==22233== Releasing lock... [2025-02-13 10:45:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 10:45:32] Production.INFO: 51.25 MB #Memory Used# [2025-02-13 10:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 07:46:06 [end_date_ymd] => 2025-02-13 10:46:06 [RateCDR] => 1 ) [2025-02-13 10: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-02-13 07:46:06' and `end` < '2025-02-13 10: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-02-13 10:46:22] Production.INFO: count ==3106 [2025-02-13 10:46:23] Production.ERROR: pbx CDR StartTime 2025-02-13 07:46:06 - End Time 2025-02-13 10:46:06 [2025-02-13 10:46:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 10:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465891', 'tblTempUsageDetail_20' ) start [2025-02-13 10:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465891', 'tblTempUsageDetail_20' ) end [2025-02-13 10:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465891', 'tblTempVendorCDR_20' ) start [2025-02-13 10:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465891', 'tblTempVendorCDR_20' ) end [2025-02-13 10:46:23] Production.INFO: ProcessCDR(1,14465891,1,1,2) [2025-02-13 10:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:46:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:46:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465891', 'tblTempUsageDetail_20' ) start [2025-02-13 10:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465891', 'tblTempUsageDetail_20' ) end [2025-02-13 10:46:28] Production.ERROR: pbx prc_insertCDR start [2025-02-13 10:46:28] Production.ERROR: pbx prc_insertCDR end [2025-02-13 10:46:28] Production.INFO: ==22320== Releasing lock... [2025-02-13 10:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 10:46:28] Production.INFO: 51.25 MB #Memory Used# [2025-02-13 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 07:47:05 [end_date_ymd] => 2025-02-13 10:47:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 07:47:05' and `end` < '2025-02-13 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-02-13 10:47:21] Production.INFO: count ==3120 [2025-02-13 10:47:23] Production.ERROR: pbx CDR StartTime 2025-02-13 07:47:05 - End Time 2025-02-13 10:47:05 [2025-02-13 10:47:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 10:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465896', 'tblTempUsageDetail_20' ) start [2025-02-13 10:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465896', 'tblTempUsageDetail_20' ) end [2025-02-13 10:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465896', 'tblTempVendorCDR_20' ) start [2025-02-13 10:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465896', 'tblTempVendorCDR_20' ) end [2025-02-13 10:47:23] Production.INFO: ProcessCDR(1,14465896,1,1,2) [2025-02-13 10:47:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:47:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465896', 'tblTempUsageDetail_20' ) start [2025-02-13 10:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465896', 'tblTempUsageDetail_20' ) end [2025-02-13 10:47:28] Production.ERROR: pbx prc_insertCDR start [2025-02-13 10:47:28] Production.ERROR: pbx prc_insertCDR end [2025-02-13 10:47:28] Production.INFO: ==22411== Releasing lock... [2025-02-13 10:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 10:47:28] Production.INFO: 52 MB #Memory Used# [2025-02-13 10:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 07:48:06 [end_date_ymd] => 2025-02-13 10:48:06 [RateCDR] => 1 ) [2025-02-13 10: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-02-13 07:48:06' and `end` < '2025-02-13 10: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-02-13 10:48:26] Production.INFO: count ==3128 [2025-02-13 10:48:28] Production.ERROR: pbx CDR StartTime 2025-02-13 07:48:06 - End Time 2025-02-13 10:48:06 [2025-02-13 10:48:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 10:48:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465901', 'tblTempUsageDetail_20' ) start [2025-02-13 10:48:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465901', 'tblTempUsageDetail_20' ) end [2025-02-13 10:48:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465901', 'tblTempVendorCDR_20' ) start [2025-02-13 10:48:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465901', 'tblTempVendorCDR_20' ) end [2025-02-13 10:48:28] Production.INFO: ProcessCDR(1,14465901,1,1,2) [2025-02-13 10:48:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:48:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:48:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:48:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:48:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465901', 'tblTempUsageDetail_20' ) start [2025-02-13 10:48:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465901', 'tblTempUsageDetail_20' ) end [2025-02-13 10:48:33] Production.ERROR: pbx prc_insertCDR start [2025-02-13 10:48:33] Production.ERROR: pbx prc_insertCDR end [2025-02-13 10:48:33] Production.INFO: ==22493== Releasing lock... [2025-02-13 10:48:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 10:48:33] Production.INFO: 52.25 MB #Memory Used# [2025-02-13 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 07:49:05 [end_date_ymd] => 2025-02-13 10:49:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 07:49:05' and `end` < '2025-02-13 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-02-13 10:49:27] Production.INFO: count ==3145 [2025-02-13 10:49:29] Production.ERROR: pbx CDR StartTime 2025-02-13 07:49:05 - End Time 2025-02-13 10:49:05 [2025-02-13 10:49:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 10:49:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465906', 'tblTempUsageDetail_20' ) start [2025-02-13 10:49:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465906', 'tblTempUsageDetail_20' ) end [2025-02-13 10:49:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465906', 'tblTempVendorCDR_20' ) start [2025-02-13 10:49:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465906', 'tblTempVendorCDR_20' ) end [2025-02-13 10:49:29] Production.INFO: ProcessCDR(1,14465906,1,1,2) [2025-02-13 10:49:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:49:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:49:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:49:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:49:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465906', 'tblTempUsageDetail_20' ) start [2025-02-13 10:49:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465906', 'tblTempUsageDetail_20' ) end [2025-02-13 10:49:34] Production.ERROR: pbx prc_insertCDR start [2025-02-13 10:49:34] Production.ERROR: pbx prc_insertCDR end [2025-02-13 10:49:34] Production.INFO: ==22563== Releasing lock... [2025-02-13 10:49:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 10:49:34] Production.INFO: 51.75 MB #Memory Used# [2025-02-13 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 07:50:06 [end_date_ymd] => 2025-02-13 10:50:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 07:50:06' and `end` < '2025-02-13 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-02-13 10:50:31] Production.INFO: count ==3151 [2025-02-13 10:50:32] Production.ERROR: pbx CDR StartTime 2025-02-13 07:50:06 - End Time 2025-02-13 10:50:06 [2025-02-13 10:50:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 10:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465912', 'tblTempUsageDetail_20' ) start [2025-02-13 10:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465912', 'tblTempUsageDetail_20' ) end [2025-02-13 10:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465912', 'tblTempVendorCDR_20' ) start [2025-02-13 10:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465912', 'tblTempVendorCDR_20' ) end [2025-02-13 10:50:32] Production.INFO: ProcessCDR(1,14465912,1,1,2) [2025-02-13 10:50:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:50:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:50:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:50:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:50:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465912', 'tblTempUsageDetail_20' ) start [2025-02-13 10:50:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465912', 'tblTempUsageDetail_20' ) end [2025-02-13 10:50:38] Production.ERROR: pbx prc_insertCDR start [2025-02-13 10:50:38] Production.ERROR: pbx prc_insertCDR end [2025-02-13 10:50:38] Production.INFO: ==22640== Releasing lock... [2025-02-13 10:50:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 10:50:38] Production.INFO: 51.75 MB #Memory Used# [2025-02-13 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 07:51:05 [end_date_ymd] => 2025-02-13 10:51:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 07:51:05' and `end` < '2025-02-13 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-02-13 10:51:22] Production.INFO: count ==3253 [2025-02-13 10:51:24] Production.ERROR: pbx CDR StartTime 2025-02-13 07:51:05 - End Time 2025-02-13 10:51:05 [2025-02-13 10:51:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 10:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465917', 'tblTempUsageDetail_20' ) start [2025-02-13 10:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465917', 'tblTempUsageDetail_20' ) end [2025-02-13 10:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465917', 'tblTempVendorCDR_20' ) start [2025-02-13 10:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465917', 'tblTempVendorCDR_20' ) end [2025-02-13 10:51:24] Production.INFO: ProcessCDR(1,14465917,1,1,2) [2025-02-13 10:51:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:51:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:51:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:51:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465917', 'tblTempUsageDetail_20' ) start [2025-02-13 10:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465917', 'tblTempUsageDetail_20' ) end [2025-02-13 10:51:29] Production.ERROR: pbx prc_insertCDR start [2025-02-13 10:51:29] Production.ERROR: pbx prc_insertCDR end [2025-02-13 10:51:29] Production.INFO: ==22719== Releasing lock... [2025-02-13 10:51:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 10:51:29] Production.INFO: 53.75 MB #Memory Used# [2025-02-13 10:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 07:52:06 [end_date_ymd] => 2025-02-13 10:52:06 [RateCDR] => 1 ) [2025-02-13 10: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-02-13 07:52:06' and `end` < '2025-02-13 10: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-02-13 10:52:28] Production.INFO: count ==3284 [2025-02-13 10:52:30] Production.ERROR: pbx CDR StartTime 2025-02-13 07:52:06 - End Time 2025-02-13 10:52:06 [2025-02-13 10:52:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 10:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465922', 'tblTempUsageDetail_20' ) start [2025-02-13 10:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465922', 'tblTempUsageDetail_20' ) end [2025-02-13 10:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465922', 'tblTempVendorCDR_20' ) start [2025-02-13 10:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465922', 'tblTempVendorCDR_20' ) end [2025-02-13 10:52:30] Production.INFO: ProcessCDR(1,14465922,1,1,2) [2025-02-13 10:52:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:52:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:52:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:52:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:52:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465922', 'tblTempUsageDetail_20' ) start [2025-02-13 10:52:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465922', 'tblTempUsageDetail_20' ) end [2025-02-13 10:52:35] Production.ERROR: pbx prc_insertCDR start [2025-02-13 10:52:35] Production.ERROR: pbx prc_insertCDR end [2025-02-13 10:52:35] Production.INFO: ==22791== Releasing lock... [2025-02-13 10:52:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 10:52:35] Production.INFO: 53.25 MB #Memory Used# [2025-02-13 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 07:53:05 [end_date_ymd] => 2025-02-13 10:53:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 07:53:05' and `end` < '2025-02-13 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-02-13 10:53:21] Production.INFO: count ==3291 [2025-02-13 10:53:22] Production.ERROR: pbx CDR StartTime 2025-02-13 07:53:05 - End Time 2025-02-13 10:53:05 [2025-02-13 10:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 10:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465927', 'tblTempUsageDetail_20' ) start [2025-02-13 10:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465927', 'tblTempUsageDetail_20' ) end [2025-02-13 10:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465927', 'tblTempVendorCDR_20' ) start [2025-02-13 10:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465927', 'tblTempVendorCDR_20' ) end [2025-02-13 10:53:22] Production.INFO: ProcessCDR(1,14465927,1,1,2) [2025-02-13 10:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465927', 'tblTempUsageDetail_20' ) start [2025-02-13 10:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465927', 'tblTempUsageDetail_20' ) end [2025-02-13 10:53:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 10:53:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 10:53:27] Production.INFO: ==22869== Releasing lock... [2025-02-13 10:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 10:53:27] Production.INFO: 52.75 MB #Memory Used# [2025-02-13 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 07:54:05 [end_date_ymd] => 2025-02-13 10:54:05 [RateCDR] => 1 ) [2025-02-13 10: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-02-13 07:54:05' and `end` < '2025-02-13 10: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-02-13 10:54:19] Production.INFO: count ==3308 [2025-02-13 10:54:20] Production.ERROR: pbx CDR StartTime 2025-02-13 07:54:05 - End Time 2025-02-13 10:54:05 [2025-02-13 10:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465932', 'tblTempUsageDetail_20' ) start [2025-02-13 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465932', 'tblTempUsageDetail_20' ) end [2025-02-13 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465932', 'tblTempVendorCDR_20' ) start [2025-02-13 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465932', 'tblTempVendorCDR_20' ) end [2025-02-13 10:54:20] Production.INFO: ProcessCDR(1,14465932,1,1,2) [2025-02-13 10:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465932', 'tblTempUsageDetail_20' ) start [2025-02-13 10:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465932', 'tblTempUsageDetail_20' ) end [2025-02-13 10:54:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 10:54:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 10:54:26] Production.INFO: ==22939== Releasing lock... [2025-02-13 10:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 10:54:26] Production.INFO: 53.75 MB #Memory Used# [2025-02-13 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 07:55:05 [end_date_ymd] => 2025-02-13 10:55:05 [RateCDR] => 1 ) [2025-02-13 10: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-02-13 07:55:05' and `end` < '2025-02-13 10: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-02-13 10:55:25] Production.INFO: count ==3328 [2025-02-13 10:55:26] Production.ERROR: pbx CDR StartTime 2025-02-13 07:55:05 - End Time 2025-02-13 10:55:05 [2025-02-13 10:55:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 10:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465937', 'tblTempUsageDetail_20' ) start [2025-02-13 10:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465937', 'tblTempUsageDetail_20' ) end [2025-02-13 10:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465937', 'tblTempVendorCDR_20' ) start [2025-02-13 10:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465937', 'tblTempVendorCDR_20' ) end [2025-02-13 10:55:26] Production.INFO: ProcessCDR(1,14465937,1,1,2) [2025-02-13 10:55:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:55:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:55:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:55:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:55:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465937', 'tblTempUsageDetail_20' ) start [2025-02-13 10:55:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465937', 'tblTempUsageDetail_20' ) end [2025-02-13 10:55:31] Production.ERROR: pbx prc_insertCDR start [2025-02-13 10:55:31] Production.ERROR: pbx prc_insertCDR end [2025-02-13 10:55:32] Production.INFO: ==23047== Releasing lock... [2025-02-13 10:55:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 10:55:32] Production.INFO: 53.5 MB #Memory Used# [2025-02-13 10:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 07:56:06 [end_date_ymd] => 2025-02-13 10:56:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 07:56:06' and `end` < '2025-02-13 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-02-13 10:56:24] Production.INFO: count ==3343 [2025-02-13 10:56:25] Production.ERROR: pbx CDR StartTime 2025-02-13 07:56:06 - End Time 2025-02-13 10:56:06 [2025-02-13 10:56:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 10:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465942', 'tblTempUsageDetail_20' ) start [2025-02-13 10:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465942', 'tblTempUsageDetail_20' ) end [2025-02-13 10:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465942', 'tblTempVendorCDR_20' ) start [2025-02-13 10:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465942', 'tblTempVendorCDR_20' ) end [2025-02-13 10:56:25] Production.INFO: ProcessCDR(1,14465942,1,1,2) [2025-02-13 10:56:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:56:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:56:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:56:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:56:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465942', 'tblTempUsageDetail_20' ) start [2025-02-13 10:56:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465942', 'tblTempUsageDetail_20' ) end [2025-02-13 10:56:31] Production.ERROR: pbx prc_insertCDR start [2025-02-13 10:56:31] Production.ERROR: pbx prc_insertCDR end [2025-02-13 10:56:31] Production.INFO: ==23119== Releasing lock... [2025-02-13 10:56:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 10:56:31] Production.INFO: 53.25 MB #Memory Used# [2025-02-13 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 07:57:05 [end_date_ymd] => 2025-02-13 10:57:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 07:57:05' and `end` < '2025-02-13 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-02-13 10:57:20] Production.INFO: count ==3345 [2025-02-13 10:57:21] Production.ERROR: pbx CDR StartTime 2025-02-13 07:57:05 - End Time 2025-02-13 10:57:05 [2025-02-13 10:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 10:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465947', 'tblTempUsageDetail_20' ) start [2025-02-13 10:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465947', 'tblTempUsageDetail_20' ) end [2025-02-13 10:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465947', 'tblTempVendorCDR_20' ) start [2025-02-13 10:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465947', 'tblTempVendorCDR_20' ) end [2025-02-13 10:57:21] Production.INFO: ProcessCDR(1,14465947,1,1,2) [2025-02-13 10:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465947', 'tblTempUsageDetail_20' ) start [2025-02-13 10:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465947', 'tblTempUsageDetail_20' ) end [2025-02-13 10:57:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 10:57:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 10:57:26] Production.INFO: ==23191== Releasing lock... [2025-02-13 10:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 10:57:26] Production.INFO: 53.25 MB #Memory Used# [2025-02-13 10:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 07:58:06 [end_date_ymd] => 2025-02-13 10:58:06 [RateCDR] => 1 ) [2025-02-13 10: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-02-13 07:58:06' and `end` < '2025-02-13 10: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-02-13 10:58:22] Production.INFO: count ==3347 [2025-02-13 10:58:23] Production.ERROR: pbx CDR StartTime 2025-02-13 07:58:06 - End Time 2025-02-13 10:58:06 [2025-02-13 10:58:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 10:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465952', 'tblTempUsageDetail_20' ) start [2025-02-13 10:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465952', 'tblTempUsageDetail_20' ) end [2025-02-13 10:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465952', 'tblTempVendorCDR_20' ) start [2025-02-13 10:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465952', 'tblTempVendorCDR_20' ) end [2025-02-13 10:58:23] Production.INFO: ProcessCDR(1,14465952,1,1,2) [2025-02-13 10:58:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:58:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465952', 'tblTempUsageDetail_20' ) start [2025-02-13 10:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465952', 'tblTempUsageDetail_20' ) end [2025-02-13 10:58:28] Production.ERROR: pbx prc_insertCDR start [2025-02-13 10:58:28] Production.ERROR: pbx prc_insertCDR end [2025-02-13 10:58:28] Production.INFO: ==23262== Releasing lock... [2025-02-13 10:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 10:58:28] Production.INFO: 53.5 MB #Memory Used# [2025-02-13 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 07:59:04 [end_date_ymd] => 2025-02-13 10:59:04 [RateCDR] => 1 ) [2025-02-13 10: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-02-13 07:59:04' and `end` < '2025-02-13 10: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-02-13 10:59:21] Production.INFO: count ==3352 [2025-02-13 10:59:22] Production.ERROR: pbx CDR StartTime 2025-02-13 07:59:04 - End Time 2025-02-13 10:59:04 [2025-02-13 10:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 10:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465957', 'tblTempUsageDetail_20' ) start [2025-02-13 10:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465957', 'tblTempUsageDetail_20' ) end [2025-02-13 10:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465957', 'tblTempVendorCDR_20' ) start [2025-02-13 10:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465957', 'tblTempVendorCDR_20' ) end [2025-02-13 10:59:23] Production.INFO: ProcessCDR(1,14465957,1,1,2) [2025-02-13 10:59:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 10:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 10:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465957', 'tblTempUsageDetail_20' ) start [2025-02-13 10:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465957', 'tblTempUsageDetail_20' ) end [2025-02-13 10:59:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 10:59:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 10:59:27] Production.INFO: ==23335== Releasing lock... [2025-02-13 10:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 10:59:27] Production.INFO: 54.75 MB #Memory Used# [2025-02-13 11:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 08:00:05 [end_date_ymd] => 2025-02-13 11:00:05 [RateCDR] => 1 ) [2025-02-13 11: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-02-13 08:00:05' and `end` < '2025-02-13 11: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-02-13 11:00:21] Production.INFO: count ==3367 [2025-02-13 11:00:22] Production.ERROR: pbx CDR StartTime 2025-02-13 08:00:05 - End Time 2025-02-13 11:00:05 [2025-02-13 11:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465962', 'tblTempUsageDetail_20' ) start [2025-02-13 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465962', 'tblTempUsageDetail_20' ) end [2025-02-13 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465962', 'tblTempVendorCDR_20' ) start [2025-02-13 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465962', 'tblTempVendorCDR_20' ) end [2025-02-13 11:00:22] Production.INFO: ProcessCDR(1,14465962,1,1,2) [2025-02-13 11:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465962', 'tblTempUsageDetail_20' ) start [2025-02-13 11:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465962', 'tblTempUsageDetail_20' ) end [2025-02-13 11:00:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 11:00:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 11:00:27] Production.INFO: ==23413== Releasing lock... [2025-02-13 11:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 11:00:27] Production.INFO: 53.25 MB #Memory Used# [2025-02-13 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 08:01:05 [end_date_ymd] => 2025-02-13 11:01:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 08:01:05' and `end` < '2025-02-13 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-02-13 11:01:26] Production.INFO: count ==3413 [2025-02-13 11:01:28] Production.ERROR: pbx CDR StartTime 2025-02-13 08:01:05 - End Time 2025-02-13 11:01:05 [2025-02-13 11:01:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 11:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465968', 'tblTempUsageDetail_20' ) start [2025-02-13 11:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465968', 'tblTempUsageDetail_20' ) end [2025-02-13 11:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465968', 'tblTempVendorCDR_20' ) start [2025-02-13 11:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465968', 'tblTempVendorCDR_20' ) end [2025-02-13 11:01:28] Production.INFO: ProcessCDR(1,14465968,1,1,2) [2025-02-13 11:01:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:01:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:01:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:01:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:01:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465968', 'tblTempUsageDetail_20' ) start [2025-02-13 11:01:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465968', 'tblTempUsageDetail_20' ) end [2025-02-13 11:01:33] Production.ERROR: pbx prc_insertCDR start [2025-02-13 11:01:33] Production.ERROR: pbx prc_insertCDR end [2025-02-13 11:01:33] Production.INFO: ==23580== Releasing lock... [2025-02-13 11:01:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 11:01:33] Production.INFO: 53.5 MB #Memory Used# [2025-02-13 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 08:02:05 [end_date_ymd] => 2025-02-13 11:02:05 [RateCDR] => 1 ) [2025-02-13 11: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-02-13 08:02:05' and `end` < '2025-02-13 11: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-02-13 11:02:22] Production.INFO: count ==3417 [2025-02-13 11:02:24] Production.ERROR: pbx CDR StartTime 2025-02-13 08:02:05 - End Time 2025-02-13 11:02:05 [2025-02-13 11:02:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 11:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465973', 'tblTempUsageDetail_20' ) start [2025-02-13 11:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465973', 'tblTempUsageDetail_20' ) end [2025-02-13 11:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465973', 'tblTempVendorCDR_20' ) start [2025-02-13 11:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465973', 'tblTempVendorCDR_20' ) end [2025-02-13 11:02:24] Production.INFO: ProcessCDR(1,14465973,1,1,2) [2025-02-13 11:02:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:02:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:02:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:02:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465973', 'tblTempUsageDetail_20' ) start [2025-02-13 11:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465973', 'tblTempUsageDetail_20' ) end [2025-02-13 11:02:29] Production.ERROR: pbx prc_insertCDR start [2025-02-13 11:02:29] Production.ERROR: pbx prc_insertCDR end [2025-02-13 11:02:29] Production.INFO: ==23654== Releasing lock... [2025-02-13 11:02:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 11:02:29] Production.INFO: 55.25 MB #Memory Used# [2025-02-13 11:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 08:03:06 [end_date_ymd] => 2025-02-13 11:03:06 [RateCDR] => 1 ) [2025-02-13 11: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-02-13 08:03:06' and `end` < '2025-02-13 11: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-02-13 11:03:20] Production.INFO: count ==3426 [2025-02-13 11:03:21] Production.ERROR: pbx CDR StartTime 2025-02-13 08:03:06 - End Time 2025-02-13 11:03:06 [2025-02-13 11:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465978', 'tblTempUsageDetail_20' ) start [2025-02-13 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465978', 'tblTempUsageDetail_20' ) end [2025-02-13 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465978', 'tblTempVendorCDR_20' ) start [2025-02-13 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465978', 'tblTempVendorCDR_20' ) end [2025-02-13 11:03:21] Production.INFO: ProcessCDR(1,14465978,1,1,2) [2025-02-13 11:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465978', 'tblTempUsageDetail_20' ) start [2025-02-13 11:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465978', 'tblTempUsageDetail_20' ) end [2025-02-13 11:03:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 11:03:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 11:03:27] Production.INFO: ==23724== Releasing lock... [2025-02-13 11:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 11:03:27] Production.INFO: 54.5 MB #Memory Used# [2025-02-13 11:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 08:04:06 [end_date_ymd] => 2025-02-13 11:04:06 [RateCDR] => 1 ) [2025-02-13 11: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-02-13 08:04:06' and `end` < '2025-02-13 11: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-02-13 11:04:25] Production.INFO: count ==3412 [2025-02-13 11:04:27] Production.ERROR: pbx CDR StartTime 2025-02-13 08:04:06 - End Time 2025-02-13 11:04:06 [2025-02-13 11:04:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 11:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465983', 'tblTempUsageDetail_20' ) start [2025-02-13 11:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465983', 'tblTempUsageDetail_20' ) end [2025-02-13 11:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465983', 'tblTempVendorCDR_20' ) start [2025-02-13 11:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465983', 'tblTempVendorCDR_20' ) end [2025-02-13 11:04:27] Production.INFO: ProcessCDR(1,14465983,1,1,2) [2025-02-13 11:04:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:04:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:04:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:04:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:04:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465983', 'tblTempUsageDetail_20' ) start [2025-02-13 11:04:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465983', 'tblTempUsageDetail_20' ) end [2025-02-13 11:04:32] Production.ERROR: pbx prc_insertCDR start [2025-02-13 11:04:33] Production.ERROR: pbx prc_insertCDR end [2025-02-13 11:04:33] Production.INFO: ==23799== Releasing lock... [2025-02-13 11:04:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 11:04:33] Production.INFO: 54.75 MB #Memory Used# [2025-02-13 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 08:05:05 [end_date_ymd] => 2025-02-13 11:05:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 08:05:05' and `end` < '2025-02-13 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-02-13 11:05:25] Production.INFO: count ==3403 [2025-02-13 11:05:26] Production.ERROR: pbx CDR StartTime 2025-02-13 08:05:05 - End Time 2025-02-13 11:05:05 [2025-02-13 11:05:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 11:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465988', 'tblTempUsageDetail_20' ) start [2025-02-13 11:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465988', 'tblTempUsageDetail_20' ) end [2025-02-13 11:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465988', 'tblTempVendorCDR_20' ) start [2025-02-13 11:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465988', 'tblTempVendorCDR_20' ) end [2025-02-13 11:05:27] Production.INFO: ProcessCDR(1,14465988,1,1,2) [2025-02-13 11:05:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:05:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:05:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:05:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465988', 'tblTempUsageDetail_20' ) start [2025-02-13 11:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465988', 'tblTempUsageDetail_20' ) end [2025-02-13 11:05:32] Production.ERROR: pbx prc_insertCDR start [2025-02-13 11:05:32] Production.ERROR: pbx prc_insertCDR end [2025-02-13 11:05:32] Production.INFO: ==23947== Releasing lock... [2025-02-13 11:05:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 11:05:32] Production.INFO: 53.75 MB #Memory Used# [2025-02-13 11:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 08:06:06 [end_date_ymd] => 2025-02-13 11:06:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 08:06:06' and `end` < '2025-02-13 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-02-13 11:06:20] Production.INFO: count ==3401 [2025-02-13 11:06:21] Production.ERROR: pbx CDR StartTime 2025-02-13 08:06:06 - End Time 2025-02-13 11:06:06 [2025-02-13 11:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465993', 'tblTempUsageDetail_20' ) start [2025-02-13 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465993', 'tblTempUsageDetail_20' ) end [2025-02-13 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465993', 'tblTempVendorCDR_20' ) start [2025-02-13 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465993', 'tblTempVendorCDR_20' ) end [2025-02-13 11:06:21] Production.INFO: ProcessCDR(1,14465993,1,1,2) [2025-02-13 11:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465993', 'tblTempUsageDetail_20' ) start [2025-02-13 11:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465993', 'tblTempUsageDetail_20' ) end [2025-02-13 11:06:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 11:06:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 11:06:27] Production.INFO: ==24020== Releasing lock... [2025-02-13 11:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 11:06:27] Production.INFO: 53.5 MB #Memory Used# [2025-02-13 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 08:07:05 [end_date_ymd] => 2025-02-13 11:07:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 08:07:05' and `end` < '2025-02-13 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-02-13 11:07:20] Production.INFO: count ==3386 [2025-02-13 11:07:21] Production.ERROR: pbx CDR StartTime 2025-02-13 08:07:05 - End Time 2025-02-13 11:07:05 [2025-02-13 11:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465998', 'tblTempUsageDetail_20' ) start [2025-02-13 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14465998', 'tblTempUsageDetail_20' ) end [2025-02-13 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465998', 'tblTempVendorCDR_20' ) start [2025-02-13 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14465998', 'tblTempVendorCDR_20' ) end [2025-02-13 11:07:21] Production.INFO: ProcessCDR(1,14465998,1,1,2) [2025-02-13 11:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14465998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14465998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14465998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14465998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465998', 'tblTempUsageDetail_20' ) start [2025-02-13 11:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14465998', 'tblTempUsageDetail_20' ) end [2025-02-13 11:07:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 11:07:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 11:07:26] Production.INFO: ==24092== Releasing lock... [2025-02-13 11:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 11:07:26] Production.INFO: 54 MB #Memory Used# [2025-02-13 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 08:08:05 [end_date_ymd] => 2025-02-13 11:08:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 08:08:05' and `end` < '2025-02-13 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-02-13 11:08:19] Production.INFO: count ==3374 [2025-02-13 11:08:20] Production.ERROR: pbx CDR StartTime 2025-02-13 08:08:05 - End Time 2025-02-13 11:08:05 [2025-02-13 11:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466003', 'tblTempUsageDetail_20' ) start [2025-02-13 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466003', 'tblTempUsageDetail_20' ) end [2025-02-13 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466003', 'tblTempVendorCDR_20' ) start [2025-02-13 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466003', 'tblTempVendorCDR_20' ) end [2025-02-13 11:08:20] Production.INFO: ProcessCDR(1,14466003,1,1,2) [2025-02-13 11:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466003', 'tblTempUsageDetail_20' ) start [2025-02-13 11:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466003', 'tblTempUsageDetail_20' ) end [2025-02-13 11:08:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 11:08:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 11:08:26] Production.INFO: ==24243== Releasing lock... [2025-02-13 11:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 11:08:26] Production.INFO: 53.5 MB #Memory Used# [2025-02-13 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 08:09:05 [end_date_ymd] => 2025-02-13 11:09:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 08:09:05' and `end` < '2025-02-13 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-02-13 11:09:19] Production.INFO: count ==3351 [2025-02-13 11:09:21] Production.ERROR: pbx CDR StartTime 2025-02-13 08:09:05 - End Time 2025-02-13 11:09:05 [2025-02-13 11:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466008', 'tblTempUsageDetail_20' ) start [2025-02-13 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466008', 'tblTempUsageDetail_20' ) end [2025-02-13 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466008', 'tblTempVendorCDR_20' ) start [2025-02-13 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466008', 'tblTempVendorCDR_20' ) end [2025-02-13 11:09:21] Production.INFO: ProcessCDR(1,14466008,1,1,2) [2025-02-13 11:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466008', 'tblTempUsageDetail_20' ) start [2025-02-13 11:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466008', 'tblTempUsageDetail_20' ) end [2025-02-13 11:09:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 11:09:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 11:09:26] Production.INFO: ==24312== Releasing lock... [2025-02-13 11:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 11:09:26] Production.INFO: 54.25 MB #Memory Used# [2025-02-13 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 08:10:06 [end_date_ymd] => 2025-02-13 11:10:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 08:10:06' and `end` < '2025-02-13 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-02-13 11:10:21] Production.INFO: count ==3359 [2025-02-13 11:10:22] Production.ERROR: pbx CDR StartTime 2025-02-13 08:10:06 - End Time 2025-02-13 11:10:06 [2025-02-13 11:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 11:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466014', 'tblTempUsageDetail_20' ) start [2025-02-13 11:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466014', 'tblTempUsageDetail_20' ) end [2025-02-13 11:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466014', 'tblTempVendorCDR_20' ) start [2025-02-13 11:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466014', 'tblTempVendorCDR_20' ) end [2025-02-13 11:10:22] Production.INFO: ProcessCDR(1,14466014,1,1,2) [2025-02-13 11:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466014', 'tblTempUsageDetail_20' ) start [2025-02-13 11:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466014', 'tblTempUsageDetail_20' ) end [2025-02-13 11:10:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 11:10:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 11:10:27] Production.INFO: ==24431== Releasing lock... [2025-02-13 11:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 11:10:27] Production.INFO: 53 MB #Memory Used# [2025-02-13 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 08:11:05 [end_date_ymd] => 2025-02-13 11:11:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 08:11:05' and `end` < '2025-02-13 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-02-13 11:11:23] Production.INFO: count ==3436 [2025-02-13 11:11:25] Production.ERROR: pbx CDR StartTime 2025-02-13 08:11:05 - End Time 2025-02-13 11:11:05 [2025-02-13 11:11:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 11:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466019', 'tblTempUsageDetail_20' ) start [2025-02-13 11:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466019', 'tblTempUsageDetail_20' ) end [2025-02-13 11:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466019', 'tblTempVendorCDR_20' ) start [2025-02-13 11:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466019', 'tblTempVendorCDR_20' ) end [2025-02-13 11:11:25] Production.INFO: ProcessCDR(1,14466019,1,1,2) [2025-02-13 11:11:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:11:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:11:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:11:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466019', 'tblTempUsageDetail_20' ) start [2025-02-13 11:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466019', 'tblTempUsageDetail_20' ) end [2025-02-13 11:11:30] Production.ERROR: pbx prc_insertCDR start [2025-02-13 11:11:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 11:11:30] Production.INFO: ==24505== Releasing lock... [2025-02-13 11:11:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 11:11:30] Production.INFO: 54.25 MB #Memory Used# [2025-02-13 11:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 08:12:06 [end_date_ymd] => 2025-02-13 11:12:06 [RateCDR] => 1 ) [2025-02-13 11: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-02-13 08:12:06' and `end` < '2025-02-13 11: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-02-13 11:12:19] Production.INFO: count ==3443 [2025-02-13 11:12:21] Production.ERROR: pbx CDR StartTime 2025-02-13 08:12:06 - End Time 2025-02-13 11:12:06 [2025-02-13 11:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466024', 'tblTempUsageDetail_20' ) start [2025-02-13 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466024', 'tblTempUsageDetail_20' ) end [2025-02-13 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466024', 'tblTempVendorCDR_20' ) start [2025-02-13 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466024', 'tblTempVendorCDR_20' ) end [2025-02-13 11:12:21] Production.INFO: ProcessCDR(1,14466024,1,1,2) [2025-02-13 11:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466024', 'tblTempUsageDetail_20' ) start [2025-02-13 11:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466024', 'tblTempUsageDetail_20' ) end [2025-02-13 11:12:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 11:12:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 11:12:27] Production.INFO: ==24655== Releasing lock... [2025-02-13 11:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 11:12:27] Production.INFO: 54.5 MB #Memory Used# [2025-02-13 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 08:13:05 [end_date_ymd] => 2025-02-13 11:13:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 08:13:05' and `end` < '2025-02-13 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-02-13 11:13:19] Production.INFO: count ==3448 [2025-02-13 11:13:20] Production.ERROR: pbx CDR StartTime 2025-02-13 08:13:05 - End Time 2025-02-13 11:13:05 [2025-02-13 11:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466029', 'tblTempUsageDetail_20' ) start [2025-02-13 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466029', 'tblTempUsageDetail_20' ) end [2025-02-13 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466029', 'tblTempVendorCDR_20' ) start [2025-02-13 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466029', 'tblTempVendorCDR_20' ) end [2025-02-13 11:13:20] Production.INFO: ProcessCDR(1,14466029,1,1,2) [2025-02-13 11:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466029', 'tblTempUsageDetail_20' ) start [2025-02-13 11:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466029', 'tblTempUsageDetail_20' ) end [2025-02-13 11:13:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 11:13:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 11:13:26] Production.INFO: ==24726== Releasing lock... [2025-02-13 11:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 11:13:26] Production.INFO: 54 MB #Memory Used# [2025-02-13 11:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 08:14:06 [end_date_ymd] => 2025-02-13 11:14:06 [RateCDR] => 1 ) [2025-02-13 11: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-02-13 08:14:06' and `end` < '2025-02-13 11: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-02-13 11:14:22] Production.INFO: count ==3444 [2025-02-13 11:14:23] Production.ERROR: pbx CDR StartTime 2025-02-13 08:14:06 - End Time 2025-02-13 11:14:06 [2025-02-13 11:14:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 11:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466034', 'tblTempUsageDetail_20' ) start [2025-02-13 11:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466034', 'tblTempUsageDetail_20' ) end [2025-02-13 11:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466034', 'tblTempVendorCDR_20' ) start [2025-02-13 11:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466034', 'tblTempVendorCDR_20' ) end [2025-02-13 11:14:24] Production.INFO: ProcessCDR(1,14466034,1,1,2) [2025-02-13 11:14:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:14:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:14:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:14:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466034', 'tblTempUsageDetail_20' ) start [2025-02-13 11:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466034', 'tblTempUsageDetail_20' ) end [2025-02-13 11:14:29] Production.ERROR: pbx prc_insertCDR start [2025-02-13 11:14:29] Production.ERROR: pbx prc_insertCDR end [2025-02-13 11:14:29] Production.INFO: ==24797== Releasing lock... [2025-02-13 11:14:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 11:14:29] Production.INFO: 54.25 MB #Memory Used# [2025-02-13 11:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 08:15:06 [end_date_ymd] => 2025-02-13 11:15:06 [RateCDR] => 1 ) [2025-02-13 11: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-02-13 08:15:06' and `end` < '2025-02-13 11: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-02-13 11:15:20] Production.INFO: count ==3448 [2025-02-13 11:15:22] Production.ERROR: pbx CDR StartTime 2025-02-13 08:15:06 - End Time 2025-02-13 11:15:06 [2025-02-13 11:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 11:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466039', 'tblTempUsageDetail_20' ) start [2025-02-13 11:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466039', 'tblTempUsageDetail_20' ) end [2025-02-13 11:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466039', 'tblTempVendorCDR_20' ) start [2025-02-13 11:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466039', 'tblTempVendorCDR_20' ) end [2025-02-13 11:15:22] Production.INFO: ProcessCDR(1,14466039,1,1,2) [2025-02-13 11:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466039', 'tblTempUsageDetail_20' ) start [2025-02-13 11:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466039', 'tblTempUsageDetail_20' ) end [2025-02-13 11:15:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 11:15:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 11:15:27] Production.INFO: ==24947== Releasing lock... [2025-02-13 11:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 11:15:27] Production.INFO: 54.5 MB #Memory Used# [2025-02-13 11:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 08:16:06 [end_date_ymd] => 2025-02-13 11:16:06 [RateCDR] => 1 ) [2025-02-13 11: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-02-13 08:16:06' and `end` < '2025-02-13 11: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-02-13 11:16:25] Production.INFO: count ==3456 [2025-02-13 11:16:27] Production.ERROR: pbx CDR StartTime 2025-02-13 08:16:06 - End Time 2025-02-13 11:16:06 [2025-02-13 11:16:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 11:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466044', 'tblTempUsageDetail_20' ) start [2025-02-13 11:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466044', 'tblTempUsageDetail_20' ) end [2025-02-13 11:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466044', 'tblTempVendorCDR_20' ) start [2025-02-13 11:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466044', 'tblTempVendorCDR_20' ) end [2025-02-13 11:16:27] Production.INFO: ProcessCDR(1,14466044,1,1,2) [2025-02-13 11:16:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:16:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:16:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:16:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:16:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466044', 'tblTempUsageDetail_20' ) start [2025-02-13 11:16:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466044', 'tblTempUsageDetail_20' ) end [2025-02-13 11:16:32] Production.ERROR: pbx prc_insertCDR start [2025-02-13 11:16:32] Production.ERROR: pbx prc_insertCDR end [2025-02-13 11:16:32] Production.INFO: ==25019== Releasing lock... [2025-02-13 11:16:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 11:16:32] Production.INFO: 54 MB #Memory Used# [2025-02-13 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 08:17:05 [end_date_ymd] => 2025-02-13 11:17:05 [RateCDR] => 1 ) [2025-02-13 11: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-02-13 08:17:05' and `end` < '2025-02-13 11: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-02-13 11:17:24] Production.INFO: count ==3464 [2025-02-13 11:17:25] Production.ERROR: pbx CDR StartTime 2025-02-13 08:17:05 - End Time 2025-02-13 11:17:05 [2025-02-13 11:17:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 11:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466049', 'tblTempUsageDetail_20' ) start [2025-02-13 11:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466049', 'tblTempUsageDetail_20' ) end [2025-02-13 11:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466049', 'tblTempVendorCDR_20' ) start [2025-02-13 11:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466049', 'tblTempVendorCDR_20' ) end [2025-02-13 11:17:25] Production.INFO: ProcessCDR(1,14466049,1,1,2) [2025-02-13 11:17:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:17:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:17:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:17:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:17:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466049', 'tblTempUsageDetail_20' ) start [2025-02-13 11:17:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466049', 'tblTempUsageDetail_20' ) end [2025-02-13 11:17:31] Production.ERROR: pbx prc_insertCDR start [2025-02-13 11:17:31] Production.ERROR: pbx prc_insertCDR end [2025-02-13 11:17:31] Production.INFO: ==25091== Releasing lock... [2025-02-13 11:17:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 11:17:31] Production.INFO: 54.25 MB #Memory Used# [2025-02-13 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 08:18:05 [end_date_ymd] => 2025-02-13 11:18:05 [RateCDR] => 1 ) [2025-02-13 11: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-02-13 08:18:05' and `end` < '2025-02-13 11: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-02-13 11:18:24] Production.INFO: count ==3462 [2025-02-13 11:18:25] Production.ERROR: pbx CDR StartTime 2025-02-13 08:18:05 - End Time 2025-02-13 11:18:05 [2025-02-13 11:18:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 11:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466054', 'tblTempUsageDetail_20' ) start [2025-02-13 11:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466054', 'tblTempUsageDetail_20' ) end [2025-02-13 11:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466054', 'tblTempVendorCDR_20' ) start [2025-02-13 11:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466054', 'tblTempVendorCDR_20' ) end [2025-02-13 11:18:25] Production.INFO: ProcessCDR(1,14466054,1,1,2) [2025-02-13 11:18:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:18:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:18:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:18:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466054', 'tblTempUsageDetail_20' ) start [2025-02-13 11:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466054', 'tblTempUsageDetail_20' ) end [2025-02-13 11:18:30] Production.ERROR: pbx prc_insertCDR start [2025-02-13 11:18:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 11:18:30] Production.INFO: ==25163== Releasing lock... [2025-02-13 11:18:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 11:18:30] Production.INFO: 54 MB #Memory Used# [2025-02-13 11:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 08:19:06 [end_date_ymd] => 2025-02-13 11:19:06 [RateCDR] => 1 ) [2025-02-13 11: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-02-13 08:19:06' and `end` < '2025-02-13 11: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-02-13 11:19:21] Production.INFO: count ==3486 [2025-02-13 11:19:22] Production.ERROR: pbx CDR StartTime 2025-02-13 08:19:06 - End Time 2025-02-13 11:19:06 [2025-02-13 11:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 11:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466059', 'tblTempUsageDetail_20' ) start [2025-02-13 11:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466059', 'tblTempUsageDetail_20' ) end [2025-02-13 11:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466059', 'tblTempVendorCDR_20' ) start [2025-02-13 11:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466059', 'tblTempVendorCDR_20' ) end [2025-02-13 11:19:22] Production.INFO: ProcessCDR(1,14466059,1,1,2) [2025-02-13 11:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466059', 'tblTempUsageDetail_20' ) start [2025-02-13 11:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466059', 'tblTempUsageDetail_20' ) end [2025-02-13 11:19:28] Production.ERROR: pbx prc_insertCDR start [2025-02-13 11:19:28] Production.ERROR: pbx prc_insertCDR end [2025-02-13 11:19:28] Production.INFO: ==25234== Releasing lock... [2025-02-13 11:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 11:19:28] Production.INFO: 54.25 MB #Memory Used# [2025-02-13 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 08:20:06 [end_date_ymd] => 2025-02-13 11:20:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 08:20:06' and `end` < '2025-02-13 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-02-13 11:20:32] Production.INFO: count ==3477 [2025-02-13 11:20:33] Production.ERROR: pbx CDR StartTime 2025-02-13 08:20:06 - End Time 2025-02-13 11:20:06 [2025-02-13 11:20:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 11:20:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466065', 'tblTempUsageDetail_20' ) start [2025-02-13 11:20:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466065', 'tblTempUsageDetail_20' ) end [2025-02-13 11:20:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466065', 'tblTempVendorCDR_20' ) start [2025-02-13 11:20:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466065', 'tblTempVendorCDR_20' ) end [2025-02-13 11:20:33] Production.INFO: ProcessCDR(1,14466065,1,1,2) [2025-02-13 11:20:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:20:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:20:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:20:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:20:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466065', 'tblTempUsageDetail_20' ) start [2025-02-13 11:20:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466065', 'tblTempUsageDetail_20' ) end [2025-02-13 11:20:39] Production.ERROR: pbx prc_insertCDR start [2025-02-13 11:20:39] Production.ERROR: pbx prc_insertCDR end [2025-02-13 11:20:39] Production.INFO: ==25305== Releasing lock... [2025-02-13 11:20:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 11:20:39] Production.INFO: 54.75 MB #Memory Used# [2025-02-13 11:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 08:21:06 [end_date_ymd] => 2025-02-13 11:21:06 [RateCDR] => 1 ) [2025-02-13 11: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-02-13 08:21:06' and `end` < '2025-02-13 11: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-02-13 11:21:23] Production.INFO: count ==3520 [2025-02-13 11:21:24] Production.ERROR: pbx CDR StartTime 2025-02-13 08:21:06 - End Time 2025-02-13 11:21:06 [2025-02-13 11:21:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 11:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466070', 'tblTempUsageDetail_20' ) start [2025-02-13 11:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466070', 'tblTempUsageDetail_20' ) end [2025-02-13 11:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466070', 'tblTempVendorCDR_20' ) start [2025-02-13 11:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466070', 'tblTempVendorCDR_20' ) end [2025-02-13 11:21:24] Production.INFO: ProcessCDR(1,14466070,1,1,2) [2025-02-13 11:21:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:21:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:21:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:21:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466070', 'tblTempUsageDetail_20' ) start [2025-02-13 11:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466070', 'tblTempUsageDetail_20' ) end [2025-02-13 11:21:30] Production.ERROR: pbx prc_insertCDR start [2025-02-13 11:21:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 11:21:30] Production.INFO: ==25384== Releasing lock... [2025-02-13 11:21:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 11:21:30] Production.INFO: 54.5 MB #Memory Used# [2025-02-13 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 08:22:05 [end_date_ymd] => 2025-02-13 11:22:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 08:22:05' and `end` < '2025-02-13 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-02-13 11:22:23] Production.INFO: count ==3545 [2025-02-13 11:22:25] Production.ERROR: pbx CDR StartTime 2025-02-13 08:22:05 - End Time 2025-02-13 11:22:05 [2025-02-13 11:22:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 11:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466075', 'tblTempUsageDetail_20' ) start [2025-02-13 11:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466075', 'tblTempUsageDetail_20' ) end [2025-02-13 11:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466075', 'tblTempVendorCDR_20' ) start [2025-02-13 11:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466075', 'tblTempVendorCDR_20' ) end [2025-02-13 11:22:25] Production.INFO: ProcessCDR(1,14466075,1,1,2) [2025-02-13 11:22:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:22:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:22:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:22:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:22:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466075', 'tblTempUsageDetail_20' ) start [2025-02-13 11:22:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466075', 'tblTempUsageDetail_20' ) end [2025-02-13 11:22:30] Production.ERROR: pbx prc_insertCDR start [2025-02-13 11:22:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 11:22:30] Production.INFO: ==25455== Releasing lock... [2025-02-13 11:22:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 11:22:30] Production.INFO: 55 MB #Memory Used# [2025-02-13 11:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 08:23:06 [end_date_ymd] => 2025-02-13 11:23:06 [RateCDR] => 1 ) [2025-02-13 11: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-02-13 08:23:06' and `end` < '2025-02-13 11: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-02-13 11:23:29] Production.INFO: count ==3567 [2025-02-13 11:23:30] Production.ERROR: pbx CDR StartTime 2025-02-13 08:23:06 - End Time 2025-02-13 11:23:06 [2025-02-13 11:23:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 11:23:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466080', 'tblTempUsageDetail_20' ) start [2025-02-13 11:23:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466080', 'tblTempUsageDetail_20' ) end [2025-02-13 11:23:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466080', 'tblTempVendorCDR_20' ) start [2025-02-13 11:23:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466080', 'tblTempVendorCDR_20' ) end [2025-02-13 11:23:30] Production.INFO: ProcessCDR(1,14466080,1,1,2) [2025-02-13 11:23:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:23:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:23:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:23:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:23:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466080', 'tblTempUsageDetail_20' ) start [2025-02-13 11:23:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466080', 'tblTempUsageDetail_20' ) end [2025-02-13 11:23:36] Production.ERROR: pbx prc_insertCDR start [2025-02-13 11:23:36] Production.ERROR: pbx prc_insertCDR end [2025-02-13 11:23:36] Production.INFO: ==25527== Releasing lock... [2025-02-13 11:23:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 11:23:36] Production.INFO: 55.5 MB #Memory Used# [2025-02-13 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 08:24:05 [end_date_ymd] => 2025-02-13 11:24:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 08:24:05' and `end` < '2025-02-13 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-02-13 11:24:25] Production.INFO: count ==3573 [2025-02-13 11:24:27] Production.ERROR: pbx CDR StartTime 2025-02-13 08:24:05 - End Time 2025-02-13 11:24:05 [2025-02-13 11:24:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 11:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466085', 'tblTempUsageDetail_20' ) start [2025-02-13 11:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466085', 'tblTempUsageDetail_20' ) end [2025-02-13 11:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466085', 'tblTempVendorCDR_20' ) start [2025-02-13 11:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466085', 'tblTempVendorCDR_20' ) end [2025-02-13 11:24:27] Production.INFO: ProcessCDR(1,14466085,1,1,2) [2025-02-13 11:24:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:24:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:24:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:24:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:24:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466085', 'tblTempUsageDetail_20' ) start [2025-02-13 11:24:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466085', 'tblTempUsageDetail_20' ) end [2025-02-13 11:24:32] Production.ERROR: pbx prc_insertCDR start [2025-02-13 11:24:32] Production.ERROR: pbx prc_insertCDR end [2025-02-13 11:24:32] Production.INFO: ==25597== Releasing lock... [2025-02-13 11:24:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 11:24:32] Production.INFO: 55.25 MB #Memory Used# [2025-02-13 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 08:25:05 [end_date_ymd] => 2025-02-13 11:25:05 [RateCDR] => 1 ) [2025-02-13 11:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 08:25:05' and `end` < '2025-02-13 11:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-13 11:25:29] Production.INFO: count ==3589 [2025-02-13 11:25:31] Production.ERROR: pbx CDR StartTime 2025-02-13 08:25:05 - End Time 2025-02-13 11:25:05 [2025-02-13 11:25:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 11:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466090', 'tblTempUsageDetail_20' ) start [2025-02-13 11:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466090', 'tblTempUsageDetail_20' ) end [2025-02-13 11:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466090', 'tblTempVendorCDR_20' ) start [2025-02-13 11:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466090', 'tblTempVendorCDR_20' ) end [2025-02-13 11:25:31] Production.INFO: ProcessCDR(1,14466090,1,1,2) [2025-02-13 11:25:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:25:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:25:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:25:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:25:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466090', 'tblTempUsageDetail_20' ) start [2025-02-13 11:25:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466090', 'tblTempUsageDetail_20' ) end [2025-02-13 11:25:36] Production.ERROR: pbx prc_insertCDR start [2025-02-13 11:25:36] Production.ERROR: pbx prc_insertCDR end [2025-02-13 11:25:36] Production.INFO: ==25709== Releasing lock... [2025-02-13 11:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 11:25:36] Production.INFO: 55 MB #Memory Used# [2025-02-13 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 08:26:05 [end_date_ymd] => 2025-02-13 11:26:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 08:26:05' and `end` < '2025-02-13 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-02-13 11:26:23] Production.INFO: count ==3593 [2025-02-13 11:26:25] Production.ERROR: pbx CDR StartTime 2025-02-13 08:26:05 - End Time 2025-02-13 11:26:05 [2025-02-13 11:26:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 11:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466095', 'tblTempUsageDetail_20' ) start [2025-02-13 11:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466095', 'tblTempUsageDetail_20' ) end [2025-02-13 11:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466095', 'tblTempVendorCDR_20' ) start [2025-02-13 11:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466095', 'tblTempVendorCDR_20' ) end [2025-02-13 11:26:25] Production.INFO: ProcessCDR(1,14466095,1,1,2) [2025-02-13 11:26:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:26:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:26:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:26:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:26:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466095', 'tblTempUsageDetail_20' ) start [2025-02-13 11:26:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466095', 'tblTempUsageDetail_20' ) end [2025-02-13 11:26:30] Production.ERROR: pbx prc_insertCDR start [2025-02-13 11:26:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 11:26:30] Production.INFO: ==25780== Releasing lock... [2025-02-13 11:26:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 11:26:30] Production.INFO: 55 MB #Memory Used# [2025-02-13 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 08:27:05 [end_date_ymd] => 2025-02-13 11:27:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 08:27:05' and `end` < '2025-02-13 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-02-13 11:27:32] Production.INFO: count ==3597 [2025-02-13 11:27:34] Production.ERROR: pbx CDR StartTime 2025-02-13 08:27:05 - End Time 2025-02-13 11:27:05 [2025-02-13 11:27:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 11:27:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466100', 'tblTempUsageDetail_20' ) start [2025-02-13 11:27:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466100', 'tblTempUsageDetail_20' ) end [2025-02-13 11:27:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466100', 'tblTempVendorCDR_20' ) start [2025-02-13 11:27:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466100', 'tblTempVendorCDR_20' ) end [2025-02-13 11:27:34] Production.INFO: ProcessCDR(1,14466100,1,1,2) [2025-02-13 11:27:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:27:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:27:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:27:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:27:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466100', 'tblTempUsageDetail_20' ) start [2025-02-13 11:27:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466100', 'tblTempUsageDetail_20' ) end [2025-02-13 11:27:39] Production.ERROR: pbx prc_insertCDR start [2025-02-13 11:27:39] Production.ERROR: pbx prc_insertCDR end [2025-02-13 11:27:39] Production.INFO: ==25854== Releasing lock... [2025-02-13 11:27:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 11:27:39] Production.INFO: 55.5 MB #Memory Used# [2025-02-13 11:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 08:28:06 [end_date_ymd] => 2025-02-13 11:28:06 [RateCDR] => 1 ) [2025-02-13 11: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-02-13 08:28:06' and `end` < '2025-02-13 11: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-02-13 11:28:27] Production.INFO: count ==3608 [2025-02-13 11:28:28] Production.ERROR: pbx CDR StartTime 2025-02-13 08:28:06 - End Time 2025-02-13 11:28:06 [2025-02-13 11:28:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 11:28:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466105', 'tblTempUsageDetail_20' ) start [2025-02-13 11:28:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466105', 'tblTempUsageDetail_20' ) end [2025-02-13 11:28:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466105', 'tblTempVendorCDR_20' ) start [2025-02-13 11:28:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466105', 'tblTempVendorCDR_20' ) end [2025-02-13 11:28:29] Production.INFO: ProcessCDR(1,14466105,1,1,2) [2025-02-13 11:28:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:28:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:28:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:28:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:28:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466105', 'tblTempUsageDetail_20' ) start [2025-02-13 11:28:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466105', 'tblTempUsageDetail_20' ) end [2025-02-13 11:28:34] Production.ERROR: pbx prc_insertCDR start [2025-02-13 11:28:34] Production.ERROR: pbx prc_insertCDR end [2025-02-13 11:28:34] Production.INFO: ==25925== Releasing lock... [2025-02-13 11:28:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 11:28:34] Production.INFO: 56 MB #Memory Used# [2025-02-13 11:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 08:29:06 [end_date_ymd] => 2025-02-13 11:29:06 [RateCDR] => 1 ) [2025-02-13 11: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-02-13 08:29:06' and `end` < '2025-02-13 11: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-02-13 11:29:22] Production.INFO: count ==3613 [2025-02-13 11:29:24] Production.ERROR: pbx CDR StartTime 2025-02-13 08:29:06 - End Time 2025-02-13 11:29:06 [2025-02-13 11:29:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 11:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466110', 'tblTempUsageDetail_20' ) start [2025-02-13 11:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466110', 'tblTempUsageDetail_20' ) end [2025-02-13 11:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466110', 'tblTempVendorCDR_20' ) start [2025-02-13 11:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466110', 'tblTempVendorCDR_20' ) end [2025-02-13 11:29:24] Production.INFO: ProcessCDR(1,14466110,1,1,2) [2025-02-13 11:29:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:29:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:29:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:29:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:29:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466110', 'tblTempUsageDetail_20' ) start [2025-02-13 11:29:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466110', 'tblTempUsageDetail_20' ) end [2025-02-13 11:29:29] Production.ERROR: pbx prc_insertCDR start [2025-02-13 11:29:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 11:29:30] Production.INFO: ==25995== Releasing lock... [2025-02-13 11:29:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 11:29:30] Production.INFO: 55.75 MB #Memory Used# [2025-02-13 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 08:30:06 [end_date_ymd] => 2025-02-13 11:30:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 08:30:06' and `end` < '2025-02-13 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-02-13 11:30:22] Production.INFO: count ==3624 [2025-02-13 11:30:23] Production.ERROR: pbx CDR StartTime 2025-02-13 08:30:06 - End Time 2025-02-13 11:30:06 [2025-02-13 11:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 11:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466116', 'tblTempUsageDetail_20' ) start [2025-02-13 11:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466116', 'tblTempUsageDetail_20' ) end [2025-02-13 11:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466116', 'tblTempVendorCDR_20' ) start [2025-02-13 11:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466116', 'tblTempVendorCDR_20' ) end [2025-02-13 11:30:23] Production.INFO: ProcessCDR(1,14466116,1,1,2) [2025-02-13 11:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466116', 'tblTempUsageDetail_20' ) start [2025-02-13 11:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466116', 'tblTempUsageDetail_20' ) end [2025-02-13 11:30:29] Production.ERROR: pbx prc_insertCDR start [2025-02-13 11:30:29] Production.ERROR: pbx prc_insertCDR end [2025-02-13 11:30:29] Production.INFO: ==26076== Releasing lock... [2025-02-13 11:30:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 11:30:29] Production.INFO: 56 MB #Memory Used# [2025-02-13 11:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 08:31:06 [end_date_ymd] => 2025-02-13 11:31:06 [RateCDR] => 1 ) [2025-02-13 11: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-02-13 08:31:06' and `end` < '2025-02-13 11: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-02-13 11:31:24] Production.INFO: count ==3703 [2025-02-13 11:31:25] Production.ERROR: pbx CDR StartTime 2025-02-13 08:31:06 - End Time 2025-02-13 11:31:06 [2025-02-13 11:31:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 11:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466121', 'tblTempUsageDetail_20' ) start [2025-02-13 11:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466121', 'tblTempUsageDetail_20' ) end [2025-02-13 11:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466121', 'tblTempVendorCDR_20' ) start [2025-02-13 11:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466121', 'tblTempVendorCDR_20' ) end [2025-02-13 11:31:26] Production.INFO: ProcessCDR(1,14466121,1,1,2) [2025-02-13 11:31:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:31:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:31:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:31:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466121', 'tblTempUsageDetail_20' ) start [2025-02-13 11:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466121', 'tblTempUsageDetail_20' ) end [2025-02-13 11:31:31] Production.ERROR: pbx prc_insertCDR start [2025-02-13 11:31:31] Production.ERROR: pbx prc_insertCDR end [2025-02-13 11:31:31] Production.INFO: ==26151== Releasing lock... [2025-02-13 11:31:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 11:31:31] Production.INFO: 55.75 MB #Memory Used# [2025-02-13 11:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 08:32:06 [end_date_ymd] => 2025-02-13 11:32:06 [RateCDR] => 1 ) [2025-02-13 11: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-02-13 08:32:06' and `end` < '2025-02-13 11: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-02-13 11:32:20] Production.INFO: count ==3706 [2025-02-13 11:32:22] Production.ERROR: pbx CDR StartTime 2025-02-13 08:32:06 - End Time 2025-02-13 11:32:06 [2025-02-13 11:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 11:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466126', 'tblTempUsageDetail_20' ) start [2025-02-13 11:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466126', 'tblTempUsageDetail_20' ) end [2025-02-13 11:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466126', 'tblTempVendorCDR_20' ) start [2025-02-13 11:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466126', 'tblTempVendorCDR_20' ) end [2025-02-13 11:32:22] Production.INFO: ProcessCDR(1,14466126,1,1,2) [2025-02-13 11:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466126', 'tblTempUsageDetail_20' ) start [2025-02-13 11:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466126', 'tblTempUsageDetail_20' ) end [2025-02-13 11:32:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 11:32:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 11:32:27] Production.INFO: ==26223== Releasing lock... [2025-02-13 11:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 11:32:27] Production.INFO: 56.25 MB #Memory Used# [2025-02-13 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 08:33:05 [end_date_ymd] => 2025-02-13 11:33:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 08:33:05' and `end` < '2025-02-13 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-02-13 11:33:22] Production.INFO: count ==3706 [2025-02-13 11:33:24] Production.ERROR: pbx CDR StartTime 2025-02-13 08:33:05 - End Time 2025-02-13 11:33:05 [2025-02-13 11:33:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 11:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466131', 'tblTempUsageDetail_20' ) start [2025-02-13 11:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466131', 'tblTempUsageDetail_20' ) end [2025-02-13 11:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466131', 'tblTempVendorCDR_20' ) start [2025-02-13 11:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466131', 'tblTempVendorCDR_20' ) end [2025-02-13 11:33:24] Production.INFO: ProcessCDR(1,14466131,1,1,2) [2025-02-13 11:33:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:33:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:33:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:33:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466131', 'tblTempUsageDetail_20' ) start [2025-02-13 11:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466131', 'tblTempUsageDetail_20' ) end [2025-02-13 11:33:29] Production.ERROR: pbx prc_insertCDR start [2025-02-13 11:33:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 11:33:30] Production.INFO: ==26295== Releasing lock... [2025-02-13 11:33:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 11:33:30] Production.INFO: 56 MB #Memory Used# [2025-02-13 11:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 08:34:06 [end_date_ymd] => 2025-02-13 11:34:06 [RateCDR] => 1 ) [2025-02-13 11: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-02-13 08:34:06' and `end` < '2025-02-13 11: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-02-13 11:34:25] Production.INFO: count ==3705 [2025-02-13 11:34:27] Production.ERROR: pbx CDR StartTime 2025-02-13 08:34:06 - End Time 2025-02-13 11:34:06 [2025-02-13 11:34:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 11:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466136', 'tblTempUsageDetail_20' ) start [2025-02-13 11:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466136', 'tblTempUsageDetail_20' ) end [2025-02-13 11:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466136', 'tblTempVendorCDR_20' ) start [2025-02-13 11:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466136', 'tblTempVendorCDR_20' ) end [2025-02-13 11:34:27] Production.INFO: ProcessCDR(1,14466136,1,1,2) [2025-02-13 11:34:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:34:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:34:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:34:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:34:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466136', 'tblTempUsageDetail_20' ) start [2025-02-13 11:34:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466136', 'tblTempUsageDetail_20' ) end [2025-02-13 11:34:32] Production.ERROR: pbx prc_insertCDR start [2025-02-13 11:34:32] Production.ERROR: pbx prc_insertCDR end [2025-02-13 11:34:32] Production.INFO: ==26366== Releasing lock... [2025-02-13 11:34:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 11:34:32] Production.INFO: 56 MB #Memory Used# [2025-02-13 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 08:35:05 [end_date_ymd] => 2025-02-13 11:35:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 08:35:05' and `end` < '2025-02-13 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-02-13 11:35:27] Production.INFO: count ==3714 [2025-02-13 11:35:28] Production.ERROR: pbx CDR StartTime 2025-02-13 08:35:05 - End Time 2025-02-13 11:35:05 [2025-02-13 11:35:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 11:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466141', 'tblTempUsageDetail_20' ) start [2025-02-13 11:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466141', 'tblTempUsageDetail_20' ) end [2025-02-13 11:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466141', 'tblTempVendorCDR_20' ) start [2025-02-13 11:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466141', 'tblTempVendorCDR_20' ) end [2025-02-13 11:35:29] Production.INFO: ProcessCDR(1,14466141,1,1,2) [2025-02-13 11:35:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:35:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:35:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:35:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:35:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466141', 'tblTempUsageDetail_20' ) start [2025-02-13 11:35:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466141', 'tblTempUsageDetail_20' ) end [2025-02-13 11:35:34] Production.ERROR: pbx prc_insertCDR start [2025-02-13 11:35:34] Production.ERROR: pbx prc_insertCDR end [2025-02-13 11:35:34] Production.INFO: ==26440== Releasing lock... [2025-02-13 11:35:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 11:35:34] Production.INFO: 56.25 MB #Memory Used# [2025-02-13 11:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 08:36:06 [end_date_ymd] => 2025-02-13 11:36:06 [RateCDR] => 1 ) [2025-02-13 11: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-02-13 08:36:06' and `end` < '2025-02-13 11: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-02-13 11:36:34] Production.INFO: count ==3732 [2025-02-13 11:36:36] Production.ERROR: pbx CDR StartTime 2025-02-13 08:36:06 - End Time 2025-02-13 11:36:06 [2025-02-13 11:36:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 11:36:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466146', 'tblTempUsageDetail_20' ) start [2025-02-13 11:36:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466146', 'tblTempUsageDetail_20' ) end [2025-02-13 11:36:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466146', 'tblTempVendorCDR_20' ) start [2025-02-13 11:36:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466146', 'tblTempVendorCDR_20' ) end [2025-02-13 11:36:36] Production.INFO: ProcessCDR(1,14466146,1,1,2) [2025-02-13 11:36:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:36:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:36:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:36:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:36:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466146', 'tblTempUsageDetail_20' ) start [2025-02-13 11:36:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466146', 'tblTempUsageDetail_20' ) end [2025-02-13 11:36:41] Production.ERROR: pbx prc_insertCDR start [2025-02-13 11:36:41] Production.ERROR: pbx prc_insertCDR end [2025-02-13 11:36:41] Production.INFO: ==26513== Releasing lock... [2025-02-13 11:36:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 11:36:41] Production.INFO: 55.75 MB #Memory Used# [2025-02-13 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 08:37:05 [end_date_ymd] => 2025-02-13 11:37:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 08:37:05' and `end` < '2025-02-13 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-02-13 11:37:24] Production.INFO: count ==3742 [2025-02-13 11:37:25] Production.ERROR: pbx CDR StartTime 2025-02-13 08:37:05 - End Time 2025-02-13 11:37:05 [2025-02-13 11:37:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 11:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466151', 'tblTempUsageDetail_20' ) start [2025-02-13 11:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466151', 'tblTempUsageDetail_20' ) end [2025-02-13 11:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466151', 'tblTempVendorCDR_20' ) start [2025-02-13 11:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466151', 'tblTempVendorCDR_20' ) end [2025-02-13 11:37:26] Production.INFO: ProcessCDR(1,14466151,1,1,2) [2025-02-13 11:37:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:37:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:37:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:37:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:37:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466151', 'tblTempUsageDetail_20' ) start [2025-02-13 11:37:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466151', 'tblTempUsageDetail_20' ) end [2025-02-13 11:37:31] Production.ERROR: pbx prc_insertCDR start [2025-02-13 11:37:31] Production.ERROR: pbx prc_insertCDR end [2025-02-13 11:37:31] Production.INFO: ==26582== Releasing lock... [2025-02-13 11:37:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 11:37:31] Production.INFO: 56.5 MB #Memory Used# [2025-02-13 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 08:38:05 [end_date_ymd] => 2025-02-13 11:38:05 [RateCDR] => 1 ) [2025-02-13 11: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-02-13 08:38:05' and `end` < '2025-02-13 11: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-02-13 11:38:19] Production.INFO: count ==3766 [2025-02-13 11:38:21] Production.ERROR: pbx CDR StartTime 2025-02-13 08:38:05 - End Time 2025-02-13 11:38:05 [2025-02-13 11:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466156', 'tblTempUsageDetail_20' ) start [2025-02-13 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466156', 'tblTempUsageDetail_20' ) end [2025-02-13 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466156', 'tblTempVendorCDR_20' ) start [2025-02-13 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466156', 'tblTempVendorCDR_20' ) end [2025-02-13 11:38:21] Production.INFO: ProcessCDR(1,14466156,1,1,2) [2025-02-13 11:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466156', 'tblTempUsageDetail_20' ) start [2025-02-13 11:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466156', 'tblTempUsageDetail_20' ) end [2025-02-13 11:38:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 11:38:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 11:38:26] Production.INFO: ==26657== Releasing lock... [2025-02-13 11:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 11:38:26] Production.INFO: 56.5 MB #Memory Used# [2025-02-13 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 08:39:05 [end_date_ymd] => 2025-02-13 11:39:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 08:39:05' and `end` < '2025-02-13 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-02-13 11:39:21] Production.INFO: count ==3794 [2025-02-13 11:39:22] Production.ERROR: pbx CDR StartTime 2025-02-13 08:39:05 - End Time 2025-02-13 11:39:05 [2025-02-13 11:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 11:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466161', 'tblTempUsageDetail_20' ) start [2025-02-13 11:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466161', 'tblTempUsageDetail_20' ) end [2025-02-13 11:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466161', 'tblTempVendorCDR_20' ) start [2025-02-13 11:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466161', 'tblTempVendorCDR_20' ) end [2025-02-13 11:39:22] Production.INFO: ProcessCDR(1,14466161,1,1,2) [2025-02-13 11:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466161', 'tblTempUsageDetail_20' ) start [2025-02-13 11:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466161', 'tblTempUsageDetail_20' ) end [2025-02-13 11:39:28] Production.ERROR: pbx prc_insertCDR start [2025-02-13 11:39:28] Production.ERROR: pbx prc_insertCDR end [2025-02-13 11:39:28] Production.INFO: ==26734== Releasing lock... [2025-02-13 11:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 11:39:28] Production.INFO: 56.5 MB #Memory Used# [2025-02-13 11:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 08:40:07 [end_date_ymd] => 2025-02-13 11:40:07 [RateCDR] => 1 ) [2025-02-13 11: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-02-13 08:40:07' and `end` < '2025-02-13 11: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-02-13 11:40:26] Production.INFO: count ==3803 [2025-02-13 11:40:28] Production.ERROR: pbx CDR StartTime 2025-02-13 08:40:07 - End Time 2025-02-13 11:40:07 [2025-02-13 11:40:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 11:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466166', 'tblTempUsageDetail_20' ) start [2025-02-13 11:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466166', 'tblTempUsageDetail_20' ) end [2025-02-13 11:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466166', 'tblTempVendorCDR_20' ) start [2025-02-13 11:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466166', 'tblTempVendorCDR_20' ) end [2025-02-13 11:40:28] Production.INFO: ProcessCDR(1,14466166,1,1,2) [2025-02-13 11:40:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:40:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:40:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:40:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:40:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466166', 'tblTempUsageDetail_20' ) start [2025-02-13 11:40:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466166', 'tblTempUsageDetail_20' ) end [2025-02-13 11:40:33] Production.ERROR: pbx prc_insertCDR start [2025-02-13 11:40:33] Production.ERROR: pbx prc_insertCDR end [2025-02-13 11:40:33] Production.INFO: ==26808== Releasing lock... [2025-02-13 11:40:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 11:40:33] Production.INFO: 56.5 MB #Memory Used# [2025-02-13 11:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 08:41:06 [end_date_ymd] => 2025-02-13 11:41:06 [RateCDR] => 1 ) [2025-02-13 11: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-02-13 08:41:06' and `end` < '2025-02-13 11: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-02-13 11:41:24] Production.INFO: count ==3878 [2025-02-13 11:41:26] Production.ERROR: pbx CDR StartTime 2025-02-13 08:41:06 - End Time 2025-02-13 11:41:06 [2025-02-13 11:41:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 11:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466172', 'tblTempUsageDetail_20' ) start [2025-02-13 11:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466172', 'tblTempUsageDetail_20' ) end [2025-02-13 11:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466172', 'tblTempVendorCDR_20' ) start [2025-02-13 11:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466172', 'tblTempVendorCDR_20' ) end [2025-02-13 11:41:26] Production.INFO: ProcessCDR(1,14466172,1,1,2) [2025-02-13 11:41:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:41:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:41:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:41:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466172', 'tblTempUsageDetail_20' ) start [2025-02-13 11:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466172', 'tblTempUsageDetail_20' ) end [2025-02-13 11:41:31] Production.ERROR: pbx prc_insertCDR start [2025-02-13 11:41:31] Production.ERROR: pbx prc_insertCDR end [2025-02-13 11:41:31] Production.INFO: ==26918== Releasing lock... [2025-02-13 11:41:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 11:41:31] Production.INFO: 57.25 MB #Memory Used# [2025-02-13 11:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 08:42:06 [end_date_ymd] => 2025-02-13 11:42:06 [RateCDR] => 1 ) [2025-02-13 11: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-02-13 08:42:06' and `end` < '2025-02-13 11: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-02-13 11:42:23] Production.INFO: count ==3880 [2025-02-13 11:42:25] Production.ERROR: pbx CDR StartTime 2025-02-13 08:42:06 - End Time 2025-02-13 11:42:06 [2025-02-13 11:42:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 11:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466177', 'tblTempUsageDetail_20' ) start [2025-02-13 11:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466177', 'tblTempUsageDetail_20' ) end [2025-02-13 11:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466177', 'tblTempVendorCDR_20' ) start [2025-02-13 11:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466177', 'tblTempVendorCDR_20' ) end [2025-02-13 11:42:25] Production.INFO: ProcessCDR(1,14466177,1,1,2) [2025-02-13 11:42:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:42:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:42:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:42:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:42:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466177', 'tblTempUsageDetail_20' ) start [2025-02-13 11:42:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466177', 'tblTempUsageDetail_20' ) end [2025-02-13 11:42:30] Production.ERROR: pbx prc_insertCDR start [2025-02-13 11:42:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 11:42:30] Production.INFO: ==26989== Releasing lock... [2025-02-13 11:42:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 11:42:30] Production.INFO: 57 MB #Memory Used# [2025-02-13 11:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 08:43:06 [end_date_ymd] => 2025-02-13 11:43:06 [RateCDR] => 1 ) [2025-02-13 11: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-02-13 08:43:06' and `end` < '2025-02-13 11: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-02-13 11:43:20] Production.INFO: count ==3882 [2025-02-13 11:43:22] Production.ERROR: pbx CDR StartTime 2025-02-13 08:43:06 - End Time 2025-02-13 11:43:06 [2025-02-13 11:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 11:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466182', 'tblTempUsageDetail_20' ) start [2025-02-13 11:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466182', 'tblTempUsageDetail_20' ) end [2025-02-13 11:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466182', 'tblTempVendorCDR_20' ) start [2025-02-13 11:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466182', 'tblTempVendorCDR_20' ) end [2025-02-13 11:43:22] Production.INFO: ProcessCDR(1,14466182,1,1,2) [2025-02-13 11:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466182', 'tblTempUsageDetail_20' ) start [2025-02-13 11:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466182', 'tblTempUsageDetail_20' ) end [2025-02-13 11:43:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 11:43:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 11:43:27] Production.INFO: ==27059== Releasing lock... [2025-02-13 11:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 11:43:27] Production.INFO: 57 MB #Memory Used# [2025-02-13 11:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 08:44:06 [end_date_ymd] => 2025-02-13 11:44:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 08:44:06' and `end` < '2025-02-13 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-02-13 11:44:25] Production.INFO: count ==3895 [2025-02-13 11:44:27] Production.ERROR: pbx CDR StartTime 2025-02-13 08:44:06 - End Time 2025-02-13 11:44:06 [2025-02-13 11:44:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 11:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466187', 'tblTempUsageDetail_20' ) start [2025-02-13 11:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466187', 'tblTempUsageDetail_20' ) end [2025-02-13 11:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466187', 'tblTempVendorCDR_20' ) start [2025-02-13 11:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466187', 'tblTempVendorCDR_20' ) end [2025-02-13 11:44:27] Production.INFO: ProcessCDR(1,14466187,1,1,2) [2025-02-13 11:44:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:44:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:44:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:44:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:44:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466187', 'tblTempUsageDetail_20' ) start [2025-02-13 11:44:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466187', 'tblTempUsageDetail_20' ) end [2025-02-13 11:44:32] Production.ERROR: pbx prc_insertCDR start [2025-02-13 11:44:32] Production.ERROR: pbx prc_insertCDR end [2025-02-13 11:44:32] Production.INFO: ==27133== Releasing lock... [2025-02-13 11:44:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 11:44:32] Production.INFO: 57 MB #Memory Used# [2025-02-13 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 08:45:05 [end_date_ymd] => 2025-02-13 11:45:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 08:45:05' and `end` < '2025-02-13 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-02-13 11:45:27] Production.INFO: count ==3924 [2025-02-13 11:45:28] Production.ERROR: pbx CDR StartTime 2025-02-13 08:45:05 - End Time 2025-02-13 11:45:05 [2025-02-13 11:45:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 11:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466192', 'tblTempUsageDetail_20' ) start [2025-02-13 11:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466192', 'tblTempUsageDetail_20' ) end [2025-02-13 11:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466192', 'tblTempVendorCDR_20' ) start [2025-02-13 11:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466192', 'tblTempVendorCDR_20' ) end [2025-02-13 11:45:28] Production.INFO: ProcessCDR(1,14466192,1,1,2) [2025-02-13 11:45:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:45:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:45:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:45:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:45:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466192', 'tblTempUsageDetail_20' ) start [2025-02-13 11:45:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466192', 'tblTempUsageDetail_20' ) end [2025-02-13 11:45:34] Production.ERROR: pbx prc_insertCDR start [2025-02-13 11:45:34] Production.ERROR: pbx prc_insertCDR end [2025-02-13 11:45:34] Production.INFO: ==27210== Releasing lock... [2025-02-13 11:45:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 11:45:34] Production.INFO: 57.5 MB #Memory Used# [2025-02-13 11:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 08:46:06 [end_date_ymd] => 2025-02-13 11:46:06 [RateCDR] => 1 ) [2025-02-13 11: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-02-13 08:46:06' and `end` < '2025-02-13 11: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-02-13 11:46:25] Production.INFO: count ==3923 [2025-02-13 11:46:27] Production.ERROR: pbx CDR StartTime 2025-02-13 08:46:06 - End Time 2025-02-13 11:46:06 [2025-02-13 11:46:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 11:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466197', 'tblTempUsageDetail_20' ) start [2025-02-13 11:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466197', 'tblTempUsageDetail_20' ) end [2025-02-13 11:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466197', 'tblTempVendorCDR_20' ) start [2025-02-13 11:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466197', 'tblTempVendorCDR_20' ) end [2025-02-13 11:46:27] Production.INFO: ProcessCDR(1,14466197,1,1,2) [2025-02-13 11:46:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:46:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:46:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:46:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:46:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466197', 'tblTempUsageDetail_20' ) start [2025-02-13 11:46:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466197', 'tblTempUsageDetail_20' ) end [2025-02-13 11:46:32] Production.ERROR: pbx prc_insertCDR start [2025-02-13 11:46:32] Production.ERROR: pbx prc_insertCDR end [2025-02-13 11:46:32] Production.INFO: ==27283== Releasing lock... [2025-02-13 11:46:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 11:46:32] Production.INFO: 57.5 MB #Memory Used# [2025-02-13 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 08:47:05 [end_date_ymd] => 2025-02-13 11:47:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 08:47:05' and `end` < '2025-02-13 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-02-13 11:47:31] Production.INFO: count ==3924 [2025-02-13 11:47:32] Production.ERROR: pbx CDR StartTime 2025-02-13 08:47:05 - End Time 2025-02-13 11:47:05 [2025-02-13 11:47:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 11:47:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466202', 'tblTempUsageDetail_20' ) start [2025-02-13 11:47:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466202', 'tblTempUsageDetail_20' ) end [2025-02-13 11:47:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466202', 'tblTempVendorCDR_20' ) start [2025-02-13 11:47:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466202', 'tblTempVendorCDR_20' ) end [2025-02-13 11:47:33] Production.INFO: ProcessCDR(1,14466202,1,1,2) [2025-02-13 11:47:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:47:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:47:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:47:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:47:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466202', 'tblTempUsageDetail_20' ) start [2025-02-13 11:47:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466202', 'tblTempUsageDetail_20' ) end [2025-02-13 11:47:39] Production.ERROR: pbx prc_insertCDR start [2025-02-13 11:47:39] Production.ERROR: pbx prc_insertCDR end [2025-02-13 11:47:39] Production.INFO: ==27354== Releasing lock... [2025-02-13 11:47:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 11:47:39] Production.INFO: 57.5 MB #Memory Used# [2025-02-13 11:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 08:48:06 [end_date_ymd] => 2025-02-13 11:48:06 [RateCDR] => 1 ) [2025-02-13 11: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-02-13 08:48:06' and `end` < '2025-02-13 11: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-02-13 11:48:24] Production.INFO: count ==3939 [2025-02-13 11:48:26] Production.ERROR: pbx CDR StartTime 2025-02-13 08:48:06 - End Time 2025-02-13 11:48:06 [2025-02-13 11:48:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 11:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466207', 'tblTempUsageDetail_20' ) start [2025-02-13 11:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466207', 'tblTempUsageDetail_20' ) end [2025-02-13 11:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466207', 'tblTempVendorCDR_20' ) start [2025-02-13 11:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466207', 'tblTempVendorCDR_20' ) end [2025-02-13 11:48:26] Production.INFO: ProcessCDR(1,14466207,1,1,2) [2025-02-13 11:48:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:48:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:48:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:48:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:48:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466207', 'tblTempUsageDetail_20' ) start [2025-02-13 11:48:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466207', 'tblTempUsageDetail_20' ) end [2025-02-13 11:48:31] Production.ERROR: pbx prc_insertCDR start [2025-02-13 11:48:31] Production.ERROR: pbx prc_insertCDR end [2025-02-13 11:48:31] Production.INFO: ==27423== Releasing lock... [2025-02-13 11:48:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 11:48:31] Production.INFO: 57.5 MB #Memory Used# [2025-02-13 11:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 08:49:06 [end_date_ymd] => 2025-02-13 11:49:06 [RateCDR] => 1 ) [2025-02-13 11: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-02-13 08:49:06' and `end` < '2025-02-13 11: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-02-13 11:49:20] Production.INFO: count ==3968 [2025-02-13 11:49:21] Production.ERROR: pbx CDR StartTime 2025-02-13 08:49:06 - End Time 2025-02-13 11:49:06 [2025-02-13 11:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466212', 'tblTempUsageDetail_20' ) start [2025-02-13 11:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466212', 'tblTempUsageDetail_20' ) end [2025-02-13 11:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466212', 'tblTempVendorCDR_20' ) start [2025-02-13 11:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466212', 'tblTempVendorCDR_20' ) end [2025-02-13 11:49:22] Production.INFO: ProcessCDR(1,14466212,1,1,2) [2025-02-13 11:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466212', 'tblTempUsageDetail_20' ) start [2025-02-13 11:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466212', 'tblTempUsageDetail_20' ) end [2025-02-13 11:49:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 11:49:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 11:49:27] Production.INFO: ==27504== Releasing lock... [2025-02-13 11:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 11:49:27] Production.INFO: 57.75 MB #Memory Used# [2025-02-13 11:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 08:50:07 [end_date_ymd] => 2025-02-13 11:50:07 [RateCDR] => 1 ) [2025-02-13 11: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-02-13 08:50:07' and `end` < '2025-02-13 11: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-02-13 11:50:20] Production.INFO: count ==3991 [2025-02-13 11:50:22] Production.ERROR: pbx CDR StartTime 2025-02-13 08:50:07 - End Time 2025-02-13 11:50:07 [2025-02-13 11:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466218', 'tblTempUsageDetail_20' ) start [2025-02-13 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466218', 'tblTempUsageDetail_20' ) end [2025-02-13 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466218', 'tblTempVendorCDR_20' ) start [2025-02-13 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466218', 'tblTempVendorCDR_20' ) end [2025-02-13 11:50:22] Production.INFO: ProcessCDR(1,14466218,1,1,2) [2025-02-13 11:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466218', 'tblTempUsageDetail_20' ) start [2025-02-13 11:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466218', 'tblTempUsageDetail_20' ) end [2025-02-13 11:50:28] Production.ERROR: pbx prc_insertCDR start [2025-02-13 11:50:28] Production.ERROR: pbx prc_insertCDR end [2025-02-13 11:50:28] Production.INFO: ==27583== Releasing lock... [2025-02-13 11:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 11:50:28] Production.INFO: 57.75 MB #Memory Used# [2025-02-13 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 08:51:05 [end_date_ymd] => 2025-02-13 11:51:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 08:51:05' and `end` < '2025-02-13 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-02-13 11:51:19] Production.INFO: count ==4048 [2025-02-13 11:51:20] Production.ERROR: pbx CDR StartTime 2025-02-13 08:51:05 - End Time 2025-02-13 11:51:05 [2025-02-13 11:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466223', 'tblTempUsageDetail_20' ) start [2025-02-13 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466223', 'tblTempUsageDetail_20' ) end [2025-02-13 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466223', 'tblTempVendorCDR_20' ) start [2025-02-13 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466223', 'tblTempVendorCDR_20' ) end [2025-02-13 11:51:20] Production.INFO: ProcessCDR(1,14466223,1,1,2) [2025-02-13 11:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466223', 'tblTempUsageDetail_20' ) start [2025-02-13 11:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466223', 'tblTempUsageDetail_20' ) end [2025-02-13 11:51:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 11:51:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 11:51:25] Production.INFO: ==27657== Releasing lock... [2025-02-13 11:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 11:51:25] Production.INFO: 58.25 MB #Memory Used# [2025-02-13 11:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 08:52:06 [end_date_ymd] => 2025-02-13 11:52:06 [RateCDR] => 1 ) [2025-02-13 11: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-02-13 08:52:06' and `end` < '2025-02-13 11: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-02-13 11:52:22] Production.INFO: count ==4068 [2025-02-13 11:52:23] Production.ERROR: pbx CDR StartTime 2025-02-13 08:52:06 - End Time 2025-02-13 11:52:06 [2025-02-13 11:52:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 11:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466228', 'tblTempUsageDetail_20' ) start [2025-02-13 11:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466228', 'tblTempUsageDetail_20' ) end [2025-02-13 11:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466228', 'tblTempVendorCDR_20' ) start [2025-02-13 11:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466228', 'tblTempVendorCDR_20' ) end [2025-02-13 11:52:23] Production.INFO: ProcessCDR(1,14466228,1,1,2) [2025-02-13 11:52:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:52:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:52:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:52:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466228', 'tblTempUsageDetail_20' ) start [2025-02-13 11:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466228', 'tblTempUsageDetail_20' ) end [2025-02-13 11:52:29] Production.ERROR: pbx prc_insertCDR start [2025-02-13 11:52:29] Production.ERROR: pbx prc_insertCDR end [2025-02-13 11:52:29] Production.INFO: ==27730== Releasing lock... [2025-02-13 11:52:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 11:52:29] Production.INFO: 58.5 MB #Memory Used# [2025-02-13 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 08:53:05 [end_date_ymd] => 2025-02-13 11:53:05 [RateCDR] => 1 ) [2025-02-13 11: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-02-13 08:53:05' and `end` < '2025-02-13 11: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-02-13 11:53:20] Production.INFO: count ==4078 [2025-02-13 11:53:22] Production.ERROR: pbx CDR StartTime 2025-02-13 08:53:05 - End Time 2025-02-13 11:53:05 [2025-02-13 11:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 11:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466233', 'tblTempUsageDetail_20' ) start [2025-02-13 11:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466233', 'tblTempUsageDetail_20' ) end [2025-02-13 11:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466233', 'tblTempVendorCDR_20' ) start [2025-02-13 11:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466233', 'tblTempVendorCDR_20' ) end [2025-02-13 11:53:22] Production.INFO: ProcessCDR(1,14466233,1,1,2) [2025-02-13 11:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466233', 'tblTempUsageDetail_20' ) start [2025-02-13 11:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466233', 'tblTempUsageDetail_20' ) end [2025-02-13 11:53:28] Production.ERROR: pbx prc_insertCDR start [2025-02-13 11:53:28] Production.ERROR: pbx prc_insertCDR end [2025-02-13 11:53:28] Production.INFO: ==27801== Releasing lock... [2025-02-13 11:53:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 11:53:28] Production.INFO: 58.5 MB #Memory Used# [2025-02-13 11:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 08:54:06 [end_date_ymd] => 2025-02-13 11:54:06 [RateCDR] => 1 ) [2025-02-13 11: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-02-13 08:54:06' and `end` < '2025-02-13 11: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-02-13 11:54:20] Production.INFO: count ==4100 [2025-02-13 11:54:21] Production.ERROR: pbx CDR StartTime 2025-02-13 08:54:06 - End Time 2025-02-13 11:54:06 [2025-02-13 11:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466238', 'tblTempUsageDetail_20' ) start [2025-02-13 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466238', 'tblTempUsageDetail_20' ) end [2025-02-13 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466238', 'tblTempVendorCDR_20' ) start [2025-02-13 11:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466238', 'tblTempVendorCDR_20' ) end [2025-02-13 11:54:22] Production.INFO: ProcessCDR(1,14466238,1,1,2) [2025-02-13 11:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466238', 'tblTempUsageDetail_20' ) start [2025-02-13 11:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466238', 'tblTempUsageDetail_20' ) end [2025-02-13 11:54:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 11:54:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 11:54:27] Production.INFO: ==27872== Releasing lock... [2025-02-13 11:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 11:54:27] Production.INFO: 58.75 MB #Memory Used# [2025-02-13 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 08:55:05 [end_date_ymd] => 2025-02-13 11:55:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 08:55:05' and `end` < '2025-02-13 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-02-13 11:55:20] Production.INFO: count ==4113 [2025-02-13 11:55:21] Production.ERROR: pbx CDR StartTime 2025-02-13 08:55:05 - End Time 2025-02-13 11:55:05 [2025-02-13 11:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466243', 'tblTempUsageDetail_20' ) start [2025-02-13 11:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466243', 'tblTempUsageDetail_20' ) end [2025-02-13 11:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466243', 'tblTempVendorCDR_20' ) start [2025-02-13 11:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466243', 'tblTempVendorCDR_20' ) end [2025-02-13 11:55:22] Production.INFO: ProcessCDR(1,14466243,1,1,2) [2025-02-13 11:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466243', 'tblTempUsageDetail_20' ) start [2025-02-13 11:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466243', 'tblTempUsageDetail_20' ) end [2025-02-13 11:55:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 11:55:28] Production.ERROR: pbx prc_insertCDR end [2025-02-13 11:55:28] Production.INFO: ==27941== Releasing lock... [2025-02-13 11:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 11:55:28] Production.INFO: 58.75 MB #Memory Used# [2025-02-13 11:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 08:56:06 [end_date_ymd] => 2025-02-13 11:56:06 [RateCDR] => 1 ) [2025-02-13 11: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-02-13 08:56:06' and `end` < '2025-02-13 11: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-02-13 11:56:20] Production.INFO: count ==4128 [2025-02-13 11:56:22] Production.ERROR: pbx CDR StartTime 2025-02-13 08:56:06 - End Time 2025-02-13 11:56:06 [2025-02-13 11:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 11:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466248', 'tblTempUsageDetail_20' ) start [2025-02-13 11:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466248', 'tblTempUsageDetail_20' ) end [2025-02-13 11:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466248', 'tblTempVendorCDR_20' ) start [2025-02-13 11:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466248', 'tblTempVendorCDR_20' ) end [2025-02-13 11:56:22] Production.INFO: ProcessCDR(1,14466248,1,1,2) [2025-02-13 11:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466248', 'tblTempUsageDetail_20' ) start [2025-02-13 11:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466248', 'tblTempUsageDetail_20' ) end [2025-02-13 11:56:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 11:56:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 11:56:27] Production.INFO: ==28056== Releasing lock... [2025-02-13 11:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 11:56:27] Production.INFO: 59 MB #Memory Used# [2025-02-13 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 08:57:05 [end_date_ymd] => 2025-02-13 11:57:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 08:57:05' and `end` < '2025-02-13 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-02-13 11:57:19] Production.INFO: count ==4132 [2025-02-13 11:57:21] Production.ERROR: pbx CDR StartTime 2025-02-13 08:57:05 - End Time 2025-02-13 11:57:05 [2025-02-13 11:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466253', 'tblTempUsageDetail_20' ) start [2025-02-13 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466253', 'tblTempUsageDetail_20' ) end [2025-02-13 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466253', 'tblTempVendorCDR_20' ) start [2025-02-13 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466253', 'tblTempVendorCDR_20' ) end [2025-02-13 11:57:21] Production.INFO: ProcessCDR(1,14466253,1,1,2) [2025-02-13 11:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466253', 'tblTempUsageDetail_20' ) start [2025-02-13 11:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466253', 'tblTempUsageDetail_20' ) end [2025-02-13 11:57:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 11:57:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 11:57:26] Production.INFO: ==28126== Releasing lock... [2025-02-13 11:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 11:57:26] Production.INFO: 59 MB #Memory Used# [2025-02-13 11:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 08:58:06 [end_date_ymd] => 2025-02-13 11:58:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 08:58:06' and `end` < '2025-02-13 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-02-13 11:58:21] Production.INFO: count ==4141 [2025-02-13 11:58:23] Production.ERROR: pbx CDR StartTime 2025-02-13 08:58:06 - End Time 2025-02-13 11:58:06 [2025-02-13 11:58:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 11:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466258', 'tblTempUsageDetail_20' ) start [2025-02-13 11:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466258', 'tblTempUsageDetail_20' ) end [2025-02-13 11:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466258', 'tblTempVendorCDR_20' ) start [2025-02-13 11:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466258', 'tblTempVendorCDR_20' ) end [2025-02-13 11:58:23] Production.INFO: ProcessCDR(1,14466258,1,1,2) [2025-02-13 11:58:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:58:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:58:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:58:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466258', 'tblTempUsageDetail_20' ) start [2025-02-13 11:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466258', 'tblTempUsageDetail_20' ) end [2025-02-13 11:58:28] Production.ERROR: pbx prc_insertCDR start [2025-02-13 11:58:28] Production.ERROR: pbx prc_insertCDR end [2025-02-13 11:58:28] Production.INFO: ==28198== Releasing lock... [2025-02-13 11:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 11:58:28] Production.INFO: 59 MB #Memory Used# [2025-02-13 11:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 08:59:06 [end_date_ymd] => 2025-02-13 11:59:06 [RateCDR] => 1 ) [2025-02-13 11: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-02-13 08:59:06' and `end` < '2025-02-13 11: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-02-13 11:59:28] Production.INFO: count ==4155 [2025-02-13 11:59:30] Production.ERROR: pbx CDR StartTime 2025-02-13 08:59:06 - End Time 2025-02-13 11:59:06 [2025-02-13 11:59:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 11:59:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466263', 'tblTempUsageDetail_20' ) start [2025-02-13 11:59:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466263', 'tblTempUsageDetail_20' ) end [2025-02-13 11:59:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466263', 'tblTempVendorCDR_20' ) start [2025-02-13 11:59:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466263', 'tblTempVendorCDR_20' ) end [2025-02-13 11:59:30] Production.INFO: ProcessCDR(1,14466263,1,1,2) [2025-02-13 11:59:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:59:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 11:59:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:59:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 11:59:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466263', 'tblTempUsageDetail_20' ) start [2025-02-13 11:59:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466263', 'tblTempUsageDetail_20' ) end [2025-02-13 11:59:36] Production.ERROR: pbx prc_insertCDR start [2025-02-13 11:59:36] Production.ERROR: pbx prc_insertCDR end [2025-02-13 11:59:36] Production.INFO: ==28273== Releasing lock... [2025-02-13 11:59:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 11:59:36] Production.INFO: 59 MB #Memory Used# [2025-02-13 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 09:00:06 [end_date_ymd] => 2025-02-13 12:00:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 09:00:06' and `end` < '2025-02-13 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-02-13 12:00:31] Production.INFO: count ==4149 [2025-02-13 12:00:33] Production.ERROR: pbx CDR StartTime 2025-02-13 09:00:06 - End Time 2025-02-13 12:00:06 [2025-02-13 12:00:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 12:00:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466269', 'tblTempUsageDetail_20' ) start [2025-02-13 12:00:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466269', 'tblTempUsageDetail_20' ) end [2025-02-13 12:00:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466269', 'tblTempVendorCDR_20' ) start [2025-02-13 12:00:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466269', 'tblTempVendorCDR_20' ) end [2025-02-13 12:00:33] Production.INFO: ProcessCDR(1,14466269,1,1,2) [2025-02-13 12:00:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:00:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:00:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:00:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:00:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466269', 'tblTempUsageDetail_20' ) start [2025-02-13 12:00:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466269', 'tblTempUsageDetail_20' ) end [2025-02-13 12:00:38] Production.ERROR: pbx prc_insertCDR start [2025-02-13 12:00:38] Production.ERROR: pbx prc_insertCDR end [2025-02-13 12:00:38] Production.INFO: ==28348== Releasing lock... [2025-02-13 12:00:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 12:00:38] Production.INFO: 59 MB #Memory Used# [2025-02-13 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 09:01:05 [end_date_ymd] => 2025-02-13 12:01:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 09:01:05' and `end` < '2025-02-13 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-02-13 12:01:22] Production.INFO: count ==4167 [2025-02-13 12:01:24] Production.ERROR: pbx CDR StartTime 2025-02-13 09:01:05 - End Time 2025-02-13 12:01:05 [2025-02-13 12:01:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 12:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466274', 'tblTempUsageDetail_20' ) start [2025-02-13 12:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466274', 'tblTempUsageDetail_20' ) end [2025-02-13 12:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466274', 'tblTempVendorCDR_20' ) start [2025-02-13 12:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466274', 'tblTempVendorCDR_20' ) end [2025-02-13 12:01:24] Production.INFO: ProcessCDR(1,14466274,1,1,2) [2025-02-13 12:01:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:01:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:01:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:01:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466274', 'tblTempUsageDetail_20' ) start [2025-02-13 12:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466274', 'tblTempUsageDetail_20' ) end [2025-02-13 12:01:30] Production.ERROR: pbx prc_insertCDR start [2025-02-13 12:01:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 12:01:30] Production.INFO: ==28435== Releasing lock... [2025-02-13 12:01:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 12:01:30] Production.INFO: 59.25 MB #Memory Used# [2025-02-13 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 09:02:05 [end_date_ymd] => 2025-02-13 12:02:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 09:02:05' and `end` < '2025-02-13 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-02-13 12:02:19] Production.INFO: count ==4150 [2025-02-13 12:02:21] Production.ERROR: pbx CDR StartTime 2025-02-13 09:02:05 - End Time 2025-02-13 12:02:05 [2025-02-13 12:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466279', 'tblTempUsageDetail_20' ) start [2025-02-13 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466279', 'tblTempUsageDetail_20' ) end [2025-02-13 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466279', 'tblTempVendorCDR_20' ) start [2025-02-13 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466279', 'tblTempVendorCDR_20' ) end [2025-02-13 12:02:21] Production.INFO: ProcessCDR(1,14466279,1,1,2) [2025-02-13 12:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466279', 'tblTempUsageDetail_20' ) start [2025-02-13 12:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466279', 'tblTempUsageDetail_20' ) end [2025-02-13 12:02:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 12:02:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 12:02:27] Production.INFO: ==28509== Releasing lock... [2025-02-13 12:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 12:02:27] Production.INFO: 59 MB #Memory Used# [2025-02-13 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 09:03:05 [end_date_ymd] => 2025-02-13 12:03:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 09:03:05' and `end` < '2025-02-13 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-02-13 12:03:20] Production.INFO: count ==4131 [2025-02-13 12:03:22] Production.ERROR: pbx CDR StartTime 2025-02-13 09:03:05 - End Time 2025-02-13 12:03:05 [2025-02-13 12:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 12:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466284', 'tblTempUsageDetail_20' ) start [2025-02-13 12:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466284', 'tblTempUsageDetail_20' ) end [2025-02-13 12:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466284', 'tblTempVendorCDR_20' ) start [2025-02-13 12:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466284', 'tblTempVendorCDR_20' ) end [2025-02-13 12:03:22] Production.INFO: ProcessCDR(1,14466284,1,1,2) [2025-02-13 12:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466284', 'tblTempUsageDetail_20' ) start [2025-02-13 12:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466284', 'tblTempUsageDetail_20' ) end [2025-02-13 12:03:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 12:03:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 12:03:27] Production.INFO: ==28583== Releasing lock... [2025-02-13 12:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 12:03:27] Production.INFO: 59 MB #Memory Used# [2025-02-13 12:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 09:04:06 [end_date_ymd] => 2025-02-13 12:04:06 [RateCDR] => 1 ) [2025-02-13 12: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-02-13 09:04:06' and `end` < '2025-02-13 12: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-02-13 12:04:20] Production.INFO: count ==4122 [2025-02-13 12:04:21] Production.ERROR: pbx CDR StartTime 2025-02-13 09:04:06 - End Time 2025-02-13 12:04:06 [2025-02-13 12:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466289', 'tblTempUsageDetail_20' ) start [2025-02-13 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466289', 'tblTempUsageDetail_20' ) end [2025-02-13 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466289', 'tblTempVendorCDR_20' ) start [2025-02-13 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466289', 'tblTempVendorCDR_20' ) end [2025-02-13 12:04:22] Production.INFO: ProcessCDR(1,14466289,1,1,2) [2025-02-13 12:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466289', 'tblTempUsageDetail_20' ) start [2025-02-13 12:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466289', 'tblTempUsageDetail_20' ) end [2025-02-13 12:04:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 12:04:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 12:04:27] Production.INFO: ==28658== Releasing lock... [2025-02-13 12:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 12:04:27] Production.INFO: 58.75 MB #Memory Used# [2025-02-13 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 09:05:05 [end_date_ymd] => 2025-02-13 12:05:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 09:05:05' and `end` < '2025-02-13 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-02-13 12:05:27] Production.INFO: count ==4113 [2025-02-13 12:05:29] Production.ERROR: pbx CDR StartTime 2025-02-13 09:05:05 - End Time 2025-02-13 12:05:05 [2025-02-13 12:05:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 12:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466294', 'tblTempUsageDetail_20' ) start [2025-02-13 12:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466294', 'tblTempUsageDetail_20' ) end [2025-02-13 12:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466294', 'tblTempVendorCDR_20' ) start [2025-02-13 12:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466294', 'tblTempVendorCDR_20' ) end [2025-02-13 12:05:29] Production.INFO: ProcessCDR(1,14466294,1,1,2) [2025-02-13 12:05:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:05:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:05:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:05:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:05:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466294', 'tblTempUsageDetail_20' ) start [2025-02-13 12:05:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466294', 'tblTempUsageDetail_20' ) end [2025-02-13 12:05:34] Production.ERROR: pbx prc_insertCDR start [2025-02-13 12:05:34] Production.ERROR: pbx prc_insertCDR end [2025-02-13 12:05:34] Production.INFO: ==28728== Releasing lock... [2025-02-13 12:05:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 12:05:34] Production.INFO: 58.75 MB #Memory Used# [2025-02-13 12:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 09:06:06 [end_date_ymd] => 2025-02-13 12:06:06 [RateCDR] => 1 ) [2025-02-13 12: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-02-13 09:06:06' and `end` < '2025-02-13 12: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-02-13 12:06:30] Production.INFO: count ==4137 [2025-02-13 12:06:32] Production.ERROR: pbx CDR StartTime 2025-02-13 09:06:06 - End Time 2025-02-13 12:06:06 [2025-02-13 12:06:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 12:06:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466299', 'tblTempUsageDetail_20' ) start [2025-02-13 12:06:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466299', 'tblTempUsageDetail_20' ) end [2025-02-13 12:06:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466299', 'tblTempVendorCDR_20' ) start [2025-02-13 12:06:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466299', 'tblTempVendorCDR_20' ) end [2025-02-13 12:06:32] Production.INFO: ProcessCDR(1,14466299,1,1,2) [2025-02-13 12:06:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:06:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:06:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:06:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:06:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466299', 'tblTempUsageDetail_20' ) start [2025-02-13 12:06:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466299', 'tblTempUsageDetail_20' ) end [2025-02-13 12:06:38] Production.ERROR: pbx prc_insertCDR start [2025-02-13 12:06:38] Production.ERROR: pbx prc_insertCDR end [2025-02-13 12:06:38] Production.INFO: ==28797== Releasing lock... [2025-02-13 12:06:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 12:06:38] Production.INFO: 59 MB #Memory Used# [2025-02-13 12:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 09:07:06 [end_date_ymd] => 2025-02-13 12:07:06 [RateCDR] => 1 ) [2025-02-13 12: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-02-13 09:07:06' and `end` < '2025-02-13 12: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-02-13 12:07:24] Production.INFO: count ==4142 [2025-02-13 12:07:26] Production.ERROR: pbx CDR StartTime 2025-02-13 09:07:06 - End Time 2025-02-13 12:07:06 [2025-02-13 12:07:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 12:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466304', 'tblTempUsageDetail_20' ) start [2025-02-13 12:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466304', 'tblTempUsageDetail_20' ) end [2025-02-13 12:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466304', 'tblTempVendorCDR_20' ) start [2025-02-13 12:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466304', 'tblTempVendorCDR_20' ) end [2025-02-13 12:07:26] Production.INFO: ProcessCDR(1,14466304,1,1,2) [2025-02-13 12:07:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:07:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:07:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:07:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466304', 'tblTempUsageDetail_20' ) start [2025-02-13 12:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466304', 'tblTempUsageDetail_20' ) end [2025-02-13 12:07:31] Production.ERROR: pbx prc_insertCDR start [2025-02-13 12:07:31] Production.ERROR: pbx prc_insertCDR end [2025-02-13 12:07:31] Production.INFO: ==28868== Releasing lock... [2025-02-13 12:07:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 12:07:31] Production.INFO: 59 MB #Memory Used# [2025-02-13 12:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 09:08:06 [end_date_ymd] => 2025-02-13 12:08:06 [RateCDR] => 1 ) [2025-02-13 12: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-02-13 09:08:06' and `end` < '2025-02-13 12: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-02-13 12:08:26] Production.INFO: count ==4124 [2025-02-13 12:08:27] Production.ERROR: pbx CDR StartTime 2025-02-13 09:08:06 - End Time 2025-02-13 12:08:06 [2025-02-13 12:08:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 12:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466309', 'tblTempUsageDetail_20' ) start [2025-02-13 12:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466309', 'tblTempUsageDetail_20' ) end [2025-02-13 12:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466309', 'tblTempVendorCDR_20' ) start [2025-02-13 12:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466309', 'tblTempVendorCDR_20' ) end [2025-02-13 12:08:27] Production.INFO: ProcessCDR(1,14466309,1,1,2) [2025-02-13 12:08:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:08:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:08:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:08:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:08:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466309', 'tblTempUsageDetail_20' ) start [2025-02-13 12:08:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466309', 'tblTempUsageDetail_20' ) end [2025-02-13 12:08:33] Production.ERROR: pbx prc_insertCDR start [2025-02-13 12:08:33] Production.ERROR: pbx prc_insertCDR end [2025-02-13 12:08:33] Production.INFO: ==28942== Releasing lock... [2025-02-13 12:08:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 12:08:33] Production.INFO: 58.75 MB #Memory Used# [2025-02-13 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 09:09:05 [end_date_ymd] => 2025-02-13 12:09:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 09:09:05' and `end` < '2025-02-13 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-02-13 12:09:26] Production.INFO: count ==4107 [2025-02-13 12:09:28] Production.ERROR: pbx CDR StartTime 2025-02-13 09:09:05 - End Time 2025-02-13 12:09:05 [2025-02-13 12:09:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 12:09:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466314', 'tblTempUsageDetail_20' ) start [2025-02-13 12:09:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466314', 'tblTempUsageDetail_20' ) end [2025-02-13 12:09:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466314', 'tblTempVendorCDR_20' ) start [2025-02-13 12:09:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466314', 'tblTempVendorCDR_20' ) end [2025-02-13 12:09:28] Production.INFO: ProcessCDR(1,14466314,1,1,2) [2025-02-13 12:09:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:09:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:09:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:09:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:09:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466314', 'tblTempUsageDetail_20' ) start [2025-02-13 12:09:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466314', 'tblTempUsageDetail_20' ) end [2025-02-13 12:09:33] Production.ERROR: pbx prc_insertCDR start [2025-02-13 12:09:33] Production.ERROR: pbx prc_insertCDR end [2025-02-13 12:09:33] Production.INFO: ==29021== Releasing lock... [2025-02-13 12:09:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 12:09:33] Production.INFO: 58.75 MB #Memory Used# [2025-02-13 12:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 09:10:07 [end_date_ymd] => 2025-02-13 12:10:07 [RateCDR] => 1 ) [2025-02-13 12: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-02-13 09:10:07' and `end` < '2025-02-13 12: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-02-13 12:10:29] Production.INFO: count ==4115 [2025-02-13 12:10:31] Production.ERROR: pbx CDR StartTime 2025-02-13 09:10:07 - End Time 2025-02-13 12:10:07 [2025-02-13 12:10:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 12:10:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466320', 'tblTempUsageDetail_20' ) start [2025-02-13 12:10:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466320', 'tblTempUsageDetail_20' ) end [2025-02-13 12:10:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466320', 'tblTempVendorCDR_20' ) start [2025-02-13 12:10:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466320', 'tblTempVendorCDR_20' ) end [2025-02-13 12:10:31] Production.INFO: ProcessCDR(1,14466320,1,1,2) [2025-02-13 12:10:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:10:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:10:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:10:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:10:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466320', 'tblTempUsageDetail_20' ) start [2025-02-13 12:10:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466320', 'tblTempUsageDetail_20' ) end [2025-02-13 12:10:37] Production.ERROR: pbx prc_insertCDR start [2025-02-13 12:10:37] Production.ERROR: pbx prc_insertCDR end [2025-02-13 12:10:37] Production.INFO: ==29098== Releasing lock... [2025-02-13 12:10:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 12:10:37] Production.INFO: 58.75 MB #Memory Used# [2025-02-13 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 09:11:05 [end_date_ymd] => 2025-02-13 12:11:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 09:11:05' and `end` < '2025-02-13 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-02-13 12:11:24] Production.INFO: count ==4169 [2025-02-13 12:11:26] Production.ERROR: pbx CDR StartTime 2025-02-13 09:11:05 - End Time 2025-02-13 12:11:05 [2025-02-13 12:11:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 12:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466325', 'tblTempUsageDetail_20' ) start [2025-02-13 12:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466325', 'tblTempUsageDetail_20' ) end [2025-02-13 12:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466325', 'tblTempVendorCDR_20' ) start [2025-02-13 12:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466325', 'tblTempVendorCDR_20' ) end [2025-02-13 12:11:26] Production.INFO: ProcessCDR(1,14466325,1,1,2) [2025-02-13 12:11:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:11:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:11:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:11:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:11:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466325', 'tblTempUsageDetail_20' ) start [2025-02-13 12:11:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466325', 'tblTempUsageDetail_20' ) end [2025-02-13 12:11:32] Production.ERROR: pbx prc_insertCDR start [2025-02-13 12:11:32] Production.ERROR: pbx prc_insertCDR end [2025-02-13 12:11:32] Production.INFO: ==29175== Releasing lock... [2025-02-13 12:11:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 12:11:32] Production.INFO: 59.25 MB #Memory Used# [2025-02-13 12:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 09:12:06 [end_date_ymd] => 2025-02-13 12:12:06 [RateCDR] => 1 ) [2025-02-13 12: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-02-13 09:12:06' and `end` < '2025-02-13 12: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-02-13 12:12:25] Production.INFO: count ==4170 [2025-02-13 12:12:27] Production.ERROR: pbx CDR StartTime 2025-02-13 09:12:06 - End Time 2025-02-13 12:12:06 [2025-02-13 12:12:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 12:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466330', 'tblTempUsageDetail_20' ) start [2025-02-13 12:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466330', 'tblTempUsageDetail_20' ) end [2025-02-13 12:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466330', 'tblTempVendorCDR_20' ) start [2025-02-13 12:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466330', 'tblTempVendorCDR_20' ) end [2025-02-13 12:12:27] Production.INFO: ProcessCDR(1,14466330,1,1,2) [2025-02-13 12:12:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:12:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:12:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:12:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:12:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466330', 'tblTempUsageDetail_20' ) start [2025-02-13 12:12:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466330', 'tblTempUsageDetail_20' ) end [2025-02-13 12:12:33] Production.ERROR: pbx prc_insertCDR start [2025-02-13 12:12:33] Production.ERROR: pbx prc_insertCDR end [2025-02-13 12:12:33] Production.INFO: ==29289== Releasing lock... [2025-02-13 12:12:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 12:12:33] Production.INFO: 59.25 MB #Memory Used# [2025-02-13 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 09:13:05 [end_date_ymd] => 2025-02-13 12:13:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 09:13:05' and `end` < '2025-02-13 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-02-13 12:13:26] Production.INFO: count ==4187 [2025-02-13 12:13:28] Production.ERROR: pbx CDR StartTime 2025-02-13 09:13:05 - End Time 2025-02-13 12:13:05 [2025-02-13 12:13:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 12:13:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466335', 'tblTempUsageDetail_20' ) start [2025-02-13 12:13:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466335', 'tblTempUsageDetail_20' ) end [2025-02-13 12:13:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466335', 'tblTempVendorCDR_20' ) start [2025-02-13 12:13:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466335', 'tblTempVendorCDR_20' ) end [2025-02-13 12:13:28] Production.INFO: ProcessCDR(1,14466335,1,1,2) [2025-02-13 12:13:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:13:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:13:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:13:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:13:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466335', 'tblTempUsageDetail_20' ) start [2025-02-13 12:13:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466335', 'tblTempUsageDetail_20' ) end [2025-02-13 12:13:33] Production.ERROR: pbx prc_insertCDR start [2025-02-13 12:13:33] Production.ERROR: pbx prc_insertCDR end [2025-02-13 12:13:33] Production.INFO: ==29362== Releasing lock... [2025-02-13 12:13:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 12:13:33] Production.INFO: 59.25 MB #Memory Used# [2025-02-13 12:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 09:14:06 [end_date_ymd] => 2025-02-13 12:14:06 [RateCDR] => 1 ) [2025-02-13 12: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-02-13 09:14:06' and `end` < '2025-02-13 12: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-02-13 12:14:26] Production.INFO: count ==4200 [2025-02-13 12:14:27] Production.ERROR: pbx CDR StartTime 2025-02-13 09:14:06 - End Time 2025-02-13 12:14:06 [2025-02-13 12:14:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 12:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466340', 'tblTempUsageDetail_20' ) start [2025-02-13 12:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466340', 'tblTempUsageDetail_20' ) end [2025-02-13 12:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466340', 'tblTempVendorCDR_20' ) start [2025-02-13 12:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466340', 'tblTempVendorCDR_20' ) end [2025-02-13 12:14:27] Production.INFO: ProcessCDR(1,14466340,1,1,2) [2025-02-13 12:14:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:14:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:14:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:14:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:14:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466340', 'tblTempUsageDetail_20' ) start [2025-02-13 12:14:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466340', 'tblTempUsageDetail_20' ) end [2025-02-13 12:14:33] Production.ERROR: pbx prc_insertCDR start [2025-02-13 12:14:33] Production.ERROR: pbx prc_insertCDR end [2025-02-13 12:14:33] Production.INFO: ==29437== Releasing lock... [2025-02-13 12:14:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 12:14:33] Production.INFO: 59.5 MB #Memory Used# [2025-02-13 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 09:15:05 [end_date_ymd] => 2025-02-13 12:15:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 09:15:05' and `end` < '2025-02-13 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-02-13 12:15:26] Production.INFO: count ==4222 [2025-02-13 12:15:28] Production.ERROR: pbx CDR StartTime 2025-02-13 09:15:05 - End Time 2025-02-13 12:15:05 [2025-02-13 12:15:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 12:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466345', 'tblTempUsageDetail_20' ) start [2025-02-13 12:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466345', 'tblTempUsageDetail_20' ) end [2025-02-13 12:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466345', 'tblTempVendorCDR_20' ) start [2025-02-13 12:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466345', 'tblTempVendorCDR_20' ) end [2025-02-13 12:15:28] Production.INFO: ProcessCDR(1,14466345,1,1,2) [2025-02-13 12:15:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:15:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:15:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:15:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:15:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466345', 'tblTempUsageDetail_20' ) start [2025-02-13 12:15:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466345', 'tblTempUsageDetail_20' ) end [2025-02-13 12:15:33] Production.ERROR: pbx prc_insertCDR start [2025-02-13 12:15:33] Production.ERROR: pbx prc_insertCDR end [2025-02-13 12:15:33] Production.INFO: ==29511== Releasing lock... [2025-02-13 12:15:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 12:15:33] Production.INFO: 59.75 MB #Memory Used# [2025-02-13 12:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 09:16:06 [end_date_ymd] => 2025-02-13 12:16:06 [RateCDR] => 1 ) [2025-02-13 12: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-02-13 09:16:06' and `end` < '2025-02-13 12: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-02-13 12:16:24] Production.INFO: count ==4230 [2025-02-13 12:16:26] Production.ERROR: pbx CDR StartTime 2025-02-13 09:16:06 - End Time 2025-02-13 12:16:06 [2025-02-13 12:16:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 12:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466350', 'tblTempUsageDetail_20' ) start [2025-02-13 12:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466350', 'tblTempUsageDetail_20' ) end [2025-02-13 12:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466350', 'tblTempVendorCDR_20' ) start [2025-02-13 12:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466350', 'tblTempVendorCDR_20' ) end [2025-02-13 12:16:26] Production.INFO: ProcessCDR(1,14466350,1,1,2) [2025-02-13 12:16:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:16:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:16:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:16:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:16:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466350', 'tblTempUsageDetail_20' ) start [2025-02-13 12:16:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466350', 'tblTempUsageDetail_20' ) end [2025-02-13 12:16:32] Production.ERROR: pbx prc_insertCDR start [2025-02-13 12:16:32] Production.ERROR: pbx prc_insertCDR end [2025-02-13 12:16:32] Production.INFO: ==29591== Releasing lock... [2025-02-13 12:16:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 12:16:32] Production.INFO: 59.75 MB #Memory Used# [2025-02-13 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 09:17:05 [end_date_ymd] => 2025-02-13 12:17:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 09:17:05' and `end` < '2025-02-13 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-02-13 12:17:24] Production.INFO: count ==4234 [2025-02-13 12:17:26] Production.ERROR: pbx CDR StartTime 2025-02-13 09:17:05 - End Time 2025-02-13 12:17:05 [2025-02-13 12:17:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 12:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466355', 'tblTempUsageDetail_20' ) start [2025-02-13 12:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466355', 'tblTempUsageDetail_20' ) end [2025-02-13 12:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466355', 'tblTempVendorCDR_20' ) start [2025-02-13 12:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466355', 'tblTempVendorCDR_20' ) end [2025-02-13 12:17:26] Production.INFO: ProcessCDR(1,14466355,1,1,2) [2025-02-13 12:17:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:17:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:17:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:17:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:17:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466355', 'tblTempUsageDetail_20' ) start [2025-02-13 12:17:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466355', 'tblTempUsageDetail_20' ) end [2025-02-13 12:17:31] Production.ERROR: pbx prc_insertCDR start [2025-02-13 12:17:31] Production.ERROR: pbx prc_insertCDR end [2025-02-13 12:17:31] Production.INFO: ==29667== Releasing lock... [2025-02-13 12:17:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 12:17:31] Production.INFO: 59.75 MB #Memory Used# [2025-02-13 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 09:18:05 [end_date_ymd] => 2025-02-13 12:18:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 09:18:05' and `end` < '2025-02-13 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-02-13 12:18:23] Production.INFO: count ==4238 [2025-02-13 12:18:25] Production.ERROR: pbx CDR StartTime 2025-02-13 09:18:05 - End Time 2025-02-13 12:18:05 [2025-02-13 12:18:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 12:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466360', 'tblTempUsageDetail_20' ) start [2025-02-13 12:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466360', 'tblTempUsageDetail_20' ) end [2025-02-13 12:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466360', 'tblTempVendorCDR_20' ) start [2025-02-13 12:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466360', 'tblTempVendorCDR_20' ) end [2025-02-13 12:18:25] Production.INFO: ProcessCDR(1,14466360,1,1,2) [2025-02-13 12:18:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:18:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:18:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:18:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466360', 'tblTempUsageDetail_20' ) start [2025-02-13 12:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466360', 'tblTempUsageDetail_20' ) end [2025-02-13 12:18:30] Production.ERROR: pbx prc_insertCDR start [2025-02-13 12:18:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 12:18:30] Production.INFO: ==29758== Releasing lock... [2025-02-13 12:18:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 12:18:30] Production.INFO: 60 MB #Memory Used# [2025-02-13 12:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 09:19:06 [end_date_ymd] => 2025-02-13 12:19:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 09:19:06' and `end` < '2025-02-13 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-02-13 12:19:23] Production.INFO: count ==4232 [2025-02-13 12:19:25] Production.ERROR: pbx CDR StartTime 2025-02-13 09:19:06 - End Time 2025-02-13 12:19:06 [2025-02-13 12:19:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 12:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466365', 'tblTempUsageDetail_20' ) start [2025-02-13 12:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466365', 'tblTempUsageDetail_20' ) end [2025-02-13 12:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466365', 'tblTempVendorCDR_20' ) start [2025-02-13 12:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466365', 'tblTempVendorCDR_20' ) end [2025-02-13 12:19:25] Production.INFO: ProcessCDR(1,14466365,1,1,2) [2025-02-13 12:19:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:19:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:19:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:19:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466365', 'tblTempUsageDetail_20' ) start [2025-02-13 12:19:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466365', 'tblTempUsageDetail_20' ) end [2025-02-13 12:19:31] Production.ERROR: pbx prc_insertCDR start [2025-02-13 12:19:31] Production.ERROR: pbx prc_insertCDR end [2025-02-13 12:19:31] Production.INFO: ==29841== Releasing lock... [2025-02-13 12:19:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 12:19:31] Production.INFO: 59.75 MB #Memory Used# [2025-02-13 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 09:20:06 [end_date_ymd] => 2025-02-13 12:20:06 [RateCDR] => 1 ) [2025-02-13 12: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-02-13 09:20:06' and `end` < '2025-02-13 12: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-02-13 12:20:23] Production.INFO: count ==4219 [2025-02-13 12:20:24] Production.ERROR: pbx CDR StartTime 2025-02-13 09:20:06 - End Time 2025-02-13 12:20:06 [2025-02-13 12:20:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 12:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466371', 'tblTempUsageDetail_20' ) start [2025-02-13 12:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466371', 'tblTempUsageDetail_20' ) end [2025-02-13 12:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466371', 'tblTempVendorCDR_20' ) start [2025-02-13 12:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466371', 'tblTempVendorCDR_20' ) end [2025-02-13 12:20:25] Production.INFO: ProcessCDR(1,14466371,1,1,2) [2025-02-13 12:20:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:20:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:20:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:20:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466371', 'tblTempUsageDetail_20' ) start [2025-02-13 12:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466371', 'tblTempUsageDetail_20' ) end [2025-02-13 12:20:30] Production.ERROR: pbx prc_insertCDR start [2025-02-13 12:20:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 12:20:30] Production.INFO: ==29914== Releasing lock... [2025-02-13 12:20:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 12:20:30] Production.INFO: 59.5 MB #Memory Used# [2025-02-13 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 09:21:05 [end_date_ymd] => 2025-02-13 12:21:05 [RateCDR] => 1 ) [2025-02-13 12: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-02-13 09:21:05' and `end` < '2025-02-13 12: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-02-13 12:21:23] Production.INFO: count ==4217 [2025-02-13 12:21:25] Production.ERROR: pbx CDR StartTime 2025-02-13 09:21:05 - End Time 2025-02-13 12:21:05 [2025-02-13 12:21:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 12:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466376', 'tblTempUsageDetail_20' ) start [2025-02-13 12:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466376', 'tblTempUsageDetail_20' ) end [2025-02-13 12:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466376', 'tblTempVendorCDR_20' ) start [2025-02-13 12:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466376', 'tblTempVendorCDR_20' ) end [2025-02-13 12:21:25] Production.INFO: ProcessCDR(1,14466376,1,1,2) [2025-02-13 12:21:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:21:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:21:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:21:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466376', 'tblTempUsageDetail_20' ) start [2025-02-13 12:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466376', 'tblTempUsageDetail_20' ) end [2025-02-13 12:21:30] Production.ERROR: pbx prc_insertCDR start [2025-02-13 12:21:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 12:21:30] Production.INFO: ==29992== Releasing lock... [2025-02-13 12:21:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 12:21:30] Production.INFO: 59.5 MB #Memory Used# [2025-02-13 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 09:22:05 [end_date_ymd] => 2025-02-13 12:22:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 09:22:05' and `end` < '2025-02-13 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-02-13 12:22:20] Production.INFO: count ==4208 [2025-02-13 12:22:22] Production.ERROR: pbx CDR StartTime 2025-02-13 09:22:05 - End Time 2025-02-13 12:22:05 [2025-02-13 12:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466381', 'tblTempUsageDetail_20' ) start [2025-02-13 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466381', 'tblTempUsageDetail_20' ) end [2025-02-13 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466381', 'tblTempVendorCDR_20' ) start [2025-02-13 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466381', 'tblTempVendorCDR_20' ) end [2025-02-13 12:22:22] Production.INFO: ProcessCDR(1,14466381,1,1,2) [2025-02-13 12:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466381', 'tblTempUsageDetail_20' ) start [2025-02-13 12:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466381', 'tblTempUsageDetail_20' ) end [2025-02-13 12:22:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 12:22:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 12:22:27] Production.INFO: ==30064== Releasing lock... [2025-02-13 12:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 12:22:27] Production.INFO: 59.5 MB #Memory Used# [2025-02-13 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 09:23:05 [end_date_ymd] => 2025-02-13 12:23:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 09:23:05' and `end` < '2025-02-13 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-02-13 12:23:25] Production.INFO: count ==4203 [2025-02-13 12:23:27] Production.ERROR: pbx CDR StartTime 2025-02-13 09:23:05 - End Time 2025-02-13 12:23:05 [2025-02-13 12:23:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 12:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466386', 'tblTempUsageDetail_20' ) start [2025-02-13 12:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466386', 'tblTempUsageDetail_20' ) end [2025-02-13 12:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466386', 'tblTempVendorCDR_20' ) start [2025-02-13 12:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466386', 'tblTempVendorCDR_20' ) end [2025-02-13 12:23:27] Production.INFO: ProcessCDR(1,14466386,1,1,2) [2025-02-13 12:23:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:23:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:23:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:23:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:23:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466386', 'tblTempUsageDetail_20' ) start [2025-02-13 12:23:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466386', 'tblTempUsageDetail_20' ) end [2025-02-13 12:23:32] Production.ERROR: pbx prc_insertCDR start [2025-02-13 12:23:32] Production.ERROR: pbx prc_insertCDR end [2025-02-13 12:23:32] Production.INFO: ==30142== Releasing lock... [2025-02-13 12:23:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 12:23:32] Production.INFO: 59.5 MB #Memory Used# [2025-02-13 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 09:24:05 [end_date_ymd] => 2025-02-13 12:24:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 09:24:05' and `end` < '2025-02-13 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-02-13 12:24:23] Production.INFO: count ==4205 [2025-02-13 12:24:25] Production.ERROR: pbx CDR StartTime 2025-02-13 09:24:05 - End Time 2025-02-13 12:24:05 [2025-02-13 12:24:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 12:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466391', 'tblTempUsageDetail_20' ) start [2025-02-13 12:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466391', 'tblTempUsageDetail_20' ) end [2025-02-13 12:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466391', 'tblTempVendorCDR_20' ) start [2025-02-13 12:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466391', 'tblTempVendorCDR_20' ) end [2025-02-13 12:24:25] Production.INFO: ProcessCDR(1,14466391,1,1,2) [2025-02-13 12:24:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:24:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:24:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:24:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:24:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466391', 'tblTempUsageDetail_20' ) start [2025-02-13 12:24:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466391', 'tblTempUsageDetail_20' ) end [2025-02-13 12:24:30] Production.ERROR: pbx prc_insertCDR start [2025-02-13 12:24:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 12:24:30] Production.INFO: ==30215== Releasing lock... [2025-02-13 12:24:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 12:24:30] Production.INFO: 59.5 MB #Memory Used# [2025-02-13 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 09:25:05 [end_date_ymd] => 2025-02-13 12:25:05 [RateCDR] => 1 ) [2025-02-13 12:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 09:25:05' and `end` < '2025-02-13 12:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-13 12:25:20] Production.INFO: count ==4209 [2025-02-13 12:25:22] Production.ERROR: pbx CDR StartTime 2025-02-13 09:25:05 - End Time 2025-02-13 12:25:05 [2025-02-13 12:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466396', 'tblTempUsageDetail_20' ) start [2025-02-13 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466396', 'tblTempUsageDetail_20' ) end [2025-02-13 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466396', 'tblTempVendorCDR_20' ) start [2025-02-13 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466396', 'tblTempVendorCDR_20' ) end [2025-02-13 12:25:22] Production.INFO: ProcessCDR(1,14466396,1,1,2) [2025-02-13 12:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466396', 'tblTempUsageDetail_20' ) start [2025-02-13 12:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466396', 'tblTempUsageDetail_20' ) end [2025-02-13 12:25:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 12:25:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 12:25:27] Production.INFO: ==30298== Releasing lock... [2025-02-13 12:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 12:25:27] Production.INFO: 59.5 MB #Memory Used# [2025-02-13 12:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 09:26:06 [end_date_ymd] => 2025-02-13 12:26:06 [RateCDR] => 1 ) [2025-02-13 12: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-02-13 09:26:06' and `end` < '2025-02-13 12: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-02-13 12:26:23] Production.INFO: count ==4205 [2025-02-13 12:26:24] Production.ERROR: pbx CDR StartTime 2025-02-13 09:26:06 - End Time 2025-02-13 12:26:06 [2025-02-13 12:26:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 12:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466401', 'tblTempUsageDetail_20' ) start [2025-02-13 12:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466401', 'tblTempUsageDetail_20' ) end [2025-02-13 12:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466401', 'tblTempVendorCDR_20' ) start [2025-02-13 12:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466401', 'tblTempVendorCDR_20' ) end [2025-02-13 12:26:25] Production.INFO: ProcessCDR(1,14466401,1,1,2) [2025-02-13 12:26:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:26:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:26:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:26:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:26:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466401', 'tblTempUsageDetail_20' ) start [2025-02-13 12:26:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466401', 'tblTempUsageDetail_20' ) end [2025-02-13 12:26:30] Production.ERROR: pbx prc_insertCDR start [2025-02-13 12:26:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 12:26:30] Production.INFO: ==30374== Releasing lock... [2025-02-13 12:26:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 12:26:30] Production.INFO: 59.5 MB #Memory Used# [2025-02-13 12:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 09:27:06 [end_date_ymd] => 2025-02-13 12:27:06 [RateCDR] => 1 ) [2025-02-13 12: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-02-13 09:27:06' and `end` < '2025-02-13 12: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-02-13 12:27:23] Production.INFO: count ==4204 [2025-02-13 12:27:25] Production.ERROR: pbx CDR StartTime 2025-02-13 09:27:06 - End Time 2025-02-13 12:27:06 [2025-02-13 12:27:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 12:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466406', 'tblTempUsageDetail_20' ) start [2025-02-13 12:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466406', 'tblTempUsageDetail_20' ) end [2025-02-13 12:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466406', 'tblTempVendorCDR_20' ) start [2025-02-13 12:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466406', 'tblTempVendorCDR_20' ) end [2025-02-13 12:27:25] Production.INFO: ProcessCDR(1,14466406,1,1,2) [2025-02-13 12:27:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:27:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:27:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:27:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:27:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466406', 'tblTempUsageDetail_20' ) start [2025-02-13 12:27:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466406', 'tblTempUsageDetail_20' ) end [2025-02-13 12:27:30] Production.ERROR: pbx prc_insertCDR start [2025-02-13 12:27:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 12:27:30] Production.INFO: ==30485== Releasing lock... [2025-02-13 12:27:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 12:27:30] Production.INFO: 59.5 MB #Memory Used# [2025-02-13 12:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 09:28:04 [end_date_ymd] => 2025-02-13 12:28:04 [RateCDR] => 1 ) [2025-02-13 12: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-02-13 09:28:04' and `end` < '2025-02-13 12: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-02-13 12:28:19] Production.INFO: count ==4214 [2025-02-13 12:28:21] Production.ERROR: pbx CDR StartTime 2025-02-13 09:28:04 - End Time 2025-02-13 12:28:04 [2025-02-13 12:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466411', 'tblTempUsageDetail_20' ) start [2025-02-13 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466411', 'tblTempUsageDetail_20' ) end [2025-02-13 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466411', 'tblTempVendorCDR_20' ) start [2025-02-13 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466411', 'tblTempVendorCDR_20' ) end [2025-02-13 12:28:21] Production.INFO: ProcessCDR(1,14466411,1,1,2) [2025-02-13 12:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466411', 'tblTempUsageDetail_20' ) start [2025-02-13 12:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466411', 'tblTempUsageDetail_20' ) end [2025-02-13 12:28:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 12:28:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 12:28:27] Production.INFO: ==30566== Releasing lock... [2025-02-13 12:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 12:28:27] Production.INFO: 59.5 MB #Memory Used# [2025-02-13 12:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 09:29:06 [end_date_ymd] => 2025-02-13 12:29:06 [RateCDR] => 1 ) [2025-02-13 12: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-02-13 09:29:06' and `end` < '2025-02-13 12: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-02-13 12:29:30] Production.INFO: count ==4224 [2025-02-13 12:29:32] Production.ERROR: pbx CDR StartTime 2025-02-13 09:29:06 - End Time 2025-02-13 12:29:06 [2025-02-13 12:29:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 12:29:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466416', 'tblTempUsageDetail_20' ) start [2025-02-13 12:29:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466416', 'tblTempUsageDetail_20' ) end [2025-02-13 12:29:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466416', 'tblTempVendorCDR_20' ) start [2025-02-13 12:29:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466416', 'tblTempVendorCDR_20' ) end [2025-02-13 12:29:32] Production.INFO: ProcessCDR(1,14466416,1,1,2) [2025-02-13 12:29:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:29:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:29:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:29:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:29:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466416', 'tblTempUsageDetail_20' ) start [2025-02-13 12:29:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466416', 'tblTempUsageDetail_20' ) end [2025-02-13 12:29:38] Production.ERROR: pbx prc_insertCDR start [2025-02-13 12:29:38] Production.ERROR: pbx prc_insertCDR end [2025-02-13 12:29:38] Production.INFO: ==30646== Releasing lock... [2025-02-13 12:29:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 12:29:38] Production.INFO: 59.5 MB #Memory Used# [2025-02-13 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 09:30:06 [end_date_ymd] => 2025-02-13 12:30:06 [RateCDR] => 1 ) [2025-02-13 12: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-02-13 09:30:06' and `end` < '2025-02-13 12: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-02-13 12:30:29] Production.INFO: count ==4232 [2025-02-13 12:30:31] Production.ERROR: pbx CDR StartTime 2025-02-13 09:30:06 - End Time 2025-02-13 12:30:06 [2025-02-13 12:30:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 12:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466422', 'tblTempUsageDetail_20' ) start [2025-02-13 12:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466422', 'tblTempUsageDetail_20' ) end [2025-02-13 12:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466422', 'tblTempVendorCDR_20' ) start [2025-02-13 12:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466422', 'tblTempVendorCDR_20' ) end [2025-02-13 12:30:31] Production.INFO: ProcessCDR(1,14466422,1,1,2) [2025-02-13 12:30:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:30:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:30:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:30:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:30:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466422', 'tblTempUsageDetail_20' ) start [2025-02-13 12:30:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466422', 'tblTempUsageDetail_20' ) end [2025-02-13 12:30:36] Production.ERROR: pbx prc_insertCDR start [2025-02-13 12:30:36] Production.ERROR: pbx prc_insertCDR end [2025-02-13 12:30:36] Production.INFO: ==30721== Releasing lock... [2025-02-13 12:30:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 12:30:36] Production.INFO: 59.75 MB #Memory Used# [2025-02-13 12:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 09:31:06 [end_date_ymd] => 2025-02-13 12:31:06 [RateCDR] => 1 ) [2025-02-13 12: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-02-13 09:31:06' and `end` < '2025-02-13 12: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-02-13 12:31:25] Production.INFO: count ==4271 [2025-02-13 12:31:26] Production.ERROR: pbx CDR StartTime 2025-02-13 09:31:06 - End Time 2025-02-13 12:31:06 [2025-02-13 12:31:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 12:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466427', 'tblTempUsageDetail_20' ) start [2025-02-13 12:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466427', 'tblTempUsageDetail_20' ) end [2025-02-13 12:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466427', 'tblTempVendorCDR_20' ) start [2025-02-13 12:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466427', 'tblTempVendorCDR_20' ) end [2025-02-13 12:31:27] Production.INFO: ProcessCDR(1,14466427,1,1,2) [2025-02-13 12:31:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:31:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:31:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:31:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:31:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466427', 'tblTempUsageDetail_20' ) start [2025-02-13 12:31:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466427', 'tblTempUsageDetail_20' ) end [2025-02-13 12:31:32] Production.ERROR: pbx prc_insertCDR start [2025-02-13 12:31:32] Production.ERROR: pbx prc_insertCDR end [2025-02-13 12:31:32] Production.INFO: ==30797== Releasing lock... [2025-02-13 12:31:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 12:31:32] Production.INFO: 60 MB #Memory Used# [2025-02-13 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 09:32:05 [end_date_ymd] => 2025-02-13 12:32:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 09:32:05' and `end` < '2025-02-13 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-02-13 12:32:20] Production.INFO: count ==4269 [2025-02-13 12:32:22] Production.ERROR: pbx CDR StartTime 2025-02-13 09:32:05 - End Time 2025-02-13 12:32:05 [2025-02-13 12:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466432', 'tblTempUsageDetail_20' ) start [2025-02-13 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466432', 'tblTempUsageDetail_20' ) end [2025-02-13 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466432', 'tblTempVendorCDR_20' ) start [2025-02-13 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466432', 'tblTempVendorCDR_20' ) end [2025-02-13 12:32:22] Production.INFO: ProcessCDR(1,14466432,1,1,2) [2025-02-13 12:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466432', 'tblTempUsageDetail_20' ) start [2025-02-13 12:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466432', 'tblTempUsageDetail_20' ) end [2025-02-13 12:32:28] Production.ERROR: pbx prc_insertCDR start [2025-02-13 12:32:28] Production.ERROR: pbx prc_insertCDR end [2025-02-13 12:32:28] Production.INFO: ==30870== Releasing lock... [2025-02-13 12:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 12:32:28] Production.INFO: 60 MB #Memory Used# [2025-02-13 12:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 09:33:06 [end_date_ymd] => 2025-02-13 12:33:06 [RateCDR] => 1 ) [2025-02-13 12: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-02-13 09:33:06' and `end` < '2025-02-13 12: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-02-13 12:33:24] Production.INFO: count ==4270 [2025-02-13 12:33:25] Production.ERROR: pbx CDR StartTime 2025-02-13 09:33:06 - End Time 2025-02-13 12:33:06 [2025-02-13 12:33:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 12:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466437', 'tblTempUsageDetail_20' ) start [2025-02-13 12:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466437', 'tblTempUsageDetail_20' ) end [2025-02-13 12:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466437', 'tblTempVendorCDR_20' ) start [2025-02-13 12:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466437', 'tblTempVendorCDR_20' ) end [2025-02-13 12:33:26] Production.INFO: ProcessCDR(1,14466437,1,1,2) [2025-02-13 12:33:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:33:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:33:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:33:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:33:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466437', 'tblTempUsageDetail_20' ) start [2025-02-13 12:33:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466437', 'tblTempUsageDetail_20' ) end [2025-02-13 12:33:31] Production.ERROR: pbx prc_insertCDR start [2025-02-13 12:33:31] Production.ERROR: pbx prc_insertCDR end [2025-02-13 12:33:31] Production.INFO: ==30942== Releasing lock... [2025-02-13 12:33:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 12:33:31] Production.INFO: 60 MB #Memory Used# [2025-02-13 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 09:34:05 [end_date_ymd] => 2025-02-13 12:34:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 09:34:05' and `end` < '2025-02-13 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-02-13 12:34:22] Production.INFO: count ==4277 [2025-02-13 12:34:24] Production.ERROR: pbx CDR StartTime 2025-02-13 09:34:05 - End Time 2025-02-13 12:34:05 [2025-02-13 12:34:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 12:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466442', 'tblTempUsageDetail_20' ) start [2025-02-13 12:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466442', 'tblTempUsageDetail_20' ) end [2025-02-13 12:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466442', 'tblTempVendorCDR_20' ) start [2025-02-13 12:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466442', 'tblTempVendorCDR_20' ) end [2025-02-13 12:34:24] Production.INFO: ProcessCDR(1,14466442,1,1,2) [2025-02-13 12:34:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:34:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:34:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:34:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466442', 'tblTempUsageDetail_20' ) start [2025-02-13 12:34:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466442', 'tblTempUsageDetail_20' ) end [2025-02-13 12:34:30] Production.ERROR: pbx prc_insertCDR start [2025-02-13 12:34:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 12:34:30] Production.INFO: ==31018== Releasing lock... [2025-02-13 12:34:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 12:34:30] Production.INFO: 60 MB #Memory Used# [2025-02-13 12:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 09:35:06 [end_date_ymd] => 2025-02-13 12:35:06 [RateCDR] => 1 ) [2025-02-13 12: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-02-13 09:35:06' and `end` < '2025-02-13 12: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-02-13 12:35:26] Production.INFO: count ==4290 [2025-02-13 12:35:28] Production.ERROR: pbx CDR StartTime 2025-02-13 09:35:06 - End Time 2025-02-13 12:35:06 [2025-02-13 12:35:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 12:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466447', 'tblTempUsageDetail_20' ) start [2025-02-13 12:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466447', 'tblTempUsageDetail_20' ) end [2025-02-13 12:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466447', 'tblTempVendorCDR_20' ) start [2025-02-13 12:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466447', 'tblTempVendorCDR_20' ) end [2025-02-13 12:35:28] Production.INFO: ProcessCDR(1,14466447,1,1,2) [2025-02-13 12:35:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:35:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:35:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:35:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:35:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466447', 'tblTempUsageDetail_20' ) start [2025-02-13 12:35:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466447', 'tblTempUsageDetail_20' ) end [2025-02-13 12:35:34] Production.ERROR: pbx prc_insertCDR start [2025-02-13 12:35:34] Production.ERROR: pbx prc_insertCDR end [2025-02-13 12:35:34] Production.INFO: ==31093== Releasing lock... [2025-02-13 12:35:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 12:35:34] Production.INFO: 60 MB #Memory Used# [2025-02-13 12:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 09:36:05 [end_date_ymd] => 2025-02-13 12:36:05 [RateCDR] => 1 ) [2025-02-13 12: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-02-13 09:36:05' and `end` < '2025-02-13 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-02-13 12:36:25] Production.INFO: count ==4309 [2025-02-13 12:36:27] Production.ERROR: pbx CDR StartTime 2025-02-13 09:36:05 - End Time 2025-02-13 12:36:05 [2025-02-13 12:36:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 12:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466452', 'tblTempUsageDetail_20' ) start [2025-02-13 12:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466452', 'tblTempUsageDetail_20' ) end [2025-02-13 12:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466452', 'tblTempVendorCDR_20' ) start [2025-02-13 12:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466452', 'tblTempVendorCDR_20' ) end [2025-02-13 12:36:27] Production.INFO: ProcessCDR(1,14466452,1,1,2) [2025-02-13 12:36:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:36:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:36:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:36:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:36:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466452', 'tblTempUsageDetail_20' ) start [2025-02-13 12:36:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466452', 'tblTempUsageDetail_20' ) end [2025-02-13 12:36:33] Production.ERROR: pbx prc_insertCDR start [2025-02-13 12:36:33] Production.ERROR: pbx prc_insertCDR end [2025-02-13 12:36:33] Production.INFO: ==31166== Releasing lock... [2025-02-13 12:36:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 12:36:33] Production.INFO: 60.25 MB #Memory Used# [2025-02-13 12:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 09:37:06 [end_date_ymd] => 2025-02-13 12:37:06 [RateCDR] => 1 ) [2025-02-13 12: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-02-13 09:37:06' and `end` < '2025-02-13 12: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-02-13 12:37:30] Production.INFO: count ==4334 [2025-02-13 12:37:32] Production.ERROR: pbx CDR StartTime 2025-02-13 09:37:06 - End Time 2025-02-13 12:37:06 [2025-02-13 12:37:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 12:37:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466457', 'tblTempUsageDetail_20' ) start [2025-02-13 12:37:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466457', 'tblTempUsageDetail_20' ) end [2025-02-13 12:37:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466457', 'tblTempVendorCDR_20' ) start [2025-02-13 12:37:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466457', 'tblTempVendorCDR_20' ) end [2025-02-13 12:37:32] Production.INFO: ProcessCDR(1,14466457,1,1,2) [2025-02-13 12:37:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:37:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:37:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:37:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:37:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466457', 'tblTempUsageDetail_20' ) start [2025-02-13 12:37:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466457', 'tblTempUsageDetail_20' ) end [2025-02-13 12:37:38] Production.ERROR: pbx prc_insertCDR start [2025-02-13 12:37:38] Production.ERROR: pbx prc_insertCDR end [2025-02-13 12:37:38] Production.INFO: ==31244== Releasing lock... [2025-02-13 12:37:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 12:37:38] Production.INFO: 60.5 MB #Memory Used# [2025-02-13 12:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 09:38:06 [end_date_ymd] => 2025-02-13 12:38:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 09:38:06' and `end` < '2025-02-13 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-02-13 12:38:31] Production.INFO: count ==4337 [2025-02-13 12:38:32] Production.ERROR: pbx CDR StartTime 2025-02-13 09:38:06 - End Time 2025-02-13 12:38:06 [2025-02-13 12:38:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 12:38:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466462', 'tblTempUsageDetail_20' ) start [2025-02-13 12:38:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466462', 'tblTempUsageDetail_20' ) end [2025-02-13 12:38:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466462', 'tblTempVendorCDR_20' ) start [2025-02-13 12:38:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466462', 'tblTempVendorCDR_20' ) end [2025-02-13 12:38:33] Production.INFO: ProcessCDR(1,14466462,1,1,2) [2025-02-13 12:38:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:38:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:38:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:38:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:38:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466462', 'tblTempUsageDetail_20' ) start [2025-02-13 12:38:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466462', 'tblTempUsageDetail_20' ) end [2025-02-13 12:38:38] Production.ERROR: pbx prc_insertCDR start [2025-02-13 12:38:38] Production.ERROR: pbx prc_insertCDR end [2025-02-13 12:38:39] Production.INFO: ==31319== Releasing lock... [2025-02-13 12:38:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 12:38:39] Production.INFO: 60.5 MB #Memory Used# [2025-02-13 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 09:39:05 [end_date_ymd] => 2025-02-13 12:39:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 09:39:05' and `end` < '2025-02-13 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-02-13 12:39:24] Production.INFO: count ==4340 [2025-02-13 12:39:26] Production.ERROR: pbx CDR StartTime 2025-02-13 09:39:05 - End Time 2025-02-13 12:39:05 [2025-02-13 12:39:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 12:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466467', 'tblTempUsageDetail_20' ) start [2025-02-13 12:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466467', 'tblTempUsageDetail_20' ) end [2025-02-13 12:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466467', 'tblTempVendorCDR_20' ) start [2025-02-13 12:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466467', 'tblTempVendorCDR_20' ) end [2025-02-13 12:39:26] Production.INFO: ProcessCDR(1,14466467,1,1,2) [2025-02-13 12:39:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:39:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:39:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:39:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:39:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466467', 'tblTempUsageDetail_20' ) start [2025-02-13 12:39:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466467', 'tblTempUsageDetail_20' ) end [2025-02-13 12:39:32] Production.ERROR: pbx prc_insertCDR start [2025-02-13 12:39:32] Production.ERROR: pbx prc_insertCDR end [2025-02-13 12:39:32] Production.INFO: ==31396== Releasing lock... [2025-02-13 12:39:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 12:39:32] Production.INFO: 60.5 MB #Memory Used# [2025-02-13 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 09:40:06 [end_date_ymd] => 2025-02-13 12:40:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 09:40:06' and `end` < '2025-02-13 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-02-13 12:40:23] Production.INFO: count ==4350 [2025-02-13 12:40:24] Production.ERROR: pbx CDR StartTime 2025-02-13 09:40:06 - End Time 2025-02-13 12:40:06 [2025-02-13 12:40:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 12:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466473', 'tblTempUsageDetail_20' ) start [2025-02-13 12:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466473', 'tblTempUsageDetail_20' ) end [2025-02-13 12:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466473', 'tblTempVendorCDR_20' ) start [2025-02-13 12:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466473', 'tblTempVendorCDR_20' ) end [2025-02-13 12:40:24] Production.INFO: ProcessCDR(1,14466473,1,1,2) [2025-02-13 12:40:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:40:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:40:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:40:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:40:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466473', 'tblTempUsageDetail_20' ) start [2025-02-13 12:40:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466473', 'tblTempUsageDetail_20' ) end [2025-02-13 12:40:30] Production.ERROR: pbx prc_insertCDR start [2025-02-13 12:40:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 12:40:30] Production.INFO: ==31472== Releasing lock... [2025-02-13 12:40:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 12:40:30] Production.INFO: 60.5 MB #Memory Used# [2025-02-13 12:41:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 09:41:07 [end_date_ymd] => 2025-02-13 12:41:07 [RateCDR] => 1 ) [2025-02-13 12:41: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-02-13 09:41:07' and `end` < '2025-02-13 12:41: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-02-13 12:41:25] Production.INFO: count ==4398 [2025-02-13 12:41:27] Production.ERROR: pbx CDR StartTime 2025-02-13 09:41:07 - End Time 2025-02-13 12:41:07 [2025-02-13 12:41:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 12:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466478', 'tblTempUsageDetail_20' ) start [2025-02-13 12:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466478', 'tblTempUsageDetail_20' ) end [2025-02-13 12:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466478', 'tblTempVendorCDR_20' ) start [2025-02-13 12:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466478', 'tblTempVendorCDR_20' ) end [2025-02-13 12:41:27] Production.INFO: ProcessCDR(1,14466478,1,1,2) [2025-02-13 12:41:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:41:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:41:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:41:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:41:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466478', 'tblTempUsageDetail_20' ) start [2025-02-13 12:41:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466478', 'tblTempUsageDetail_20' ) end [2025-02-13 12:41:32] Production.ERROR: pbx prc_insertCDR start [2025-02-13 12:41:32] Production.ERROR: pbx prc_insertCDR end [2025-02-13 12:41:32] Production.INFO: ==31549== Releasing lock... [2025-02-13 12:41:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 12:41:32] Production.INFO: 61 MB #Memory Used# [2025-02-13 12:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 09:42:06 [end_date_ymd] => 2025-02-13 12:42:06 [RateCDR] => 1 ) [2025-02-13 12: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-02-13 09:42:06' and `end` < '2025-02-13 12: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-02-13 12:42:21] Production.INFO: count ==4403 [2025-02-13 12:42:23] Production.ERROR: pbx CDR StartTime 2025-02-13 09:42:06 - End Time 2025-02-13 12:42:06 [2025-02-13 12:42:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 12:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466483', 'tblTempUsageDetail_20' ) start [2025-02-13 12:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466483', 'tblTempUsageDetail_20' ) end [2025-02-13 12:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466483', 'tblTempVendorCDR_20' ) start [2025-02-13 12:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466483', 'tblTempVendorCDR_20' ) end [2025-02-13 12:42:23] Production.INFO: ProcessCDR(1,14466483,1,1,2) [2025-02-13 12:42:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466483', 'tblTempUsageDetail_20' ) start [2025-02-13 12:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466483', 'tblTempUsageDetail_20' ) end [2025-02-13 12:42:28] Production.ERROR: pbx prc_insertCDR start [2025-02-13 12:42:28] Production.ERROR: pbx prc_insertCDR end [2025-02-13 12:42:28] Production.INFO: ==31626== Releasing lock... [2025-02-13 12:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 12:42:28] Production.INFO: 61 MB #Memory Used# [2025-02-13 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 09:43:05 [end_date_ymd] => 2025-02-13 12:43:05 [RateCDR] => 1 ) [2025-02-13 12: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-02-13 09:43:05' and `end` < '2025-02-13 12: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-02-13 12:43:19] Production.INFO: count ==4400 [2025-02-13 12:43:21] Production.ERROR: pbx CDR StartTime 2025-02-13 09:43:05 - End Time 2025-02-13 12:43:05 [2025-02-13 12:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466488', 'tblTempUsageDetail_20' ) start [2025-02-13 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466488', 'tblTempUsageDetail_20' ) end [2025-02-13 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466488', 'tblTempVendorCDR_20' ) start [2025-02-13 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466488', 'tblTempVendorCDR_20' ) end [2025-02-13 12:43:21] Production.INFO: ProcessCDR(1,14466488,1,1,2) [2025-02-13 12:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466488', 'tblTempUsageDetail_20' ) start [2025-02-13 12:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466488', 'tblTempUsageDetail_20' ) end [2025-02-13 12:43:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 12:43:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 12:43:27] Production.INFO: ==31743== Releasing lock... [2025-02-13 12:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 12:43:27] Production.INFO: 61 MB #Memory Used# [2025-02-13 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 09:44:05 [end_date_ymd] => 2025-02-13 12:44:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 09:44:05' and `end` < '2025-02-13 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-02-13 12:44:19] Production.INFO: count ==4389 [2025-02-13 12:44:21] Production.ERROR: pbx CDR StartTime 2025-02-13 09:44:05 - End Time 2025-02-13 12:44:05 [2025-02-13 12:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466493', 'tblTempUsageDetail_20' ) start [2025-02-13 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466493', 'tblTempUsageDetail_20' ) end [2025-02-13 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466493', 'tblTempVendorCDR_20' ) start [2025-02-13 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466493', 'tblTempVendorCDR_20' ) end [2025-02-13 12:44:21] Production.INFO: ProcessCDR(1,14466493,1,1,2) [2025-02-13 12:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466493', 'tblTempUsageDetail_20' ) start [2025-02-13 12:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466493', 'tblTempUsageDetail_20' ) end [2025-02-13 12:44:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 12:44:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 12:44:26] Production.INFO: ==31816== Releasing lock... [2025-02-13 12:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 12:44:26] Production.INFO: 60.75 MB #Memory Used# [2025-02-13 12:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 09:45:04 [end_date_ymd] => 2025-02-13 12:45:04 [RateCDR] => 1 ) [2025-02-13 12: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-02-13 09:45:04' and `end` < '2025-02-13 12: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-02-13 12:45:26] Production.INFO: count ==4400 [2025-02-13 12:45:28] Production.ERROR: pbx CDR StartTime 2025-02-13 09:45:04 - End Time 2025-02-13 12:45:04 [2025-02-13 12:45:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 12:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466498', 'tblTempUsageDetail_20' ) start [2025-02-13 12:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466498', 'tblTempUsageDetail_20' ) end [2025-02-13 12:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466498', 'tblTempVendorCDR_20' ) start [2025-02-13 12:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466498', 'tblTempVendorCDR_20' ) end [2025-02-13 12:45:28] Production.INFO: ProcessCDR(1,14466498,1,1,2) [2025-02-13 12:45:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:45:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:45:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:45:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:45:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466498', 'tblTempUsageDetail_20' ) start [2025-02-13 12:45:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466498', 'tblTempUsageDetail_20' ) end [2025-02-13 12:45:33] Production.ERROR: pbx prc_insertCDR start [2025-02-13 12:45:33] Production.ERROR: pbx prc_insertCDR end [2025-02-13 12:45:33] Production.INFO: ==31892== Releasing lock... [2025-02-13 12:45:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 12:45:33] Production.INFO: 61 MB #Memory Used# [2025-02-13 12:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 09:46:06 [end_date_ymd] => 2025-02-13 12:46:06 [RateCDR] => 1 ) [2025-02-13 12: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-02-13 09:46:06' and `end` < '2025-02-13 12: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-02-13 12:46:28] Production.INFO: count ==4423 [2025-02-13 12:46:30] Production.ERROR: pbx CDR StartTime 2025-02-13 09:46:06 - End Time 2025-02-13 12:46:06 [2025-02-13 12:46:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 12:46:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466503', 'tblTempUsageDetail_20' ) start [2025-02-13 12:46:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466503', 'tblTempUsageDetail_20' ) end [2025-02-13 12:46:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466503', 'tblTempVendorCDR_20' ) start [2025-02-13 12:46:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466503', 'tblTempVendorCDR_20' ) end [2025-02-13 12:46:30] Production.INFO: ProcessCDR(1,14466503,1,1,2) [2025-02-13 12:46:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:46:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:46:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:46:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:46:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466503', 'tblTempUsageDetail_20' ) start [2025-02-13 12:46:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466503', 'tblTempUsageDetail_20' ) end [2025-02-13 12:46:36] Production.ERROR: pbx prc_insertCDR start [2025-02-13 12:46:36] Production.ERROR: pbx prc_insertCDR end [2025-02-13 12:46:36] Production.INFO: ==31968== Releasing lock... [2025-02-13 12:46:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 12:46:36] Production.INFO: 61 MB #Memory Used# [2025-02-13 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 09:47:05 [end_date_ymd] => 2025-02-13 12:47:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 09:47:05' and `end` < '2025-02-13 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-02-13 12:47:25] Production.INFO: count ==4439 [2025-02-13 12:47:27] Production.ERROR: pbx CDR StartTime 2025-02-13 09:47:05 - End Time 2025-02-13 12:47:05 [2025-02-13 12:47:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 12:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466508', 'tblTempUsageDetail_20' ) start [2025-02-13 12:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466508', 'tblTempUsageDetail_20' ) end [2025-02-13 12:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466508', 'tblTempVendorCDR_20' ) start [2025-02-13 12:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466508', 'tblTempVendorCDR_20' ) end [2025-02-13 12:47:27] Production.INFO: ProcessCDR(1,14466508,1,1,2) [2025-02-13 12:47:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:47:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:47:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:47:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:47:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466508', 'tblTempUsageDetail_20' ) start [2025-02-13 12:47:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466508', 'tblTempUsageDetail_20' ) end [2025-02-13 12:47:33] Production.ERROR: pbx prc_insertCDR start [2025-02-13 12:47:33] Production.ERROR: pbx prc_insertCDR end [2025-02-13 12:47:33] Production.INFO: ==32044== Releasing lock... [2025-02-13 12:47:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 12:47:33] Production.INFO: 61.25 MB #Memory Used# [2025-02-13 12:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 09:48:06 [end_date_ymd] => 2025-02-13 12:48:06 [RateCDR] => 1 ) [2025-02-13 12: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-02-13 09:48:06' and `end` < '2025-02-13 12: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-02-13 12:48:29] Production.INFO: count ==4438 [2025-02-13 12:48:31] Production.ERROR: pbx CDR StartTime 2025-02-13 09:48:06 - End Time 2025-02-13 12:48:06 [2025-02-13 12:48:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 12:48:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466513', 'tblTempUsageDetail_20' ) start [2025-02-13 12:48:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466513', 'tblTempUsageDetail_20' ) end [2025-02-13 12:48:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466513', 'tblTempVendorCDR_20' ) start [2025-02-13 12:48:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466513', 'tblTempVendorCDR_20' ) end [2025-02-13 12:48:31] Production.INFO: ProcessCDR(1,14466513,1,1,2) [2025-02-13 12:48:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:48:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:48:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:48:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:48:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466513', 'tblTempUsageDetail_20' ) start [2025-02-13 12:48:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466513', 'tblTempUsageDetail_20' ) end [2025-02-13 12:48:37] Production.ERROR: pbx prc_insertCDR start [2025-02-13 12:48:37] Production.ERROR: pbx prc_insertCDR end [2025-02-13 12:48:37] Production.INFO: ==32120== Releasing lock... [2025-02-13 12:48:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 12:48:37] Production.INFO: 61.25 MB #Memory Used# [2025-02-13 12:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 09:49:05 [end_date_ymd] => 2025-02-13 12:49:05 [RateCDR] => 1 ) [2025-02-13 12: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-02-13 09:49:05' and `end` < '2025-02-13 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-02-13 12:49:24] Production.INFO: count ==4429 [2025-02-13 12:49:26] Production.ERROR: pbx CDR StartTime 2025-02-13 09:49:05 - End Time 2025-02-13 12:49:05 [2025-02-13 12:49:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 12:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466518', 'tblTempUsageDetail_20' ) start [2025-02-13 12:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466518', 'tblTempUsageDetail_20' ) end [2025-02-13 12:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466518', 'tblTempVendorCDR_20' ) start [2025-02-13 12:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466518', 'tblTempVendorCDR_20' ) end [2025-02-13 12:49:26] Production.INFO: ProcessCDR(1,14466518,1,1,2) [2025-02-13 12:49:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:49:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:49:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:49:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:49:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466518', 'tblTempUsageDetail_20' ) start [2025-02-13 12:49:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466518', 'tblTempUsageDetail_20' ) end [2025-02-13 12:49:32] Production.ERROR: pbx prc_insertCDR start [2025-02-13 12:49:32] Production.ERROR: pbx prc_insertCDR end [2025-02-13 12:49:32] Production.INFO: ==32191== Releasing lock... [2025-02-13 12:49:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 12:49:32] Production.INFO: 61.25 MB #Memory Used# [2025-02-13 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 09:50:06 [end_date_ymd] => 2025-02-13 12:50:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 09:50:06' and `end` < '2025-02-13 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-02-13 12:50:30] Production.INFO: count ==4423 [2025-02-13 12:50:32] Production.ERROR: pbx CDR StartTime 2025-02-13 09:50:06 - End Time 2025-02-13 12:50:06 [2025-02-13 12:50:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 12:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466524', 'tblTempUsageDetail_20' ) start [2025-02-13 12:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466524', 'tblTempUsageDetail_20' ) end [2025-02-13 12:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466524', 'tblTempVendorCDR_20' ) start [2025-02-13 12:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466524', 'tblTempVendorCDR_20' ) end [2025-02-13 12:50:32] Production.INFO: ProcessCDR(1,14466524,1,1,2) [2025-02-13 12:50:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:50:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:50:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:50:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:50:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466524', 'tblTempUsageDetail_20' ) start [2025-02-13 12:50:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466524', 'tblTempUsageDetail_20' ) end [2025-02-13 12:50:37] Production.ERROR: pbx prc_insertCDR start [2025-02-13 12:50:37] Production.ERROR: pbx prc_insertCDR end [2025-02-13 12:50:37] Production.INFO: ==32266== Releasing lock... [2025-02-13 12:50:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 12:50:37] Production.INFO: 61 MB #Memory Used# [2025-02-13 12:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 09:51:06 [end_date_ymd] => 2025-02-13 12:51:06 [RateCDR] => 1 ) [2025-02-13 12: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-02-13 09:51:06' and `end` < '2025-02-13 12: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-02-13 12:51:25] Production.INFO: count ==4447 [2025-02-13 12:51:27] Production.ERROR: pbx CDR StartTime 2025-02-13 09:51:06 - End Time 2025-02-13 12:51:06 [2025-02-13 12:51:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 12:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466529', 'tblTempUsageDetail_20' ) start [2025-02-13 12:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466529', 'tblTempUsageDetail_20' ) end [2025-02-13 12:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466529', 'tblTempVendorCDR_20' ) start [2025-02-13 12:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466529', 'tblTempVendorCDR_20' ) end [2025-02-13 12:51:27] Production.INFO: ProcessCDR(1,14466529,1,1,2) [2025-02-13 12:51:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:51:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:51:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:51:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:51:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466529', 'tblTempUsageDetail_20' ) start [2025-02-13 12:51:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466529', 'tblTempUsageDetail_20' ) end [2025-02-13 12:51:32] Production.ERROR: pbx prc_insertCDR start [2025-02-13 12:51:32] Production.ERROR: pbx prc_insertCDR end [2025-02-13 12:51:32] Production.INFO: ==32341== Releasing lock... [2025-02-13 12:51:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 12:51:32] Production.INFO: 61.25 MB #Memory Used# [2025-02-13 12:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 09:52:06 [end_date_ymd] => 2025-02-13 12:52:06 [RateCDR] => 1 ) [2025-02-13 12: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-02-13 09:52:06' and `end` < '2025-02-13 12: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-02-13 12:52:31] Production.INFO: count ==4425 [2025-02-13 12:52:33] Production.ERROR: pbx CDR StartTime 2025-02-13 09:52:06 - End Time 2025-02-13 12:52:06 [2025-02-13 12:52:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 12:52:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466534', 'tblTempUsageDetail_20' ) start [2025-02-13 12:52:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466534', 'tblTempUsageDetail_20' ) end [2025-02-13 12:52:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466534', 'tblTempVendorCDR_20' ) start [2025-02-13 12:52:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466534', 'tblTempVendorCDR_20' ) end [2025-02-13 12:52:34] Production.INFO: ProcessCDR(1,14466534,1,1,2) [2025-02-13 12:52:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:52:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:52:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:52:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:52:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466534', 'tblTempUsageDetail_20' ) start [2025-02-13 12:52:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466534', 'tblTempUsageDetail_20' ) end [2025-02-13 12:52:39] Production.ERROR: pbx prc_insertCDR start [2025-02-13 12:52:39] Production.ERROR: pbx prc_insertCDR end [2025-02-13 12:52:39] Production.INFO: ==32411== Releasing lock... [2025-02-13 12:52:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 12:52:39] Production.INFO: 61.25 MB #Memory Used# [2025-02-13 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 09:53:05 [end_date_ymd] => 2025-02-13 12:53:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 09:53:05' and `end` < '2025-02-13 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-02-13 12:53:29] Production.INFO: count ==4432 [2025-02-13 12:53:31] Production.ERROR: pbx CDR StartTime 2025-02-13 09:53:05 - End Time 2025-02-13 12:53:05 [2025-02-13 12:53:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 12:53:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466539', 'tblTempUsageDetail_20' ) start [2025-02-13 12:53:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466539', 'tblTempUsageDetail_20' ) end [2025-02-13 12:53:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466539', 'tblTempVendorCDR_20' ) start [2025-02-13 12:53:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466539', 'tblTempVendorCDR_20' ) end [2025-02-13 12:53:31] Production.INFO: ProcessCDR(1,14466539,1,1,2) [2025-02-13 12:53:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:53:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:53:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:53:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:53:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466539', 'tblTempUsageDetail_20' ) start [2025-02-13 12:53:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466539', 'tblTempUsageDetail_20' ) end [2025-02-13 12:53:36] Production.ERROR: pbx prc_insertCDR start [2025-02-13 12:53:36] Production.ERROR: pbx prc_insertCDR end [2025-02-13 12:53:36] Production.INFO: ==32483== Releasing lock... [2025-02-13 12:53:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 12:53:36] Production.INFO: 61.25 MB #Memory Used# [2025-02-13 12:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 09:54:06 [end_date_ymd] => 2025-02-13 12:54:06 [RateCDR] => 1 ) [2025-02-13 12: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-02-13 09:54:06' and `end` < '2025-02-13 12: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-02-13 12:54:26] Production.INFO: count ==4443 [2025-02-13 12:54:28] Production.ERROR: pbx CDR StartTime 2025-02-13 09:54:06 - End Time 2025-02-13 12:54:06 [2025-02-13 12:54:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 12:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466544', 'tblTempUsageDetail_20' ) start [2025-02-13 12:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466544', 'tblTempUsageDetail_20' ) end [2025-02-13 12:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466544', 'tblTempVendorCDR_20' ) start [2025-02-13 12:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466544', 'tblTempVendorCDR_20' ) end [2025-02-13 12:54:28] Production.INFO: ProcessCDR(1,14466544,1,1,2) [2025-02-13 12:54:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:54:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:54:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:54:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:54:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466544', 'tblTempUsageDetail_20' ) start [2025-02-13 12:54:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466544', 'tblTempUsageDetail_20' ) end [2025-02-13 12:54:34] Production.ERROR: pbx prc_insertCDR start [2025-02-13 12:54:34] Production.ERROR: pbx prc_insertCDR end [2025-02-13 12:54:34] Production.INFO: ==32556== Releasing lock... [2025-02-13 12:54:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 12:54:34] Production.INFO: 61.25 MB #Memory Used# [2025-02-13 12:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 09:55:06 [end_date_ymd] => 2025-02-13 12:55:06 [RateCDR] => 1 ) [2025-02-13 12: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-02-13 09:55:06' and `end` < '2025-02-13 12: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-02-13 12:55:21] Production.INFO: count ==4436 [2025-02-13 12:55:23] Production.ERROR: pbx CDR StartTime 2025-02-13 09:55:06 - End Time 2025-02-13 12:55:06 [2025-02-13 12:55:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 12:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466549', 'tblTempUsageDetail_20' ) start [2025-02-13 12:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466549', 'tblTempUsageDetail_20' ) end [2025-02-13 12:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466549', 'tblTempVendorCDR_20' ) start [2025-02-13 12:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466549', 'tblTempVendorCDR_20' ) end [2025-02-13 12:55:23] Production.INFO: ProcessCDR(1,14466549,1,1,2) [2025-02-13 12:55:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:55:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:55:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466549', 'tblTempUsageDetail_20' ) start [2025-02-13 12:55:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466549', 'tblTempUsageDetail_20' ) end [2025-02-13 12:55:29] Production.ERROR: pbx prc_insertCDR start [2025-02-13 12:55:29] Production.ERROR: pbx prc_insertCDR end [2025-02-13 12:55:29] Production.INFO: ==32629== Releasing lock... [2025-02-13 12:55:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 12:55:29] Production.INFO: 61.25 MB #Memory Used# [2025-02-13 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 09:56:05 [end_date_ymd] => 2025-02-13 12:56:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 09:56:05' and `end` < '2025-02-13 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-02-13 12:56:22] Production.INFO: count ==4449 [2025-02-13 12:56:24] Production.ERROR: pbx CDR StartTime 2025-02-13 09:56:05 - End Time 2025-02-13 12:56:05 [2025-02-13 12:56:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 12:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466554', 'tblTempUsageDetail_20' ) start [2025-02-13 12:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466554', 'tblTempUsageDetail_20' ) end [2025-02-13 12:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466554', 'tblTempVendorCDR_20' ) start [2025-02-13 12:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466554', 'tblTempVendorCDR_20' ) end [2025-02-13 12:56:24] Production.INFO: ProcessCDR(1,14466554,1,1,2) [2025-02-13 12:56:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:56:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:56:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:56:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:56:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466554', 'tblTempUsageDetail_20' ) start [2025-02-13 12:56:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466554', 'tblTempUsageDetail_20' ) end [2025-02-13 12:56:29] Production.ERROR: pbx prc_insertCDR start [2025-02-13 12:56:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 12:56:30] Production.INFO: ==32704== Releasing lock... [2025-02-13 12:56:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 12:56:30] Production.INFO: 61.25 MB #Memory Used# [2025-02-13 12:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 09:57:06 [end_date_ymd] => 2025-02-13 12:57:06 [RateCDR] => 1 ) [2025-02-13 12: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-02-13 09:57:06' and `end` < '2025-02-13 12: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-02-13 12:57:24] Production.INFO: count ==4455 [2025-02-13 12:57:26] Production.ERROR: pbx CDR StartTime 2025-02-13 09:57:06 - End Time 2025-02-13 12:57:06 [2025-02-13 12:57:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 12:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466559', 'tblTempUsageDetail_20' ) start [2025-02-13 12:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466559', 'tblTempUsageDetail_20' ) end [2025-02-13 12:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466559', 'tblTempVendorCDR_20' ) start [2025-02-13 12:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466559', 'tblTempVendorCDR_20' ) end [2025-02-13 12:57:26] Production.INFO: ProcessCDR(1,14466559,1,1,2) [2025-02-13 12:57:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:57:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:57:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:57:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:57:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466559', 'tblTempUsageDetail_20' ) start [2025-02-13 12:57:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466559', 'tblTempUsageDetail_20' ) end [2025-02-13 12:57:32] Production.ERROR: pbx prc_insertCDR start [2025-02-13 12:57:32] Production.ERROR: pbx prc_insertCDR end [2025-02-13 12:57:32] Production.INFO: ==323== Releasing lock... [2025-02-13 12:57:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 12:57:32] Production.INFO: 61.25 MB #Memory Used# [2025-02-13 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 09:58:05 [end_date_ymd] => 2025-02-13 12:58:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 09:58:05' and `end` < '2025-02-13 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-02-13 12:58:34] Production.INFO: count ==4451 [2025-02-13 12:58:36] Production.ERROR: pbx CDR StartTime 2025-02-13 09:58:05 - End Time 2025-02-13 12:58:05 [2025-02-13 12:58:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 12:58:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466564', 'tblTempUsageDetail_20' ) start [2025-02-13 12:58:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466564', 'tblTempUsageDetail_20' ) end [2025-02-13 12:58:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466564', 'tblTempVendorCDR_20' ) start [2025-02-13 12:58:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466564', 'tblTempVendorCDR_20' ) end [2025-02-13 12:58:36] Production.INFO: ProcessCDR(1,14466564,1,1,2) [2025-02-13 12:58:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:58:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:58:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:58:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:58:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466564', 'tblTempUsageDetail_20' ) start [2025-02-13 12:58:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466564', 'tblTempUsageDetail_20' ) end [2025-02-13 12:58:41] Production.ERROR: pbx prc_insertCDR start [2025-02-13 12:58:41] Production.ERROR: pbx prc_insertCDR end [2025-02-13 12:58:42] Production.INFO: ==444== Releasing lock... [2025-02-13 12:58:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 12:58:42] Production.INFO: 61.25 MB #Memory Used# [2025-02-13 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 09:59:05 [end_date_ymd] => 2025-02-13 12:59:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 09:59:05' and `end` < '2025-02-13 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-02-13 12:59:23] Production.INFO: count ==4467 [2025-02-13 12:59:25] Production.ERROR: pbx CDR StartTime 2025-02-13 09:59:05 - End Time 2025-02-13 12:59:05 [2025-02-13 12:59:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 12:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466569', 'tblTempUsageDetail_20' ) start [2025-02-13 12:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466569', 'tblTempUsageDetail_20' ) end [2025-02-13 12:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466569', 'tblTempVendorCDR_20' ) start [2025-02-13 12:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466569', 'tblTempVendorCDR_20' ) end [2025-02-13 12:59:25] Production.INFO: ProcessCDR(1,14466569,1,1,2) [2025-02-13 12:59:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:59:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 12:59:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:59:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 12:59:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466569', 'tblTempUsageDetail_20' ) start [2025-02-13 12:59:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466569', 'tblTempUsageDetail_20' ) end [2025-02-13 12:59:31] Production.ERROR: pbx prc_insertCDR start [2025-02-13 12:59:31] Production.ERROR: pbx prc_insertCDR end [2025-02-13 12:59:31] Production.INFO: ==519== Releasing lock... [2025-02-13 12:59:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 12:59:31] Production.INFO: 61.5 MB #Memory Used# [2025-02-13 13:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 10:00:07 [end_date_ymd] => 2025-02-13 13:00:07 [RateCDR] => 1 ) [2025-02-13 13: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-02-13 10:00:07' and `end` < '2025-02-13 13: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-02-13 13:00:25] Production.INFO: count ==4460 [2025-02-13 13:00:27] Production.ERROR: pbx CDR StartTime 2025-02-13 10:00:07 - End Time 2025-02-13 13:00:07 [2025-02-13 13:00:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 13:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466575', 'tblTempUsageDetail_20' ) start [2025-02-13 13:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466575', 'tblTempUsageDetail_20' ) end [2025-02-13 13:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466575', 'tblTempVendorCDR_20' ) start [2025-02-13 13:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466575', 'tblTempVendorCDR_20' ) end [2025-02-13 13:00:27] Production.INFO: ProcessCDR(1,14466575,1,1,2) [2025-02-13 13:00:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:00:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:00:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:00:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466575', 'tblTempUsageDetail_20' ) start [2025-02-13 13:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466575', 'tblTempUsageDetail_20' ) end [2025-02-13 13:00:32] Production.ERROR: pbx prc_insertCDR start [2025-02-13 13:00:33] Production.ERROR: pbx prc_insertCDR end [2025-02-13 13:00:33] Production.INFO: ==599== Releasing lock... [2025-02-13 13:00:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 13:00:33] Production.INFO: 61.5 MB #Memory Used# [2025-02-13 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 10:01:05 [end_date_ymd] => 2025-02-13 13:01:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 10:01:05' and `end` < '2025-02-13 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-02-13 13:01:32] Production.INFO: count ==4450 [2025-02-13 13:01:34] Production.ERROR: pbx CDR StartTime 2025-02-13 10:01:05 - End Time 2025-02-13 13:01:05 [2025-02-13 13:01:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 13:01:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466580', 'tblTempUsageDetail_20' ) start [2025-02-13 13:01:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466580', 'tblTempUsageDetail_20' ) end [2025-02-13 13:01:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466580', 'tblTempVendorCDR_20' ) start [2025-02-13 13:01:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466580', 'tblTempVendorCDR_20' ) end [2025-02-13 13:01:34] Production.INFO: ProcessCDR(1,14466580,1,1,2) [2025-02-13 13:01:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:01:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:01:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:01:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:01:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466580', 'tblTempUsageDetail_20' ) start [2025-02-13 13:01:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466580', 'tblTempUsageDetail_20' ) end [2025-02-13 13:01:40] Production.ERROR: pbx prc_insertCDR start [2025-02-13 13:01:40] Production.ERROR: pbx prc_insertCDR end [2025-02-13 13:01:40] Production.INFO: ==713== Releasing lock... [2025-02-13 13:01:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 13:01:40] Production.INFO: 61.25 MB #Memory Used# [2025-02-13 13:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 10:02:06 [end_date_ymd] => 2025-02-13 13:02:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 10:02:06' and `end` < '2025-02-13 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-02-13 13:02:23] Production.INFO: count ==4463 [2025-02-13 13:02:25] Production.ERROR: pbx CDR StartTime 2025-02-13 10:02:06 - End Time 2025-02-13 13:02:06 [2025-02-13 13:02:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 13:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466585', 'tblTempUsageDetail_20' ) start [2025-02-13 13:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466585', 'tblTempUsageDetail_20' ) end [2025-02-13 13:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466585', 'tblTempVendorCDR_20' ) start [2025-02-13 13:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466585', 'tblTempVendorCDR_20' ) end [2025-02-13 13:02:25] Production.INFO: ProcessCDR(1,14466585,1,1,2) [2025-02-13 13:02:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:02:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:02:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:02:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466585', 'tblTempUsageDetail_20' ) start [2025-02-13 13:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466585', 'tblTempUsageDetail_20' ) end [2025-02-13 13:02:31] Production.ERROR: pbx prc_insertCDR start [2025-02-13 13:02:31] Production.ERROR: pbx prc_insertCDR end [2025-02-13 13:02:31] Production.INFO: ==790== Releasing lock... [2025-02-13 13:02:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 13:02:31] Production.INFO: 61.5 MB #Memory Used# [2025-02-13 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 10:03:05 [end_date_ymd] => 2025-02-13 13:03:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 10:03:05' and `end` < '2025-02-13 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-02-13 13:03:23] Production.INFO: count ==4461 [2025-02-13 13:03:25] Production.ERROR: pbx CDR StartTime 2025-02-13 10:03:05 - End Time 2025-02-13 13:03:05 [2025-02-13 13:03:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 13:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466590', 'tblTempUsageDetail_20' ) start [2025-02-13 13:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466590', 'tblTempUsageDetail_20' ) end [2025-02-13 13:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466590', 'tblTempVendorCDR_20' ) start [2025-02-13 13:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466590', 'tblTempVendorCDR_20' ) end [2025-02-13 13:03:25] Production.INFO: ProcessCDR(1,14466590,1,1,2) [2025-02-13 13:03:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:03:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:03:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:03:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466590', 'tblTempUsageDetail_20' ) start [2025-02-13 13:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466590', 'tblTempUsageDetail_20' ) end [2025-02-13 13:03:30] Production.ERROR: pbx prc_insertCDR start [2025-02-13 13:03:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 13:03:30] Production.INFO: ==862== Releasing lock... [2025-02-13 13:03:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 13:03:30] Production.INFO: 61.5 MB #Memory Used# [2025-02-13 13:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 10:04:06 [end_date_ymd] => 2025-02-13 13:04:06 [RateCDR] => 1 ) [2025-02-13 13: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-02-13 10:04:06' and `end` < '2025-02-13 13: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-02-13 13:04:23] Production.INFO: count ==4443 [2025-02-13 13:04:25] Production.ERROR: pbx CDR StartTime 2025-02-13 10:04:06 - End Time 2025-02-13 13:04:06 [2025-02-13 13:04:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 13:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466595', 'tblTempUsageDetail_20' ) start [2025-02-13 13:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466595', 'tblTempUsageDetail_20' ) end [2025-02-13 13:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466595', 'tblTempVendorCDR_20' ) start [2025-02-13 13:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466595', 'tblTempVendorCDR_20' ) end [2025-02-13 13:04:25] Production.INFO: ProcessCDR(1,14466595,1,1,2) [2025-02-13 13:04:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:04:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:04:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:04:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466595', 'tblTempUsageDetail_20' ) start [2025-02-13 13:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466595', 'tblTempUsageDetail_20' ) end [2025-02-13 13:04:29] Production.ERROR: pbx prc_insertCDR start [2025-02-13 13:04:29] Production.ERROR: pbx prc_insertCDR end [2025-02-13 13:04:29] Production.INFO: ==934== Releasing lock... [2025-02-13 13:04:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 13:04:29] Production.INFO: 61.25 MB #Memory Used# [2025-02-13 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 10:05:05 [end_date_ymd] => 2025-02-13 13:05:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 10:05:05' and `end` < '2025-02-13 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-02-13 13:05:27] Production.INFO: count ==4461 [2025-02-13 13:05:29] Production.ERROR: pbx CDR StartTime 2025-02-13 10:05:05 - End Time 2025-02-13 13:05:05 [2025-02-13 13:05:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 13:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466600', 'tblTempUsageDetail_20' ) start [2025-02-13 13:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466600', 'tblTempUsageDetail_20' ) end [2025-02-13 13:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466600', 'tblTempVendorCDR_20' ) start [2025-02-13 13:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466600', 'tblTempVendorCDR_20' ) end [2025-02-13 13:05:29] Production.INFO: ProcessCDR(1,14466600,1,1,2) [2025-02-13 13:05:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:05:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:05:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:05:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:05:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466600', 'tblTempUsageDetail_20' ) start [2025-02-13 13:05:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466600', 'tblTempUsageDetail_20' ) end [2025-02-13 13:05:35] Production.ERROR: pbx prc_insertCDR start [2025-02-13 13:05:35] Production.ERROR: pbx prc_insertCDR end [2025-02-13 13:05:35] Production.INFO: ==1007== Releasing lock... [2025-02-13 13:05:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 13:05:35] Production.INFO: 61.5 MB #Memory Used# [2025-02-13 13:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 10:06:06 [end_date_ymd] => 2025-02-13 13:06:06 [RateCDR] => 1 ) [2025-02-13 13: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-02-13 10:06:06' and `end` < '2025-02-13 13: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-02-13 13:06:23] Production.INFO: count ==4473 [2025-02-13 13:06:25] Production.ERROR: pbx CDR StartTime 2025-02-13 10:06:06 - End Time 2025-02-13 13:06:06 [2025-02-13 13:06:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 13:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466605', 'tblTempUsageDetail_20' ) start [2025-02-13 13:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466605', 'tblTempUsageDetail_20' ) end [2025-02-13 13:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466605', 'tblTempVendorCDR_20' ) start [2025-02-13 13:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466605', 'tblTempVendorCDR_20' ) end [2025-02-13 13:06:25] Production.INFO: ProcessCDR(1,14466605,1,1,2) [2025-02-13 13:06:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:06:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:06:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:06:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466605', 'tblTempUsageDetail_20' ) start [2025-02-13 13:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466605', 'tblTempUsageDetail_20' ) end [2025-02-13 13:06:31] Production.ERROR: pbx prc_insertCDR start [2025-02-13 13:06:31] Production.ERROR: pbx prc_insertCDR end [2025-02-13 13:06:31] Production.INFO: ==1081== Releasing lock... [2025-02-13 13:06:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 13:06:31] Production.INFO: 61.5 MB #Memory Used# [2025-02-13 13:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 10:07:06 [end_date_ymd] => 2025-02-13 13:07:06 [RateCDR] => 1 ) [2025-02-13 13: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-02-13 10:07:06' and `end` < '2025-02-13 13: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-02-13 13:07:22] Production.INFO: count ==4494 [2025-02-13 13:07:24] Production.ERROR: pbx CDR StartTime 2025-02-13 10:07:06 - End Time 2025-02-13 13:07:06 [2025-02-13 13:07:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 13:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466610', 'tblTempUsageDetail_20' ) start [2025-02-13 13:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466610', 'tblTempUsageDetail_20' ) end [2025-02-13 13:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466610', 'tblTempVendorCDR_20' ) start [2025-02-13 13:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466610', 'tblTempVendorCDR_20' ) end [2025-02-13 13:07:24] Production.INFO: ProcessCDR(1,14466610,1,1,2) [2025-02-13 13:07:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:07:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:07:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:07:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466610', 'tblTempUsageDetail_20' ) start [2025-02-13 13:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466610', 'tblTempUsageDetail_20' ) end [2025-02-13 13:07:30] Production.ERROR: pbx prc_insertCDR start [2025-02-13 13:07:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 13:07:30] Production.INFO: ==1162== Releasing lock... [2025-02-13 13:07:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 13:07:30] Production.INFO: 61.75 MB #Memory Used# [2025-02-13 13:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 10:08:06 [end_date_ymd] => 2025-02-13 13:08:06 [RateCDR] => 1 ) [2025-02-13 13: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-02-13 10:08:06' and `end` < '2025-02-13 13: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-02-13 13:08:22] Production.INFO: count ==4489 [2025-02-13 13:08:24] Production.ERROR: pbx CDR StartTime 2025-02-13 10:08:06 - End Time 2025-02-13 13:08:06 [2025-02-13 13:08:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 13:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466615', 'tblTempUsageDetail_20' ) start [2025-02-13 13:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466615', 'tblTempUsageDetail_20' ) end [2025-02-13 13:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466615', 'tblTempVendorCDR_20' ) start [2025-02-13 13:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466615', 'tblTempVendorCDR_20' ) end [2025-02-13 13:08:24] Production.INFO: ProcessCDR(1,14466615,1,1,2) [2025-02-13 13:08:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:08:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:08:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:08:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466615', 'tblTempUsageDetail_20' ) start [2025-02-13 13:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466615', 'tblTempUsageDetail_20' ) end [2025-02-13 13:08:29] Production.ERROR: pbx prc_insertCDR start [2025-02-13 13:08:29] Production.ERROR: pbx prc_insertCDR end [2025-02-13 13:08:29] Production.INFO: ==1245== Releasing lock... [2025-02-13 13:08:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 13:08:29] Production.INFO: 61.5 MB #Memory Used# [2025-02-13 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 10:09:05 [end_date_ymd] => 2025-02-13 13:09:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 10:09:05' and `end` < '2025-02-13 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-02-13 13:09:19] Production.INFO: count ==4476 [2025-02-13 13:09:21] Production.ERROR: pbx CDR StartTime 2025-02-13 10:09:05 - End Time 2025-02-13 13:09:05 [2025-02-13 13:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466620', 'tblTempUsageDetail_20' ) start [2025-02-13 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466620', 'tblTempUsageDetail_20' ) end [2025-02-13 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466620', 'tblTempVendorCDR_20' ) start [2025-02-13 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466620', 'tblTempVendorCDR_20' ) end [2025-02-13 13:09:21] Production.INFO: ProcessCDR(1,14466620,1,1,2) [2025-02-13 13:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466620', 'tblTempUsageDetail_20' ) start [2025-02-13 13:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466620', 'tblTempUsageDetail_20' ) end [2025-02-13 13:09:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 13:09:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 13:09:27] Production.INFO: ==1322== Releasing lock... [2025-02-13 13:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 13:09:27] Production.INFO: 61.5 MB #Memory Used# [2025-02-13 13:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 10:10:07 [end_date_ymd] => 2025-02-13 13:10:07 [RateCDR] => 1 ) [2025-02-13 13: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-02-13 10:10:07' and `end` < '2025-02-13 13: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-02-13 13:10:28] Production.INFO: count ==4482 [2025-02-13 13:10:30] Production.ERROR: pbx CDR StartTime 2025-02-13 10:10:07 - End Time 2025-02-13 13:10:07 [2025-02-13 13:10:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 13:10:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466626', 'tblTempUsageDetail_20' ) start [2025-02-13 13:10:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466626', 'tblTempUsageDetail_20' ) end [2025-02-13 13:10:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466626', 'tblTempVendorCDR_20' ) start [2025-02-13 13:10:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466626', 'tblTempVendorCDR_20' ) end [2025-02-13 13:10:31] Production.INFO: ProcessCDR(1,14466626,1,1,2) [2025-02-13 13:10:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:10:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:10:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:10:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:10:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466626', 'tblTempUsageDetail_20' ) start [2025-02-13 13:10:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466626', 'tblTempUsageDetail_20' ) end [2025-02-13 13:10:36] Production.ERROR: pbx prc_insertCDR start [2025-02-13 13:10:36] Production.ERROR: pbx prc_insertCDR end [2025-02-13 13:10:36] Production.INFO: ==1395== Releasing lock... [2025-02-13 13:10:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 13:10:36] Production.INFO: 61.5 MB #Memory Used# [2025-02-13 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 10:11:05 [end_date_ymd] => 2025-02-13 13:11:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 10:11:05' and `end` < '2025-02-13 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-02-13 13:11:20] Production.INFO: count ==4463 [2025-02-13 13:11:22] Production.ERROR: pbx CDR StartTime 2025-02-13 10:11:05 - End Time 2025-02-13 13:11:05 [2025-02-13 13:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466631', 'tblTempUsageDetail_20' ) start [2025-02-13 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466631', 'tblTempUsageDetail_20' ) end [2025-02-13 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466631', 'tblTempVendorCDR_20' ) start [2025-02-13 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466631', 'tblTempVendorCDR_20' ) end [2025-02-13 13:11:22] Production.INFO: ProcessCDR(1,14466631,1,1,2) [2025-02-13 13:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466631', 'tblTempUsageDetail_20' ) start [2025-02-13 13:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466631', 'tblTempUsageDetail_20' ) end [2025-02-13 13:11:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 13:11:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 13:11:26] Production.INFO: ==1472== Releasing lock... [2025-02-13 13:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 13:11:26] Production.INFO: 61.5 MB #Memory Used# [2025-02-13 13:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 10:12:06 [end_date_ymd] => 2025-02-13 13:12:06 [RateCDR] => 1 ) [2025-02-13 13: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-02-13 10:12:06' and `end` < '2025-02-13 13: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-02-13 13:12:24] Production.INFO: count ==4471 [2025-02-13 13:12:26] Production.ERROR: pbx CDR StartTime 2025-02-13 10:12:06 - End Time 2025-02-13 13:12:06 [2025-02-13 13:12:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 13:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466636', 'tblTempUsageDetail_20' ) start [2025-02-13 13:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466636', 'tblTempUsageDetail_20' ) end [2025-02-13 13:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466636', 'tblTempVendorCDR_20' ) start [2025-02-13 13:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466636', 'tblTempVendorCDR_20' ) end [2025-02-13 13:12:26] Production.INFO: ProcessCDR(1,14466636,1,1,2) [2025-02-13 13:12:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:12:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:12:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:12:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:12:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466636', 'tblTempUsageDetail_20' ) start [2025-02-13 13:12:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466636', 'tblTempUsageDetail_20' ) end [2025-02-13 13:12:32] Production.ERROR: pbx prc_insertCDR start [2025-02-13 13:12:32] Production.ERROR: pbx prc_insertCDR end [2025-02-13 13:12:32] Production.INFO: ==1580== Releasing lock... [2025-02-13 13:12:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 13:12:32] Production.INFO: 61.5 MB #Memory Used# [2025-02-13 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 10:13:05 [end_date_ymd] => 2025-02-13 13:13:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 10:13:05' and `end` < '2025-02-13 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-02-13 13:13:19] Production.INFO: count ==4500 [2025-02-13 13:13:21] Production.ERROR: pbx CDR StartTime 2025-02-13 10:13:05 - End Time 2025-02-13 13:13:05 [2025-02-13 13:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466641', 'tblTempUsageDetail_20' ) start [2025-02-13 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466641', 'tblTempUsageDetail_20' ) end [2025-02-13 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466641', 'tblTempVendorCDR_20' ) start [2025-02-13 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466641', 'tblTempVendorCDR_20' ) end [2025-02-13 13:13:21] Production.INFO: ProcessCDR(1,14466641,1,1,2) [2025-02-13 13:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466641', 'tblTempUsageDetail_20' ) start [2025-02-13 13:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466641', 'tblTempUsageDetail_20' ) end [2025-02-13 13:13:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 13:13:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 13:13:27] Production.INFO: ==1650== Releasing lock... [2025-02-13 13:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 13:13:27] Production.INFO: 61.75 MB #Memory Used# [2025-02-13 13:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 10:14:06 [end_date_ymd] => 2025-02-13 13:14:06 [RateCDR] => 1 ) [2025-02-13 13: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-02-13 10:14:06' and `end` < '2025-02-13 13: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-02-13 13:14:22] Production.INFO: count ==4518 [2025-02-13 13:14:24] Production.ERROR: pbx CDR StartTime 2025-02-13 10:14:06 - End Time 2025-02-13 13:14:06 [2025-02-13 13:14:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 13:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466646', 'tblTempUsageDetail_20' ) start [2025-02-13 13:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466646', 'tblTempUsageDetail_20' ) end [2025-02-13 13:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466646', 'tblTempVendorCDR_20' ) start [2025-02-13 13:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466646', 'tblTempVendorCDR_20' ) end [2025-02-13 13:14:24] Production.INFO: ProcessCDR(1,14466646,1,1,2) [2025-02-13 13:14:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:14:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:14:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:14:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466646', 'tblTempUsageDetail_20' ) start [2025-02-13 13:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466646', 'tblTempUsageDetail_20' ) end [2025-02-13 13:14:30] Production.ERROR: pbx prc_insertCDR start [2025-02-13 13:14:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 13:14:30] Production.INFO: ==1760== Releasing lock... [2025-02-13 13:14:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 13:14:30] Production.INFO: 61.75 MB #Memory Used# [2025-02-13 13:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 10:15:06 [end_date_ymd] => 2025-02-13 13:15:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 10:15:06' and `end` < '2025-02-13 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-02-13 13:15:21] Production.INFO: count ==4528 [2025-02-13 13:15:23] Production.ERROR: pbx CDR StartTime 2025-02-13 10:15:06 - End Time 2025-02-13 13:15:06 [2025-02-13 13:15:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 13:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466651', 'tblTempUsageDetail_20' ) start [2025-02-13 13:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466651', 'tblTempUsageDetail_20' ) end [2025-02-13 13:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466651', 'tblTempVendorCDR_20' ) start [2025-02-13 13:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466651', 'tblTempVendorCDR_20' ) end [2025-02-13 13:15:23] Production.INFO: ProcessCDR(1,14466651,1,1,2) [2025-02-13 13:15:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:15:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466651', 'tblTempUsageDetail_20' ) start [2025-02-13 13:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466651', 'tblTempUsageDetail_20' ) end [2025-02-13 13:15:28] Production.ERROR: pbx prc_insertCDR start [2025-02-13 13:15:28] Production.ERROR: pbx prc_insertCDR end [2025-02-13 13:15:28] Production.INFO: ==1835== Releasing lock... [2025-02-13 13:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 13:15:28] Production.INFO: 62 MB #Memory Used# [2025-02-13 13:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 10:16:06 [end_date_ymd] => 2025-02-13 13:16:06 [RateCDR] => 1 ) [2025-02-13 13: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-02-13 10:16:06' and `end` < '2025-02-13 13: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-02-13 13:16:22] Production.INFO: count ==4521 [2025-02-13 13:16:24] Production.ERROR: pbx CDR StartTime 2025-02-13 10:16:06 - End Time 2025-02-13 13:16:06 [2025-02-13 13:16:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 13:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466656', 'tblTempUsageDetail_20' ) start [2025-02-13 13:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466656', 'tblTempUsageDetail_20' ) end [2025-02-13 13:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466656', 'tblTempVendorCDR_20' ) start [2025-02-13 13:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466656', 'tblTempVendorCDR_20' ) end [2025-02-13 13:16:24] Production.INFO: ProcessCDR(1,14466656,1,1,2) [2025-02-13 13:16:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:16:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:16:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:16:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466656', 'tblTempUsageDetail_20' ) start [2025-02-13 13:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466656', 'tblTempUsageDetail_20' ) end [2025-02-13 13:16:29] Production.ERROR: pbx prc_insertCDR start [2025-02-13 13:16:29] Production.ERROR: pbx prc_insertCDR end [2025-02-13 13:16:29] Production.INFO: ==1911== Releasing lock... [2025-02-13 13:16:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 13:16:29] Production.INFO: 61.75 MB #Memory Used# [2025-02-13 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 10:17:05 [end_date_ymd] => 2025-02-13 13:17:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 10:17:05' and `end` < '2025-02-13 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-02-13 13:17:19] Production.INFO: count ==4514 [2025-02-13 13:17:21] Production.ERROR: pbx CDR StartTime 2025-02-13 10:17:05 - End Time 2025-02-13 13:17:05 [2025-02-13 13:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466661', 'tblTempUsageDetail_20' ) start [2025-02-13 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466661', 'tblTempUsageDetail_20' ) end [2025-02-13 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466661', 'tblTempVendorCDR_20' ) start [2025-02-13 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466661', 'tblTempVendorCDR_20' ) end [2025-02-13 13:17:21] Production.INFO: ProcessCDR(1,14466661,1,1,2) [2025-02-13 13:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466661', 'tblTempUsageDetail_20' ) start [2025-02-13 13:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466661', 'tblTempUsageDetail_20' ) end [2025-02-13 13:17:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 13:17:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 13:17:26] Production.INFO: ==1983== Releasing lock... [2025-02-13 13:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 13:17:26] Production.INFO: 61.75 MB #Memory Used# [2025-02-13 13:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 10:18:06 [end_date_ymd] => 2025-02-13 13:18:06 [RateCDR] => 1 ) [2025-02-13 13: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-02-13 10:18:06' and `end` < '2025-02-13 13: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-02-13 13:18:26] Production.INFO: count ==4509 [2025-02-13 13:18:28] Production.ERROR: pbx CDR StartTime 2025-02-13 10:18:06 - End Time 2025-02-13 13:18:06 [2025-02-13 13:18:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 13:18:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466666', 'tblTempUsageDetail_20' ) start [2025-02-13 13:18:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466666', 'tblTempUsageDetail_20' ) end [2025-02-13 13:18:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466666', 'tblTempVendorCDR_20' ) start [2025-02-13 13:18:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466666', 'tblTempVendorCDR_20' ) end [2025-02-13 13:18:28] Production.INFO: ProcessCDR(1,14466666,1,1,2) [2025-02-13 13:18:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:18:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:18:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:18:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:18:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466666', 'tblTempUsageDetail_20' ) start [2025-02-13 13:18:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466666', 'tblTempUsageDetail_20' ) end [2025-02-13 13:18:34] Production.ERROR: pbx prc_insertCDR start [2025-02-13 13:18:34] Production.ERROR: pbx prc_insertCDR end [2025-02-13 13:18:34] Production.INFO: ==2070== Releasing lock... [2025-02-13 13:18:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 13:18:34] Production.INFO: 61.75 MB #Memory Used# [2025-02-13 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 10:19:05 [end_date_ymd] => 2025-02-13 13:19:05 [RateCDR] => 1 ) [2025-02-13 13: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-02-13 10:19:05' and `end` < '2025-02-13 13: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-02-13 13:19:21] Production.INFO: count ==4512 [2025-02-13 13:19:23] Production.ERROR: pbx CDR StartTime 2025-02-13 10:19:05 - End Time 2025-02-13 13:19:05 [2025-02-13 13:19:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 13:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466671', 'tblTempUsageDetail_20' ) start [2025-02-13 13:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466671', 'tblTempUsageDetail_20' ) end [2025-02-13 13:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466671', 'tblTempVendorCDR_20' ) start [2025-02-13 13:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466671', 'tblTempVendorCDR_20' ) end [2025-02-13 13:19:24] Production.INFO: ProcessCDR(1,14466671,1,1,2) [2025-02-13 13:19:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:19:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:19:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:19:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466671', 'tblTempUsageDetail_20' ) start [2025-02-13 13:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466671', 'tblTempUsageDetail_20' ) end [2025-02-13 13:19:29] Production.ERROR: pbx prc_insertCDR start [2025-02-13 13:19:29] Production.ERROR: pbx prc_insertCDR end [2025-02-13 13:19:29] Production.INFO: ==2161== Releasing lock... [2025-02-13 13:19:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 13:19:29] Production.INFO: 61.75 MB #Memory Used# [2025-02-13 13:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 10:20:07 [end_date_ymd] => 2025-02-13 13:20:07 [RateCDR] => 1 ) [2025-02-13 13: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-02-13 10:20:07' and `end` < '2025-02-13 13: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-02-13 13:20:23] Production.INFO: count ==4518 [2025-02-13 13:20:25] Production.ERROR: pbx CDR StartTime 2025-02-13 10:20:07 - End Time 2025-02-13 13:20:07 [2025-02-13 13:20:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 13:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466676', 'tblTempUsageDetail_20' ) start [2025-02-13 13:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466676', 'tblTempUsageDetail_20' ) end [2025-02-13 13:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466676', 'tblTempVendorCDR_20' ) start [2025-02-13 13:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466676', 'tblTempVendorCDR_20' ) end [2025-02-13 13:20:25] Production.INFO: ProcessCDR(1,14466676,1,1,2) [2025-02-13 13:20:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:20:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:20:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:20:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:20:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466676', 'tblTempUsageDetail_20' ) start [2025-02-13 13:20:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466676', 'tblTempUsageDetail_20' ) end [2025-02-13 13:20:31] Production.ERROR: pbx prc_insertCDR start [2025-02-13 13:20:31] Production.ERROR: pbx prc_insertCDR end [2025-02-13 13:20:31] Production.INFO: ==2248== Releasing lock... [2025-02-13 13:20:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 13:20:31] Production.INFO: 61.75 MB #Memory Used# [2025-02-13 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 10:21:05 [end_date_ymd] => 2025-02-13 13:21:05 [RateCDR] => 1 ) [2025-02-13 13: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-02-13 10:21:05' and `end` < '2025-02-13 13: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-02-13 13:21:22] Production.INFO: count ==4535 [2025-02-13 13:21:23] Production.ERROR: pbx CDR StartTime 2025-02-13 10:21:05 - End Time 2025-02-13 13:21:05 [2025-02-13 13:21:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 13:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466682', 'tblTempUsageDetail_20' ) start [2025-02-13 13:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466682', 'tblTempUsageDetail_20' ) end [2025-02-13 13:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466682', 'tblTempVendorCDR_20' ) start [2025-02-13 13:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466682', 'tblTempVendorCDR_20' ) end [2025-02-13 13:21:24] Production.INFO: ProcessCDR(1,14466682,1,1,2) [2025-02-13 13:21:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:21:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:21:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:21:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466682', 'tblTempUsageDetail_20' ) start [2025-02-13 13:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466682', 'tblTempUsageDetail_20' ) end [2025-02-13 13:21:29] Production.ERROR: pbx prc_insertCDR start [2025-02-13 13:21:29] Production.ERROR: pbx prc_insertCDR end [2025-02-13 13:21:29] Production.INFO: ==2347== Releasing lock... [2025-02-13 13:21:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 13:21:29] Production.INFO: 62 MB #Memory Used# [2025-02-13 13:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 10:22:06 [end_date_ymd] => 2025-02-13 13:22:06 [RateCDR] => 1 ) [2025-02-13 13: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-02-13 10:22:06' and `end` < '2025-02-13 13: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-02-13 13:22:20] Production.INFO: count ==4537 [2025-02-13 13:22:22] Production.ERROR: pbx CDR StartTime 2025-02-13 10:22:06 - End Time 2025-02-13 13:22:06 [2025-02-13 13:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466687', 'tblTempUsageDetail_20' ) start [2025-02-13 13:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466687', 'tblTempUsageDetail_20' ) end [2025-02-13 13:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466687', 'tblTempVendorCDR_20' ) start [2025-02-13 13:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466687', 'tblTempVendorCDR_20' ) end [2025-02-13 13:22:23] Production.INFO: ProcessCDR(1,14466687,1,1,2) [2025-02-13 13:22:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466687', 'tblTempUsageDetail_20' ) start [2025-02-13 13:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466687', 'tblTempUsageDetail_20' ) end [2025-02-13 13:22:28] Production.ERROR: pbx prc_insertCDR start [2025-02-13 13:22:28] Production.ERROR: pbx prc_insertCDR end [2025-02-13 13:22:28] Production.INFO: ==2425== Releasing lock... [2025-02-13 13:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 13:22:28] Production.INFO: 62 MB #Memory Used# [2025-02-13 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 10:23:05 [end_date_ymd] => 2025-02-13 13:23:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 10:23:05' and `end` < '2025-02-13 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-02-13 13:23:20] Production.INFO: count ==4526 [2025-02-13 13:23:22] Production.ERROR: pbx CDR StartTime 2025-02-13 10:23:05 - End Time 2025-02-13 13:23:05 [2025-02-13 13:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466692', 'tblTempUsageDetail_20' ) start [2025-02-13 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466692', 'tblTempUsageDetail_20' ) end [2025-02-13 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466692', 'tblTempVendorCDR_20' ) start [2025-02-13 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466692', 'tblTempVendorCDR_20' ) end [2025-02-13 13:23:22] Production.INFO: ProcessCDR(1,14466692,1,1,2) [2025-02-13 13:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466692', 'tblTempUsageDetail_20' ) start [2025-02-13 13:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466692', 'tblTempUsageDetail_20' ) end [2025-02-13 13:23:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 13:23:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 13:23:27] Production.INFO: ==2524== Releasing lock... [2025-02-13 13:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 13:23:27] Production.INFO: 62 MB #Memory Used# [2025-02-13 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 10:24:05 [end_date_ymd] => 2025-02-13 13:24:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 10:24:05' and `end` < '2025-02-13 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-02-13 13:24:19] Production.INFO: count ==4531 [2025-02-13 13:24:21] Production.ERROR: pbx CDR StartTime 2025-02-13 10:24:05 - End Time 2025-02-13 13:24:05 [2025-02-13 13:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466697', 'tblTempUsageDetail_20' ) start [2025-02-13 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466697', 'tblTempUsageDetail_20' ) end [2025-02-13 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466697', 'tblTempVendorCDR_20' ) start [2025-02-13 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466697', 'tblTempVendorCDR_20' ) end [2025-02-13 13:24:21] Production.INFO: ProcessCDR(1,14466697,1,1,2) [2025-02-13 13:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466697', 'tblTempUsageDetail_20' ) start [2025-02-13 13:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466697', 'tblTempUsageDetail_20' ) end [2025-02-13 13:24:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 13:24:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 13:24:26] Production.INFO: ==2593== Releasing lock... [2025-02-13 13:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 13:24:26] Production.INFO: 62 MB #Memory Used# [2025-02-13 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 10:25:05 [end_date_ymd] => 2025-02-13 13:25:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 10:25:05' and `end` < '2025-02-13 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-02-13 13:25:21] Production.INFO: count ==4546 [2025-02-13 13:25:23] Production.ERROR: pbx CDR StartTime 2025-02-13 10:25:05 - End Time 2025-02-13 13:25:05 [2025-02-13 13:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466702', 'tblTempUsageDetail_20' ) start [2025-02-13 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466702', 'tblTempUsageDetail_20' ) end [2025-02-13 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466702', 'tblTempVendorCDR_20' ) start [2025-02-13 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466702', 'tblTempVendorCDR_20' ) end [2025-02-13 13:25:23] Production.INFO: ProcessCDR(1,14466702,1,1,2) [2025-02-13 13:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466702', 'tblTempUsageDetail_20' ) start [2025-02-13 13:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466702', 'tblTempUsageDetail_20' ) end [2025-02-13 13:25:28] Production.ERROR: pbx prc_insertCDR start [2025-02-13 13:25:29] Production.ERROR: pbx prc_insertCDR end [2025-02-13 13:25:29] Production.INFO: ==2701== Releasing lock... [2025-02-13 13:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 13:25:29] Production.INFO: 62 MB #Memory Used# [2025-02-13 13:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 10:26:06 [end_date_ymd] => 2025-02-13 13:26:06 [RateCDR] => 1 ) [2025-02-13 13: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-02-13 10:26:06' and `end` < '2025-02-13 13: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-02-13 13:26:24] Production.INFO: count ==4566 [2025-02-13 13:26:26] Production.ERROR: pbx CDR StartTime 2025-02-13 10:26:06 - End Time 2025-02-13 13:26:06 [2025-02-13 13:26:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 13:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466707', 'tblTempUsageDetail_20' ) start [2025-02-13 13:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466707', 'tblTempUsageDetail_20' ) end [2025-02-13 13:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466707', 'tblTempVendorCDR_20' ) start [2025-02-13 13:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466707', 'tblTempVendorCDR_20' ) end [2025-02-13 13:26:26] Production.INFO: ProcessCDR(1,14466707,1,1,2) [2025-02-13 13:26:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:26:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:26:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:26:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:26:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466707', 'tblTempUsageDetail_20' ) start [2025-02-13 13:26:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466707', 'tblTempUsageDetail_20' ) end [2025-02-13 13:26:31] Production.ERROR: pbx prc_insertCDR start [2025-02-13 13:26:31] Production.ERROR: pbx prc_insertCDR end [2025-02-13 13:26:31] Production.INFO: ==2781== Releasing lock... [2025-02-13 13:26:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 13:26:31] Production.INFO: 62.25 MB #Memory Used# [2025-02-13 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 10:27:05 [end_date_ymd] => 2025-02-13 13:27:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 10:27:05' and `end` < '2025-02-13 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-02-13 13:27:19] Production.INFO: count ==4573 [2025-02-13 13:27:21] Production.ERROR: pbx CDR StartTime 2025-02-13 10:27:05 - End Time 2025-02-13 13:27:05 [2025-02-13 13:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466712', 'tblTempUsageDetail_20' ) start [2025-02-13 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466712', 'tblTempUsageDetail_20' ) end [2025-02-13 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466712', 'tblTempVendorCDR_20' ) start [2025-02-13 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466712', 'tblTempVendorCDR_20' ) end [2025-02-13 13:27:21] Production.INFO: ProcessCDR(1,14466712,1,1,2) [2025-02-13 13:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466712', 'tblTempUsageDetail_20' ) start [2025-02-13 13:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466712', 'tblTempUsageDetail_20' ) end [2025-02-13 13:27:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 13:27:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 13:27:26] Production.INFO: ==2885== Releasing lock... [2025-02-13 13:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 13:27:26] Production.INFO: 62.25 MB #Memory Used# [2025-02-13 13:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 10:28:06 [end_date_ymd] => 2025-02-13 13:28:06 [RateCDR] => 1 ) [2025-02-13 13: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-02-13 10:28:06' and `end` < '2025-02-13 13: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-02-13 13:28:21] Production.INFO: count ==4590 [2025-02-13 13:28:23] Production.ERROR: pbx CDR StartTime 2025-02-13 10:28:06 - End Time 2025-02-13 13:28:06 [2025-02-13 13:28:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 13:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466717', 'tblTempUsageDetail_20' ) start [2025-02-13 13:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466717', 'tblTempUsageDetail_20' ) end [2025-02-13 13:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466717', 'tblTempVendorCDR_20' ) start [2025-02-13 13:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466717', 'tblTempVendorCDR_20' ) end [2025-02-13 13:28:23] Production.INFO: ProcessCDR(1,14466717,1,1,2) [2025-02-13 13:28:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:28:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:28:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:28:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466717', 'tblTempUsageDetail_20' ) start [2025-02-13 13:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466717', 'tblTempUsageDetail_20' ) end [2025-02-13 13:28:28] Production.ERROR: pbx prc_insertCDR start [2025-02-13 13:28:29] Production.ERROR: pbx prc_insertCDR end [2025-02-13 13:28:29] Production.INFO: ==2958== Releasing lock... [2025-02-13 13:28:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 13:28:29] Production.INFO: 62.25 MB #Memory Used# [2025-02-13 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 10:29:05 [end_date_ymd] => 2025-02-13 13:29:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 10:29:05' and `end` < '2025-02-13 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-02-13 13:29:22] Production.INFO: count ==4604 [2025-02-13 13:29:24] Production.ERROR: pbx CDR StartTime 2025-02-13 10:29:05 - End Time 2025-02-13 13:29:05 [2025-02-13 13:29:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 13:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466722', 'tblTempUsageDetail_20' ) start [2025-02-13 13:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466722', 'tblTempUsageDetail_20' ) end [2025-02-13 13:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466722', 'tblTempVendorCDR_20' ) start [2025-02-13 13:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466722', 'tblTempVendorCDR_20' ) end [2025-02-13 13:29:24] Production.INFO: ProcessCDR(1,14466722,1,1,2) [2025-02-13 13:29:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:29:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:29:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:29:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:29:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466722', 'tblTempUsageDetail_20' ) start [2025-02-13 13:29:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466722', 'tblTempUsageDetail_20' ) end [2025-02-13 13:29:29] Production.ERROR: pbx prc_insertCDR start [2025-02-13 13:29:29] Production.ERROR: pbx prc_insertCDR end [2025-02-13 13:29:29] Production.INFO: ==3104== Releasing lock... [2025-02-13 13:29:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 13:29:29] Production.INFO: 62.5 MB #Memory Used# [2025-02-13 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 10:30:06 [end_date_ymd] => 2025-02-13 13:30:06 [RateCDR] => 1 ) [2025-02-13 13: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-02-13 10:30:06' and `end` < '2025-02-13 13: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-02-13 13:30:25] Production.INFO: count ==4590 [2025-02-13 13:30:27] Production.ERROR: pbx CDR StartTime 2025-02-13 10:30:06 - End Time 2025-02-13 13:30:06 [2025-02-13 13:30:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 13:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466728', 'tblTempUsageDetail_20' ) start [2025-02-13 13:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466728', 'tblTempUsageDetail_20' ) end [2025-02-13 13:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466728', 'tblTempVendorCDR_20' ) start [2025-02-13 13:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466728', 'tblTempVendorCDR_20' ) end [2025-02-13 13:30:27] Production.INFO: ProcessCDR(1,14466728,1,1,2) [2025-02-13 13:30:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:30:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:30:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:30:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466728', 'tblTempUsageDetail_20' ) start [2025-02-13 13:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466728', 'tblTempUsageDetail_20' ) end [2025-02-13 13:30:32] Production.ERROR: pbx prc_insertCDR start [2025-02-13 13:30:32] Production.ERROR: pbx prc_insertCDR end [2025-02-13 13:30:32] Production.INFO: ==3185== Releasing lock... [2025-02-13 13:30:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 13:30:32] Production.INFO: 62.25 MB #Memory Used# [2025-02-13 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 10:31:05 [end_date_ymd] => 2025-02-13 13:31:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 10:31:05' and `end` < '2025-02-13 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-02-13 13:31:21] Production.INFO: count ==4573 [2025-02-13 13:31:23] Production.ERROR: pbx CDR StartTime 2025-02-13 10:31:05 - End Time 2025-02-13 13:31:05 [2025-02-13 13:31:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 13:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466733', 'tblTempUsageDetail_20' ) start [2025-02-13 13:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466733', 'tblTempUsageDetail_20' ) end [2025-02-13 13:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466733', 'tblTempVendorCDR_20' ) start [2025-02-13 13:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466733', 'tblTempVendorCDR_20' ) end [2025-02-13 13:31:23] Production.INFO: ProcessCDR(1,14466733,1,1,2) [2025-02-13 13:31:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:31:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:31:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:31:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466733', 'tblTempUsageDetail_20' ) start [2025-02-13 13:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466733', 'tblTempUsageDetail_20' ) end [2025-02-13 13:31:28] Production.ERROR: pbx prc_insertCDR start [2025-02-13 13:31:28] Production.ERROR: pbx prc_insertCDR end [2025-02-13 13:31:28] Production.INFO: ==3288== Releasing lock... [2025-02-13 13:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 13:31:28] Production.INFO: 62.25 MB #Memory Used# [2025-02-13 13:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 10:32:06 [end_date_ymd] => 2025-02-13 13:32:06 [RateCDR] => 1 ) [2025-02-13 13: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-02-13 10:32:06' and `end` < '2025-02-13 13: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-02-13 13:32:20] Production.INFO: count ==4582 [2025-02-13 13:32:22] Production.ERROR: pbx CDR StartTime 2025-02-13 10:32:06 - End Time 2025-02-13 13:32:06 [2025-02-13 13:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466738', 'tblTempUsageDetail_20' ) start [2025-02-13 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466738', 'tblTempUsageDetail_20' ) end [2025-02-13 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466738', 'tblTempVendorCDR_20' ) start [2025-02-13 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466738', 'tblTempVendorCDR_20' ) end [2025-02-13 13:32:22] Production.INFO: ProcessCDR(1,14466738,1,1,2) [2025-02-13 13:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466738', 'tblTempUsageDetail_20' ) start [2025-02-13 13:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466738', 'tblTempUsageDetail_20' ) end [2025-02-13 13:32:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 13:32:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 13:32:27] Production.INFO: ==3372== Releasing lock... [2025-02-13 13:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 13:32:27] Production.INFO: 62.25 MB #Memory Used# [2025-02-13 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 10:33:05 [end_date_ymd] => 2025-02-13 13:33:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 10:33:05' and `end` < '2025-02-13 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-02-13 13:33:20] Production.INFO: count ==4571 [2025-02-13 13:33:22] Production.ERROR: pbx CDR StartTime 2025-02-13 10:33:05 - End Time 2025-02-13 13:33:05 [2025-02-13 13:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466743', 'tblTempUsageDetail_20' ) start [2025-02-13 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466743', 'tblTempUsageDetail_20' ) end [2025-02-13 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466743', 'tblTempVendorCDR_20' ) start [2025-02-13 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466743', 'tblTempVendorCDR_20' ) end [2025-02-13 13:33:22] Production.INFO: ProcessCDR(1,14466743,1,1,2) [2025-02-13 13:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466743', 'tblTempUsageDetail_20' ) start [2025-02-13 13:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466743', 'tblTempUsageDetail_20' ) end [2025-02-13 13:33:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 13:33:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 13:33:27] Production.INFO: ==3468== Releasing lock... [2025-02-13 13:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 13:33:27] Production.INFO: 62.25 MB #Memory Used# [2025-02-13 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 10:34:05 [end_date_ymd] => 2025-02-13 13:34:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 10:34:05' and `end` < '2025-02-13 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-02-13 13:34:20] Production.INFO: count ==4580 [2025-02-13 13:34:22] Production.ERROR: pbx CDR StartTime 2025-02-13 10:34:05 - End Time 2025-02-13 13:34:05 [2025-02-13 13:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466748', 'tblTempUsageDetail_20' ) start [2025-02-13 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466748', 'tblTempUsageDetail_20' ) end [2025-02-13 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466748', 'tblTempVendorCDR_20' ) start [2025-02-13 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466748', 'tblTempVendorCDR_20' ) end [2025-02-13 13:34:22] Production.INFO: ProcessCDR(1,14466748,1,1,2) [2025-02-13 13:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466748', 'tblTempUsageDetail_20' ) start [2025-02-13 13:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466748', 'tblTempUsageDetail_20' ) end [2025-02-13 13:34:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 13:34:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 13:34:28] Production.INFO: ==3551== Releasing lock... [2025-02-13 13:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 13:34:28] Production.INFO: 62.25 MB #Memory Used# [2025-02-13 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 10:35:05 [end_date_ymd] => 2025-02-13 13:35:05 [RateCDR] => 1 ) [2025-02-13 13: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-02-13 10:35:05' and `end` < '2025-02-13 13: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-02-13 13:35:25] Production.INFO: count ==4593 [2025-02-13 13:35:27] Production.ERROR: pbx CDR StartTime 2025-02-13 10:35:05 - End Time 2025-02-13 13:35:05 [2025-02-13 13:35:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 13:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466753', 'tblTempUsageDetail_20' ) start [2025-02-13 13:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466753', 'tblTempUsageDetail_20' ) end [2025-02-13 13:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466753', 'tblTempVendorCDR_20' ) start [2025-02-13 13:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466753', 'tblTempVendorCDR_20' ) end [2025-02-13 13:35:27] Production.INFO: ProcessCDR(1,14466753,1,1,2) [2025-02-13 13:35:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:35:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:35:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:35:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:35:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466753', 'tblTempUsageDetail_20' ) start [2025-02-13 13:35:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466753', 'tblTempUsageDetail_20' ) end [2025-02-13 13:35:32] Production.ERROR: pbx prc_insertCDR start [2025-02-13 13:35:32] Production.ERROR: pbx prc_insertCDR end [2025-02-13 13:35:32] Production.INFO: ==3623== Releasing lock... [2025-02-13 13:35:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 13:35:32] Production.INFO: 62.5 MB #Memory Used# [2025-02-13 13:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 10:36:06 [end_date_ymd] => 2025-02-13 13:36:06 [RateCDR] => 1 ) [2025-02-13 13: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-02-13 10:36:06' and `end` < '2025-02-13 13: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-02-13 13:36:23] Production.INFO: count ==4605 [2025-02-13 13:36:25] Production.ERROR: pbx CDR StartTime 2025-02-13 10:36:06 - End Time 2025-02-13 13:36:06 [2025-02-13 13:36:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 13:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466758', 'tblTempUsageDetail_20' ) start [2025-02-13 13:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466758', 'tblTempUsageDetail_20' ) end [2025-02-13 13:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466758', 'tblTempVendorCDR_20' ) start [2025-02-13 13:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466758', 'tblTempVendorCDR_20' ) end [2025-02-13 13:36:25] Production.INFO: ProcessCDR(1,14466758,1,1,2) [2025-02-13 13:36:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:36:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:36:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:36:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:36:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466758', 'tblTempUsageDetail_20' ) start [2025-02-13 13:36:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466758', 'tblTempUsageDetail_20' ) end [2025-02-13 13:36:30] Production.ERROR: pbx prc_insertCDR start [2025-02-13 13:36:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 13:36:30] Production.INFO: ==3696== Releasing lock... [2025-02-13 13:36:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 13:36:30] Production.INFO: 62.5 MB #Memory Used# [2025-02-13 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 10:37:05 [end_date_ymd] => 2025-02-13 13:37:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 10:37:05' and `end` < '2025-02-13 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-02-13 13:37:21] Production.INFO: count ==4600 [2025-02-13 13:37:22] Production.ERROR: pbx CDR StartTime 2025-02-13 10:37:05 - End Time 2025-02-13 13:37:05 [2025-02-13 13:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466763', 'tblTempUsageDetail_20' ) start [2025-02-13 13:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466763', 'tblTempUsageDetail_20' ) end [2025-02-13 13:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466763', 'tblTempVendorCDR_20' ) start [2025-02-13 13:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466763', 'tblTempVendorCDR_20' ) end [2025-02-13 13:37:23] Production.INFO: ProcessCDR(1,14466763,1,1,2) [2025-02-13 13:37:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466763', 'tblTempUsageDetail_20' ) start [2025-02-13 13:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466763', 'tblTempUsageDetail_20' ) end [2025-02-13 13:37:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 13:37:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 13:37:27] Production.INFO: ==3770== Releasing lock... [2025-02-13 13:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 13:37:27] Production.INFO: 62.5 MB #Memory Used# [2025-02-13 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 10:38:05 [end_date_ymd] => 2025-02-13 13:38:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 10:38:05' and `end` < '2025-02-13 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-02-13 13:38:21] Production.INFO: count ==4608 [2025-02-13 13:38:23] Production.ERROR: pbx CDR StartTime 2025-02-13 10:38:05 - End Time 2025-02-13 13:38:05 [2025-02-13 13:38:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 13:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466768', 'tblTempUsageDetail_20' ) start [2025-02-13 13:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466768', 'tblTempUsageDetail_20' ) end [2025-02-13 13:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466768', 'tblTempVendorCDR_20' ) start [2025-02-13 13:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466768', 'tblTempVendorCDR_20' ) end [2025-02-13 13:38:23] Production.INFO: ProcessCDR(1,14466768,1,1,2) [2025-02-13 13:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:38:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:38:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:38:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466768', 'tblTempUsageDetail_20' ) start [2025-02-13 13:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466768', 'tblTempUsageDetail_20' ) end [2025-02-13 13:38:29] Production.ERROR: pbx prc_insertCDR start [2025-02-13 13:38:29] Production.ERROR: pbx prc_insertCDR end [2025-02-13 13:38:29] Production.INFO: ==3847== Releasing lock... [2025-02-13 13:38:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 13:38:29] Production.INFO: 62.5 MB #Memory Used# [2025-02-13 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 10:39:05 [end_date_ymd] => 2025-02-13 13:39:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 10:39:05' and `end` < '2025-02-13 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-02-13 13:39:20] Production.INFO: count ==4612 [2025-02-13 13:39:21] Production.ERROR: pbx CDR StartTime 2025-02-13 10:39:05 - End Time 2025-02-13 13:39:05 [2025-02-13 13:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466773', 'tblTempUsageDetail_20' ) start [2025-02-13 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466773', 'tblTempUsageDetail_20' ) end [2025-02-13 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466773', 'tblTempVendorCDR_20' ) start [2025-02-13 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466773', 'tblTempVendorCDR_20' ) end [2025-02-13 13:39:22] Production.INFO: ProcessCDR(1,14466773,1,1,2) [2025-02-13 13:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466773', 'tblTempUsageDetail_20' ) start [2025-02-13 13:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466773', 'tblTempUsageDetail_20' ) end [2025-02-13 13:39:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 13:39:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 13:39:27] Production.INFO: ==3927== Releasing lock... [2025-02-13 13:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 13:39:27] Production.INFO: 62.5 MB #Memory Used# [2025-02-13 13:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 10:40:05 [end_date_ymd] => 2025-02-13 13:40:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 10:40:05' and `end` < '2025-02-13 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-02-13 13:40:31] Production.INFO: count ==4634 [2025-02-13 13:40:33] Production.ERROR: pbx CDR StartTime 2025-02-13 10:40:05 - End Time 2025-02-13 13:40:05 [2025-02-13 13:40:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 13:40:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466778', 'tblTempUsageDetail_20' ) start [2025-02-13 13:40:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466778', 'tblTempUsageDetail_20' ) end [2025-02-13 13:40:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466778', 'tblTempVendorCDR_20' ) start [2025-02-13 13:40:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466778', 'tblTempVendorCDR_20' ) end [2025-02-13 13:40:33] Production.INFO: ProcessCDR(1,14466778,1,1,2) [2025-02-13 13:40:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:40:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:40:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:40:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:40:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466778', 'tblTempUsageDetail_20' ) start [2025-02-13 13:40:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466778', 'tblTempUsageDetail_20' ) end [2025-02-13 13:40:38] Production.ERROR: pbx prc_insertCDR start [2025-02-13 13:40:38] Production.ERROR: pbx prc_insertCDR end [2025-02-13 13:40:38] Production.INFO: ==4008== Releasing lock... [2025-02-13 13:40:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 13:40:38] Production.INFO: 62.75 MB #Memory Used# [2025-02-13 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 10:41:05 [end_date_ymd] => 2025-02-13 13:41:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 10:41:05' and `end` < '2025-02-13 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-02-13 13:41:23] Production.INFO: count ==4609 [2025-02-13 13:41:25] Production.ERROR: pbx CDR StartTime 2025-02-13 10:41:05 - End Time 2025-02-13 13:41:05 [2025-02-13 13:41:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 13:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466784', 'tblTempUsageDetail_20' ) start [2025-02-13 13:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466784', 'tblTempUsageDetail_20' ) end [2025-02-13 13:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466784', 'tblTempVendorCDR_20' ) start [2025-02-13 13:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466784', 'tblTempVendorCDR_20' ) end [2025-02-13 13:41:25] Production.INFO: ProcessCDR(1,14466784,1,1,2) [2025-02-13 13:41:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:41:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:41:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:41:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466784', 'tblTempUsageDetail_20' ) start [2025-02-13 13:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466784', 'tblTempUsageDetail_20' ) end [2025-02-13 13:41:30] Production.ERROR: pbx prc_insertCDR start [2025-02-13 13:41:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 13:41:30] Production.INFO: ==4089== Releasing lock... [2025-02-13 13:41:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 13:41:30] Production.INFO: 62.5 MB #Memory Used# [2025-02-13 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 10:42:05 [end_date_ymd] => 2025-02-13 13:42:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 10:42:05' and `end` < '2025-02-13 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-02-13 13:42:25] Production.INFO: count ==4607 [2025-02-13 13:42:27] Production.ERROR: pbx CDR StartTime 2025-02-13 10:42:05 - End Time 2025-02-13 13:42:05 [2025-02-13 13:42:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 13:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466789', 'tblTempUsageDetail_20' ) start [2025-02-13 13:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466789', 'tblTempUsageDetail_20' ) end [2025-02-13 13:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466789', 'tblTempVendorCDR_20' ) start [2025-02-13 13:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466789', 'tblTempVendorCDR_20' ) end [2025-02-13 13:42:27] Production.INFO: ProcessCDR(1,14466789,1,1,2) [2025-02-13 13:42:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:42:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:42:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:42:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:42:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466789', 'tblTempUsageDetail_20' ) start [2025-02-13 13:42:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466789', 'tblTempUsageDetail_20' ) end [2025-02-13 13:42:32] Production.ERROR: pbx prc_insertCDR start [2025-02-13 13:42:32] Production.ERROR: pbx prc_insertCDR end [2025-02-13 13:42:32] Production.INFO: ==4167== Releasing lock... [2025-02-13 13:42:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 13:42:32] Production.INFO: 62.5 MB #Memory Used# [2025-02-13 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 10:43:05 [end_date_ymd] => 2025-02-13 13:43:05 [RateCDR] => 1 ) [2025-02-13 13: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-02-13 10:43:05' and `end` < '2025-02-13 13: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-02-13 13:43:20] Production.INFO: count ==4605 [2025-02-13 13:43:22] Production.ERROR: pbx CDR StartTime 2025-02-13 10:43:05 - End Time 2025-02-13 13:43:05 [2025-02-13 13:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466794', 'tblTempUsageDetail_20' ) start [2025-02-13 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466794', 'tblTempUsageDetail_20' ) end [2025-02-13 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466794', 'tblTempVendorCDR_20' ) start [2025-02-13 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466794', 'tblTempVendorCDR_20' ) end [2025-02-13 13:43:22] Production.INFO: ProcessCDR(1,14466794,1,1,2) [2025-02-13 13:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466794', 'tblTempUsageDetail_20' ) start [2025-02-13 13:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466794', 'tblTempUsageDetail_20' ) end [2025-02-13 13:43:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 13:43:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 13:43:27] Production.INFO: ==4245== Releasing lock... [2025-02-13 13:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 13:43:27] Production.INFO: 62.5 MB #Memory Used# [2025-02-13 13:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 10:44:06 [end_date_ymd] => 2025-02-13 13:44:06 [RateCDR] => 1 ) [2025-02-13 13: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-02-13 10:44:06' and `end` < '2025-02-13 13: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-02-13 13:44:20] Production.INFO: count ==4610 [2025-02-13 13:44:22] Production.ERROR: pbx CDR StartTime 2025-02-13 10:44:06 - End Time 2025-02-13 13:44:06 [2025-02-13 13:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 13:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466799', 'tblTempUsageDetail_20' ) start [2025-02-13 13:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466799', 'tblTempUsageDetail_20' ) end [2025-02-13 13:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466799', 'tblTempVendorCDR_20' ) start [2025-02-13 13:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466799', 'tblTempVendorCDR_20' ) end [2025-02-13 13:44:22] Production.INFO: ProcessCDR(1,14466799,1,1,2) [2025-02-13 13:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466799', 'tblTempUsageDetail_20' ) start [2025-02-13 13:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466799', 'tblTempUsageDetail_20' ) end [2025-02-13 13:44:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 13:44:28] Production.ERROR: pbx prc_insertCDR end [2025-02-13 13:44:28] Production.INFO: ==4322== Releasing lock... [2025-02-13 13:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 13:44:28] Production.INFO: 62.5 MB #Memory Used# [2025-02-13 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 10:45:05 [end_date_ymd] => 2025-02-13 13:45:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 10:45:05' and `end` < '2025-02-13 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-02-13 13:45:19] Production.INFO: count ==4603 [2025-02-13 13:45:21] Production.ERROR: pbx CDR StartTime 2025-02-13 10:45:05 - End Time 2025-02-13 13:45:05 [2025-02-13 13:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466804', 'tblTempUsageDetail_20' ) start [2025-02-13 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466804', 'tblTempUsageDetail_20' ) end [2025-02-13 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466804', 'tblTempVendorCDR_20' ) start [2025-02-13 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466804', 'tblTempVendorCDR_20' ) end [2025-02-13 13:45:21] Production.INFO: ProcessCDR(1,14466804,1,1,2) [2025-02-13 13:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466804', 'tblTempUsageDetail_20' ) start [2025-02-13 13:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466804', 'tblTempUsageDetail_20' ) end [2025-02-13 13:45:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 13:45:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 13:45:26] Production.INFO: ==4445== Releasing lock... [2025-02-13 13:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 13:45:26] Production.INFO: 62.5 MB #Memory Used# [2025-02-13 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 10:46:05 [end_date_ymd] => 2025-02-13 13:46:05 [RateCDR] => 1 ) [2025-02-13 13: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-02-13 10:46:05' and `end` < '2025-02-13 13: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-02-13 13:46:24] Production.INFO: count ==4622 [2025-02-13 13:46:26] Production.ERROR: pbx CDR StartTime 2025-02-13 10:46:05 - End Time 2025-02-13 13:46:05 [2025-02-13 13:46:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 13:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466809', 'tblTempUsageDetail_20' ) start [2025-02-13 13:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466809', 'tblTempUsageDetail_20' ) end [2025-02-13 13:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466809', 'tblTempVendorCDR_20' ) start [2025-02-13 13:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466809', 'tblTempVendorCDR_20' ) end [2025-02-13 13:46:26] Production.INFO: ProcessCDR(1,14466809,1,1,2) [2025-02-13 13:46:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:46:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:46:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:46:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:46:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466809', 'tblTempUsageDetail_20' ) start [2025-02-13 13:46:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466809', 'tblTempUsageDetail_20' ) end [2025-02-13 13:46:31] Production.ERROR: pbx prc_insertCDR start [2025-02-13 13:46:31] Production.ERROR: pbx prc_insertCDR end [2025-02-13 13:46:31] Production.INFO: ==4528== Releasing lock... [2025-02-13 13:46:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 13:46:31] Production.INFO: 62.5 MB #Memory Used# [2025-02-13 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 10:47:05 [end_date_ymd] => 2025-02-13 13:47:05 [RateCDR] => 1 ) [2025-02-13 13: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-02-13 10:47:05' and `end` < '2025-02-13 13: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-02-13 13:47:19] Production.INFO: count ==4622 [2025-02-13 13:47:21] Production.ERROR: pbx CDR StartTime 2025-02-13 10:47:05 - End Time 2025-02-13 13:47:05 [2025-02-13 13:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466814', 'tblTempUsageDetail_20' ) start [2025-02-13 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466814', 'tblTempUsageDetail_20' ) end [2025-02-13 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466814', 'tblTempVendorCDR_20' ) start [2025-02-13 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466814', 'tblTempVendorCDR_20' ) end [2025-02-13 13:47:21] Production.INFO: ProcessCDR(1,14466814,1,1,2) [2025-02-13 13:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466814', 'tblTempUsageDetail_20' ) start [2025-02-13 13:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466814', 'tblTempUsageDetail_20' ) end [2025-02-13 13:47:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 13:47:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 13:47:25] Production.INFO: ==4619== Releasing lock... [2025-02-13 13:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 13:47:25] Production.INFO: 62.5 MB #Memory Used# [2025-02-13 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 10:48:05 [end_date_ymd] => 2025-02-13 13:48:05 [RateCDR] => 1 ) [2025-02-13 13: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-02-13 10:48:05' and `end` < '2025-02-13 13: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-02-13 13:48:19] Production.INFO: count ==4642 [2025-02-13 13:48:21] Production.ERROR: pbx CDR StartTime 2025-02-13 10:48:05 - End Time 2025-02-13 13:48:05 [2025-02-13 13:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466819', 'tblTempUsageDetail_20' ) start [2025-02-13 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466819', 'tblTempUsageDetail_20' ) end [2025-02-13 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466819', 'tblTempVendorCDR_20' ) start [2025-02-13 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466819', 'tblTempVendorCDR_20' ) end [2025-02-13 13:48:22] Production.INFO: ProcessCDR(1,14466819,1,1,2) [2025-02-13 13:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466819', 'tblTempUsageDetail_20' ) start [2025-02-13 13:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466819', 'tblTempUsageDetail_20' ) end [2025-02-13 13:48:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 13:48:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 13:48:26] Production.INFO: ==4699== Releasing lock... [2025-02-13 13:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 13:48:26] Production.INFO: 62.75 MB #Memory Used# [2025-02-13 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 10:49:05 [end_date_ymd] => 2025-02-13 13:49:05 [RateCDR] => 1 ) [2025-02-13 13: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-02-13 10:49:05' and `end` < '2025-02-13 13: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-02-13 13:49:22] Production.INFO: count ==4637 [2025-02-13 13:49:24] Production.ERROR: pbx CDR StartTime 2025-02-13 10:49:05 - End Time 2025-02-13 13:49:05 [2025-02-13 13:49:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 13:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466824', 'tblTempUsageDetail_20' ) start [2025-02-13 13:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466824', 'tblTempUsageDetail_20' ) end [2025-02-13 13:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466824', 'tblTempVendorCDR_20' ) start [2025-02-13 13:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466824', 'tblTempVendorCDR_20' ) end [2025-02-13 13:49:24] Production.INFO: ProcessCDR(1,14466824,1,1,2) [2025-02-13 13:49:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:49:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:49:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:49:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466824', 'tblTempUsageDetail_20' ) start [2025-02-13 13:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466824', 'tblTempUsageDetail_20' ) end [2025-02-13 13:49:30] Production.ERROR: pbx prc_insertCDR start [2025-02-13 13:49:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 13:49:30] Production.INFO: ==4782== Releasing lock... [2025-02-13 13:49:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 13:49:30] Production.INFO: 62.75 MB #Memory Used# [2025-02-13 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 10:50:06 [end_date_ymd] => 2025-02-13 13:50:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 10:50:06' and `end` < '2025-02-13 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-02-13 13:50:27] Production.INFO: count ==4649 [2025-02-13 13:50:29] Production.ERROR: pbx CDR StartTime 2025-02-13 10:50:06 - End Time 2025-02-13 13:50:06 [2025-02-13 13:50:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 13:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466829', 'tblTempUsageDetail_20' ) start [2025-02-13 13:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466829', 'tblTempUsageDetail_20' ) end [2025-02-13 13:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466829', 'tblTempVendorCDR_20' ) start [2025-02-13 13:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466829', 'tblTempVendorCDR_20' ) end [2025-02-13 13:50:30] Production.INFO: ProcessCDR(1,14466829,1,1,2) [2025-02-13 13:50:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:50:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:50:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:50:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:50:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466829', 'tblTempUsageDetail_20' ) start [2025-02-13 13:50:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466829', 'tblTempUsageDetail_20' ) end [2025-02-13 13:50:35] Production.ERROR: pbx prc_insertCDR start [2025-02-13 13:50:35] Production.ERROR: pbx prc_insertCDR end [2025-02-13 13:50:35] Production.INFO: ==4869== Releasing lock... [2025-02-13 13:50:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 13:50:35] Production.INFO: 62.75 MB #Memory Used# [2025-02-13 13:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 10:51:06 [end_date_ymd] => 2025-02-13 13:51:06 [RateCDR] => 1 ) [2025-02-13 13: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-02-13 10:51:06' and `end` < '2025-02-13 13: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-02-13 13:51:22] Production.INFO: count ==4605 [2025-02-13 13:51:24] Production.ERROR: pbx CDR StartTime 2025-02-13 10:51:06 - End Time 2025-02-13 13:51:06 [2025-02-13 13:51:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 13:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466835', 'tblTempUsageDetail_20' ) start [2025-02-13 13:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466835', 'tblTempUsageDetail_20' ) end [2025-02-13 13:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466835', 'tblTempVendorCDR_20' ) start [2025-02-13 13:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466835', 'tblTempVendorCDR_20' ) end [2025-02-13 13:51:24] Production.INFO: ProcessCDR(1,14466835,1,1,2) [2025-02-13 13:51:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466835', 'tblTempUsageDetail_20' ) start [2025-02-13 13:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466835', 'tblTempUsageDetail_20' ) end [2025-02-13 13:51:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 13:51:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 13:51:27] Production.INFO: ==4953== Releasing lock... [2025-02-13 13:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 13:51:27] Production.INFO: 62.5 MB #Memory Used# [2025-02-13 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 10:52:05 [end_date_ymd] => 2025-02-13 13:52:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 10:52:05' and `end` < '2025-02-13 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-02-13 13:52:20] Production.INFO: count ==4581 [2025-02-13 13:52:22] Production.ERROR: pbx CDR StartTime 2025-02-13 10:52:05 - End Time 2025-02-13 13:52:05 [2025-02-13 13:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466840', 'tblTempUsageDetail_20' ) start [2025-02-13 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466840', 'tblTempUsageDetail_20' ) end [2025-02-13 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466840', 'tblTempVendorCDR_20' ) start [2025-02-13 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466840', 'tblTempVendorCDR_20' ) end [2025-02-13 13:52:22] Production.INFO: ProcessCDR(1,14466840,1,1,2) [2025-02-13 13:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466840', 'tblTempUsageDetail_20' ) start [2025-02-13 13:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466840', 'tblTempUsageDetail_20' ) end [2025-02-13 13:52:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 13:52:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 13:52:27] Production.INFO: ==5034== Releasing lock... [2025-02-13 13:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 13:52:27] Production.INFO: 62.25 MB #Memory Used# [2025-02-13 13:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 10:53:06 [end_date_ymd] => 2025-02-13 13:53:06 [RateCDR] => 1 ) [2025-02-13 13: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-02-13 10:53:06' and `end` < '2025-02-13 13: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-02-13 13:53:23] Production.INFO: count ==4586 [2025-02-13 13:53:25] Production.ERROR: pbx CDR StartTime 2025-02-13 10:53:06 - End Time 2025-02-13 13:53:06 [2025-02-13 13:53:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 13:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466845', 'tblTempUsageDetail_20' ) start [2025-02-13 13:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466845', 'tblTempUsageDetail_20' ) end [2025-02-13 13:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466845', 'tblTempVendorCDR_20' ) start [2025-02-13 13:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466845', 'tblTempVendorCDR_20' ) end [2025-02-13 13:53:26] Production.INFO: ProcessCDR(1,14466845,1,1,2) [2025-02-13 13:53:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:53:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:53:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:53:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466845', 'tblTempUsageDetail_20' ) start [2025-02-13 13:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466845', 'tblTempUsageDetail_20' ) end [2025-02-13 13:53:30] Production.ERROR: pbx prc_insertCDR start [2025-02-13 13:53:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 13:53:30] Production.INFO: ==5122== Releasing lock... [2025-02-13 13:53:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 13:53:30] Production.INFO: 62.25 MB #Memory Used# [2025-02-13 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 10:54:05 [end_date_ymd] => 2025-02-13 13:54:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 10:54:05' and `end` < '2025-02-13 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-02-13 13:54:19] Production.INFO: count ==4587 [2025-02-13 13:54:21] Production.ERROR: pbx CDR StartTime 2025-02-13 10:54:05 - End Time 2025-02-13 13:54:05 [2025-02-13 13:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466850', 'tblTempUsageDetail_20' ) start [2025-02-13 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466850', 'tblTempUsageDetail_20' ) end [2025-02-13 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466850', 'tblTempVendorCDR_20' ) start [2025-02-13 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466850', 'tblTempVendorCDR_20' ) end [2025-02-13 13:54:21] Production.INFO: ProcessCDR(1,14466850,1,1,2) [2025-02-13 13:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466850', 'tblTempUsageDetail_20' ) start [2025-02-13 13:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466850', 'tblTempUsageDetail_20' ) end [2025-02-13 13:54:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 13:54:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 13:54:26] Production.INFO: ==5208== Releasing lock... [2025-02-13 13:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 13:54:26] Production.INFO: 62.25 MB #Memory Used# [2025-02-13 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 10:55:05 [end_date_ymd] => 2025-02-13 13:55:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 10:55:05' and `end` < '2025-02-13 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-02-13 13:55:30] Production.INFO: count ==4577 [2025-02-13 13:55:32] Production.ERROR: pbx CDR StartTime 2025-02-13 10:55:05 - End Time 2025-02-13 13:55:05 [2025-02-13 13:55:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 13:55:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466855', 'tblTempUsageDetail_20' ) start [2025-02-13 13:55:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466855', 'tblTempUsageDetail_20' ) end [2025-02-13 13:55:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466855', 'tblTempVendorCDR_20' ) start [2025-02-13 13:55:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466855', 'tblTempVendorCDR_20' ) end [2025-02-13 13:55:32] Production.INFO: ProcessCDR(1,14466855,1,1,2) [2025-02-13 13:55:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:55:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:55:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:55:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:55:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466855', 'tblTempUsageDetail_20' ) start [2025-02-13 13:55:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466855', 'tblTempUsageDetail_20' ) end [2025-02-13 13:55:37] Production.ERROR: pbx prc_insertCDR start [2025-02-13 13:55:37] Production.ERROR: pbx prc_insertCDR end [2025-02-13 13:55:37] Production.INFO: ==5286== Releasing lock... [2025-02-13 13:55:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 13:55:37] Production.INFO: 62.25 MB #Memory Used# [2025-02-13 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 10:56:05 [end_date_ymd] => 2025-02-13 13:56:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 10:56:05' and `end` < '2025-02-13 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-02-13 13:56:21] Production.INFO: count ==4588 [2025-02-13 13:56:23] Production.ERROR: pbx CDR StartTime 2025-02-13 10:56:05 - End Time 2025-02-13 13:56:05 [2025-02-13 13:56:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 13:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466860', 'tblTempUsageDetail_20' ) start [2025-02-13 13:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466860', 'tblTempUsageDetail_20' ) end [2025-02-13 13:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466860', 'tblTempVendorCDR_20' ) start [2025-02-13 13:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466860', 'tblTempVendorCDR_20' ) end [2025-02-13 13:56:23] Production.INFO: ProcessCDR(1,14466860,1,1,2) [2025-02-13 13:56:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:56:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:56:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466860', 'tblTempUsageDetail_20' ) start [2025-02-13 13:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466860', 'tblTempUsageDetail_20' ) end [2025-02-13 13:56:28] Production.ERROR: pbx prc_insertCDR start [2025-02-13 13:56:28] Production.ERROR: pbx prc_insertCDR end [2025-02-13 13:56:28] Production.INFO: ==5368== Releasing lock... [2025-02-13 13:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 13:56:28] Production.INFO: 62.25 MB #Memory Used# [2025-02-13 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 10:57:05 [end_date_ymd] => 2025-02-13 13:57:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 10:57:05' and `end` < '2025-02-13 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-02-13 13:57:22] Production.INFO: count ==4604 [2025-02-13 13:57:23] Production.ERROR: pbx CDR StartTime 2025-02-13 10:57:05 - End Time 2025-02-13 13:57:05 [2025-02-13 13:57:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 13:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466865', 'tblTempUsageDetail_20' ) start [2025-02-13 13:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466865', 'tblTempUsageDetail_20' ) end [2025-02-13 13:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466865', 'tblTempVendorCDR_20' ) start [2025-02-13 13:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466865', 'tblTempVendorCDR_20' ) end [2025-02-13 13:57:24] Production.INFO: ProcessCDR(1,14466865,1,1,2) [2025-02-13 13:57:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:57:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:57:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:57:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466865', 'tblTempUsageDetail_20' ) start [2025-02-13 13:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466865', 'tblTempUsageDetail_20' ) end [2025-02-13 13:57:28] Production.ERROR: pbx prc_insertCDR start [2025-02-13 13:57:28] Production.ERROR: pbx prc_insertCDR end [2025-02-13 13:57:28] Production.INFO: ==5446== Releasing lock... [2025-02-13 13:57:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 13:57:28] Production.INFO: 62.5 MB #Memory Used# [2025-02-13 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 10:58:05 [end_date_ymd] => 2025-02-13 13:58:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 10:58:05' and `end` < '2025-02-13 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-02-13 13:58:23] Production.INFO: count ==4607 [2025-02-13 13:58:25] Production.ERROR: pbx CDR StartTime 2025-02-13 10:58:05 - End Time 2025-02-13 13:58:05 [2025-02-13 13:58:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 13:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466870', 'tblTempUsageDetail_20' ) start [2025-02-13 13:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466870', 'tblTempUsageDetail_20' ) end [2025-02-13 13:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466870', 'tblTempVendorCDR_20' ) start [2025-02-13 13:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466870', 'tblTempVendorCDR_20' ) end [2025-02-13 13:58:25] Production.INFO: ProcessCDR(1,14466870,1,1,2) [2025-02-13 13:58:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:58:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:58:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:58:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:58:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466870', 'tblTempUsageDetail_20' ) start [2025-02-13 13:58:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466870', 'tblTempUsageDetail_20' ) end [2025-02-13 13:58:30] Production.ERROR: pbx prc_insertCDR start [2025-02-13 13:58:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 13:58:30] Production.INFO: ==5530== Releasing lock... [2025-02-13 13:58:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 13:58:30] Production.INFO: 62.5 MB #Memory Used# [2025-02-13 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 10:59:05 [end_date_ymd] => 2025-02-13 13:59:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 10:59:05' and `end` < '2025-02-13 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-02-13 13:59:22] Production.INFO: count ==4610 [2025-02-13 13:59:24] Production.ERROR: pbx CDR StartTime 2025-02-13 10:59:05 - End Time 2025-02-13 13:59:05 [2025-02-13 13:59:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 13:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466875', 'tblTempUsageDetail_20' ) start [2025-02-13 13:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466875', 'tblTempUsageDetail_20' ) end [2025-02-13 13:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466875', 'tblTempVendorCDR_20' ) start [2025-02-13 13:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466875', 'tblTempVendorCDR_20' ) end [2025-02-13 13:59:24] Production.INFO: ProcessCDR(1,14466875,1,1,2) [2025-02-13 13:59:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 13:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 13:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466875', 'tblTempUsageDetail_20' ) start [2025-02-13 13:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466875', 'tblTempUsageDetail_20' ) end [2025-02-13 13:59:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 13:59:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 13:59:27] Production.INFO: ==5610== Releasing lock... [2025-02-13 13:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 13:59:27] Production.INFO: 62.5 MB #Memory Used# [2025-02-13 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 11:00:06 [end_date_ymd] => 2025-02-13 14:00:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 11:00:06' and `end` < '2025-02-13 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-02-13 14:00:20] Production.INFO: count ==4603 [2025-02-13 14:00:23] Production.ERROR: pbx CDR StartTime 2025-02-13 11:00:06 - End Time 2025-02-13 14:00:06 [2025-02-13 14:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466881', 'tblTempUsageDetail_20' ) start [2025-02-13 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466881', 'tblTempUsageDetail_20' ) end [2025-02-13 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466881', 'tblTempVendorCDR_20' ) start [2025-02-13 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466881', 'tblTempVendorCDR_20' ) end [2025-02-13 14:00:23] Production.INFO: ProcessCDR(1,14466881,1,1,2) [2025-02-13 14:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466881', 'tblTempUsageDetail_20' ) start [2025-02-13 14:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466881', 'tblTempUsageDetail_20' ) end [2025-02-13 14:00:28] Production.ERROR: pbx prc_insertCDR start [2025-02-13 14:00:28] Production.ERROR: pbx prc_insertCDR end [2025-02-13 14:00:28] Production.INFO: ==5738== Releasing lock... [2025-02-13 14:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 14:00:28] Production.INFO: 62.5 MB #Memory Used# [2025-02-13 14:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 11:01:06 [end_date_ymd] => 2025-02-13 14:01:06 [RateCDR] => 1 ) [2025-02-13 14: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-02-13 11:01:06' and `end` < '2025-02-13 14: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-02-13 14:01:22] Production.INFO: count ==4669 [2025-02-13 14:01:25] Production.ERROR: pbx CDR StartTime 2025-02-13 11:01:06 - End Time 2025-02-13 14:01:06 [2025-02-13 14:01:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 14:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466886', 'tblTempUsageDetail_20' ) start [2025-02-13 14:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466886', 'tblTempUsageDetail_20' ) end [2025-02-13 14:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466886', 'tblTempVendorCDR_20' ) start [2025-02-13 14:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466886', 'tblTempVendorCDR_20' ) end [2025-02-13 14:01:25] Production.INFO: ProcessCDR(1,14466886,1,1,2) [2025-02-13 14:01:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:01:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:01:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:01:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466886', 'tblTempUsageDetail_20' ) start [2025-02-13 14:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466886', 'tblTempUsageDetail_20' ) end [2025-02-13 14:01:30] Production.ERROR: pbx prc_insertCDR start [2025-02-13 14:01:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 14:01:30] Production.INFO: ==5850== Releasing lock... [2025-02-13 14:01:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 14:01:30] Production.INFO: 63 MB #Memory Used# [2025-02-13 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 11:02:05 [end_date_ymd] => 2025-02-13 14:02:05 [RateCDR] => 1 ) [2025-02-13 14: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-02-13 11:02:05' and `end` < '2025-02-13 14: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-02-13 14:02:20] Production.INFO: count ==4683 [2025-02-13 14:02:22] Production.ERROR: pbx CDR StartTime 2025-02-13 11:02:05 - End Time 2025-02-13 14:02:05 [2025-02-13 14:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466891', 'tblTempUsageDetail_20' ) start [2025-02-13 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466891', 'tblTempUsageDetail_20' ) end [2025-02-13 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466891', 'tblTempVendorCDR_20' ) start [2025-02-13 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466891', 'tblTempVendorCDR_20' ) end [2025-02-13 14:02:22] Production.INFO: ProcessCDR(1,14466891,1,1,2) [2025-02-13 14:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466891', 'tblTempUsageDetail_20' ) start [2025-02-13 14:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466891', 'tblTempUsageDetail_20' ) end [2025-02-13 14:02:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 14:02:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 14:02:27] Production.INFO: ==5936== Releasing lock... [2025-02-13 14:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 14:02:27] Production.INFO: 63 MB #Memory Used# [2025-02-13 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 11:03:05 [end_date_ymd] => 2025-02-13 14:03:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 11:03:05' and `end` < '2025-02-13 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-02-13 14:03:31] Production.INFO: count ==4667 [2025-02-13 14:03:33] Production.ERROR: pbx CDR StartTime 2025-02-13 11:03:05 - End Time 2025-02-13 14:03:05 [2025-02-13 14:03:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 14:03:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466896', 'tblTempUsageDetail_20' ) start [2025-02-13 14:03:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466896', 'tblTempUsageDetail_20' ) end [2025-02-13 14:03:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466896', 'tblTempVendorCDR_20' ) start [2025-02-13 14:03:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466896', 'tblTempVendorCDR_20' ) end [2025-02-13 14:03:33] Production.INFO: ProcessCDR(1,14466896,1,1,2) [2025-02-13 14:03:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:03:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:03:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:03:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:03:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466896', 'tblTempUsageDetail_20' ) start [2025-02-13 14:03:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466896', 'tblTempUsageDetail_20' ) end [2025-02-13 14:03:39] Production.ERROR: pbx prc_insertCDR start [2025-02-13 14:03:39] Production.ERROR: pbx prc_insertCDR end [2025-02-13 14:03:39] Production.INFO: ==6036== Releasing lock... [2025-02-13 14:03:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 14:03:39] Production.INFO: 63 MB #Memory Used# [2025-02-13 14:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 11:04:06 [end_date_ymd] => 2025-02-13 14:04:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 11:04:06' and `end` < '2025-02-13 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-02-13 14:04:24] Production.INFO: count ==4679 [2025-02-13 14:04:26] Production.ERROR: pbx CDR StartTime 2025-02-13 11:04:06 - End Time 2025-02-13 14:04:06 [2025-02-13 14:04:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 14:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466901', 'tblTempUsageDetail_20' ) start [2025-02-13 14:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466901', 'tblTempUsageDetail_20' ) end [2025-02-13 14:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466901', 'tblTempVendorCDR_20' ) start [2025-02-13 14:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466901', 'tblTempVendorCDR_20' ) end [2025-02-13 14:04:26] Production.INFO: ProcessCDR(1,14466901,1,1,2) [2025-02-13 14:04:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:04:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:04:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:04:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466901', 'tblTempUsageDetail_20' ) start [2025-02-13 14:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466901', 'tblTempUsageDetail_20' ) end [2025-02-13 14:04:30] Production.ERROR: pbx prc_insertCDR start [2025-02-13 14:04:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 14:04:30] Production.INFO: ==6122== Releasing lock... [2025-02-13 14:04:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 14:04:30] Production.INFO: 63 MB #Memory Used# [2025-02-13 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 11:05:05 [end_date_ymd] => 2025-02-13 14:05:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 11:05:05' and `end` < '2025-02-13 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-02-13 14:05:20] Production.INFO: count ==4689 [2025-02-13 14:05:23] Production.ERROR: pbx CDR StartTime 2025-02-13 11:05:05 - End Time 2025-02-13 14:05:05 [2025-02-13 14:05:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 14:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466906', 'tblTempUsageDetail_20' ) start [2025-02-13 14:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466906', 'tblTempUsageDetail_20' ) end [2025-02-13 14:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466906', 'tblTempVendorCDR_20' ) start [2025-02-13 14:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466906', 'tblTempVendorCDR_20' ) end [2025-02-13 14:05:23] Production.INFO: ProcessCDR(1,14466906,1,1,2) [2025-02-13 14:05:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:05:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466906', 'tblTempUsageDetail_20' ) start [2025-02-13 14:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466906', 'tblTempUsageDetail_20' ) end [2025-02-13 14:05:28] Production.ERROR: pbx prc_insertCDR start [2025-02-13 14:05:28] Production.ERROR: pbx prc_insertCDR end [2025-02-13 14:05:28] Production.INFO: ==6219== Releasing lock... [2025-02-13 14:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 14:05:28] Production.INFO: 63 MB #Memory Used# [2025-02-13 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 11:06:05 [end_date_ymd] => 2025-02-13 14:06:05 [RateCDR] => 1 ) [2025-02-13 14: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-02-13 11:06:05' and `end` < '2025-02-13 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-02-13 14:06:19] Production.INFO: count ==4688 [2025-02-13 14:06:21] Production.ERROR: pbx CDR StartTime 2025-02-13 11:06:05 - End Time 2025-02-13 14:06:05 [2025-02-13 14:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466910', 'tblTempUsageDetail_20' ) start [2025-02-13 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466910', 'tblTempUsageDetail_20' ) end [2025-02-13 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466910', 'tblTempVendorCDR_20' ) start [2025-02-13 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466910', 'tblTempVendorCDR_20' ) end [2025-02-13 14:06:21] Production.INFO: ProcessCDR(1,14466910,1,1,2) [2025-02-13 14:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466910', 'tblTempUsageDetail_20' ) start [2025-02-13 14:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466910', 'tblTempUsageDetail_20' ) end [2025-02-13 14:06:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 14:06:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 14:06:27] Production.INFO: ==6310== Releasing lock... [2025-02-13 14:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 14:06:27] Production.INFO: 63 MB #Memory Used# [2025-02-13 14:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 11:07:06 [end_date_ymd] => 2025-02-13 14:07:06 [RateCDR] => 1 ) [2025-02-13 14: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-02-13 11:07:06' and `end` < '2025-02-13 14: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-02-13 14:07:25] Production.INFO: count ==4709 [2025-02-13 14:07:27] Production.ERROR: pbx CDR StartTime 2025-02-13 11:07:06 - End Time 2025-02-13 14:07:06 [2025-02-13 14:07:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 14:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466916', 'tblTempUsageDetail_20' ) start [2025-02-13 14:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466916', 'tblTempUsageDetail_20' ) end [2025-02-13 14:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466916', 'tblTempVendorCDR_20' ) start [2025-02-13 14:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466916', 'tblTempVendorCDR_20' ) end [2025-02-13 14:07:28] Production.INFO: ProcessCDR(1,14466916,1,1,2) [2025-02-13 14:07:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:07:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:07:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:07:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:07:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466916', 'tblTempUsageDetail_20' ) start [2025-02-13 14:07:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466916', 'tblTempUsageDetail_20' ) end [2025-02-13 14:07:33] Production.ERROR: pbx prc_insertCDR start [2025-02-13 14:07:33] Production.ERROR: pbx prc_insertCDR end [2025-02-13 14:07:33] Production.INFO: ==6397== Releasing lock... [2025-02-13 14:07:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 14:07:33] Production.INFO: 63.25 MB #Memory Used# [2025-02-13 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 11:08:05 [end_date_ymd] => 2025-02-13 14:08:05 [RateCDR] => 1 ) [2025-02-13 14: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-02-13 11:08:05' and `end` < '2025-02-13 14: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-02-13 14:08:26] Production.INFO: count ==4731 [2025-02-13 14:08:28] Production.ERROR: pbx CDR StartTime 2025-02-13 11:08:05 - End Time 2025-02-13 14:08:05 [2025-02-13 14:08:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 14:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466921', 'tblTempUsageDetail_20' ) start [2025-02-13 14:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466921', 'tblTempUsageDetail_20' ) end [2025-02-13 14:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466921', 'tblTempVendorCDR_20' ) start [2025-02-13 14:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466921', 'tblTempVendorCDR_20' ) end [2025-02-13 14:08:28] Production.INFO: ProcessCDR(1,14466921,1,1,2) [2025-02-13 14:08:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:08:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:08:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:08:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:08:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466921', 'tblTempUsageDetail_20' ) start [2025-02-13 14:08:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466921', 'tblTempUsageDetail_20' ) end [2025-02-13 14:08:32] Production.ERROR: pbx prc_insertCDR start [2025-02-13 14:08:32] Production.ERROR: pbx prc_insertCDR end [2025-02-13 14:08:32] Production.INFO: ==6493== Releasing lock... [2025-02-13 14:08:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 14:08:32] Production.INFO: 63.5 MB #Memory Used# [2025-02-13 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 11:09:05 [end_date_ymd] => 2025-02-13 14:09:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 11:09:05' and `end` < '2025-02-13 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-02-13 14:09:20] Production.INFO: count ==4772 [2025-02-13 14:09:23] Production.ERROR: pbx CDR StartTime 2025-02-13 11:09:05 - End Time 2025-02-13 14:09:05 [2025-02-13 14:09:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 14:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466926', 'tblTempUsageDetail_20' ) start [2025-02-13 14:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466926', 'tblTempUsageDetail_20' ) end [2025-02-13 14:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466926', 'tblTempVendorCDR_20' ) start [2025-02-13 14:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466926', 'tblTempVendorCDR_20' ) end [2025-02-13 14:09:23] Production.INFO: ProcessCDR(1,14466926,1,1,2) [2025-02-13 14:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466926', 'tblTempUsageDetail_20' ) start [2025-02-13 14:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466926', 'tblTempUsageDetail_20' ) end [2025-02-13 14:09:28] Production.ERROR: pbx prc_insertCDR start [2025-02-13 14:09:28] Production.ERROR: pbx prc_insertCDR end [2025-02-13 14:09:28] Production.INFO: ==6580== Releasing lock... [2025-02-13 14:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 14:09:28] Production.INFO: 63.75 MB #Memory Used# [2025-02-13 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 11:10:06 [end_date_ymd] => 2025-02-13 14:10:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 11:10:06' and `end` < '2025-02-13 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-02-13 14:10:22] Production.INFO: count ==4773 [2025-02-13 14:10:24] Production.ERROR: pbx CDR StartTime 2025-02-13 11:10:06 - End Time 2025-02-13 14:10:06 [2025-02-13 14:10:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 14:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466932', 'tblTempUsageDetail_20' ) start [2025-02-13 14:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466932', 'tblTempUsageDetail_20' ) end [2025-02-13 14:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466932', 'tblTempVendorCDR_20' ) start [2025-02-13 14:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466932', 'tblTempVendorCDR_20' ) end [2025-02-13 14:10:24] Production.INFO: ProcessCDR(1,14466932,1,1,2) [2025-02-13 14:10:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:10:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:10:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:10:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466932', 'tblTempUsageDetail_20' ) start [2025-02-13 14:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466932', 'tblTempUsageDetail_20' ) end [2025-02-13 14:10:30] Production.ERROR: pbx prc_insertCDR start [2025-02-13 14:10:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 14:10:30] Production.INFO: ==6675== Releasing lock... [2025-02-13 14:10:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 14:10:30] Production.INFO: 63.75 MB #Memory Used# [2025-02-13 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 11:11:05 [end_date_ymd] => 2025-02-13 14:11:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 11:11:05' and `end` < '2025-02-13 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-02-13 14:11:22] Production.INFO: count ==4776 [2025-02-13 14:11:24] Production.ERROR: pbx CDR StartTime 2025-02-13 11:11:05 - End Time 2025-02-13 14:11:05 [2025-02-13 14:11:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 14:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466937', 'tblTempUsageDetail_20' ) start [2025-02-13 14:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466937', 'tblTempUsageDetail_20' ) end [2025-02-13 14:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466937', 'tblTempVendorCDR_20' ) start [2025-02-13 14:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466937', 'tblTempVendorCDR_20' ) end [2025-02-13 14:11:25] Production.INFO: ProcessCDR(1,14466937,1,1,2) [2025-02-13 14:11:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:11:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:11:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:11:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466937', 'tblTempUsageDetail_20' ) start [2025-02-13 14:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466937', 'tblTempUsageDetail_20' ) end [2025-02-13 14:11:30] Production.ERROR: pbx prc_insertCDR start [2025-02-13 14:11:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 14:11:30] Production.INFO: ==6754== Releasing lock... [2025-02-13 14:11:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 14:11:30] Production.INFO: 63.75 MB #Memory Used# [2025-02-13 14:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 11:12:06 [end_date_ymd] => 2025-02-13 14:12:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 11:12:06' and `end` < '2025-02-13 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-02-13 14:12:21] Production.INFO: count ==4763 [2025-02-13 14:12:23] Production.ERROR: pbx CDR StartTime 2025-02-13 11:12:06 - End Time 2025-02-13 14:12:06 [2025-02-13 14:12:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 14:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466942', 'tblTempUsageDetail_20' ) start [2025-02-13 14:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466942', 'tblTempUsageDetail_20' ) end [2025-02-13 14:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466942', 'tblTempVendorCDR_20' ) start [2025-02-13 14:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466942', 'tblTempVendorCDR_20' ) end [2025-02-13 14:12:24] Production.INFO: ProcessCDR(1,14466942,1,1,2) [2025-02-13 14:12:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:12:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:12:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466942', 'tblTempUsageDetail_20' ) start [2025-02-13 14:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466942', 'tblTempUsageDetail_20' ) end [2025-02-13 14:12:28] Production.ERROR: pbx prc_insertCDR start [2025-02-13 14:12:28] Production.ERROR: pbx prc_insertCDR end [2025-02-13 14:12:28] Production.INFO: ==6827== Releasing lock... [2025-02-13 14:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 14:12:28] Production.INFO: 63.75 MB #Memory Used# [2025-02-13 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 11:13:05 [end_date_ymd] => 2025-02-13 14:13:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 11:13:05' and `end` < '2025-02-13 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-02-13 14:13:19] Production.INFO: count ==4778 [2025-02-13 14:13:21] Production.ERROR: pbx CDR StartTime 2025-02-13 11:13:05 - End Time 2025-02-13 14:13:05 [2025-02-13 14:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466947', 'tblTempUsageDetail_20' ) start [2025-02-13 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466947', 'tblTempUsageDetail_20' ) end [2025-02-13 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466947', 'tblTempVendorCDR_20' ) start [2025-02-13 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466947', 'tblTempVendorCDR_20' ) end [2025-02-13 14:13:22] Production.INFO: ProcessCDR(1,14466947,1,1,2) [2025-02-13 14:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466947', 'tblTempUsageDetail_20' ) start [2025-02-13 14:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466947', 'tblTempUsageDetail_20' ) end [2025-02-13 14:13:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 14:13:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 14:13:27] Production.INFO: ==6900== Releasing lock... [2025-02-13 14:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 14:13:27] Production.INFO: 63.75 MB #Memory Used# [2025-02-13 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 11:14:05 [end_date_ymd] => 2025-02-13 14:14:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 11:14:05' and `end` < '2025-02-13 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-02-13 14:14:19] Production.INFO: count ==4784 [2025-02-13 14:14:21] Production.ERROR: pbx CDR StartTime 2025-02-13 11:14:05 - End Time 2025-02-13 14:14:05 [2025-02-13 14:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466952', 'tblTempUsageDetail_20' ) start [2025-02-13 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466952', 'tblTempUsageDetail_20' ) end [2025-02-13 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466952', 'tblTempVendorCDR_20' ) start [2025-02-13 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466952', 'tblTempVendorCDR_20' ) end [2025-02-13 14:14:21] Production.INFO: ProcessCDR(1,14466952,1,1,2) [2025-02-13 14:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466952', 'tblTempUsageDetail_20' ) start [2025-02-13 14:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466952', 'tblTempUsageDetail_20' ) end [2025-02-13 14:14:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 14:14:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 14:14:26] Production.INFO: ==6972== Releasing lock... [2025-02-13 14:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 14:14:26] Production.INFO: 63.75 MB #Memory Used# [2025-02-13 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 11:15:05 [end_date_ymd] => 2025-02-13 14:15:05 [RateCDR] => 1 ) [2025-02-13 14: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-02-13 11:15:05' and `end` < '2025-02-13 14: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-02-13 14:15:25] Production.INFO: count ==4795 [2025-02-13 14:15:27] Production.ERROR: pbx CDR StartTime 2025-02-13 11:15:05 - End Time 2025-02-13 14:15:05 [2025-02-13 14:15:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 14:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466957', 'tblTempUsageDetail_20' ) start [2025-02-13 14:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466957', 'tblTempUsageDetail_20' ) end [2025-02-13 14:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466957', 'tblTempVendorCDR_20' ) start [2025-02-13 14:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466957', 'tblTempVendorCDR_20' ) end [2025-02-13 14:15:27] Production.INFO: ProcessCDR(1,14466957,1,1,2) [2025-02-13 14:15:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:15:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:15:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:15:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:15:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466957', 'tblTempUsageDetail_20' ) start [2025-02-13 14:15:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466957', 'tblTempUsageDetail_20' ) end [2025-02-13 14:15:32] Production.ERROR: pbx prc_insertCDR start [2025-02-13 14:15:32] Production.ERROR: pbx prc_insertCDR end [2025-02-13 14:15:32] Production.INFO: ==7087== Releasing lock... [2025-02-13 14:15:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 14:15:32] Production.INFO: 64 MB #Memory Used# [2025-02-13 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 11:16:05 [end_date_ymd] => 2025-02-13 14:16:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 11:16:05' and `end` < '2025-02-13 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-02-13 14:16:22] Production.INFO: count ==4798 [2025-02-13 14:16:24] Production.ERROR: pbx CDR StartTime 2025-02-13 11:16:05 - End Time 2025-02-13 14:16:05 [2025-02-13 14:16:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 14:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466962', 'tblTempUsageDetail_20' ) start [2025-02-13 14:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466962', 'tblTempUsageDetail_20' ) end [2025-02-13 14:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466962', 'tblTempVendorCDR_20' ) start [2025-02-13 14:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466962', 'tblTempVendorCDR_20' ) end [2025-02-13 14:16:24] Production.INFO: ProcessCDR(1,14466962,1,1,2) [2025-02-13 14:16:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:16:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:16:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:16:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466962', 'tblTempUsageDetail_20' ) start [2025-02-13 14:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466962', 'tblTempUsageDetail_20' ) end [2025-02-13 14:16:29] Production.ERROR: pbx prc_insertCDR start [2025-02-13 14:16:29] Production.ERROR: pbx prc_insertCDR end [2025-02-13 14:16:29] Production.INFO: ==7158== Releasing lock... [2025-02-13 14:16:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 14:16:29] Production.INFO: 64 MB #Memory Used# [2025-02-13 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 11:17:05 [end_date_ymd] => 2025-02-13 14:17:05 [RateCDR] => 1 ) [2025-02-13 14: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-02-13 11:17:05' and `end` < '2025-02-13 14: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-02-13 14:17:23] Production.INFO: count ==4795 [2025-02-13 14:17:25] Production.ERROR: pbx CDR StartTime 2025-02-13 11:17:05 - End Time 2025-02-13 14:17:05 [2025-02-13 14:17:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 14:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466967', 'tblTempUsageDetail_20' ) start [2025-02-13 14:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466967', 'tblTempUsageDetail_20' ) end [2025-02-13 14:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466967', 'tblTempVendorCDR_20' ) start [2025-02-13 14:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466967', 'tblTempVendorCDR_20' ) end [2025-02-13 14:17:25] Production.INFO: ProcessCDR(1,14466967,1,1,2) [2025-02-13 14:17:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:17:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:17:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:17:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:17:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466967', 'tblTempUsageDetail_20' ) start [2025-02-13 14:17:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466967', 'tblTempUsageDetail_20' ) end [2025-02-13 14:17:30] Production.ERROR: pbx prc_insertCDR start [2025-02-13 14:17:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 14:17:30] Production.INFO: ==7231== Releasing lock... [2025-02-13 14:17:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 14:17:30] Production.INFO: 64 MB #Memory Used# [2025-02-13 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 11:18:05 [end_date_ymd] => 2025-02-13 14:18:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 11:18:05' and `end` < '2025-02-13 14: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-02-13 14:18:24] Production.INFO: count ==4806 [2025-02-13 14:18:26] Production.ERROR: pbx CDR StartTime 2025-02-13 11:18:05 - End Time 2025-02-13 14:18:05 [2025-02-13 14:18:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 14:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466972', 'tblTempUsageDetail_20' ) start [2025-02-13 14:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466972', 'tblTempUsageDetail_20' ) end [2025-02-13 14:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466972', 'tblTempVendorCDR_20' ) start [2025-02-13 14:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466972', 'tblTempVendorCDR_20' ) end [2025-02-13 14:18:26] Production.INFO: ProcessCDR(1,14466972,1,1,2) [2025-02-13 14:18:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:18:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:18:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:18:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466972', 'tblTempUsageDetail_20' ) start [2025-02-13 14:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466972', 'tblTempUsageDetail_20' ) end [2025-02-13 14:18:30] Production.ERROR: pbx prc_insertCDR start [2025-02-13 14:18:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 14:18:30] Production.INFO: ==7303== Releasing lock... [2025-02-13 14:18:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 14:18:30] Production.INFO: 64 MB #Memory Used# [2025-02-13 14:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 11:19:06 [end_date_ymd] => 2025-02-13 14:19:06 [RateCDR] => 1 ) [2025-02-13 14: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-02-13 11:19:06' and `end` < '2025-02-13 14: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-02-13 14:19:32] Production.INFO: count ==4779 [2025-02-13 14:19:34] Production.ERROR: pbx CDR StartTime 2025-02-13 11:19:06 - End Time 2025-02-13 14:19:06 [2025-02-13 14:19:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 14:19:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466977', 'tblTempUsageDetail_20' ) start [2025-02-13 14:19:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466977', 'tblTempUsageDetail_20' ) end [2025-02-13 14:19:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466977', 'tblTempVendorCDR_20' ) start [2025-02-13 14:19:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466977', 'tblTempVendorCDR_20' ) end [2025-02-13 14:19:34] Production.INFO: ProcessCDR(1,14466977,1,1,2) [2025-02-13 14:19:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:19:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:19:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:19:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:19:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466977', 'tblTempUsageDetail_20' ) start [2025-02-13 14:19:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466977', 'tblTempUsageDetail_20' ) end [2025-02-13 14:19:39] Production.ERROR: pbx prc_insertCDR start [2025-02-13 14:19:39] Production.ERROR: pbx prc_insertCDR end [2025-02-13 14:19:40] Production.INFO: ==7377== Releasing lock... [2025-02-13 14:19:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 14:19:40] Production.INFO: 63.75 MB #Memory Used# [2025-02-13 14:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 11:20:05 [end_date_ymd] => 2025-02-13 14:20:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 11:20:05' and `end` < '2025-02-13 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-02-13 14:20:26] Production.INFO: count ==4806 [2025-02-13 14:20:28] Production.ERROR: pbx CDR StartTime 2025-02-13 11:20:05 - End Time 2025-02-13 14:20:05 [2025-02-13 14:20:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 14:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466983', 'tblTempUsageDetail_20' ) start [2025-02-13 14:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466983', 'tblTempUsageDetail_20' ) end [2025-02-13 14:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466983', 'tblTempVendorCDR_20' ) start [2025-02-13 14:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466983', 'tblTempVendorCDR_20' ) end [2025-02-13 14:20:28] Production.INFO: ProcessCDR(1,14466983,1,1,2) [2025-02-13 14:20:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:20:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:20:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:20:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:20:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466983', 'tblTempUsageDetail_20' ) start [2025-02-13 14:20:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466983', 'tblTempUsageDetail_20' ) end [2025-02-13 14:20:33] Production.ERROR: pbx prc_insertCDR start [2025-02-13 14:20:33] Production.ERROR: pbx prc_insertCDR end [2025-02-13 14:20:33] Production.INFO: ==7451== Releasing lock... [2025-02-13 14:20:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 14:20:33] Production.INFO: 64 MB #Memory Used# [2025-02-13 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 11:21:05 [end_date_ymd] => 2025-02-13 14:21:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 11:21:05' and `end` < '2025-02-13 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-02-13 14:21:24] Production.INFO: count ==4802 [2025-02-13 14:21:26] Production.ERROR: pbx CDR StartTime 2025-02-13 11:21:05 - End Time 2025-02-13 14:21:05 [2025-02-13 14:21:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 14:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466988', 'tblTempUsageDetail_20' ) start [2025-02-13 14:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466988', 'tblTempUsageDetail_20' ) end [2025-02-13 14:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466988', 'tblTempVendorCDR_20' ) start [2025-02-13 14:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466988', 'tblTempVendorCDR_20' ) end [2025-02-13 14:21:26] Production.INFO: ProcessCDR(1,14466988,1,1,2) [2025-02-13 14:21:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:21:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:21:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:21:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:21:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466988', 'tblTempUsageDetail_20' ) start [2025-02-13 14:21:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466988', 'tblTempUsageDetail_20' ) end [2025-02-13 14:21:31] Production.ERROR: pbx prc_insertCDR start [2025-02-13 14:21:31] Production.ERROR: pbx prc_insertCDR end [2025-02-13 14:21:31] Production.INFO: ==7530== Releasing lock... [2025-02-13 14:21:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 14:21:31] Production.INFO: 64 MB #Memory Used# [2025-02-13 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 11:22:05 [end_date_ymd] => 2025-02-13 14:22:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 11:22:05' and `end` < '2025-02-13 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-02-13 14:22:26] Production.INFO: count ==4803 [2025-02-13 14:22:28] Production.ERROR: pbx CDR StartTime 2025-02-13 11:22:05 - End Time 2025-02-13 14:22:05 [2025-02-13 14:22:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 14:22:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466993', 'tblTempUsageDetail_20' ) start [2025-02-13 14:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466993', 'tblTempUsageDetail_20' ) end [2025-02-13 14:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466993', 'tblTempVendorCDR_20' ) start [2025-02-13 14:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466993', 'tblTempVendorCDR_20' ) end [2025-02-13 14:22:29] Production.INFO: ProcessCDR(1,14466993,1,1,2) [2025-02-13 14:22:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:22:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:22:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:22:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:22:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466993', 'tblTempUsageDetail_20' ) start [2025-02-13 14:22:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466993', 'tblTempUsageDetail_20' ) end [2025-02-13 14:22:33] Production.ERROR: pbx prc_insertCDR start [2025-02-13 14:22:33] Production.ERROR: pbx prc_insertCDR end [2025-02-13 14:22:34] Production.INFO: ==7602== Releasing lock... [2025-02-13 14:22:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 14:22:34] Production.INFO: 64 MB #Memory Used# [2025-02-13 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 11:23:05 [end_date_ymd] => 2025-02-13 14:23:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 11:23:05' and `end` < '2025-02-13 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-02-13 14:23:24] Production.INFO: count ==4817 [2025-02-13 14:23:26] Production.ERROR: pbx CDR StartTime 2025-02-13 11:23:05 - End Time 2025-02-13 14:23:05 [2025-02-13 14:23:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 14:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466998', 'tblTempUsageDetail_20' ) start [2025-02-13 14:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14466998', 'tblTempUsageDetail_20' ) end [2025-02-13 14:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466998', 'tblTempVendorCDR_20' ) start [2025-02-13 14:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14466998', 'tblTempVendorCDR_20' ) end [2025-02-13 14:23:27] Production.INFO: ProcessCDR(1,14466998,1,1,2) [2025-02-13 14:23:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14466998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:23:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14466998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:23:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14466998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:23:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14466998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:23:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466998', 'tblTempUsageDetail_20' ) start [2025-02-13 14:23:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14466998', 'tblTempUsageDetail_20' ) end [2025-02-13 14:23:32] Production.ERROR: pbx prc_insertCDR start [2025-02-13 14:23:32] Production.ERROR: pbx prc_insertCDR end [2025-02-13 14:23:32] Production.INFO: ==7672== Releasing lock... [2025-02-13 14:23:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 14:23:32] Production.INFO: 64 MB #Memory Used# [2025-02-13 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 11:24:05 [end_date_ymd] => 2025-02-13 14:24:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 11:24:05' and `end` < '2025-02-13 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-02-13 14:24:25] Production.INFO: count ==4825 [2025-02-13 14:24:27] Production.ERROR: pbx CDR StartTime 2025-02-13 11:24:05 - End Time 2025-02-13 14:24:05 [2025-02-13 14:24:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 14:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467003', 'tblTempUsageDetail_20' ) start [2025-02-13 14:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467003', 'tblTempUsageDetail_20' ) end [2025-02-13 14:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467003', 'tblTempVendorCDR_20' ) start [2025-02-13 14:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467003', 'tblTempVendorCDR_20' ) end [2025-02-13 14:24:27] Production.INFO: ProcessCDR(1,14467003,1,1,2) [2025-02-13 14:24:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:24:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:24:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:24:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:24:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467003', 'tblTempUsageDetail_20' ) start [2025-02-13 14:24:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467003', 'tblTempUsageDetail_20' ) end [2025-02-13 14:24:32] Production.ERROR: pbx prc_insertCDR start [2025-02-13 14:24:32] Production.ERROR: pbx prc_insertCDR end [2025-02-13 14:24:32] Production.INFO: ==7752== Releasing lock... [2025-02-13 14:24:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 14:24:32] Production.INFO: 64.25 MB #Memory Used# [2025-02-13 14:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 11:25:06 [end_date_ymd] => 2025-02-13 14:25:06 [RateCDR] => 1 ) [2025-02-13 14: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-02-13 11:25:06' and `end` < '2025-02-13 14: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-02-13 14:25:23] Production.INFO: count ==4828 [2025-02-13 14:25:25] Production.ERROR: pbx CDR StartTime 2025-02-13 11:25:06 - End Time 2025-02-13 14:25:06 [2025-02-13 14:25:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 14:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467008', 'tblTempUsageDetail_20' ) start [2025-02-13 14:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467008', 'tblTempUsageDetail_20' ) end [2025-02-13 14:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467008', 'tblTempVendorCDR_20' ) start [2025-02-13 14:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467008', 'tblTempVendorCDR_20' ) end [2025-02-13 14:25:25] Production.INFO: ProcessCDR(1,14467008,1,1,2) [2025-02-13 14:25:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467008', 'tblTempUsageDetail_20' ) start [2025-02-13 14:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467008', 'tblTempUsageDetail_20' ) end [2025-02-13 14:25:30] Production.ERROR: pbx prc_insertCDR start [2025-02-13 14:25:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 14:25:30] Production.INFO: ==7821== Releasing lock... [2025-02-13 14:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 14:25:30] Production.INFO: 64.25 MB #Memory Used# [2025-02-13 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 11:26:05 [end_date_ymd] => 2025-02-13 14:26:05 [RateCDR] => 1 ) [2025-02-13 14: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-02-13 11:26:05' and `end` < '2025-02-13 14: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-02-13 14:26:22] Production.INFO: count ==4834 [2025-02-13 14:26:24] Production.ERROR: pbx CDR StartTime 2025-02-13 11:26:05 - End Time 2025-02-13 14:26:05 [2025-02-13 14:26:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 14:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467013', 'tblTempUsageDetail_20' ) start [2025-02-13 14:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467013', 'tblTempUsageDetail_20' ) end [2025-02-13 14:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467013', 'tblTempVendorCDR_20' ) start [2025-02-13 14:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467013', 'tblTempVendorCDR_20' ) end [2025-02-13 14:26:24] Production.INFO: ProcessCDR(1,14467013,1,1,2) [2025-02-13 14:26:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:26:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:26:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:26:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:26:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467013', 'tblTempUsageDetail_20' ) start [2025-02-13 14:26:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467013', 'tblTempUsageDetail_20' ) end [2025-02-13 14:26:29] Production.ERROR: pbx prc_insertCDR start [2025-02-13 14:26:29] Production.ERROR: pbx prc_insertCDR end [2025-02-13 14:26:29] Production.INFO: ==7893== Releasing lock... [2025-02-13 14:26:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 14:26:29] Production.INFO: 64.25 MB #Memory Used# [2025-02-13 14:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 11:27:06 [end_date_ymd] => 2025-02-13 14:27:06 [RateCDR] => 1 ) [2025-02-13 14: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-02-13 11:27:06' and `end` < '2025-02-13 14: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-02-13 14:27:22] Production.INFO: count ==4842 [2025-02-13 14:27:24] Production.ERROR: pbx CDR StartTime 2025-02-13 11:27:06 - End Time 2025-02-13 14:27:06 [2025-02-13 14:27:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 14:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467018', 'tblTempUsageDetail_20' ) start [2025-02-13 14:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467018', 'tblTempUsageDetail_20' ) end [2025-02-13 14:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467018', 'tblTempVendorCDR_20' ) start [2025-02-13 14:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467018', 'tblTempVendorCDR_20' ) end [2025-02-13 14:27:24] Production.INFO: ProcessCDR(1,14467018,1,1,2) [2025-02-13 14:27:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:27:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:27:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:27:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467018', 'tblTempUsageDetail_20' ) start [2025-02-13 14:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467018', 'tblTempUsageDetail_20' ) end [2025-02-13 14:27:29] Production.ERROR: pbx prc_insertCDR start [2025-02-13 14:27:29] Production.ERROR: pbx prc_insertCDR end [2025-02-13 14:27:29] Production.INFO: ==7967== Releasing lock... [2025-02-13 14:27:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 14:27:29] Production.INFO: 64.25 MB #Memory Used# [2025-02-13 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 11:28:05 [end_date_ymd] => 2025-02-13 14:28:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 11:28:05' and `end` < '2025-02-13 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-02-13 14:28:30] Production.INFO: count ==4838 [2025-02-13 14:28:32] Production.ERROR: pbx CDR StartTime 2025-02-13 11:28:05 - End Time 2025-02-13 14:28:05 [2025-02-13 14:28:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 14:28:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467023', 'tblTempUsageDetail_20' ) start [2025-02-13 14:28:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467023', 'tblTempUsageDetail_20' ) end [2025-02-13 14:28:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467023', 'tblTempVendorCDR_20' ) start [2025-02-13 14:28:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467023', 'tblTempVendorCDR_20' ) end [2025-02-13 14:28:32] Production.INFO: ProcessCDR(1,14467023,1,1,2) [2025-02-13 14:28:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:28:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:28:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:28:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:28:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467023', 'tblTempUsageDetail_20' ) start [2025-02-13 14:28:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467023', 'tblTempUsageDetail_20' ) end [2025-02-13 14:28:37] Production.ERROR: pbx prc_insertCDR start [2025-02-13 14:28:37] Production.ERROR: pbx prc_insertCDR end [2025-02-13 14:28:37] Production.INFO: ==8040== Releasing lock... [2025-02-13 14:28:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 14:28:37] Production.INFO: 64.25 MB #Memory Used# [2025-02-13 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 11:29:05 [end_date_ymd] => 2025-02-13 14:29:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 11:29:05' and `end` < '2025-02-13 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-02-13 14:29:23] Production.INFO: count ==4845 [2025-02-13 14:29:25] Production.ERROR: pbx CDR StartTime 2025-02-13 11:29:05 - End Time 2025-02-13 14:29:05 [2025-02-13 14:29:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 14:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467028', 'tblTempUsageDetail_20' ) start [2025-02-13 14:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467028', 'tblTempUsageDetail_20' ) end [2025-02-13 14:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467028', 'tblTempVendorCDR_20' ) start [2025-02-13 14:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467028', 'tblTempVendorCDR_20' ) end [2025-02-13 14:29:25] Production.INFO: ProcessCDR(1,14467028,1,1,2) [2025-02-13 14:29:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:29:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:29:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:29:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:29:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467028', 'tblTempUsageDetail_20' ) start [2025-02-13 14:29:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467028', 'tblTempUsageDetail_20' ) end [2025-02-13 14:29:30] Production.ERROR: pbx prc_insertCDR start [2025-02-13 14:29:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 14:29:30] Production.INFO: ==8110== Releasing lock... [2025-02-13 14:29:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 14:29:30] Production.INFO: 64.25 MB #Memory Used# [2025-02-13 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 11:30:06 [end_date_ymd] => 2025-02-13 14:30:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 11:30:06' and `end` < '2025-02-13 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-02-13 14:30:21] Production.INFO: count ==4833 [2025-02-13 14:30:24] Production.ERROR: pbx CDR StartTime 2025-02-13 11:30:06 - End Time 2025-02-13 14:30:06 [2025-02-13 14:30:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 14:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467034', 'tblTempUsageDetail_20' ) start [2025-02-13 14:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467034', 'tblTempUsageDetail_20' ) end [2025-02-13 14:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467034', 'tblTempVendorCDR_20' ) start [2025-02-13 14:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467034', 'tblTempVendorCDR_20' ) end [2025-02-13 14:30:24] Production.INFO: ProcessCDR(1,14467034,1,1,2) [2025-02-13 14:30:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:30:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:30:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:30:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467034', 'tblTempUsageDetail_20' ) start [2025-02-13 14:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467034', 'tblTempUsageDetail_20' ) end [2025-02-13 14:30:29] Production.ERROR: pbx prc_insertCDR start [2025-02-13 14:30:29] Production.ERROR: pbx prc_insertCDR end [2025-02-13 14:30:29] Production.INFO: ==8187== Releasing lock... [2025-02-13 14:30:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 14:30:29] Production.INFO: 64.25 MB #Memory Used# [2025-02-13 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 11:31:05 [end_date_ymd] => 2025-02-13 14:31:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 11:31:05' and `end` < '2025-02-13 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-02-13 14:31:20] Production.INFO: count ==4810 [2025-02-13 14:31:22] Production.ERROR: pbx CDR StartTime 2025-02-13 11:31:05 - End Time 2025-02-13 14:31:05 [2025-02-13 14:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467039', 'tblTempUsageDetail_20' ) start [2025-02-13 14:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467039', 'tblTempUsageDetail_20' ) end [2025-02-13 14:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467039', 'tblTempVendorCDR_20' ) start [2025-02-13 14:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467039', 'tblTempVendorCDR_20' ) end [2025-02-13 14:31:23] Production.INFO: ProcessCDR(1,14467039,1,1,2) [2025-02-13 14:31:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:31:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467039', 'tblTempUsageDetail_20' ) start [2025-02-13 14:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467039', 'tblTempUsageDetail_20' ) end [2025-02-13 14:31:28] Production.ERROR: pbx prc_insertCDR start [2025-02-13 14:31:28] Production.ERROR: pbx prc_insertCDR end [2025-02-13 14:31:28] Production.INFO: ==8301== Releasing lock... [2025-02-13 14:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 14:31:28] Production.INFO: 64 MB #Memory Used# [2025-02-13 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 11:32:05 [end_date_ymd] => 2025-02-13 14:32:05 [RateCDR] => 1 ) [2025-02-13 14: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-02-13 11:32:05' and `end` < '2025-02-13 14: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-02-13 14:32:33] Production.INFO: count ==4807 [2025-02-13 14:32:35] Production.ERROR: pbx CDR StartTime 2025-02-13 11:32:05 - End Time 2025-02-13 14:32:05 [2025-02-13 14:32:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 14:32:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467044', 'tblTempUsageDetail_20' ) start [2025-02-13 14:32:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467044', 'tblTempUsageDetail_20' ) end [2025-02-13 14:32:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467044', 'tblTempVendorCDR_20' ) start [2025-02-13 14:32:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467044', 'tblTempVendorCDR_20' ) end [2025-02-13 14:32:35] Production.INFO: ProcessCDR(1,14467044,1,1,2) [2025-02-13 14:32:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:32:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:32:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:32:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:32:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467044', 'tblTempUsageDetail_20' ) start [2025-02-13 14:32:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467044', 'tblTempUsageDetail_20' ) end [2025-02-13 14:32:39] Production.ERROR: pbx prc_insertCDR start [2025-02-13 14:32:39] Production.ERROR: pbx prc_insertCDR end [2025-02-13 14:32:39] Production.INFO: ==8380== Releasing lock... [2025-02-13 14:32:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 14:32:39] Production.INFO: 64 MB #Memory Used# [2025-02-13 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 11:33:05 [end_date_ymd] => 2025-02-13 14:33:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 11:33:05' and `end` < '2025-02-13 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-02-13 14:33:26] Production.INFO: count ==4797 [2025-02-13 14:33:28] Production.ERROR: pbx CDR StartTime 2025-02-13 11:33:05 - End Time 2025-02-13 14:33:05 [2025-02-13 14:33:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 14:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467049', 'tblTempUsageDetail_20' ) start [2025-02-13 14:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467049', 'tblTempUsageDetail_20' ) end [2025-02-13 14:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467049', 'tblTempVendorCDR_20' ) start [2025-02-13 14:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467049', 'tblTempVendorCDR_20' ) end [2025-02-13 14:33:28] Production.INFO: ProcessCDR(1,14467049,1,1,2) [2025-02-13 14:33:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:33:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:33:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:33:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:33:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467049', 'tblTempUsageDetail_20' ) start [2025-02-13 14:33:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467049', 'tblTempUsageDetail_20' ) end [2025-02-13 14:33:33] Production.ERROR: pbx prc_insertCDR start [2025-02-13 14:33:33] Production.ERROR: pbx prc_insertCDR end [2025-02-13 14:33:33] Production.INFO: ==8469== Releasing lock... [2025-02-13 14:33:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 14:33:33] Production.INFO: 64 MB #Memory Used# [2025-02-13 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 11:34:05 [end_date_ymd] => 2025-02-13 14:34:05 [RateCDR] => 1 ) [2025-02-13 14: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-02-13 11:34:05' and `end` < '2025-02-13 14: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-02-13 14:34:24] Production.INFO: count ==4801 [2025-02-13 14:34:26] Production.ERROR: pbx CDR StartTime 2025-02-13 11:34:05 - End Time 2025-02-13 14:34:05 [2025-02-13 14:34:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 14:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467054', 'tblTempUsageDetail_20' ) start [2025-02-13 14:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467054', 'tblTempUsageDetail_20' ) end [2025-02-13 14:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467054', 'tblTempVendorCDR_20' ) start [2025-02-13 14:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467054', 'tblTempVendorCDR_20' ) end [2025-02-13 14:34:26] Production.INFO: ProcessCDR(1,14467054,1,1,2) [2025-02-13 14:34:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:34:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:34:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:34:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:34:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467054', 'tblTempUsageDetail_20' ) start [2025-02-13 14:34:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467054', 'tblTempUsageDetail_20' ) end [2025-02-13 14:34:31] Production.ERROR: pbx prc_insertCDR start [2025-02-13 14:34:31] Production.ERROR: pbx prc_insertCDR end [2025-02-13 14:34:31] Production.INFO: ==8556== Releasing lock... [2025-02-13 14:34:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 14:34:31] Production.INFO: 64 MB #Memory Used# [2025-02-13 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 11:35:05 [end_date_ymd] => 2025-02-13 14:35:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 11:35:05' and `end` < '2025-02-13 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-02-13 14:35:31] Production.INFO: count ==4816 [2025-02-13 14:35:33] Production.ERROR: pbx CDR StartTime 2025-02-13 11:35:05 - End Time 2025-02-13 14:35:05 [2025-02-13 14:35:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 14:35:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467059', 'tblTempUsageDetail_20' ) start [2025-02-13 14:35:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467059', 'tblTempUsageDetail_20' ) end [2025-02-13 14:35:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467059', 'tblTempVendorCDR_20' ) start [2025-02-13 14:35:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467059', 'tblTempVendorCDR_20' ) end [2025-02-13 14:35:33] Production.INFO: ProcessCDR(1,14467059,1,1,2) [2025-02-13 14:35:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:35:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:35:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:35:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:35:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467059', 'tblTempUsageDetail_20' ) start [2025-02-13 14:35:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467059', 'tblTempUsageDetail_20' ) end [2025-02-13 14:35:38] Production.ERROR: pbx prc_insertCDR start [2025-02-13 14:35:38] Production.ERROR: pbx prc_insertCDR end [2025-02-13 14:35:38] Production.INFO: ==8659== Releasing lock... [2025-02-13 14:35:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 14:35:38] Production.INFO: 64 MB #Memory Used# [2025-02-13 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 11:36:05 [end_date_ymd] => 2025-02-13 14:36:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 11:36:05' and `end` < '2025-02-13 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-02-13 14:36:21] Production.INFO: count ==4791 [2025-02-13 14:36:23] Production.ERROR: pbx CDR StartTime 2025-02-13 11:36:05 - End Time 2025-02-13 14:36:05 [2025-02-13 14:36:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 14:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467064', 'tblTempUsageDetail_20' ) start [2025-02-13 14:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467064', 'tblTempUsageDetail_20' ) end [2025-02-13 14:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467064', 'tblTempVendorCDR_20' ) start [2025-02-13 14:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467064', 'tblTempVendorCDR_20' ) end [2025-02-13 14:36:23] Production.INFO: ProcessCDR(1,14467064,1,1,2) [2025-02-13 14:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:36:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:36:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:36:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467064', 'tblTempUsageDetail_20' ) start [2025-02-13 14:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467064', 'tblTempUsageDetail_20' ) end [2025-02-13 14:36:28] Production.ERROR: pbx prc_insertCDR start [2025-02-13 14:36:28] Production.ERROR: pbx prc_insertCDR end [2025-02-13 14:36:28] Production.INFO: ==8736== Releasing lock... [2025-02-13 14:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 14:36:28] Production.INFO: 64 MB #Memory Used# [2025-02-13 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 11:37:05 [end_date_ymd] => 2025-02-13 14:37:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 11:37:05' and `end` < '2025-02-13 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-02-13 14:37:23] Production.INFO: count ==4789 [2025-02-13 14:37:25] Production.ERROR: pbx CDR StartTime 2025-02-13 11:37:05 - End Time 2025-02-13 14:37:05 [2025-02-13 14:37:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 14:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467069', 'tblTempUsageDetail_20' ) start [2025-02-13 14:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467069', 'tblTempUsageDetail_20' ) end [2025-02-13 14:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467069', 'tblTempVendorCDR_20' ) start [2025-02-13 14:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467069', 'tblTempVendorCDR_20' ) end [2025-02-13 14:37:26] Production.INFO: ProcessCDR(1,14467069,1,1,2) [2025-02-13 14:37:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:37:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:37:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:37:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:37:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467069', 'tblTempUsageDetail_20' ) start [2025-02-13 14:37:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467069', 'tblTempUsageDetail_20' ) end [2025-02-13 14:37:31] Production.ERROR: pbx prc_insertCDR start [2025-02-13 14:37:31] Production.ERROR: pbx prc_insertCDR end [2025-02-13 14:37:31] Production.INFO: ==8830== Releasing lock... [2025-02-13 14:37:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 14:37:31] Production.INFO: 63.75 MB #Memory Used# [2025-02-13 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 11:38:05 [end_date_ymd] => 2025-02-13 14:38:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 11:38:05' and `end` < '2025-02-13 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-02-13 14:38:26] Production.INFO: count ==4770 [2025-02-13 14:38:28] Production.ERROR: pbx CDR StartTime 2025-02-13 11:38:05 - End Time 2025-02-13 14:38:05 [2025-02-13 14:38:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 14:38:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467074', 'tblTempUsageDetail_20' ) start [2025-02-13 14:38:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467074', 'tblTempUsageDetail_20' ) end [2025-02-13 14:38:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467074', 'tblTempVendorCDR_20' ) start [2025-02-13 14:38:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467074', 'tblTempVendorCDR_20' ) end [2025-02-13 14:38:28] Production.INFO: ProcessCDR(1,14467074,1,1,2) [2025-02-13 14:38:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:38:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:38:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:38:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:38:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467074', 'tblTempUsageDetail_20' ) start [2025-02-13 14:38:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467074', 'tblTempUsageDetail_20' ) end [2025-02-13 14:38:33] Production.ERROR: pbx prc_insertCDR start [2025-02-13 14:38:33] Production.ERROR: pbx prc_insertCDR end [2025-02-13 14:38:33] Production.INFO: ==8919== Releasing lock... [2025-02-13 14:38:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 14:38:33] Production.INFO: 63.75 MB #Memory Used# [2025-02-13 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 11:39:05 [end_date_ymd] => 2025-02-13 14:39:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 11:39:05' and `end` < '2025-02-13 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-02-13 14:39:23] Production.INFO: count ==4773 [2025-02-13 14:39:25] Production.ERROR: pbx CDR StartTime 2025-02-13 11:39:05 - End Time 2025-02-13 14:39:05 [2025-02-13 14:39:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 14:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467079', 'tblTempUsageDetail_20' ) start [2025-02-13 14:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467079', 'tblTempUsageDetail_20' ) end [2025-02-13 14:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467079', 'tblTempVendorCDR_20' ) start [2025-02-13 14:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467079', 'tblTempVendorCDR_20' ) end [2025-02-13 14:39:25] Production.INFO: ProcessCDR(1,14467079,1,1,2) [2025-02-13 14:39:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:39:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:39:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:39:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467079', 'tblTempUsageDetail_20' ) start [2025-02-13 14:39:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467079', 'tblTempUsageDetail_20' ) end [2025-02-13 14:39:30] Production.ERROR: pbx prc_insertCDR start [2025-02-13 14:39:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 14:39:30] Production.INFO: ==9010== Releasing lock... [2025-02-13 14:39:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 14:39:30] Production.INFO: 63.75 MB #Memory Used# [2025-02-13 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 11:40:06 [end_date_ymd] => 2025-02-13 14:40:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 11:40:06' and `end` < '2025-02-13 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-02-13 14:40:20] Production.INFO: count ==4773 [2025-02-13 14:40:22] Production.ERROR: pbx CDR StartTime 2025-02-13 11:40:06 - End Time 2025-02-13 14:40:06 [2025-02-13 14:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467084', 'tblTempUsageDetail_20' ) start [2025-02-13 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467084', 'tblTempUsageDetail_20' ) end [2025-02-13 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467084', 'tblTempVendorCDR_20' ) start [2025-02-13 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467084', 'tblTempVendorCDR_20' ) end [2025-02-13 14:40:22] Production.INFO: ProcessCDR(1,14467084,1,1,2) [2025-02-13 14:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467084', 'tblTempUsageDetail_20' ) start [2025-02-13 14:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467084', 'tblTempUsageDetail_20' ) end [2025-02-13 14:40:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 14:40:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 14:40:27] Production.INFO: ==9099== Releasing lock... [2025-02-13 14:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 14:40:27] Production.INFO: 63.75 MB #Memory Used# [2025-02-13 14:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 11:41:06 [end_date_ymd] => 2025-02-13 14:41:06 [RateCDR] => 1 ) [2025-02-13 14: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-02-13 11:41:06' and `end` < '2025-02-13 14: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-02-13 14:41:20] Production.INFO: count ==4755 [2025-02-13 14:41:22] Production.ERROR: pbx CDR StartTime 2025-02-13 11:41:06 - End Time 2025-02-13 14:41:06 [2025-02-13 14:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467090', 'tblTempUsageDetail_20' ) start [2025-02-13 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467090', 'tblTempUsageDetail_20' ) end [2025-02-13 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467090', 'tblTempVendorCDR_20' ) start [2025-02-13 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467090', 'tblTempVendorCDR_20' ) end [2025-02-13 14:41:22] Production.INFO: ProcessCDR(1,14467090,1,1,2) [2025-02-13 14:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467090', 'tblTempUsageDetail_20' ) start [2025-02-13 14:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467090', 'tblTempUsageDetail_20' ) end [2025-02-13 14:41:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 14:41:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 14:41:27] Production.INFO: ==9193== Releasing lock... [2025-02-13 14:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 14:41:27] Production.INFO: 63.5 MB #Memory Used# [2025-02-13 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 11:42:05 [end_date_ymd] => 2025-02-13 14:42:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 11:42:05' and `end` < '2025-02-13 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-02-13 14:42:22] Production.INFO: count ==4757 [2025-02-13 14:42:24] Production.ERROR: pbx CDR StartTime 2025-02-13 11:42:05 - End Time 2025-02-13 14:42:05 [2025-02-13 14:42:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 14:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467095', 'tblTempUsageDetail_20' ) start [2025-02-13 14:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467095', 'tblTempUsageDetail_20' ) end [2025-02-13 14:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467095', 'tblTempVendorCDR_20' ) start [2025-02-13 14:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467095', 'tblTempVendorCDR_20' ) end [2025-02-13 14:42:24] Production.INFO: ProcessCDR(1,14467095,1,1,2) [2025-02-13 14:42:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:42:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:42:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467095', 'tblTempUsageDetail_20' ) start [2025-02-13 14:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467095', 'tblTempUsageDetail_20' ) end [2025-02-13 14:42:29] Production.ERROR: pbx prc_insertCDR start [2025-02-13 14:42:29] Production.ERROR: pbx prc_insertCDR end [2025-02-13 14:42:29] Production.INFO: ==9282== Releasing lock... [2025-02-13 14:42:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 14:42:29] Production.INFO: 63.5 MB #Memory Used# [2025-02-13 14:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 11:43:06 [end_date_ymd] => 2025-02-13 14:43:06 [RateCDR] => 1 ) [2025-02-13 14: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-02-13 11:43:06' and `end` < '2025-02-13 14: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-02-13 14:43:20] Production.INFO: count ==4769 [2025-02-13 14:43:22] Production.ERROR: pbx CDR StartTime 2025-02-13 11:43:06 - End Time 2025-02-13 14:43:06 [2025-02-13 14:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467100', 'tblTempUsageDetail_20' ) start [2025-02-13 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467100', 'tblTempUsageDetail_20' ) end [2025-02-13 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467100', 'tblTempVendorCDR_20' ) start [2025-02-13 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467100', 'tblTempVendorCDR_20' ) end [2025-02-13 14:43:22] Production.INFO: ProcessCDR(1,14467100,1,1,2) [2025-02-13 14:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467100', 'tblTempUsageDetail_20' ) start [2025-02-13 14:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467100', 'tblTempUsageDetail_20' ) end [2025-02-13 14:43:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 14:43:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 14:43:27] Production.INFO: ==9372== Releasing lock... [2025-02-13 14:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 14:43:27] Production.INFO: 63.75 MB #Memory Used# [2025-02-13 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 11:44:05 [end_date_ymd] => 2025-02-13 14:44:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 11:44:05' and `end` < '2025-02-13 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-02-13 14:44:28] Production.INFO: count ==4784 [2025-02-13 14:44:30] Production.ERROR: pbx CDR StartTime 2025-02-13 11:44:05 - End Time 2025-02-13 14:44:05 [2025-02-13 14:44:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 14:44:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467105', 'tblTempUsageDetail_20' ) start [2025-02-13 14:44:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467105', 'tblTempUsageDetail_20' ) end [2025-02-13 14:44:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467105', 'tblTempVendorCDR_20' ) start [2025-02-13 14:44:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467105', 'tblTempVendorCDR_20' ) end [2025-02-13 14:44:30] Production.INFO: ProcessCDR(1,14467105,1,1,2) [2025-02-13 14:44:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:44:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:44:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:44:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:44:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467105', 'tblTempUsageDetail_20' ) start [2025-02-13 14:44:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467105', 'tblTempUsageDetail_20' ) end [2025-02-13 14:44:36] Production.ERROR: pbx prc_insertCDR start [2025-02-13 14:44:36] Production.ERROR: pbx prc_insertCDR end [2025-02-13 14:44:36] Production.INFO: ==9468== Releasing lock... [2025-02-13 14:44:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 14:44:36] Production.INFO: 63.75 MB #Memory Used# [2025-02-13 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 11:45:05 [end_date_ymd] => 2025-02-13 14:45:05 [RateCDR] => 1 ) [2025-02-13 14: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-02-13 11:45:05' and `end` < '2025-02-13 14: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-02-13 14:45:26] Production.INFO: count ==4788 [2025-02-13 14:45:28] Production.ERROR: pbx CDR StartTime 2025-02-13 11:45:05 - End Time 2025-02-13 14:45:05 [2025-02-13 14:45:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 14:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467110', 'tblTempUsageDetail_20' ) start [2025-02-13 14:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467110', 'tblTempUsageDetail_20' ) end [2025-02-13 14:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467110', 'tblTempVendorCDR_20' ) start [2025-02-13 14:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467110', 'tblTempVendorCDR_20' ) end [2025-02-13 14:45:28] Production.INFO: ProcessCDR(1,14467110,1,1,2) [2025-02-13 14:45:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:45:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:45:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:45:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:45:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467110', 'tblTempUsageDetail_20' ) start [2025-02-13 14:45:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467110', 'tblTempUsageDetail_20' ) end [2025-02-13 14:45:33] Production.ERROR: pbx prc_insertCDR start [2025-02-13 14:45:33] Production.ERROR: pbx prc_insertCDR end [2025-02-13 14:45:33] Production.INFO: ==9557== Releasing lock... [2025-02-13 14:45:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 14:45:33] Production.INFO: 63.75 MB #Memory Used# [2025-02-13 14:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 11:46:06 [end_date_ymd] => 2025-02-13 14:46:06 [RateCDR] => 1 ) [2025-02-13 14: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-02-13 11:46:06' and `end` < '2025-02-13 14: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-02-13 14:46:20] Production.INFO: count ==4780 [2025-02-13 14:46:22] Production.ERROR: pbx CDR StartTime 2025-02-13 11:46:06 - End Time 2025-02-13 14:46:06 [2025-02-13 14:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 14:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467115', 'tblTempUsageDetail_20' ) start [2025-02-13 14:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467115', 'tblTempUsageDetail_20' ) end [2025-02-13 14:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467115', 'tblTempVendorCDR_20' ) start [2025-02-13 14:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467115', 'tblTempVendorCDR_20' ) end [2025-02-13 14:46:22] Production.INFO: ProcessCDR(1,14467115,1,1,2) [2025-02-13 14:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467115', 'tblTempUsageDetail_20' ) start [2025-02-13 14:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467115', 'tblTempUsageDetail_20' ) end [2025-02-13 14:46:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 14:46:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 14:46:27] Production.INFO: ==9689== Releasing lock... [2025-02-13 14:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 14:46:27] Production.INFO: 63.75 MB #Memory Used# [2025-02-13 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 11:47:05 [end_date_ymd] => 2025-02-13 14:47:05 [RateCDR] => 1 ) [2025-02-13 14: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-02-13 11:47:05' and `end` < '2025-02-13 14: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-02-13 14:47:19] Production.INFO: count ==4772 [2025-02-13 14:47:21] Production.ERROR: pbx CDR StartTime 2025-02-13 11:47:05 - End Time 2025-02-13 14:47:05 [2025-02-13 14:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467120', 'tblTempUsageDetail_20' ) start [2025-02-13 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467120', 'tblTempUsageDetail_20' ) end [2025-02-13 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467120', 'tblTempVendorCDR_20' ) start [2025-02-13 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467120', 'tblTempVendorCDR_20' ) end [2025-02-13 14:47:21] Production.INFO: ProcessCDR(1,14467120,1,1,2) [2025-02-13 14:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467120', 'tblTempUsageDetail_20' ) start [2025-02-13 14:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467120', 'tblTempUsageDetail_20' ) end [2025-02-13 14:47:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 14:47:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 14:47:27] Production.INFO: ==9772== Releasing lock... [2025-02-13 14:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 14:47:27] Production.INFO: 63.75 MB #Memory Used# [2025-02-13 14:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 11:48:06 [end_date_ymd] => 2025-02-13 14:48:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 11:48:06' and `end` < '2025-02-13 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-02-13 14:48:20] Production.INFO: count ==4776 [2025-02-13 14:48:22] Production.ERROR: pbx CDR StartTime 2025-02-13 11:48:06 - End Time 2025-02-13 14:48:06 [2025-02-13 14:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 14:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467125', 'tblTempUsageDetail_20' ) start [2025-02-13 14:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467125', 'tblTempUsageDetail_20' ) end [2025-02-13 14:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467125', 'tblTempVendorCDR_20' ) start [2025-02-13 14:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467125', 'tblTempVendorCDR_20' ) end [2025-02-13 14:48:22] Production.INFO: ProcessCDR(1,14467125,1,1,2) [2025-02-13 14:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467125', 'tblTempUsageDetail_20' ) start [2025-02-13 14:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467125', 'tblTempUsageDetail_20' ) end [2025-02-13 14:48:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 14:48:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 14:48:26] Production.INFO: ==9857== Releasing lock... [2025-02-13 14:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 14:48:26] Production.INFO: 63.75 MB #Memory Used# [2025-02-13 14:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 11:49:06 [end_date_ymd] => 2025-02-13 14:49:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 11:49:06' and `end` < '2025-02-13 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-02-13 14:49:20] Production.INFO: count ==4752 [2025-02-13 14:49:22] Production.ERROR: pbx CDR StartTime 2025-02-13 11:49:06 - End Time 2025-02-13 14:49:06 [2025-02-13 14:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 14:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467130', 'tblTempUsageDetail_20' ) start [2025-02-13 14:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467130', 'tblTempUsageDetail_20' ) end [2025-02-13 14:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467130', 'tblTempVendorCDR_20' ) start [2025-02-13 14:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467130', 'tblTempVendorCDR_20' ) end [2025-02-13 14:49:22] Production.INFO: ProcessCDR(1,14467130,1,1,2) [2025-02-13 14:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467130', 'tblTempUsageDetail_20' ) start [2025-02-13 14:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467130', 'tblTempUsageDetail_20' ) end [2025-02-13 14:49:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 14:49:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 14:49:27] Production.INFO: ==9946== Releasing lock... [2025-02-13 14:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 14:49:27] Production.INFO: 63.5 MB #Memory Used# [2025-02-13 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 11:50:06 [end_date_ymd] => 2025-02-13 14:50:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 11:50:06' and `end` < '2025-02-13 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-02-13 14:50:22] Production.INFO: count ==4745 [2025-02-13 14:50:24] Production.ERROR: pbx CDR StartTime 2025-02-13 11:50:06 - End Time 2025-02-13 14:50:06 [2025-02-13 14:50:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 14:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467136', 'tblTempUsageDetail_20' ) start [2025-02-13 14:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467136', 'tblTempUsageDetail_20' ) end [2025-02-13 14:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467136', 'tblTempVendorCDR_20' ) start [2025-02-13 14:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467136', 'tblTempVendorCDR_20' ) end [2025-02-13 14:50:24] Production.INFO: ProcessCDR(1,14467136,1,1,2) [2025-02-13 14:50:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:50:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:50:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:50:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467136', 'tblTempUsageDetail_20' ) start [2025-02-13 14:50:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467136', 'tblTempUsageDetail_20' ) end [2025-02-13 14:50:30] Production.ERROR: pbx prc_insertCDR start [2025-02-13 14:50:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 14:50:30] Production.INFO: ==10038== Releasing lock... [2025-02-13 14:50:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 14:50:30] Production.INFO: 63.5 MB #Memory Used# [2025-02-13 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 11:51:05 [end_date_ymd] => 2025-02-13 14:51:05 [RateCDR] => 1 ) [2025-02-13 14: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-02-13 11:51:05' and `end` < '2025-02-13 14: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-02-13 14:51:20] Production.INFO: count ==4726 [2025-02-13 14:51:22] Production.ERROR: pbx CDR StartTime 2025-02-13 11:51:05 - End Time 2025-02-13 14:51:05 [2025-02-13 14:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467141', 'tblTempUsageDetail_20' ) start [2025-02-13 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467141', 'tblTempUsageDetail_20' ) end [2025-02-13 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467141', 'tblTempVendorCDR_20' ) start [2025-02-13 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467141', 'tblTempVendorCDR_20' ) end [2025-02-13 14:51:22] Production.INFO: ProcessCDR(1,14467141,1,1,2) [2025-02-13 14:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467141', 'tblTempUsageDetail_20' ) start [2025-02-13 14:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467141', 'tblTempUsageDetail_20' ) end [2025-02-13 14:51:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 14:51:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 14:51:27] Production.INFO: ==10126== Releasing lock... [2025-02-13 14:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 14:51:27] Production.INFO: 63.25 MB #Memory Used# [2025-02-13 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 11:52:05 [end_date_ymd] => 2025-02-13 14:52:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 11:52:05' and `end` < '2025-02-13 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-02-13 14:52:22] Production.INFO: count ==4731 [2025-02-13 14:52:24] Production.ERROR: pbx CDR StartTime 2025-02-13 11:52:05 - End Time 2025-02-13 14:52:05 [2025-02-13 14:52:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 14:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467146', 'tblTempUsageDetail_20' ) start [2025-02-13 14:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467146', 'tblTempUsageDetail_20' ) end [2025-02-13 14:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467146', 'tblTempVendorCDR_20' ) start [2025-02-13 14:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467146', 'tblTempVendorCDR_20' ) end [2025-02-13 14:52:24] Production.INFO: ProcessCDR(1,14467146,1,1,2) [2025-02-13 14:52:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:52:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:52:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:52:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467146', 'tblTempUsageDetail_20' ) start [2025-02-13 14:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467146', 'tblTempUsageDetail_20' ) end [2025-02-13 14:52:29] Production.ERROR: pbx prc_insertCDR start [2025-02-13 14:52:29] Production.ERROR: pbx prc_insertCDR end [2025-02-13 14:52:29] Production.INFO: ==10225== Releasing lock... [2025-02-13 14:52:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 14:52:29] Production.INFO: 63.5 MB #Memory Used# [2025-02-13 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 11:53:05 [end_date_ymd] => 2025-02-13 14:53:05 [RateCDR] => 1 ) [2025-02-13 14: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-02-13 11:53:05' and `end` < '2025-02-13 14: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-02-13 14:53:24] Production.INFO: count ==4723 [2025-02-13 14:53:26] Production.ERROR: pbx CDR StartTime 2025-02-13 11:53:05 - End Time 2025-02-13 14:53:05 [2025-02-13 14:53:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 14:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467151', 'tblTempUsageDetail_20' ) start [2025-02-13 14:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467151', 'tblTempUsageDetail_20' ) end [2025-02-13 14:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467151', 'tblTempVendorCDR_20' ) start [2025-02-13 14:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467151', 'tblTempVendorCDR_20' ) end [2025-02-13 14:53:27] Production.INFO: ProcessCDR(1,14467151,1,1,2) [2025-02-13 14:53:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:53:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:53:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:53:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:53:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467151', 'tblTempUsageDetail_20' ) start [2025-02-13 14:53:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467151', 'tblTempUsageDetail_20' ) end [2025-02-13 14:53:31] Production.ERROR: pbx prc_insertCDR start [2025-02-13 14:53:32] Production.ERROR: pbx prc_insertCDR end [2025-02-13 14:53:32] Production.INFO: ==10321== Releasing lock... [2025-02-13 14:53:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 14:53:32] Production.INFO: 63.25 MB #Memory Used# [2025-02-13 14:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 11:54:06 [end_date_ymd] => 2025-02-13 14:54:06 [RateCDR] => 1 ) [2025-02-13 14: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-02-13 11:54:06' and `end` < '2025-02-13 14: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-02-13 14:54:37] Production.INFO: count ==4711 [2025-02-13 14:54:39] Production.ERROR: pbx CDR StartTime 2025-02-13 11:54:06 - End Time 2025-02-13 14:54:06 [2025-02-13 14:54:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 14:54:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467156', 'tblTempUsageDetail_20' ) start [2025-02-13 14:54:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467156', 'tblTempUsageDetail_20' ) end [2025-02-13 14:54:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467156', 'tblTempVendorCDR_20' ) start [2025-02-13 14:54:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467156', 'tblTempVendorCDR_20' ) end [2025-02-13 14:54:39] Production.INFO: ProcessCDR(1,14467156,1,1,2) [2025-02-13 14:54:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:54:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:54:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:54:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:54:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467156', 'tblTempUsageDetail_20' ) start [2025-02-13 14:54:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467156', 'tblTempUsageDetail_20' ) end [2025-02-13 14:54:44] Production.ERROR: pbx prc_insertCDR start [2025-02-13 14:54:44] Production.ERROR: pbx prc_insertCDR end [2025-02-13 14:54:44] Production.INFO: ==10420== Releasing lock... [2025-02-13 14:54:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 14:54:44] Production.INFO: 63.25 MB #Memory Used# [2025-02-13 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 11:55:05 [end_date_ymd] => 2025-02-13 14:55:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 11:55:05' and `end` < '2025-02-13 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-02-13 14:55:27] Production.INFO: count ==4712 [2025-02-13 14:55:29] Production.ERROR: pbx CDR StartTime 2025-02-13 11:55:05 - End Time 2025-02-13 14:55:05 [2025-02-13 14:55:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 14:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467161', 'tblTempUsageDetail_20' ) start [2025-02-13 14:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467161', 'tblTempUsageDetail_20' ) end [2025-02-13 14:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467161', 'tblTempVendorCDR_20' ) start [2025-02-13 14:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467161', 'tblTempVendorCDR_20' ) end [2025-02-13 14:55:29] Production.INFO: ProcessCDR(1,14467161,1,1,2) [2025-02-13 14:55:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:55:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:55:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:55:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:55:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467161', 'tblTempUsageDetail_20' ) start [2025-02-13 14:55:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467161', 'tblTempUsageDetail_20' ) end [2025-02-13 14:55:34] Production.ERROR: pbx prc_insertCDR start [2025-02-13 14:55:34] Production.ERROR: pbx prc_insertCDR end [2025-02-13 14:55:34] Production.INFO: ==10520== Releasing lock... [2025-02-13 14:55:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 14:55:34] Production.INFO: 63.25 MB #Memory Used# [2025-02-13 14:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 11:56:06 [end_date_ymd] => 2025-02-13 14:56:06 [RateCDR] => 1 ) [2025-02-13 14: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-02-13 11:56:06' and `end` < '2025-02-13 14: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-02-13 14:56:27] Production.INFO: count ==4727 [2025-02-13 14:56:29] Production.ERROR: pbx CDR StartTime 2025-02-13 11:56:06 - End Time 2025-02-13 14:56:06 [2025-02-13 14:56:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 14:56:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467166', 'tblTempUsageDetail_20' ) start [2025-02-13 14:56:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467166', 'tblTempUsageDetail_20' ) end [2025-02-13 14:56:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467166', 'tblTempVendorCDR_20' ) start [2025-02-13 14:56:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467166', 'tblTempVendorCDR_20' ) end [2025-02-13 14:56:29] Production.INFO: ProcessCDR(1,14467166,1,1,2) [2025-02-13 14:56:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:56:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:56:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:56:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:56:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467166', 'tblTempUsageDetail_20' ) start [2025-02-13 14:56:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467166', 'tblTempUsageDetail_20' ) end [2025-02-13 14:56:35] Production.ERROR: pbx prc_insertCDR start [2025-02-13 14:56:35] Production.ERROR: pbx prc_insertCDR end [2025-02-13 14:56:35] Production.INFO: ==10609== Releasing lock... [2025-02-13 14:56:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 14:56:35] Production.INFO: 63.5 MB #Memory Used# [2025-02-13 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 11:57:05 [end_date_ymd] => 2025-02-13 14:57:05 [RateCDR] => 1 ) [2025-02-13 14: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-02-13 11:57:05' and `end` < '2025-02-13 14: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-02-13 14:57:23] Production.INFO: count ==4730 [2025-02-13 14:57:25] Production.ERROR: pbx CDR StartTime 2025-02-13 11:57:05 - End Time 2025-02-13 14:57:05 [2025-02-13 14:57:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 14:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467171', 'tblTempUsageDetail_20' ) start [2025-02-13 14:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467171', 'tblTempUsageDetail_20' ) end [2025-02-13 14:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467171', 'tblTempVendorCDR_20' ) start [2025-02-13 14:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467171', 'tblTempVendorCDR_20' ) end [2025-02-13 14:57:25] Production.INFO: ProcessCDR(1,14467171,1,1,2) [2025-02-13 14:57:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:57:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:57:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:57:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:57:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467171', 'tblTempUsageDetail_20' ) start [2025-02-13 14:57:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467171', 'tblTempUsageDetail_20' ) end [2025-02-13 14:57:30] Production.ERROR: pbx prc_insertCDR start [2025-02-13 14:57:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 14:57:30] Production.INFO: ==10683== Releasing lock... [2025-02-13 14:57:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 14:57:30] Production.INFO: 63.5 MB #Memory Used# [2025-02-13 14:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 11:58:06 [end_date_ymd] => 2025-02-13 14:58:06 [RateCDR] => 1 ) [2025-02-13 14: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-02-13 11:58:06' and `end` < '2025-02-13 14: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-02-13 14:58:21] Production.INFO: count ==4732 [2025-02-13 14:58:23] Production.ERROR: pbx CDR StartTime 2025-02-13 11:58:06 - End Time 2025-02-13 14:58:06 [2025-02-13 14:58:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 14:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467176', 'tblTempUsageDetail_20' ) start [2025-02-13 14:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467176', 'tblTempUsageDetail_20' ) end [2025-02-13 14:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467176', 'tblTempVendorCDR_20' ) start [2025-02-13 14:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467176', 'tblTempVendorCDR_20' ) end [2025-02-13 14:58:23] Production.INFO: ProcessCDR(1,14467176,1,1,2) [2025-02-13 14:58:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:58:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467176', 'tblTempUsageDetail_20' ) start [2025-02-13 14:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467176', 'tblTempUsageDetail_20' ) end [2025-02-13 14:58:28] Production.ERROR: pbx prc_insertCDR start [2025-02-13 14:58:28] Production.ERROR: pbx prc_insertCDR end [2025-02-13 14:58:28] Production.INFO: ==10760== Releasing lock... [2025-02-13 14:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 14:58:28] Production.INFO: 63.5 MB #Memory Used# [2025-02-13 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 11:59:05 [end_date_ymd] => 2025-02-13 14:59:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 11:59:05' and `end` < '2025-02-13 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-02-13 14:59:19] Production.INFO: count ==4732 [2025-02-13 14:59:21] Production.ERROR: pbx CDR StartTime 2025-02-13 11:59:05 - End Time 2025-02-13 14:59:05 [2025-02-13 14:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467181', 'tblTempUsageDetail_20' ) start [2025-02-13 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467181', 'tblTempUsageDetail_20' ) end [2025-02-13 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467181', 'tblTempVendorCDR_20' ) start [2025-02-13 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467181', 'tblTempVendorCDR_20' ) end [2025-02-13 14:59:21] Production.INFO: ProcessCDR(1,14467181,1,1,2) [2025-02-13 14:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 14:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 14:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467181', 'tblTempUsageDetail_20' ) start [2025-02-13 14:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467181', 'tblTempUsageDetail_20' ) end [2025-02-13 14:59:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 14:59:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 14:59:27] Production.INFO: ==10834== Releasing lock... [2025-02-13 14:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 14:59:27] Production.INFO: 63.5 MB #Memory Used# [2025-02-13 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 12:00:06 [end_date_ymd] => 2025-02-13 15:00:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 12:00:06' and `end` < '2025-02-13 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-02-13 15:00:22] Production.INFO: count ==4722 [2025-02-13 15:00:24] Production.ERROR: pbx CDR StartTime 2025-02-13 12:00:06 - End Time 2025-02-13 15:00:06 [2025-02-13 15:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 15:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467187', 'tblTempUsageDetail_20' ) start [2025-02-13 15:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467187', 'tblTempUsageDetail_20' ) end [2025-02-13 15:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467187', 'tblTempVendorCDR_20' ) start [2025-02-13 15:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467187', 'tblTempVendorCDR_20' ) end [2025-02-13 15:00:25] Production.INFO: ProcessCDR(1,14467187,1,1,2) [2025-02-13 15:00:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467187', 'tblTempUsageDetail_20' ) start [2025-02-13 15:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467187', 'tblTempUsageDetail_20' ) end [2025-02-13 15:00:28] Production.ERROR: pbx prc_insertCDR start [2025-02-13 15:00:28] Production.ERROR: pbx prc_insertCDR end [2025-02-13 15:00:28] Production.INFO: ==10915== Releasing lock... [2025-02-13 15:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 15:00:28] Production.INFO: 63.25 MB #Memory Used# [2025-02-13 15:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 12:01:05 [end_date_ymd] => 2025-02-13 15:01:05 [RateCDR] => 1 ) [2025-02-13 15: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-02-13 12:01:05' and `end` < '2025-02-13 15: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-02-13 15:01:22] Production.INFO: count ==4746 [2025-02-13 15:01:24] Production.ERROR: pbx CDR StartTime 2025-02-13 12:01:05 - End Time 2025-02-13 15:01:05 [2025-02-13 15:01:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 15:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467192', 'tblTempUsageDetail_20' ) start [2025-02-13 15:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467192', 'tblTempUsageDetail_20' ) end [2025-02-13 15:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467192', 'tblTempVendorCDR_20' ) start [2025-02-13 15:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467192', 'tblTempVendorCDR_20' ) end [2025-02-13 15:01:24] Production.INFO: ProcessCDR(1,14467192,1,1,2) [2025-02-13 15:01:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:01:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:01:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:01:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467192', 'tblTempUsageDetail_20' ) start [2025-02-13 15:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467192', 'tblTempUsageDetail_20' ) end [2025-02-13 15:01:29] Production.ERROR: pbx prc_insertCDR start [2025-02-13 15:01:29] Production.ERROR: pbx prc_insertCDR end [2025-02-13 15:01:29] Production.INFO: ==11041== Releasing lock... [2025-02-13 15:01:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 15:01:29] Production.INFO: 63.5 MB #Memory Used# [2025-02-13 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 12:02:05 [end_date_ymd] => 2025-02-13 15:02:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 12:02:05' and `end` < '2025-02-13 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-02-13 15:02:23] Production.INFO: count ==4758 [2025-02-13 15:02:25] Production.ERROR: pbx CDR StartTime 2025-02-13 12:02:05 - End Time 2025-02-13 15:02:05 [2025-02-13 15:02:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 15:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467197', 'tblTempUsageDetail_20' ) start [2025-02-13 15:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467197', 'tblTempUsageDetail_20' ) end [2025-02-13 15:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467197', 'tblTempVendorCDR_20' ) start [2025-02-13 15:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467197', 'tblTempVendorCDR_20' ) end [2025-02-13 15:02:25] Production.INFO: ProcessCDR(1,14467197,1,1,2) [2025-02-13 15:02:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:02:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:02:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:02:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467197', 'tblTempUsageDetail_20' ) start [2025-02-13 15:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467197', 'tblTempUsageDetail_20' ) end [2025-02-13 15:02:31] Production.ERROR: pbx prc_insertCDR start [2025-02-13 15:02:31] Production.ERROR: pbx prc_insertCDR end [2025-02-13 15:02:31] Production.INFO: ==11199== Releasing lock... [2025-02-13 15:02:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 15:02:31] Production.INFO: 63.5 MB #Memory Used# [2025-02-13 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 12:03:05 [end_date_ymd] => 2025-02-13 15:03:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 12:03:05' and `end` < '2025-02-13 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-02-13 15:03:24] Production.INFO: count ==4760 [2025-02-13 15:03:26] Production.ERROR: pbx CDR StartTime 2025-02-13 12:03:05 - End Time 2025-02-13 15:03:05 [2025-02-13 15:03:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 15:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467202', 'tblTempUsageDetail_20' ) start [2025-02-13 15:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467202', 'tblTempUsageDetail_20' ) end [2025-02-13 15:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467202', 'tblTempVendorCDR_20' ) start [2025-02-13 15:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467202', 'tblTempVendorCDR_20' ) end [2025-02-13 15:03:26] Production.INFO: ProcessCDR(1,14467202,1,1,2) [2025-02-13 15:03:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:03:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:03:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:03:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467202', 'tblTempUsageDetail_20' ) start [2025-02-13 15:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467202', 'tblTempUsageDetail_20' ) end [2025-02-13 15:03:30] Production.ERROR: pbx prc_insertCDR start [2025-02-13 15:03:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 15:03:30] Production.INFO: ==11284== Releasing lock... [2025-02-13 15:03:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 15:03:30] Production.INFO: 63.5 MB #Memory Used# [2025-02-13 15:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 12:04:06 [end_date_ymd] => 2025-02-13 15:04:06 [RateCDR] => 1 ) [2025-02-13 15: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-02-13 12:04:06' and `end` < '2025-02-13 15: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-02-13 15:04:22] Production.INFO: count ==4749 [2025-02-13 15:04:24] Production.ERROR: pbx CDR StartTime 2025-02-13 12:04:06 - End Time 2025-02-13 15:04:06 [2025-02-13 15:04:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 15:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467207', 'tblTempUsageDetail_20' ) start [2025-02-13 15:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467207', 'tblTempUsageDetail_20' ) end [2025-02-13 15:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467207', 'tblTempVendorCDR_20' ) start [2025-02-13 15:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467207', 'tblTempVendorCDR_20' ) end [2025-02-13 15:04:24] Production.INFO: ProcessCDR(1,14467207,1,1,2) [2025-02-13 15:04:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:04:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:04:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:04:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467207', 'tblTempUsageDetail_20' ) start [2025-02-13 15:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467207', 'tblTempUsageDetail_20' ) end [2025-02-13 15:04:30] Production.ERROR: pbx prc_insertCDR start [2025-02-13 15:04:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 15:04:30] Production.INFO: ==11360== Releasing lock... [2025-02-13 15:04:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 15:04:30] Production.INFO: 63.5 MB #Memory Used# [2025-02-13 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 12:05:05 [end_date_ymd] => 2025-02-13 15:05:05 [RateCDR] => 1 ) [2025-02-13 15: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-02-13 12:05:05' and `end` < '2025-02-13 15: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-02-13 15:05:29] Production.INFO: count ==4755 [2025-02-13 15:05:31] Production.ERROR: pbx CDR StartTime 2025-02-13 12:05:05 - End Time 2025-02-13 15:05:05 [2025-02-13 15:05:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 15:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467212', 'tblTempUsageDetail_20' ) start [2025-02-13 15:05:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467212', 'tblTempUsageDetail_20' ) end [2025-02-13 15:05:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467212', 'tblTempVendorCDR_20' ) start [2025-02-13 15:05:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467212', 'tblTempVendorCDR_20' ) end [2025-02-13 15:05:32] Production.INFO: ProcessCDR(1,14467212,1,1,2) [2025-02-13 15:05:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:05:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:05:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:05:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:05:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467212', 'tblTempUsageDetail_20' ) start [2025-02-13 15:05:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467212', 'tblTempUsageDetail_20' ) end [2025-02-13 15:05:37] Production.ERROR: pbx prc_insertCDR start [2025-02-13 15:05:37] Production.ERROR: pbx prc_insertCDR end [2025-02-13 15:05:37] Production.INFO: ==11511== Releasing lock... [2025-02-13 15:05:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 15:05:37] Production.INFO: 63.5 MB #Memory Used# [2025-02-13 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 12:06:05 [end_date_ymd] => 2025-02-13 15:06:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 12:06:05' and `end` < '2025-02-13 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-02-13 15:06:24] Production.INFO: count ==4755 [2025-02-13 15:06:26] Production.ERROR: pbx CDR StartTime 2025-02-13 12:06:05 - End Time 2025-02-13 15:06:05 [2025-02-13 15:06:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 15:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467217', 'tblTempUsageDetail_20' ) start [2025-02-13 15:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467217', 'tblTempUsageDetail_20' ) end [2025-02-13 15:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467217', 'tblTempVendorCDR_20' ) start [2025-02-13 15:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467217', 'tblTempVendorCDR_20' ) end [2025-02-13 15:06:26] Production.INFO: ProcessCDR(1,14467217,1,1,2) [2025-02-13 15:06:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:06:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:06:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:06:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467217', 'tblTempUsageDetail_20' ) start [2025-02-13 15:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467217', 'tblTempUsageDetail_20' ) end [2025-02-13 15:06:31] Production.ERROR: pbx prc_insertCDR start [2025-02-13 15:06:31] Production.ERROR: pbx prc_insertCDR end [2025-02-13 15:06:31] Production.INFO: ==11589== Releasing lock... [2025-02-13 15:06:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 15:06:31] Production.INFO: 63.5 MB #Memory Used# [2025-02-13 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 12:07:05 [end_date_ymd] => 2025-02-13 15:07:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 12:07:05' and `end` < '2025-02-13 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-02-13 15:07:23] Production.INFO: count ==4757 [2025-02-13 15:07:25] Production.ERROR: pbx CDR StartTime 2025-02-13 12:07:05 - End Time 2025-02-13 15:07:05 [2025-02-13 15:07:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 15:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467222', 'tblTempUsageDetail_20' ) start [2025-02-13 15:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467222', 'tblTempUsageDetail_20' ) end [2025-02-13 15:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467222', 'tblTempVendorCDR_20' ) start [2025-02-13 15:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467222', 'tblTempVendorCDR_20' ) end [2025-02-13 15:07:25] Production.INFO: ProcessCDR(1,14467222,1,1,2) [2025-02-13 15:07:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:07:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:07:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:07:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467222', 'tblTempUsageDetail_20' ) start [2025-02-13 15:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467222', 'tblTempUsageDetail_20' ) end [2025-02-13 15:07:30] Production.ERROR: pbx prc_insertCDR start [2025-02-13 15:07:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 15:07:30] Production.INFO: ==11665== Releasing lock... [2025-02-13 15:07:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 15:07:30] Production.INFO: 63.5 MB #Memory Used# [2025-02-13 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 12:08:05 [end_date_ymd] => 2025-02-13 15:08:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 12:08:05' and `end` < '2025-02-13 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-02-13 15:08:25] Production.INFO: count ==4746 [2025-02-13 15:08:27] Production.ERROR: pbx CDR StartTime 2025-02-13 12:08:05 - End Time 2025-02-13 15:08:05 [2025-02-13 15:08:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 15:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467227', 'tblTempUsageDetail_20' ) start [2025-02-13 15:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467227', 'tblTempUsageDetail_20' ) end [2025-02-13 15:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467227', 'tblTempVendorCDR_20' ) start [2025-02-13 15:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467227', 'tblTempVendorCDR_20' ) end [2025-02-13 15:08:27] Production.INFO: ProcessCDR(1,14467227,1,1,2) [2025-02-13 15:08:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:08:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:08:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:08:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:08:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467227', 'tblTempUsageDetail_20' ) start [2025-02-13 15:08:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467227', 'tblTempUsageDetail_20' ) end [2025-02-13 15:08:32] Production.ERROR: pbx prc_insertCDR start [2025-02-13 15:08:32] Production.ERROR: pbx prc_insertCDR end [2025-02-13 15:08:32] Production.INFO: ==11817== Releasing lock... [2025-02-13 15:08:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 15:08:32] Production.INFO: 63.5 MB #Memory Used# [2025-02-13 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 12:09:05 [end_date_ymd] => 2025-02-13 15:09:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 12:09:05' and `end` < '2025-02-13 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-02-13 15:09:24] Production.INFO: count ==4755 [2025-02-13 15:09:26] Production.ERROR: pbx CDR StartTime 2025-02-13 12:09:05 - End Time 2025-02-13 15:09:05 [2025-02-13 15:09:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 15:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467232', 'tblTempUsageDetail_20' ) start [2025-02-13 15:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467232', 'tblTempUsageDetail_20' ) end [2025-02-13 15:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467232', 'tblTempVendorCDR_20' ) start [2025-02-13 15:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467232', 'tblTempVendorCDR_20' ) end [2025-02-13 15:09:26] Production.INFO: ProcessCDR(1,14467232,1,1,2) [2025-02-13 15:09:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:09:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:09:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:09:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467232', 'tblTempUsageDetail_20' ) start [2025-02-13 15:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467232', 'tblTempUsageDetail_20' ) end [2025-02-13 15:09:31] Production.ERROR: pbx prc_insertCDR start [2025-02-13 15:09:31] Production.ERROR: pbx prc_insertCDR end [2025-02-13 15:09:31] Production.INFO: ==11891== Releasing lock... [2025-02-13 15:09:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 15:09:31] Production.INFO: 63.5 MB #Memory Used# [2025-02-13 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 12:10:06 [end_date_ymd] => 2025-02-13 15:10:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 12:10:06' and `end` < '2025-02-13 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-02-13 15:10:24] Production.INFO: count ==4743 [2025-02-13 15:10:26] Production.ERROR: pbx CDR StartTime 2025-02-13 12:10:06 - End Time 2025-02-13 15:10:06 [2025-02-13 15:10:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 15:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467237', 'tblTempUsageDetail_20' ) start [2025-02-13 15:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467237', 'tblTempUsageDetail_20' ) end [2025-02-13 15:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467237', 'tblTempVendorCDR_20' ) start [2025-02-13 15:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467237', 'tblTempVendorCDR_20' ) end [2025-02-13 15:10:26] Production.INFO: ProcessCDR(1,14467237,1,1,2) [2025-02-13 15:10:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:10:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:10:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:10:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467237', 'tblTempUsageDetail_20' ) start [2025-02-13 15:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467237', 'tblTempUsageDetail_20' ) end [2025-02-13 15:10:31] Production.ERROR: pbx prc_insertCDR start [2025-02-13 15:10:31] Production.ERROR: pbx prc_insertCDR end [2025-02-13 15:10:31] Production.INFO: ==11969== Releasing lock... [2025-02-13 15:10:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 15:10:31] Production.INFO: 63.5 MB #Memory Used# [2025-02-13 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 12:11:05 [end_date_ymd] => 2025-02-13 15:11:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 12:11:05' and `end` < '2025-02-13 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-02-13 15:11:23] Production.INFO: count ==4742 [2025-02-13 15:11:25] Production.ERROR: pbx CDR StartTime 2025-02-13 12:11:05 - End Time 2025-02-13 15:11:05 [2025-02-13 15:11:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 15:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467242', 'tblTempUsageDetail_20' ) start [2025-02-13 15:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467242', 'tblTempUsageDetail_20' ) end [2025-02-13 15:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467242', 'tblTempVendorCDR_20' ) start [2025-02-13 15:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467242', 'tblTempVendorCDR_20' ) end [2025-02-13 15:11:26] Production.INFO: ProcessCDR(1,14467242,1,1,2) [2025-02-13 15:11:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:11:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:11:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:11:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467242', 'tblTempUsageDetail_20' ) start [2025-02-13 15:11:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467242', 'tblTempUsageDetail_20' ) end [2025-02-13 15:11:31] Production.ERROR: pbx prc_insertCDR start [2025-02-13 15:11:31] Production.ERROR: pbx prc_insertCDR end [2025-02-13 15:11:31] Production.INFO: ==12046== Releasing lock... [2025-02-13 15:11:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 15:11:31] Production.INFO: 63.5 MB #Memory Used# [2025-02-13 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 12:12:05 [end_date_ymd] => 2025-02-13 15:12:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 12:12:05' and `end` < '2025-02-13 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-02-13 15:12:23] Production.INFO: count ==4738 [2025-02-13 15:12:25] Production.ERROR: pbx CDR StartTime 2025-02-13 12:12:05 - End Time 2025-02-13 15:12:05 [2025-02-13 15:12:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 15:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467248', 'tblTempUsageDetail_20' ) start [2025-02-13 15:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467248', 'tblTempUsageDetail_20' ) end [2025-02-13 15:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467248', 'tblTempVendorCDR_20' ) start [2025-02-13 15:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467248', 'tblTempVendorCDR_20' ) end [2025-02-13 15:12:25] Production.INFO: ProcessCDR(1,14467248,1,1,2) [2025-02-13 15:12:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:12:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:12:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:12:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:12:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467248', 'tblTempUsageDetail_20' ) start [2025-02-13 15:12:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467248', 'tblTempUsageDetail_20' ) end [2025-02-13 15:12:30] Production.ERROR: pbx prc_insertCDR start [2025-02-13 15:12:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 15:12:30] Production.INFO: ==12197== Releasing lock... [2025-02-13 15:12:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 15:12:30] Production.INFO: 63.5 MB #Memory Used# [2025-02-13 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 12:13:05 [end_date_ymd] => 2025-02-13 15:13:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 12:13:05' and `end` < '2025-02-13 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-02-13 15:13:26] Production.INFO: count ==4733 [2025-02-13 15:13:28] Production.ERROR: pbx CDR StartTime 2025-02-13 12:13:05 - End Time 2025-02-13 15:13:05 [2025-02-13 15:13:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 15:13:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467253', 'tblTempUsageDetail_20' ) start [2025-02-13 15:13:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467253', 'tblTempUsageDetail_20' ) end [2025-02-13 15:13:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467253', 'tblTempVendorCDR_20' ) start [2025-02-13 15:13:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467253', 'tblTempVendorCDR_20' ) end [2025-02-13 15:13:28] Production.INFO: ProcessCDR(1,14467253,1,1,2) [2025-02-13 15:13:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:13:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:13:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:13:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:13:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467253', 'tblTempUsageDetail_20' ) start [2025-02-13 15:13:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467253', 'tblTempUsageDetail_20' ) end [2025-02-13 15:13:33] Production.ERROR: pbx prc_insertCDR start [2025-02-13 15:13:33] Production.ERROR: pbx prc_insertCDR end [2025-02-13 15:13:33] Production.INFO: ==12271== Releasing lock... [2025-02-13 15:13:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 15:13:33] Production.INFO: 63.5 MB #Memory Used# [2025-02-13 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 12:14:05 [end_date_ymd] => 2025-02-13 15:14:05 [RateCDR] => 1 ) [2025-02-13 15: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-02-13 12:14:05' and `end` < '2025-02-13 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-02-13 15:14:27] Production.INFO: count ==4718 [2025-02-13 15:14:29] Production.ERROR: pbx CDR StartTime 2025-02-13 12:14:05 - End Time 2025-02-13 15:14:05 [2025-02-13 15:14:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 15:14:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467258', 'tblTempUsageDetail_20' ) start [2025-02-13 15:14:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467258', 'tblTempUsageDetail_20' ) end [2025-02-13 15:14:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467258', 'tblTempVendorCDR_20' ) start [2025-02-13 15:14:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467258', 'tblTempVendorCDR_20' ) end [2025-02-13 15:14:29] Production.INFO: ProcessCDR(1,14467258,1,1,2) [2025-02-13 15:14:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:14:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:14:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:14:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:14:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467258', 'tblTempUsageDetail_20' ) start [2025-02-13 15:14:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467258', 'tblTempUsageDetail_20' ) end [2025-02-13 15:14:34] Production.ERROR: pbx prc_insertCDR start [2025-02-13 15:14:34] Production.ERROR: pbx prc_insertCDR end [2025-02-13 15:14:35] Production.INFO: ==12346== Releasing lock... [2025-02-13 15:14:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 15:14:35] Production.INFO: 63.25 MB #Memory Used# [2025-02-13 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 12:15:05 [end_date_ymd] => 2025-02-13 15:15:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 12:15:05' and `end` < '2025-02-13 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-02-13 15:15:26] Production.INFO: count ==4715 [2025-02-13 15:15:28] Production.ERROR: pbx CDR StartTime 2025-02-13 12:15:05 - End Time 2025-02-13 15:15:05 [2025-02-13 15:15:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 15:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467263', 'tblTempUsageDetail_20' ) start [2025-02-13 15:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467263', 'tblTempUsageDetail_20' ) end [2025-02-13 15:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467263', 'tblTempVendorCDR_20' ) start [2025-02-13 15:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467263', 'tblTempVendorCDR_20' ) end [2025-02-13 15:15:28] Production.INFO: ProcessCDR(1,14467263,1,1,2) [2025-02-13 15:15:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:15:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:15:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:15:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:15:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467263', 'tblTempUsageDetail_20' ) start [2025-02-13 15:15:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467263', 'tblTempUsageDetail_20' ) end [2025-02-13 15:15:33] Production.ERROR: pbx prc_insertCDR start [2025-02-13 15:15:33] Production.ERROR: pbx prc_insertCDR end [2025-02-13 15:15:33] Production.INFO: ==12501== Releasing lock... [2025-02-13 15:15:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 15:15:33] Production.INFO: 63.25 MB #Memory Used# [2025-02-13 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 12:16:05 [end_date_ymd] => 2025-02-13 15:16:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 12:16:05' and `end` < '2025-02-13 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-02-13 15:16:22] Production.INFO: count ==4695 [2025-02-13 15:16:24] Production.ERROR: pbx CDR StartTime 2025-02-13 12:16:05 - End Time 2025-02-13 15:16:05 [2025-02-13 15:16:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 15:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467268', 'tblTempUsageDetail_20' ) start [2025-02-13 15:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467268', 'tblTempUsageDetail_20' ) end [2025-02-13 15:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467268', 'tblTempVendorCDR_20' ) start [2025-02-13 15:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467268', 'tblTempVendorCDR_20' ) end [2025-02-13 15:16:25] Production.INFO: ProcessCDR(1,14467268,1,1,2) [2025-02-13 15:16:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:16:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:16:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:16:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467268', 'tblTempUsageDetail_20' ) start [2025-02-13 15:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467268', 'tblTempUsageDetail_20' ) end [2025-02-13 15:16:30] Production.ERROR: pbx prc_insertCDR start [2025-02-13 15:16:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 15:16:30] Production.INFO: ==12574== Releasing lock... [2025-02-13 15:16:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 15:16:30] Production.INFO: 63.25 MB #Memory Used# [2025-02-13 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 12:17:05 [end_date_ymd] => 2025-02-13 15:17:05 [RateCDR] => 1 ) [2025-02-13 15: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-02-13 12:17:05' and `end` < '2025-02-13 15: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-02-13 15:17:19] Production.INFO: count ==4687 [2025-02-13 15:17:21] Production.ERROR: pbx CDR StartTime 2025-02-13 12:17:05 - End Time 2025-02-13 15:17:05 [2025-02-13 15:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467273', 'tblTempUsageDetail_20' ) start [2025-02-13 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467273', 'tblTempUsageDetail_20' ) end [2025-02-13 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467273', 'tblTempVendorCDR_20' ) start [2025-02-13 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467273', 'tblTempVendorCDR_20' ) end [2025-02-13 15:17:21] Production.INFO: ProcessCDR(1,14467273,1,1,2) [2025-02-13 15:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467273', 'tblTempUsageDetail_20' ) start [2025-02-13 15:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467273', 'tblTempUsageDetail_20' ) end [2025-02-13 15:17:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 15:17:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 15:17:26] Production.INFO: ==12689== Releasing lock... [2025-02-13 15:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 15:17:26] Production.INFO: 63 MB #Memory Used# [2025-02-13 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 12:18:05 [end_date_ymd] => 2025-02-13 15:18:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 12:18:05' and `end` < '2025-02-13 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-02-13 15:18:24] Production.INFO: count ==4700 [2025-02-13 15:18:26] Production.ERROR: pbx CDR StartTime 2025-02-13 12:18:05 - End Time 2025-02-13 15:18:05 [2025-02-13 15:18:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 15:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467278', 'tblTempUsageDetail_20' ) start [2025-02-13 15:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467278', 'tblTempUsageDetail_20' ) end [2025-02-13 15:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467278', 'tblTempVendorCDR_20' ) start [2025-02-13 15:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467278', 'tblTempVendorCDR_20' ) end [2025-02-13 15:18:26] Production.INFO: ProcessCDR(1,14467278,1,1,2) [2025-02-13 15:18:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:18:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:18:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:18:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:18:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467278', 'tblTempUsageDetail_20' ) start [2025-02-13 15:18:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467278', 'tblTempUsageDetail_20' ) end [2025-02-13 15:18:31] Production.ERROR: pbx prc_insertCDR start [2025-02-13 15:18:31] Production.ERROR: pbx prc_insertCDR end [2025-02-13 15:18:31] Production.INFO: ==12765== Releasing lock... [2025-02-13 15:18:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 15:18:31] Production.INFO: 63.25 MB #Memory Used# [2025-02-13 15:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 12:19:04 [end_date_ymd] => 2025-02-13 15:19:04 [RateCDR] => 1 ) [2025-02-13 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-02-13 12:19:04' and `end` < '2025-02-13 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-02-13 15:19:18] Production.INFO: count ==4694 [2025-02-13 15:19:20] Production.ERROR: pbx CDR StartTime 2025-02-13 12:19:04 - End Time 2025-02-13 15:19:04 [2025-02-13 15:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 15:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467283', 'tblTempUsageDetail_20' ) start [2025-02-13 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467283', 'tblTempUsageDetail_20' ) end [2025-02-13 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467283', 'tblTempVendorCDR_20' ) start [2025-02-13 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467283', 'tblTempVendorCDR_20' ) end [2025-02-13 15:19:21] Production.INFO: ProcessCDR(1,14467283,1,1,2) [2025-02-13 15:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467283', 'tblTempUsageDetail_20' ) start [2025-02-13 15:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467283', 'tblTempUsageDetail_20' ) end [2025-02-13 15:19:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 15:19:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 15:19:25] Production.INFO: ==12845== Releasing lock... [2025-02-13 15:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 15:19:25] Production.INFO: 63 MB #Memory Used# [2025-02-13 15:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 12:20:06 [end_date_ymd] => 2025-02-13 15:20:06 [RateCDR] => 1 ) [2025-02-13 15: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-02-13 12:20:06' and `end` < '2025-02-13 15: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-02-13 15:20:23] Production.INFO: count ==4685 [2025-02-13 15:20:25] Production.ERROR: pbx CDR StartTime 2025-02-13 12:20:06 - End Time 2025-02-13 15:20:06 [2025-02-13 15:20:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 15:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467288', 'tblTempUsageDetail_20' ) start [2025-02-13 15:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467288', 'tblTempUsageDetail_20' ) end [2025-02-13 15:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467288', 'tblTempVendorCDR_20' ) start [2025-02-13 15:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467288', 'tblTempVendorCDR_20' ) end [2025-02-13 15:20:25] Production.INFO: ProcessCDR(1,14467288,1,1,2) [2025-02-13 15:20:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:20:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:20:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:20:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467288', 'tblTempUsageDetail_20' ) start [2025-02-13 15:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467288', 'tblTempUsageDetail_20' ) end [2025-02-13 15:20:30] Production.ERROR: pbx prc_insertCDR start [2025-02-13 15:20:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 15:20:30] Production.INFO: ==12922== Releasing lock... [2025-02-13 15:20:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 15:20:30] Production.INFO: 63 MB #Memory Used# [2025-02-13 15:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 12:21:06 [end_date_ymd] => 2025-02-13 15:21:06 [RateCDR] => 1 ) [2025-02-13 15: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-02-13 12:21:06' and `end` < '2025-02-13 15: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-02-13 15:21:23] Production.INFO: count ==4706 [2025-02-13 15:21:25] Production.ERROR: pbx CDR StartTime 2025-02-13 12:21:06 - End Time 2025-02-13 15:21:06 [2025-02-13 15:21:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 15:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467294', 'tblTempUsageDetail_20' ) start [2025-02-13 15:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467294', 'tblTempUsageDetail_20' ) end [2025-02-13 15:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467294', 'tblTempVendorCDR_20' ) start [2025-02-13 15:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467294', 'tblTempVendorCDR_20' ) end [2025-02-13 15:21:25] Production.INFO: ProcessCDR(1,14467294,1,1,2) [2025-02-13 15:21:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:21:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:21:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:21:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467294', 'tblTempUsageDetail_20' ) start [2025-02-13 15:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467294', 'tblTempUsageDetail_20' ) end [2025-02-13 15:21:30] Production.ERROR: pbx prc_insertCDR start [2025-02-13 15:21:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 15:21:30] Production.INFO: ==13002== Releasing lock... [2025-02-13 15:21:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 15:21:30] Production.INFO: 63.25 MB #Memory Used# [2025-02-13 15:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 12:22:06 [end_date_ymd] => 2025-02-13 15:22:06 [RateCDR] => 1 ) [2025-02-13 15: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-02-13 12:22:06' and `end` < '2025-02-13 15: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-02-13 15:22:25] Production.INFO: count ==4699 [2025-02-13 15:22:26] Production.ERROR: pbx CDR StartTime 2025-02-13 12:22:06 - End Time 2025-02-13 15:22:06 [2025-02-13 15:22:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 15:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467299', 'tblTempUsageDetail_20' ) start [2025-02-13 15:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467299', 'tblTempUsageDetail_20' ) end [2025-02-13 15:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467299', 'tblTempVendorCDR_20' ) start [2025-02-13 15:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467299', 'tblTempVendorCDR_20' ) end [2025-02-13 15:22:27] Production.INFO: ProcessCDR(1,14467299,1,1,2) [2025-02-13 15:22:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:22:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:22:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:22:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:22:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467299', 'tblTempUsageDetail_20' ) start [2025-02-13 15:22:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467299', 'tblTempUsageDetail_20' ) end [2025-02-13 15:22:32] Production.ERROR: pbx prc_insertCDR start [2025-02-13 15:22:32] Production.ERROR: pbx prc_insertCDR end [2025-02-13 15:22:32] Production.INFO: ==13082== Releasing lock... [2025-02-13 15:22:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 15:22:32] Production.INFO: 63.25 MB #Memory Used# [2025-02-13 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 12:23:05 [end_date_ymd] => 2025-02-13 15:23:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 12:23:05' and `end` < '2025-02-13 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-02-13 15:23:23] Production.INFO: count ==4686 [2025-02-13 15:23:25] Production.ERROR: pbx CDR StartTime 2025-02-13 12:23:05 - End Time 2025-02-13 15:23:05 [2025-02-13 15:23:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 15:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467304', 'tblTempUsageDetail_20' ) start [2025-02-13 15:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467304', 'tblTempUsageDetail_20' ) end [2025-02-13 15:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467304', 'tblTempVendorCDR_20' ) start [2025-02-13 15:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467304', 'tblTempVendorCDR_20' ) end [2025-02-13 15:23:26] Production.INFO: ProcessCDR(1,14467304,1,1,2) [2025-02-13 15:23:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:23:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:23:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:23:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:23:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467304', 'tblTempUsageDetail_20' ) start [2025-02-13 15:23:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467304', 'tblTempUsageDetail_20' ) end [2025-02-13 15:23:31] Production.ERROR: pbx prc_insertCDR start [2025-02-13 15:23:31] Production.ERROR: pbx prc_insertCDR end [2025-02-13 15:23:31] Production.INFO: ==13159== Releasing lock... [2025-02-13 15:23:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 15:23:31] Production.INFO: 63 MB #Memory Used# [2025-02-13 15:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 12:24:06 [end_date_ymd] => 2025-02-13 15:24:06 [RateCDR] => 1 ) [2025-02-13 15: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-02-13 12:24:06' and `end` < '2025-02-13 15: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-02-13 15:24:22] Production.INFO: count ==4678 [2025-02-13 15:24:24] Production.ERROR: pbx CDR StartTime 2025-02-13 12:24:06 - End Time 2025-02-13 15:24:06 [2025-02-13 15:24:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 15:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467309', 'tblTempUsageDetail_20' ) start [2025-02-13 15:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467309', 'tblTempUsageDetail_20' ) end [2025-02-13 15:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467309', 'tblTempVendorCDR_20' ) start [2025-02-13 15:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467309', 'tblTempVendorCDR_20' ) end [2025-02-13 15:24:25] Production.INFO: ProcessCDR(1,14467309,1,1,2) [2025-02-13 15:24:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:24:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:24:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:24:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:24:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467309', 'tblTempUsageDetail_20' ) start [2025-02-13 15:24:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467309', 'tblTempUsageDetail_20' ) end [2025-02-13 15:24:30] Production.ERROR: pbx prc_insertCDR start [2025-02-13 15:24:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 15:24:30] Production.INFO: ==13232== Releasing lock... [2025-02-13 15:24:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 15:24:30] Production.INFO: 63 MB #Memory Used# [2025-02-13 15:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 12:25:06 [end_date_ymd] => 2025-02-13 15:25:06 [RateCDR] => 1 ) [2025-02-13 15: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-02-13 12:25:06' and `end` < '2025-02-13 15: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-02-13 15:25:26] Production.INFO: count ==4674 [2025-02-13 15:25:28] Production.ERROR: pbx CDR StartTime 2025-02-13 12:25:06 - End Time 2025-02-13 15:25:06 [2025-02-13 15:25:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 15:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467314', 'tblTempUsageDetail_20' ) start [2025-02-13 15:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467314', 'tblTempUsageDetail_20' ) end [2025-02-13 15:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467314', 'tblTempVendorCDR_20' ) start [2025-02-13 15:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467314', 'tblTempVendorCDR_20' ) end [2025-02-13 15:25:28] Production.INFO: ProcessCDR(1,14467314,1,1,2) [2025-02-13 15:25:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:25:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:25:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467314', 'tblTempUsageDetail_20' ) start [2025-02-13 15:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467314', 'tblTempUsageDetail_20' ) end [2025-02-13 15:25:33] Production.ERROR: pbx prc_insertCDR start [2025-02-13 15:25:33] Production.ERROR: pbx prc_insertCDR end [2025-02-13 15:25:33] Production.INFO: ==13310== Releasing lock... [2025-02-13 15:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 15:25:33] Production.INFO: 63 MB #Memory Used# [2025-02-13 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 12:26:05 [end_date_ymd] => 2025-02-13 15:26:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 12:26:05' and `end` < '2025-02-13 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-02-13 15:26:22] Production.INFO: count ==4655 [2025-02-13 15:26:24] Production.ERROR: pbx CDR StartTime 2025-02-13 12:26:05 - End Time 2025-02-13 15:26:05 [2025-02-13 15:26:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 15:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467319', 'tblTempUsageDetail_20' ) start [2025-02-13 15:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467319', 'tblTempUsageDetail_20' ) end [2025-02-13 15:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467319', 'tblTempVendorCDR_20' ) start [2025-02-13 15:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467319', 'tblTempVendorCDR_20' ) end [2025-02-13 15:26:24] Production.INFO: ProcessCDR(1,14467319,1,1,2) [2025-02-13 15:26:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467319', 'tblTempUsageDetail_20' ) start [2025-02-13 15:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467319', 'tblTempUsageDetail_20' ) end [2025-02-13 15:26:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 15:26:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 15:26:27] Production.INFO: ==13392== Releasing lock... [2025-02-13 15:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 15:26:27] Production.INFO: 62.75 MB #Memory Used# [2025-02-13 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 12:27:05 [end_date_ymd] => 2025-02-13 15:27:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 12:27:05' and `end` < '2025-02-13 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-02-13 15:27:25] Production.INFO: count ==4646 [2025-02-13 15:27:27] Production.ERROR: pbx CDR StartTime 2025-02-13 12:27:05 - End Time 2025-02-13 15:27:05 [2025-02-13 15:27:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 15:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467324', 'tblTempUsageDetail_20' ) start [2025-02-13 15:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467324', 'tblTempUsageDetail_20' ) end [2025-02-13 15:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467324', 'tblTempVendorCDR_20' ) start [2025-02-13 15:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467324', 'tblTempVendorCDR_20' ) end [2025-02-13 15:27:27] Production.INFO: ProcessCDR(1,14467324,1,1,2) [2025-02-13 15:27:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:27:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:27:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:27:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:27:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467324', 'tblTempUsageDetail_20' ) start [2025-02-13 15:27:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467324', 'tblTempUsageDetail_20' ) end [2025-02-13 15:27:31] Production.ERROR: pbx prc_insertCDR start [2025-02-13 15:27:31] Production.ERROR: pbx prc_insertCDR end [2025-02-13 15:27:31] Production.INFO: ==13468== Releasing lock... [2025-02-13 15:27:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 15:27:31] Production.INFO: 62.75 MB #Memory Used# [2025-02-13 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 12:28:05 [end_date_ymd] => 2025-02-13 15:28:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 12:28:05' and `end` < '2025-02-13 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-02-13 15:28:24] Production.INFO: count ==4656 [2025-02-13 15:28:26] Production.ERROR: pbx CDR StartTime 2025-02-13 12:28:05 - End Time 2025-02-13 15:28:05 [2025-02-13 15:28:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 15:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467329', 'tblTempUsageDetail_20' ) start [2025-02-13 15:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467329', 'tblTempUsageDetail_20' ) end [2025-02-13 15:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467329', 'tblTempVendorCDR_20' ) start [2025-02-13 15:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467329', 'tblTempVendorCDR_20' ) end [2025-02-13 15:28:26] Production.INFO: ProcessCDR(1,14467329,1,1,2) [2025-02-13 15:28:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:28:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:28:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:28:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467329', 'tblTempUsageDetail_20' ) start [2025-02-13 15:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467329', 'tblTempUsageDetail_20' ) end [2025-02-13 15:28:30] Production.ERROR: pbx prc_insertCDR start [2025-02-13 15:28:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 15:28:30] Production.INFO: ==13546== Releasing lock... [2025-02-13 15:28:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 15:28:30] Production.INFO: 62.75 MB #Memory Used# [2025-02-13 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 12:29:05 [end_date_ymd] => 2025-02-13 15:29:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 12:29:05' and `end` < '2025-02-13 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-02-13 15:29:23] Production.INFO: count ==4649 [2025-02-13 15:29:25] Production.ERROR: pbx CDR StartTime 2025-02-13 12:29:05 - End Time 2025-02-13 15:29:05 [2025-02-13 15:29:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 15:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467334', 'tblTempUsageDetail_20' ) start [2025-02-13 15:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467334', 'tblTempUsageDetail_20' ) end [2025-02-13 15:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467334', 'tblTempVendorCDR_20' ) start [2025-02-13 15:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467334', 'tblTempVendorCDR_20' ) end [2025-02-13 15:29:25] Production.INFO: ProcessCDR(1,14467334,1,1,2) [2025-02-13 15:29:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:29:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:29:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:29:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:29:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467334', 'tblTempUsageDetail_20' ) start [2025-02-13 15:29:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467334', 'tblTempUsageDetail_20' ) end [2025-02-13 15:29:30] Production.ERROR: pbx prc_insertCDR start [2025-02-13 15:29:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 15:29:30] Production.INFO: ==13625== Releasing lock... [2025-02-13 15:29:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 15:29:30] Production.INFO: 62.75 MB #Memory Used# [2025-02-13 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 12:30:06 [end_date_ymd] => 2025-02-13 15:30:06 [RateCDR] => 1 ) [2025-02-13 15: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-02-13 12:30:06' and `end` < '2025-02-13 15: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-02-13 15:30:34] Production.INFO: count ==4653 [2025-02-13 15:30:36] Production.ERROR: pbx CDR StartTime 2025-02-13 12:30:06 - End Time 2025-02-13 15:30:06 [2025-02-13 15:30:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 15:30:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467340', 'tblTempUsageDetail_20' ) start [2025-02-13 15:30:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467340', 'tblTempUsageDetail_20' ) end [2025-02-13 15:30:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467340', 'tblTempVendorCDR_20' ) start [2025-02-13 15:30:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467340', 'tblTempVendorCDR_20' ) end [2025-02-13 15:30:36] Production.INFO: ProcessCDR(1,14467340,1,1,2) [2025-02-13 15:30:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:30:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:30:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:30:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:30:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467340', 'tblTempUsageDetail_20' ) start [2025-02-13 15:30:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467340', 'tblTempUsageDetail_20' ) end [2025-02-13 15:30:41] Production.ERROR: pbx prc_insertCDR start [2025-02-13 15:30:41] Production.ERROR: pbx prc_insertCDR end [2025-02-13 15:30:41] Production.INFO: ==13705== Releasing lock... [2025-02-13 15:30:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 15:30:41] Production.INFO: 62.75 MB #Memory Used# [2025-02-13 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 12:31:05 [end_date_ymd] => 2025-02-13 15:31:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 12:31:05' and `end` < '2025-02-13 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-02-13 15:31:23] Production.INFO: count ==4677 [2025-02-13 15:31:25] Production.ERROR: pbx CDR StartTime 2025-02-13 12:31:05 - End Time 2025-02-13 15:31:05 [2025-02-13 15:31:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 15:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467345', 'tblTempUsageDetail_20' ) start [2025-02-13 15:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467345', 'tblTempUsageDetail_20' ) end [2025-02-13 15:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467345', 'tblTempVendorCDR_20' ) start [2025-02-13 15:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467345', 'tblTempVendorCDR_20' ) end [2025-02-13 15:31:25] Production.INFO: ProcessCDR(1,14467345,1,1,2) [2025-02-13 15:31:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:31:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:31:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:31:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467345', 'tblTempUsageDetail_20' ) start [2025-02-13 15:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467345', 'tblTempUsageDetail_20' ) end [2025-02-13 15:31:29] Production.ERROR: pbx prc_insertCDR start [2025-02-13 15:31:29] Production.ERROR: pbx prc_insertCDR end [2025-02-13 15:31:30] Production.INFO: ==13789== Releasing lock... [2025-02-13 15:31:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 15:31:30] Production.INFO: 63 MB #Memory Used# [2025-02-13 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 12:32:05 [end_date_ymd] => 2025-02-13 15:32:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 12:32:05' and `end` < '2025-02-13 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-02-13 15:32:27] Production.INFO: count ==4669 [2025-02-13 15:32:29] Production.ERROR: pbx CDR StartTime 2025-02-13 12:32:05 - End Time 2025-02-13 15:32:05 [2025-02-13 15:32:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 15:32:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467350', 'tblTempUsageDetail_20' ) start [2025-02-13 15:32:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467350', 'tblTempUsageDetail_20' ) end [2025-02-13 15:32:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467350', 'tblTempVendorCDR_20' ) start [2025-02-13 15:32:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467350', 'tblTempVendorCDR_20' ) end [2025-02-13 15:32:30] Production.INFO: ProcessCDR(1,14467350,1,1,2) [2025-02-13 15:32:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:32:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:32:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:32:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:32:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467350', 'tblTempUsageDetail_20' ) start [2025-02-13 15:32:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467350', 'tblTempUsageDetail_20' ) end [2025-02-13 15:32:35] Production.ERROR: pbx prc_insertCDR start [2025-02-13 15:32:35] Production.ERROR: pbx prc_insertCDR end [2025-02-13 15:32:35] Production.INFO: ==13861== Releasing lock... [2025-02-13 15:32:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 15:32:35] Production.INFO: 63 MB #Memory Used# [2025-02-13 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 12:33:05 [end_date_ymd] => 2025-02-13 15:33:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 12:33:05' and `end` < '2025-02-13 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-02-13 15:33:27] Production.INFO: count ==4671 [2025-02-13 15:33:29] Production.ERROR: pbx CDR StartTime 2025-02-13 12:33:05 - End Time 2025-02-13 15:33:05 [2025-02-13 15:33:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 15:33:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467355', 'tblTempUsageDetail_20' ) start [2025-02-13 15:33:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467355', 'tblTempUsageDetail_20' ) end [2025-02-13 15:33:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467355', 'tblTempVendorCDR_20' ) start [2025-02-13 15:33:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467355', 'tblTempVendorCDR_20' ) end [2025-02-13 15:33:29] Production.INFO: ProcessCDR(1,14467355,1,1,2) [2025-02-13 15:33:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:33:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:33:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:33:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:33:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467355', 'tblTempUsageDetail_20' ) start [2025-02-13 15:33:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467355', 'tblTempUsageDetail_20' ) end [2025-02-13 15:33:34] Production.ERROR: pbx prc_insertCDR start [2025-02-13 15:33:34] Production.ERROR: pbx prc_insertCDR end [2025-02-13 15:33:34] Production.INFO: ==13978== Releasing lock... [2025-02-13 15:33:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 15:33:34] Production.INFO: 63 MB #Memory Used# [2025-02-13 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 12:34:05 [end_date_ymd] => 2025-02-13 15:34:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 12:34:05' and `end` < '2025-02-13 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-02-13 15:34:22] Production.INFO: count ==4647 [2025-02-13 15:34:24] Production.ERROR: pbx CDR StartTime 2025-02-13 12:34:05 - End Time 2025-02-13 15:34:05 [2025-02-13 15:34:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 15:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467360', 'tblTempUsageDetail_20' ) start [2025-02-13 15:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467360', 'tblTempUsageDetail_20' ) end [2025-02-13 15:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467360', 'tblTempVendorCDR_20' ) start [2025-02-13 15:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467360', 'tblTempVendorCDR_20' ) end [2025-02-13 15:34:24] Production.INFO: ProcessCDR(1,14467360,1,1,2) [2025-02-13 15:34:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:34:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:34:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:34:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467360', 'tblTempUsageDetail_20' ) start [2025-02-13 15:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467360', 'tblTempUsageDetail_20' ) end [2025-02-13 15:34:29] Production.ERROR: pbx prc_insertCDR start [2025-02-13 15:34:29] Production.ERROR: pbx prc_insertCDR end [2025-02-13 15:34:29] Production.INFO: ==14055== Releasing lock... [2025-02-13 15:34:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 15:34:29] Production.INFO: 62.75 MB #Memory Used# [2025-02-13 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 12:35:05 [end_date_ymd] => 2025-02-13 15:35:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 12:35:05' and `end` < '2025-02-13 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-02-13 15:35:19] Production.INFO: count ==4619 [2025-02-13 15:35:21] Production.ERROR: pbx CDR StartTime 2025-02-13 12:35:05 - End Time 2025-02-13 15:35:05 [2025-02-13 15:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467365', 'tblTempUsageDetail_20' ) start [2025-02-13 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467365', 'tblTempUsageDetail_20' ) end [2025-02-13 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467365', 'tblTempVendorCDR_20' ) start [2025-02-13 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467365', 'tblTempVendorCDR_20' ) end [2025-02-13 15:35:21] Production.INFO: ProcessCDR(1,14467365,1,1,2) [2025-02-13 15:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467365', 'tblTempUsageDetail_20' ) start [2025-02-13 15:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467365', 'tblTempUsageDetail_20' ) end [2025-02-13 15:35:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 15:35:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 15:35:26] Production.INFO: ==14126== Releasing lock... [2025-02-13 15:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 15:35:26] Production.INFO: 62.5 MB #Memory Used# [2025-02-13 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 12:36:05 [end_date_ymd] => 2025-02-13 15:36:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 12:36:05' and `end` < '2025-02-13 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-02-13 15:36:20] Production.INFO: count ==4599 [2025-02-13 15:36:22] Production.ERROR: pbx CDR StartTime 2025-02-13 12:36:05 - End Time 2025-02-13 15:36:05 [2025-02-13 15:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 15:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467370', 'tblTempUsageDetail_20' ) start [2025-02-13 15:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467370', 'tblTempUsageDetail_20' ) end [2025-02-13 15:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467370', 'tblTempVendorCDR_20' ) start [2025-02-13 15:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467370', 'tblTempVendorCDR_20' ) end [2025-02-13 15:36:22] Production.INFO: ProcessCDR(1,14467370,1,1,2) [2025-02-13 15:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467370', 'tblTempUsageDetail_20' ) start [2025-02-13 15:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467370', 'tblTempUsageDetail_20' ) end [2025-02-13 15:36:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 15:36:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 15:36:27] Production.INFO: ==14199== Releasing lock... [2025-02-13 15:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 15:36:27] Production.INFO: 62.75 MB #Memory Used# [2025-02-13 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 12:37:05 [end_date_ymd] => 2025-02-13 15:37:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 12:37:05' and `end` < '2025-02-13 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-02-13 15:37:22] Production.INFO: count ==4589 [2025-02-13 15:37:24] Production.ERROR: pbx CDR StartTime 2025-02-13 12:37:05 - End Time 2025-02-13 15:37:05 [2025-02-13 15:37:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 15:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467375', 'tblTempUsageDetail_20' ) start [2025-02-13 15:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467375', 'tblTempUsageDetail_20' ) end [2025-02-13 15:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467375', 'tblTempVendorCDR_20' ) start [2025-02-13 15:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467375', 'tblTempVendorCDR_20' ) end [2025-02-13 15:37:24] Production.INFO: ProcessCDR(1,14467375,1,1,2) [2025-02-13 15:37:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:37:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:37:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:37:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467375', 'tblTempUsageDetail_20' ) start [2025-02-13 15:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467375', 'tblTempUsageDetail_20' ) end [2025-02-13 15:37:29] Production.ERROR: pbx prc_insertCDR start [2025-02-13 15:37:29] Production.ERROR: pbx prc_insertCDR end [2025-02-13 15:37:29] Production.INFO: ==14272== Releasing lock... [2025-02-13 15:37:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 15:37:29] Production.INFO: 62.25 MB #Memory Used# [2025-02-13 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 12:38:05 [end_date_ymd] => 2025-02-13 15:38:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 12:38:05' and `end` < '2025-02-13 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-02-13 15:38:22] Production.INFO: count ==4582 [2025-02-13 15:38:24] Production.ERROR: pbx CDR StartTime 2025-02-13 12:38:05 - End Time 2025-02-13 15:38:05 [2025-02-13 15:38:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 15:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467380', 'tblTempUsageDetail_20' ) start [2025-02-13 15:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467380', 'tblTempUsageDetail_20' ) end [2025-02-13 15:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467380', 'tblTempVendorCDR_20' ) start [2025-02-13 15:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467380', 'tblTempVendorCDR_20' ) end [2025-02-13 15:38:24] Production.INFO: ProcessCDR(1,14467380,1,1,2) [2025-02-13 15:38:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:38:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:38:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:38:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467380', 'tblTempUsageDetail_20' ) start [2025-02-13 15:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467380', 'tblTempUsageDetail_20' ) end [2025-02-13 15:38:29] Production.ERROR: pbx prc_insertCDR start [2025-02-13 15:38:29] Production.ERROR: pbx prc_insertCDR end [2025-02-13 15:38:29] Production.INFO: ==14343== Releasing lock... [2025-02-13 15:38:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 15:38:29] Production.INFO: 62.25 MB #Memory Used# [2025-02-13 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 12:39:05 [end_date_ymd] => 2025-02-13 15:39:05 [RateCDR] => 1 ) [2025-02-13 15: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-02-13 12:39:05' and `end` < '2025-02-13 15: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-02-13 15:39:21] Production.INFO: count ==4582 [2025-02-13 15:39:23] Production.ERROR: pbx CDR StartTime 2025-02-13 12:39:05 - End Time 2025-02-13 15:39:05 [2025-02-13 15:39:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 15:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467385', 'tblTempUsageDetail_20' ) start [2025-02-13 15:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467385', 'tblTempUsageDetail_20' ) end [2025-02-13 15:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467385', 'tblTempVendorCDR_20' ) start [2025-02-13 15:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467385', 'tblTempVendorCDR_20' ) end [2025-02-13 15:39:23] Production.INFO: ProcessCDR(1,14467385,1,1,2) [2025-02-13 15:39:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:39:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467385', 'tblTempUsageDetail_20' ) start [2025-02-13 15:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467385', 'tblTempUsageDetail_20' ) end [2025-02-13 15:39:28] Production.ERROR: pbx prc_insertCDR start [2025-02-13 15:39:28] Production.ERROR: pbx prc_insertCDR end [2025-02-13 15:39:28] Production.INFO: ==14418== Releasing lock... [2025-02-13 15:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 15:39:28] Production.INFO: 62.25 MB #Memory Used# [2025-02-13 15:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 12:40:07 [end_date_ymd] => 2025-02-13 15:40:07 [RateCDR] => 1 ) [2025-02-13 15: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-02-13 12:40:07' and `end` < '2025-02-13 15: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-02-13 15:40:25] Production.INFO: count ==4569 [2025-02-13 15:40:27] Production.ERROR: pbx CDR StartTime 2025-02-13 12:40:07 - End Time 2025-02-13 15:40:07 [2025-02-13 15:40:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 15:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467391', 'tblTempUsageDetail_20' ) start [2025-02-13 15:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467391', 'tblTempUsageDetail_20' ) end [2025-02-13 15:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467391', 'tblTempVendorCDR_20' ) start [2025-02-13 15:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467391', 'tblTempVendorCDR_20' ) end [2025-02-13 15:40:27] Production.INFO: ProcessCDR(1,14467391,1,1,2) [2025-02-13 15:40:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:40:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:40:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:40:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467391', 'tblTempUsageDetail_20' ) start [2025-02-13 15:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467391', 'tblTempUsageDetail_20' ) end [2025-02-13 15:40:31] Production.ERROR: pbx prc_insertCDR start [2025-02-13 15:40:31] Production.ERROR: pbx prc_insertCDR end [2025-02-13 15:40:31] Production.INFO: ==14492== Releasing lock... [2025-02-13 15:40:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 15:40:31] Production.INFO: 62.25 MB #Memory Used# [2025-02-13 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 12:41:05 [end_date_ymd] => 2025-02-13 15:41:05 [RateCDR] => 1 ) [2025-02-13 15: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-02-13 12:41:05' and `end` < '2025-02-13 15: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-02-13 15:41:24] Production.INFO: count ==4553 [2025-02-13 15:41:26] Production.ERROR: pbx CDR StartTime 2025-02-13 12:41:05 - End Time 2025-02-13 15:41:05 [2025-02-13 15:41:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 15:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467396', 'tblTempUsageDetail_20' ) start [2025-02-13 15:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467396', 'tblTempUsageDetail_20' ) end [2025-02-13 15:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467396', 'tblTempVendorCDR_20' ) start [2025-02-13 15:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467396', 'tblTempVendorCDR_20' ) end [2025-02-13 15:41:26] Production.INFO: ProcessCDR(1,14467396,1,1,2) [2025-02-13 15:41:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:41:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:41:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:41:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467396', 'tblTempUsageDetail_20' ) start [2025-02-13 15:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467396', 'tblTempUsageDetail_20' ) end [2025-02-13 15:41:31] Production.ERROR: pbx prc_insertCDR start [2025-02-13 15:41:31] Production.ERROR: pbx prc_insertCDR end [2025-02-13 15:41:31] Production.INFO: ==14567== Releasing lock... [2025-02-13 15:41:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 15:41:31] Production.INFO: 62 MB #Memory Used# [2025-02-13 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 12:42:05 [end_date_ymd] => 2025-02-13 15:42:05 [RateCDR] => 1 ) [2025-02-13 15: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-02-13 12:42:05' and `end` < '2025-02-13 15: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-02-13 15:42:23] Production.INFO: count ==4545 [2025-02-13 15:42:25] Production.ERROR: pbx CDR StartTime 2025-02-13 12:42:05 - End Time 2025-02-13 15:42:05 [2025-02-13 15:42:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 15:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467401', 'tblTempUsageDetail_20' ) start [2025-02-13 15:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467401', 'tblTempUsageDetail_20' ) end [2025-02-13 15:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467401', 'tblTempVendorCDR_20' ) start [2025-02-13 15:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467401', 'tblTempVendorCDR_20' ) end [2025-02-13 15:42:25] Production.INFO: ProcessCDR(1,14467401,1,1,2) [2025-02-13 15:42:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:42:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:42:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:42:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467401', 'tblTempUsageDetail_20' ) start [2025-02-13 15:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467401', 'tblTempUsageDetail_20' ) end [2025-02-13 15:42:29] Production.ERROR: pbx prc_insertCDR start [2025-02-13 15:42:29] Production.ERROR: pbx prc_insertCDR end [2025-02-13 15:42:29] Production.INFO: ==14648== Releasing lock... [2025-02-13 15:42:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 15:42:29] Production.INFO: 62 MB #Memory Used# [2025-02-13 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 12:43:05 [end_date_ymd] => 2025-02-13 15:43:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 12:43:05' and `end` < '2025-02-13 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-02-13 15:43:19] Production.INFO: count ==4551 [2025-02-13 15:43:21] Production.ERROR: pbx CDR StartTime 2025-02-13 12:43:05 - End Time 2025-02-13 15:43:05 [2025-02-13 15:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467406', 'tblTempUsageDetail_20' ) start [2025-02-13 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467406', 'tblTempUsageDetail_20' ) end [2025-02-13 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467406', 'tblTempVendorCDR_20' ) start [2025-02-13 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467406', 'tblTempVendorCDR_20' ) end [2025-02-13 15:43:21] Production.INFO: ProcessCDR(1,14467406,1,1,2) [2025-02-13 15:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467406', 'tblTempUsageDetail_20' ) start [2025-02-13 15:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467406', 'tblTempUsageDetail_20' ) end [2025-02-13 15:43:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 15:43:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 15:43:27] Production.INFO: ==14724== Releasing lock... [2025-02-13 15:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 15:43:27] Production.INFO: 62 MB #Memory Used# [2025-02-13 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 12:44:05 [end_date_ymd] => 2025-02-13 15:44:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 12:44:05' and `end` < '2025-02-13 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-02-13 15:44:21] Production.INFO: count ==4558 [2025-02-13 15:44:23] Production.ERROR: pbx CDR StartTime 2025-02-13 12:44:05 - End Time 2025-02-13 15:44:05 [2025-02-13 15:44:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 15:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467411', 'tblTempUsageDetail_20' ) start [2025-02-13 15:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467411', 'tblTempUsageDetail_20' ) end [2025-02-13 15:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467411', 'tblTempVendorCDR_20' ) start [2025-02-13 15:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467411', 'tblTempVendorCDR_20' ) end [2025-02-13 15:44:23] Production.INFO: ProcessCDR(1,14467411,1,1,2) [2025-02-13 15:44:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:44:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467411', 'tblTempUsageDetail_20' ) start [2025-02-13 15:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467411', 'tblTempUsageDetail_20' ) end [2025-02-13 15:44:28] Production.ERROR: pbx prc_insertCDR start [2025-02-13 15:44:28] Production.ERROR: pbx prc_insertCDR end [2025-02-13 15:44:28] Production.INFO: ==14798== Releasing lock... [2025-02-13 15:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 15:44:28] Production.INFO: 62 MB #Memory Used# [2025-02-13 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 12:45:05 [end_date_ymd] => 2025-02-13 15:45:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 12:45:05' and `end` < '2025-02-13 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-02-13 15:45:25] Production.INFO: count ==4550 [2025-02-13 15:45:27] Production.ERROR: pbx CDR StartTime 2025-02-13 12:45:05 - End Time 2025-02-13 15:45:05 [2025-02-13 15:45:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 15:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467416', 'tblTempUsageDetail_20' ) start [2025-02-13 15:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467416', 'tblTempUsageDetail_20' ) end [2025-02-13 15:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467416', 'tblTempVendorCDR_20' ) start [2025-02-13 15:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467416', 'tblTempVendorCDR_20' ) end [2025-02-13 15:45:27] Production.INFO: ProcessCDR(1,14467416,1,1,2) [2025-02-13 15:45:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:45:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:45:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:45:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:45:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467416', 'tblTempUsageDetail_20' ) start [2025-02-13 15:45:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467416', 'tblTempUsageDetail_20' ) end [2025-02-13 15:45:32] Production.ERROR: pbx prc_insertCDR start [2025-02-13 15:45:32] Production.ERROR: pbx prc_insertCDR end [2025-02-13 15:45:32] Production.INFO: ==14875== Releasing lock... [2025-02-13 15:45:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 15:45:32] Production.INFO: 62 MB #Memory Used# [2025-02-13 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 12:46:05 [end_date_ymd] => 2025-02-13 15:46:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 12:46:05' and `end` < '2025-02-13 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-02-13 15:46:28] Production.INFO: count ==4560 [2025-02-13 15:46:30] Production.ERROR: pbx CDR StartTime 2025-02-13 12:46:05 - End Time 2025-02-13 15:46:05 [2025-02-13 15:46:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 15:46:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467421', 'tblTempUsageDetail_20' ) start [2025-02-13 15:46:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467421', 'tblTempUsageDetail_20' ) end [2025-02-13 15:46:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467421', 'tblTempVendorCDR_20' ) start [2025-02-13 15:46:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467421', 'tblTempVendorCDR_20' ) end [2025-02-13 15:46:30] Production.INFO: ProcessCDR(1,14467421,1,1,2) [2025-02-13 15:46:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:46:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:46:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:46:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:46:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467421', 'tblTempUsageDetail_20' ) start [2025-02-13 15:46:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467421', 'tblTempUsageDetail_20' ) end [2025-02-13 15:46:35] Production.ERROR: pbx prc_insertCDR start [2025-02-13 15:46:35] Production.ERROR: pbx prc_insertCDR end [2025-02-13 15:46:35] Production.INFO: ==14951== Releasing lock... [2025-02-13 15:46:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 15:46:35] Production.INFO: 62 MB #Memory Used# [2025-02-13 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 12:47:05 [end_date_ymd] => 2025-02-13 15:47:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 12:47:05' and `end` < '2025-02-13 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-02-13 15:47:25] Production.INFO: count ==4564 [2025-02-13 15:47:27] Production.ERROR: pbx CDR StartTime 2025-02-13 12:47:05 - End Time 2025-02-13 15:47:05 [2025-02-13 15:47:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 15:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467426', 'tblTempUsageDetail_20' ) start [2025-02-13 15:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467426', 'tblTempUsageDetail_20' ) end [2025-02-13 15:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467426', 'tblTempVendorCDR_20' ) start [2025-02-13 15:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467426', 'tblTempVendorCDR_20' ) end [2025-02-13 15:47:27] Production.INFO: ProcessCDR(1,14467426,1,1,2) [2025-02-13 15:47:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:47:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:47:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:47:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:47:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467426', 'tblTempUsageDetail_20' ) start [2025-02-13 15:47:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467426', 'tblTempUsageDetail_20' ) end [2025-02-13 15:47:32] Production.ERROR: pbx prc_insertCDR start [2025-02-13 15:47:32] Production.ERROR: pbx prc_insertCDR end [2025-02-13 15:47:32] Production.INFO: ==15029== Releasing lock... [2025-02-13 15:47:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 15:47:32] Production.INFO: 62.25 MB #Memory Used# [2025-02-13 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 12:48:05 [end_date_ymd] => 2025-02-13 15:48:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 12:48:05' and `end` < '2025-02-13 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-02-13 15:48:25] Production.INFO: count ==4598 [2025-02-13 15:48:27] Production.ERROR: pbx CDR StartTime 2025-02-13 12:48:05 - End Time 2025-02-13 15:48:05 [2025-02-13 15:48:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 15:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467431', 'tblTempUsageDetail_20' ) start [2025-02-13 15:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467431', 'tblTempUsageDetail_20' ) end [2025-02-13 15:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467431', 'tblTempVendorCDR_20' ) start [2025-02-13 15:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467431', 'tblTempVendorCDR_20' ) end [2025-02-13 15:48:27] Production.INFO: ProcessCDR(1,14467431,1,1,2) [2025-02-13 15:48:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:48:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:48:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:48:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:48:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467431', 'tblTempUsageDetail_20' ) start [2025-02-13 15:48:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467431', 'tblTempUsageDetail_20' ) end [2025-02-13 15:48:32] Production.ERROR: pbx prc_insertCDR start [2025-02-13 15:48:32] Production.ERROR: pbx prc_insertCDR end [2025-02-13 15:48:32] Production.INFO: ==15142== Releasing lock... [2025-02-13 15:48:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 15:48:32] Production.INFO: 62.5 MB #Memory Used# [2025-02-13 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 12:49:05 [end_date_ymd] => 2025-02-13 15:49:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 12:49:05' and `end` < '2025-02-13 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-02-13 15:49:22] Production.INFO: count ==4579 [2025-02-13 15:49:24] Production.ERROR: pbx CDR StartTime 2025-02-13 12:49:05 - End Time 2025-02-13 15:49:05 [2025-02-13 15:49:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 15:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467436', 'tblTempUsageDetail_20' ) start [2025-02-13 15:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467436', 'tblTempUsageDetail_20' ) end [2025-02-13 15:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467436', 'tblTempVendorCDR_20' ) start [2025-02-13 15:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467436', 'tblTempVendorCDR_20' ) end [2025-02-13 15:49:24] Production.INFO: ProcessCDR(1,14467436,1,1,2) [2025-02-13 15:49:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:49:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:49:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:49:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467436', 'tblTempUsageDetail_20' ) start [2025-02-13 15:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467436', 'tblTempUsageDetail_20' ) end [2025-02-13 15:49:29] Production.ERROR: pbx prc_insertCDR start [2025-02-13 15:49:29] Production.ERROR: pbx prc_insertCDR end [2025-02-13 15:49:29] Production.INFO: ==15219== Releasing lock... [2025-02-13 15:49:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 15:49:29] Production.INFO: 62.25 MB #Memory Used# [2025-02-13 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 12:50:06 [end_date_ymd] => 2025-02-13 15:50:06 [RateCDR] => 1 ) [2025-02-13 15: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-02-13 12:50:06' and `end` < '2025-02-13 15: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-02-13 15:50:22] Production.INFO: count ==4581 [2025-02-13 15:50:24] Production.ERROR: pbx CDR StartTime 2025-02-13 12:50:06 - End Time 2025-02-13 15:50:06 [2025-02-13 15:50:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 15:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467441', 'tblTempUsageDetail_20' ) start [2025-02-13 15:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467441', 'tblTempUsageDetail_20' ) end [2025-02-13 15:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467441', 'tblTempVendorCDR_20' ) start [2025-02-13 15:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467441', 'tblTempVendorCDR_20' ) end [2025-02-13 15:50:24] Production.INFO: ProcessCDR(1,14467441,1,1,2) [2025-02-13 15:50:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:50:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467441', 'tblTempUsageDetail_20' ) start [2025-02-13 15:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467441', 'tblTempUsageDetail_20' ) end [2025-02-13 15:50:29] Production.ERROR: pbx prc_insertCDR start [2025-02-13 15:50:29] Production.ERROR: pbx prc_insertCDR end [2025-02-13 15:50:29] Production.INFO: ==15299== Releasing lock... [2025-02-13 15:50:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 15:50:29] Production.INFO: 62.25 MB #Memory Used# [2025-02-13 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 12:51:05 [end_date_ymd] => 2025-02-13 15:51:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 12:51:05' and `end` < '2025-02-13 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-02-13 15:51:21] Production.INFO: count ==4580 [2025-02-13 15:51:23] Production.ERROR: pbx CDR StartTime 2025-02-13 12:51:05 - End Time 2025-02-13 15:51:05 [2025-02-13 15:51:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 15:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467444', 'tblTempUsageDetail_20' ) start [2025-02-13 15:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467444', 'tblTempUsageDetail_20' ) end [2025-02-13 15:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467444', 'tblTempVendorCDR_20' ) start [2025-02-13 15:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467444', 'tblTempVendorCDR_20' ) end [2025-02-13 15:51:23] Production.INFO: ProcessCDR(1,14467444,1,1,2) [2025-02-13 15:51:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467444', 'tblTempUsageDetail_20' ) start [2025-02-13 15:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467444', 'tblTempUsageDetail_20' ) end [2025-02-13 15:51:28] Production.ERROR: pbx prc_insertCDR start [2025-02-13 15:51:28] Production.ERROR: pbx prc_insertCDR end [2025-02-13 15:51:28] Production.INFO: ==15374== Releasing lock... [2025-02-13 15:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 15:51:28] Production.INFO: 62.25 MB #Memory Used# [2025-02-13 15:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 12:52:06 [end_date_ymd] => 2025-02-13 15:52:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 12:52:06' and `end` < '2025-02-13 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-02-13 15:52:20] Production.INFO: count ==4560 [2025-02-13 15:52:22] Production.ERROR: pbx CDR StartTime 2025-02-13 12:52:06 - End Time 2025-02-13 15:52:06 [2025-02-13 15:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467452', 'tblTempUsageDetail_20' ) start [2025-02-13 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467452', 'tblTempUsageDetail_20' ) end [2025-02-13 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467452', 'tblTempVendorCDR_20' ) start [2025-02-13 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467452', 'tblTempVendorCDR_20' ) end [2025-02-13 15:52:22] Production.INFO: ProcessCDR(1,14467452,1,1,2) [2025-02-13 15:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467452', 'tblTempUsageDetail_20' ) start [2025-02-13 15:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467452', 'tblTempUsageDetail_20' ) end [2025-02-13 15:52:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 15:52:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 15:52:27] Production.INFO: ==15451== Releasing lock... [2025-02-13 15:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 15:52:27] Production.INFO: 62 MB #Memory Used# [2025-02-13 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 12:53:05 [end_date_ymd] => 2025-02-13 15:53:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 12:53:05' and `end` < '2025-02-13 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-02-13 15:53:24] Production.INFO: count ==4557 [2025-02-13 15:53:26] Production.ERROR: pbx CDR StartTime 2025-02-13 12:53:05 - End Time 2025-02-13 15:53:05 [2025-02-13 15:53:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 15:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467457', 'tblTempUsageDetail_20' ) start [2025-02-13 15:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467457', 'tblTempUsageDetail_20' ) end [2025-02-13 15:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467457', 'tblTempVendorCDR_20' ) start [2025-02-13 15:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467457', 'tblTempVendorCDR_20' ) end [2025-02-13 15:53:26] Production.INFO: ProcessCDR(1,14467457,1,1,2) [2025-02-13 15:53:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:53:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:53:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:53:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:53:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467457', 'tblTempUsageDetail_20' ) start [2025-02-13 15:53:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467457', 'tblTempUsageDetail_20' ) end [2025-02-13 15:53:31] Production.ERROR: pbx prc_insertCDR start [2025-02-13 15:53:31] Production.ERROR: pbx prc_insertCDR end [2025-02-13 15:53:31] Production.INFO: ==15530== Releasing lock... [2025-02-13 15:53:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 15:53:31] Production.INFO: 62 MB #Memory Used# [2025-02-13 15:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 12:54:06 [end_date_ymd] => 2025-02-13 15:54:06 [RateCDR] => 1 ) [2025-02-13 15: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-02-13 12:54:06' and `end` < '2025-02-13 15: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-02-13 15:54:24] Production.INFO: count ==4554 [2025-02-13 15:54:26] Production.ERROR: pbx CDR StartTime 2025-02-13 12:54:06 - End Time 2025-02-13 15:54:06 [2025-02-13 15:54:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 15:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467462', 'tblTempUsageDetail_20' ) start [2025-02-13 15:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467462', 'tblTempUsageDetail_20' ) end [2025-02-13 15:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467462', 'tblTempVendorCDR_20' ) start [2025-02-13 15:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467462', 'tblTempVendorCDR_20' ) end [2025-02-13 15:54:26] Production.INFO: ProcessCDR(1,14467462,1,1,2) [2025-02-13 15:54:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:54:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:54:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:54:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:54:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467462', 'tblTempUsageDetail_20' ) start [2025-02-13 15:54:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467462', 'tblTempUsageDetail_20' ) end [2025-02-13 15:54:32] Production.ERROR: pbx prc_insertCDR start [2025-02-13 15:54:32] Production.ERROR: pbx prc_insertCDR end [2025-02-13 15:54:32] Production.INFO: ==15604== Releasing lock... [2025-02-13 15:54:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 15:54:32] Production.INFO: 62 MB #Memory Used# [2025-02-13 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 12:55:05 [end_date_ymd] => 2025-02-13 15:55:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 12:55:05' and `end` < '2025-02-13 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-02-13 15:55:33] Production.INFO: count ==4576 [2025-02-13 15:55:35] Production.ERROR: pbx CDR StartTime 2025-02-13 12:55:05 - End Time 2025-02-13 15:55:05 [2025-02-13 15:55:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 15:55:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467467', 'tblTempUsageDetail_20' ) start [2025-02-13 15:55:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467467', 'tblTempUsageDetail_20' ) end [2025-02-13 15:55:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467467', 'tblTempVendorCDR_20' ) start [2025-02-13 15:55:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467467', 'tblTempVendorCDR_20' ) end [2025-02-13 15:55:35] Production.INFO: ProcessCDR(1,14467467,1,1,2) [2025-02-13 15:55:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:55:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:55:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:55:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:55:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467467', 'tblTempUsageDetail_20' ) start [2025-02-13 15:55:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467467', 'tblTempUsageDetail_20' ) end [2025-02-13 15:55:40] Production.ERROR: pbx prc_insertCDR start [2025-02-13 15:55:40] Production.ERROR: pbx prc_insertCDR end [2025-02-13 15:55:41] Production.INFO: ==15680== Releasing lock... [2025-02-13 15:55:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 15:55:41] Production.INFO: 62.25 MB #Memory Used# [2025-02-13 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 12:56:05 [end_date_ymd] => 2025-02-13 15:56:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 12:56:05' and `end` < '2025-02-13 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-02-13 15:56:25] Production.INFO: count ==4558 [2025-02-13 15:56:26] Production.ERROR: pbx CDR StartTime 2025-02-13 12:56:05 - End Time 2025-02-13 15:56:05 [2025-02-13 15:56:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 15:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467472', 'tblTempUsageDetail_20' ) start [2025-02-13 15:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467472', 'tblTempUsageDetail_20' ) end [2025-02-13 15:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467472', 'tblTempVendorCDR_20' ) start [2025-02-13 15:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467472', 'tblTempVendorCDR_20' ) end [2025-02-13 15:56:27] Production.INFO: ProcessCDR(1,14467472,1,1,2) [2025-02-13 15:56:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:56:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:56:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:56:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:56:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467472', 'tblTempUsageDetail_20' ) start [2025-02-13 15:56:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467472', 'tblTempUsageDetail_20' ) end [2025-02-13 15:56:32] Production.ERROR: pbx prc_insertCDR start [2025-02-13 15:56:32] Production.ERROR: pbx prc_insertCDR end [2025-02-13 15:56:32] Production.INFO: ==15762== Releasing lock... [2025-02-13 15:56:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 15:56:32] Production.INFO: 62 MB #Memory Used# [2025-02-13 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 12:57:05 [end_date_ymd] => 2025-02-13 15:57:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 12:57:05' and `end` < '2025-02-13 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-02-13 15:57:28] Production.INFO: count ==4557 [2025-02-13 15:57:30] Production.ERROR: pbx CDR StartTime 2025-02-13 12:57:05 - End Time 2025-02-13 15:57:05 [2025-02-13 15:57:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 15:57:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467477', 'tblTempUsageDetail_20' ) start [2025-02-13 15:57:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467477', 'tblTempUsageDetail_20' ) end [2025-02-13 15:57:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467477', 'tblTempVendorCDR_20' ) start [2025-02-13 15:57:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467477', 'tblTempVendorCDR_20' ) end [2025-02-13 15:57:30] Production.INFO: ProcessCDR(1,14467477,1,1,2) [2025-02-13 15:57:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:57:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:57:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:57:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:57:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467477', 'tblTempUsageDetail_20' ) start [2025-02-13 15:57:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467477', 'tblTempUsageDetail_20' ) end [2025-02-13 15:57:35] Production.ERROR: pbx prc_insertCDR start [2025-02-13 15:57:35] Production.ERROR: pbx prc_insertCDR end [2025-02-13 15:57:36] Production.INFO: ==15845== Releasing lock... [2025-02-13 15:57:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 15:57:36] Production.INFO: 62 MB #Memory Used# [2025-02-13 15:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 12:58:06 [end_date_ymd] => 2025-02-13 15:58:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 12:58:06' and `end` < '2025-02-13 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-02-13 15:58:26] Production.INFO: count ==4561 [2025-02-13 15:58:28] Production.ERROR: pbx CDR StartTime 2025-02-13 12:58:06 - End Time 2025-02-13 15:58:06 [2025-02-13 15:58:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 15:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467482', 'tblTempUsageDetail_20' ) start [2025-02-13 15:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467482', 'tblTempUsageDetail_20' ) end [2025-02-13 15:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467482', 'tblTempVendorCDR_20' ) start [2025-02-13 15:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467482', 'tblTempVendorCDR_20' ) end [2025-02-13 15:58:28] Production.INFO: ProcessCDR(1,14467482,1,1,2) [2025-02-13 15:58:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:58:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:58:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:58:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:58:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467482', 'tblTempUsageDetail_20' ) start [2025-02-13 15:58:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467482', 'tblTempUsageDetail_20' ) end [2025-02-13 15:58:33] Production.ERROR: pbx prc_insertCDR start [2025-02-13 15:58:33] Production.ERROR: pbx prc_insertCDR end [2025-02-13 15:58:33] Production.INFO: ==15923== Releasing lock... [2025-02-13 15:58:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 15:58:33] Production.INFO: 62 MB #Memory Used# [2025-02-13 15:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 12:59:04 [end_date_ymd] => 2025-02-13 15:59:04 [RateCDR] => 1 ) [2025-02-13 15: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-02-13 12:59:04' and `end` < '2025-02-13 15: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-02-13 15:59:18] Production.INFO: count ==4557 [2025-02-13 15:59:20] Production.ERROR: pbx CDR StartTime 2025-02-13 12:59:04 - End Time 2025-02-13 15:59:04 [2025-02-13 15:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 15:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467487', 'tblTempUsageDetail_20' ) start [2025-02-13 15:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467487', 'tblTempUsageDetail_20' ) end [2025-02-13 15:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467487', 'tblTempVendorCDR_20' ) start [2025-02-13 15:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467487', 'tblTempVendorCDR_20' ) end [2025-02-13 15:59:20] Production.INFO: ProcessCDR(1,14467487,1,1,2) [2025-02-13 15:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 15:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 15:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467487', 'tblTempUsageDetail_20' ) start [2025-02-13 15:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467487', 'tblTempUsageDetail_20' ) end [2025-02-13 15:59:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 15:59:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 15:59:26] Production.INFO: ==16000== Releasing lock... [2025-02-13 15:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 15:59:26] Production.INFO: 62 MB #Memory Used# [2025-02-13 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 13:00:06 [end_date_ymd] => 2025-02-13 16:00:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 13:00:06' and `end` < '2025-02-13 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-02-13 16:00:38] Production.INFO: count ==4562 [2025-02-13 16:00:40] Production.ERROR: pbx CDR StartTime 2025-02-13 13:00:06 - End Time 2025-02-13 16:00:06 [2025-02-13 16:00:40] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 16:00:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467493', 'tblTempUsageDetail_20' ) start [2025-02-13 16:00:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467493', 'tblTempUsageDetail_20' ) end [2025-02-13 16:00:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467493', 'tblTempVendorCDR_20' ) start [2025-02-13 16:00:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467493', 'tblTempVendorCDR_20' ) end [2025-02-13 16:00:40] Production.INFO: ProcessCDR(1,14467493,1,1,2) [2025-02-13 16:00:40] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:00:43] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:00:43] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:00:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:00:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467493', 'tblTempUsageDetail_20' ) start [2025-02-13 16:00:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467493', 'tblTempUsageDetail_20' ) end [2025-02-13 16:00:46] Production.ERROR: pbx prc_insertCDR start [2025-02-13 16:00:46] Production.ERROR: pbx prc_insertCDR end [2025-02-13 16:00:46] Production.INFO: ==16090== Releasing lock... [2025-02-13 16:00:46] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 16:00:46] Production.INFO: 62.25 MB #Memory Used# [2025-02-13 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 13:01:05 [end_date_ymd] => 2025-02-13 16:01:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 13:01:05' and `end` < '2025-02-13 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-02-13 16:01:24] Production.INFO: count ==4557 [2025-02-13 16:01:26] Production.ERROR: pbx CDR StartTime 2025-02-13 13:01:05 - End Time 2025-02-13 16:01:05 [2025-02-13 16:01:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 16:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467498', 'tblTempUsageDetail_20' ) start [2025-02-13 16:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467498', 'tblTempUsageDetail_20' ) end [2025-02-13 16:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467498', 'tblTempVendorCDR_20' ) start [2025-02-13 16:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467498', 'tblTempVendorCDR_20' ) end [2025-02-13 16:01:26] Production.INFO: ProcessCDR(1,14467498,1,1,2) [2025-02-13 16:01:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:01:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:01:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:01:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:01:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467498', 'tblTempUsageDetail_20' ) start [2025-02-13 16:01:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467498', 'tblTempUsageDetail_20' ) end [2025-02-13 16:01:31] Production.ERROR: pbx prc_insertCDR start [2025-02-13 16:01:31] Production.ERROR: pbx prc_insertCDR end [2025-02-13 16:01:31] Production.INFO: ==16193== Releasing lock... [2025-02-13 16:01:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 16:01:31] Production.INFO: 62 MB #Memory Used# [2025-02-13 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 13:02:05 [end_date_ymd] => 2025-02-13 16:02:05 [RateCDR] => 1 ) [2025-02-13 16: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-02-13 13:02:05' and `end` < '2025-02-13 16: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-02-13 16:02:19] Production.INFO: count ==4538 [2025-02-13 16:02:21] Production.ERROR: pbx CDR StartTime 2025-02-13 13:02:05 - End Time 2025-02-13 16:02:05 [2025-02-13 16:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467503', 'tblTempUsageDetail_20' ) start [2025-02-13 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467503', 'tblTempUsageDetail_20' ) end [2025-02-13 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467503', 'tblTempVendorCDR_20' ) start [2025-02-13 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467503', 'tblTempVendorCDR_20' ) end [2025-02-13 16:02:21] Production.INFO: ProcessCDR(1,14467503,1,1,2) [2025-02-13 16:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467503', 'tblTempUsageDetail_20' ) start [2025-02-13 16:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467503', 'tblTempUsageDetail_20' ) end [2025-02-13 16:02:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 16:02:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 16:02:26] Production.INFO: ==16274== Releasing lock... [2025-02-13 16:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 16:02:26] Production.INFO: 62 MB #Memory Used# [2025-02-13 16:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 13:03:06 [end_date_ymd] => 2025-02-13 16:03:06 [RateCDR] => 1 ) [2025-02-13 16: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-02-13 13:03:06' and `end` < '2025-02-13 16: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-02-13 16:03:22] Production.INFO: count ==4527 [2025-02-13 16:03:24] Production.ERROR: pbx CDR StartTime 2025-02-13 13:03:06 - End Time 2025-02-13 16:03:06 [2025-02-13 16:03:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 16:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467508', 'tblTempUsageDetail_20' ) start [2025-02-13 16:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467508', 'tblTempUsageDetail_20' ) end [2025-02-13 16:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467508', 'tblTempVendorCDR_20' ) start [2025-02-13 16:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467508', 'tblTempVendorCDR_20' ) end [2025-02-13 16:03:24] Production.INFO: ProcessCDR(1,14467508,1,1,2) [2025-02-13 16:03:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:03:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:03:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:03:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467508', 'tblTempUsageDetail_20' ) start [2025-02-13 16:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467508', 'tblTempUsageDetail_20' ) end [2025-02-13 16:03:29] Production.ERROR: pbx prc_insertCDR start [2025-02-13 16:03:29] Production.ERROR: pbx prc_insertCDR end [2025-02-13 16:03:29] Production.INFO: ==16354== Releasing lock... [2025-02-13 16:03:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 16:03:29] Production.INFO: 61.75 MB #Memory Used# [2025-02-13 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 13:04:05 [end_date_ymd] => 2025-02-13 16:04:05 [RateCDR] => 1 ) [2025-02-13 16: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-02-13 13:04:05' and `end` < '2025-02-13 16: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-02-13 16:04:32] Production.INFO: count ==4532 [2025-02-13 16:04:34] Production.ERROR: pbx CDR StartTime 2025-02-13 13:04:05 - End Time 2025-02-13 16:04:05 [2025-02-13 16:04:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 16:04:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467513', 'tblTempUsageDetail_20' ) start [2025-02-13 16:04:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467513', 'tblTempUsageDetail_20' ) end [2025-02-13 16:04:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467513', 'tblTempVendorCDR_20' ) start [2025-02-13 16:04:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467513', 'tblTempVendorCDR_20' ) end [2025-02-13 16:04:34] Production.INFO: ProcessCDR(1,14467513,1,1,2) [2025-02-13 16:04:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:04:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:04:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:04:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:04:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467513', 'tblTempUsageDetail_20' ) start [2025-02-13 16:04:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467513', 'tblTempUsageDetail_20' ) end [2025-02-13 16:04:40] Production.ERROR: pbx prc_insertCDR start [2025-02-13 16:04:40] Production.ERROR: pbx prc_insertCDR end [2025-02-13 16:04:40] Production.INFO: ==16481== Releasing lock... [2025-02-13 16:04:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 16:04:40] Production.INFO: 62 MB #Memory Used# [2025-02-13 16:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 13:05:06 [end_date_ymd] => 2025-02-13 16:05:06 [RateCDR] => 1 ) [2025-02-13 16: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-02-13 13:05:06' and `end` < '2025-02-13 16: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-02-13 16:05:27] Production.INFO: count ==4528 [2025-02-13 16:05:29] Production.ERROR: pbx CDR StartTime 2025-02-13 13:05:06 - End Time 2025-02-13 16:05:06 [2025-02-13 16:05:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 16:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467518', 'tblTempUsageDetail_20' ) start [2025-02-13 16:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467518', 'tblTempUsageDetail_20' ) end [2025-02-13 16:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467518', 'tblTempVendorCDR_20' ) start [2025-02-13 16:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467518', 'tblTempVendorCDR_20' ) end [2025-02-13 16:05:29] Production.INFO: ProcessCDR(1,14467518,1,1,2) [2025-02-13 16:05:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:05:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:05:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:05:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:05:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467518', 'tblTempUsageDetail_20' ) start [2025-02-13 16:05:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467518', 'tblTempUsageDetail_20' ) end [2025-02-13 16:05:34] Production.ERROR: pbx prc_insertCDR start [2025-02-13 16:05:34] Production.ERROR: pbx prc_insertCDR end [2025-02-13 16:05:34] Production.INFO: ==16562== Releasing lock... [2025-02-13 16:05:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 16:05:34] Production.INFO: 61.75 MB #Memory Used# [2025-02-13 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 13:06:05 [end_date_ymd] => 2025-02-13 16:06:05 [RateCDR] => 1 ) [2025-02-13 16: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-02-13 13:06:05' and `end` < '2025-02-13 16: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-02-13 16:06:20] Production.INFO: count ==4522 [2025-02-13 16:06:22] Production.ERROR: pbx CDR StartTime 2025-02-13 13:06:05 - End Time 2025-02-13 16:06:05 [2025-02-13 16:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467523', 'tblTempUsageDetail_20' ) start [2025-02-13 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467523', 'tblTempUsageDetail_20' ) end [2025-02-13 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467523', 'tblTempVendorCDR_20' ) start [2025-02-13 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467523', 'tblTempVendorCDR_20' ) end [2025-02-13 16:06:22] Production.INFO: ProcessCDR(1,14467523,1,1,2) [2025-02-13 16:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467523', 'tblTempUsageDetail_20' ) start [2025-02-13 16:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467523', 'tblTempUsageDetail_20' ) end [2025-02-13 16:06:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 16:06:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 16:06:27] Production.INFO: ==16646== Releasing lock... [2025-02-13 16:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 16:06:27] Production.INFO: 61.75 MB #Memory Used# [2025-02-13 16:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 13:07:06 [end_date_ymd] => 2025-02-13 16:07:06 [RateCDR] => 1 ) [2025-02-13 16: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-02-13 13:07:06' and `end` < '2025-02-13 16: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-02-13 16:07:20] Production.INFO: count ==4514 [2025-02-13 16:07:22] Production.ERROR: pbx CDR StartTime 2025-02-13 13:07:06 - End Time 2025-02-13 16:07:06 [2025-02-13 16:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467528', 'tblTempUsageDetail_20' ) start [2025-02-13 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467528', 'tblTempUsageDetail_20' ) end [2025-02-13 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467528', 'tblTempVendorCDR_20' ) start [2025-02-13 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467528', 'tblTempVendorCDR_20' ) end [2025-02-13 16:07:22] Production.INFO: ProcessCDR(1,14467528,1,1,2) [2025-02-13 16:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467528', 'tblTempUsageDetail_20' ) start [2025-02-13 16:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467528', 'tblTempUsageDetail_20' ) end [2025-02-13 16:07:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 16:07:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 16:07:27] Production.INFO: ==16726== Releasing lock... [2025-02-13 16:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 16:07:27] Production.INFO: 61.75 MB #Memory Used# [2025-02-13 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 13:08:05 [end_date_ymd] => 2025-02-13 16:08:05 [RateCDR] => 1 ) [2025-02-13 16: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-02-13 13:08:05' and `end` < '2025-02-13 16: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-02-13 16:08:19] Production.INFO: count ==4517 [2025-02-13 16:08:21] Production.ERROR: pbx CDR StartTime 2025-02-13 13:08:05 - End Time 2025-02-13 16:08:05 [2025-02-13 16:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467533', 'tblTempUsageDetail_20' ) start [2025-02-13 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467533', 'tblTempUsageDetail_20' ) end [2025-02-13 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467533', 'tblTempVendorCDR_20' ) start [2025-02-13 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467533', 'tblTempVendorCDR_20' ) end [2025-02-13 16:08:21] Production.INFO: ProcessCDR(1,14467533,1,1,2) [2025-02-13 16:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467533', 'tblTempUsageDetail_20' ) start [2025-02-13 16:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467533', 'tblTempUsageDetail_20' ) end [2025-02-13 16:08:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 16:08:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 16:08:26] Production.INFO: ==16807== Releasing lock... [2025-02-13 16:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 16:08:26] Production.INFO: 61.75 MB #Memory Used# [2025-02-13 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 13:09:05 [end_date_ymd] => 2025-02-13 16:09:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 13:09:05' and `end` < '2025-02-13 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-02-13 16:09:23] Production.INFO: count ==4520 [2025-02-13 16:09:25] Production.ERROR: pbx CDR StartTime 2025-02-13 13:09:05 - End Time 2025-02-13 16:09:05 [2025-02-13 16:09:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 16:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467538', 'tblTempUsageDetail_20' ) start [2025-02-13 16:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467538', 'tblTempUsageDetail_20' ) end [2025-02-13 16:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467538', 'tblTempVendorCDR_20' ) start [2025-02-13 16:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467538', 'tblTempVendorCDR_20' ) end [2025-02-13 16:09:25] Production.INFO: ProcessCDR(1,14467538,1,1,2) [2025-02-13 16:09:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:09:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:09:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:09:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:09:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467538', 'tblTempUsageDetail_20' ) start [2025-02-13 16:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467538', 'tblTempUsageDetail_20' ) end [2025-02-13 16:09:31] Production.ERROR: pbx prc_insertCDR start [2025-02-13 16:09:31] Production.ERROR: pbx prc_insertCDR end [2025-02-13 16:09:31] Production.INFO: ==16892== Releasing lock... [2025-02-13 16:09:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 16:09:31] Production.INFO: 61.75 MB #Memory Used# [2025-02-13 16:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 13:10:05 [end_date_ymd] => 2025-02-13 16:10:05 [RateCDR] => 1 ) [2025-02-13 16: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-02-13 13:10:05' and `end` < '2025-02-13 16: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-02-13 16:10:27] Production.INFO: count ==4539 [2025-02-13 16:10:29] Production.ERROR: pbx CDR StartTime 2025-02-13 13:10:05 - End Time 2025-02-13 16:10:05 [2025-02-13 16:10:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 16:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467544', 'tblTempUsageDetail_20' ) start [2025-02-13 16:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467544', 'tblTempUsageDetail_20' ) end [2025-02-13 16:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467544', 'tblTempVendorCDR_20' ) start [2025-02-13 16:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467544', 'tblTempVendorCDR_20' ) end [2025-02-13 16:10:29] Production.INFO: ProcessCDR(1,14467544,1,1,2) [2025-02-13 16:10:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:10:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:10:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:10:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:10:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467544', 'tblTempUsageDetail_20' ) start [2025-02-13 16:10:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467544', 'tblTempUsageDetail_20' ) end [2025-02-13 16:10:34] Production.ERROR: pbx prc_insertCDR start [2025-02-13 16:10:34] Production.ERROR: pbx prc_insertCDR end [2025-02-13 16:10:34] Production.INFO: ==16976== Releasing lock... [2025-02-13 16:10:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 16:10:34] Production.INFO: 62 MB #Memory Used# [2025-02-13 16:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 13:11:05 [end_date_ymd] => 2025-02-13 16:11:05 [RateCDR] => 1 ) [2025-02-13 16: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-02-13 13:11:05' and `end` < '2025-02-13 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-02-13 16:11:24] Production.INFO: count ==4563 [2025-02-13 16:11:26] Production.ERROR: pbx CDR StartTime 2025-02-13 13:11:05 - End Time 2025-02-13 16:11:05 [2025-02-13 16:11:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 16:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467549', 'tblTempUsageDetail_20' ) start [2025-02-13 16:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467549', 'tblTempUsageDetail_20' ) end [2025-02-13 16:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467549', 'tblTempVendorCDR_20' ) start [2025-02-13 16:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467549', 'tblTempVendorCDR_20' ) end [2025-02-13 16:11:26] Production.INFO: ProcessCDR(1,14467549,1,1,2) [2025-02-13 16:11:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:11:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:11:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:11:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:11:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467549', 'tblTempUsageDetail_20' ) start [2025-02-13 16:11:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467549', 'tblTempUsageDetail_20' ) end [2025-02-13 16:11:32] Production.ERROR: pbx prc_insertCDR start [2025-02-13 16:11:32] Production.ERROR: pbx prc_insertCDR end [2025-02-13 16:11:32] Production.INFO: ==17059== Releasing lock... [2025-02-13 16:11:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 16:11:32] Production.INFO: 62.25 MB #Memory Used# [2025-02-13 16:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 13:12:06 [end_date_ymd] => 2025-02-13 16:12:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 13:12:06' and `end` < '2025-02-13 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-02-13 16:12:20] Production.INFO: count ==4540 [2025-02-13 16:12:21] Production.ERROR: pbx CDR StartTime 2025-02-13 13:12:06 - End Time 2025-02-13 16:12:06 [2025-02-13 16:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467554', 'tblTempUsageDetail_20' ) start [2025-02-13 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467554', 'tblTempUsageDetail_20' ) end [2025-02-13 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467554', 'tblTempVendorCDR_20' ) start [2025-02-13 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467554', 'tblTempVendorCDR_20' ) end [2025-02-13 16:12:22] Production.INFO: ProcessCDR(1,14467554,1,1,2) [2025-02-13 16:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467554', 'tblTempUsageDetail_20' ) start [2025-02-13 16:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467554', 'tblTempUsageDetail_20' ) end [2025-02-13 16:12:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 16:12:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 16:12:27] Production.INFO: ==17141== Releasing lock... [2025-02-13 16:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 16:12:27] Production.INFO: 62 MB #Memory Used# [2025-02-13 16:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 13:13:06 [end_date_ymd] => 2025-02-13 16:13:06 [RateCDR] => 1 ) [2025-02-13 16: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-02-13 13:13:06' and `end` < '2025-02-13 16: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-02-13 16:13:20] Production.INFO: count ==4515 [2025-02-13 16:13:22] Production.ERROR: pbx CDR StartTime 2025-02-13 13:13:06 - End Time 2025-02-13 16:13:06 [2025-02-13 16:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467559', 'tblTempUsageDetail_20' ) start [2025-02-13 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467559', 'tblTempUsageDetail_20' ) end [2025-02-13 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467559', 'tblTempVendorCDR_20' ) start [2025-02-13 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467559', 'tblTempVendorCDR_20' ) end [2025-02-13 16:13:22] Production.INFO: ProcessCDR(1,14467559,1,1,2) [2025-02-13 16:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467559', 'tblTempUsageDetail_20' ) start [2025-02-13 16:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467559', 'tblTempUsageDetail_20' ) end [2025-02-13 16:13:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 16:13:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 16:13:27] Production.INFO: ==17223== Releasing lock... [2025-02-13 16:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 16:13:27] Production.INFO: 61.75 MB #Memory Used# [2025-02-13 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 13:14:05 [end_date_ymd] => 2025-02-13 16:14:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 13:14:05' and `end` < '2025-02-13 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-02-13 16:14:19] Production.INFO: count ==4515 [2025-02-13 16:14:21] Production.ERROR: pbx CDR StartTime 2025-02-13 13:14:05 - End Time 2025-02-13 16:14:05 [2025-02-13 16:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467564', 'tblTempUsageDetail_20' ) start [2025-02-13 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467564', 'tblTempUsageDetail_20' ) end [2025-02-13 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467564', 'tblTempVendorCDR_20' ) start [2025-02-13 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467564', 'tblTempVendorCDR_20' ) end [2025-02-13 16:14:21] Production.INFO: ProcessCDR(1,14467564,1,1,2) [2025-02-13 16:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467564', 'tblTempUsageDetail_20' ) start [2025-02-13 16:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467564', 'tblTempUsageDetail_20' ) end [2025-02-13 16:14:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 16:14:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 16:14:26] Production.INFO: ==17302== Releasing lock... [2025-02-13 16:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 16:14:26] Production.INFO: 61.75 MB #Memory Used# [2025-02-13 16:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 13:15:06 [end_date_ymd] => 2025-02-13 16:15:06 [RateCDR] => 1 ) [2025-02-13 16: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-02-13 13:15:06' and `end` < '2025-02-13 16: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-02-13 16:15:22] Production.INFO: count ==4526 [2025-02-13 16:15:24] Production.ERROR: pbx CDR StartTime 2025-02-13 13:15:06 - End Time 2025-02-13 16:15:06 [2025-02-13 16:15:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 16:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467569', 'tblTempUsageDetail_20' ) start [2025-02-13 16:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467569', 'tblTempUsageDetail_20' ) end [2025-02-13 16:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467569', 'tblTempVendorCDR_20' ) start [2025-02-13 16:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467569', 'tblTempVendorCDR_20' ) end [2025-02-13 16:15:24] Production.INFO: ProcessCDR(1,14467569,1,1,2) [2025-02-13 16:15:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:15:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:15:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:15:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467569', 'tblTempUsageDetail_20' ) start [2025-02-13 16:15:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467569', 'tblTempUsageDetail_20' ) end [2025-02-13 16:15:29] Production.ERROR: pbx prc_insertCDR start [2025-02-13 16:15:29] Production.ERROR: pbx prc_insertCDR end [2025-02-13 16:15:29] Production.INFO: ==17386== Releasing lock... [2025-02-13 16:15:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 16:15:29] Production.INFO: 61.75 MB #Memory Used# [2025-02-13 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 13:16:05 [end_date_ymd] => 2025-02-13 16:16:05 [RateCDR] => 1 ) [2025-02-13 16: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-02-13 13:16:05' and `end` < '2025-02-13 16: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-02-13 16:16:20] Production.INFO: count ==4515 [2025-02-13 16:16:22] Production.ERROR: pbx CDR StartTime 2025-02-13 13:16:05 - End Time 2025-02-13 16:16:05 [2025-02-13 16:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467574', 'tblTempUsageDetail_20' ) start [2025-02-13 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467574', 'tblTempUsageDetail_20' ) end [2025-02-13 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467574', 'tblTempVendorCDR_20' ) start [2025-02-13 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467574', 'tblTempVendorCDR_20' ) end [2025-02-13 16:16:22] Production.INFO: ProcessCDR(1,14467574,1,1,2) [2025-02-13 16:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467574', 'tblTempUsageDetail_20' ) start [2025-02-13 16:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467574', 'tblTempUsageDetail_20' ) end [2025-02-13 16:16:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 16:16:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 16:16:27] Production.INFO: ==17466== Releasing lock... [2025-02-13 16:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 16:16:27] Production.INFO: 61.75 MB #Memory Used# [2025-02-13 16:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 13:17:06 [end_date_ymd] => 2025-02-13 16:17:06 [RateCDR] => 1 ) [2025-02-13 16: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-02-13 13:17:06' and `end` < '2025-02-13 16: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-02-13 16:17:23] Production.INFO: count ==4508 [2025-02-13 16:17:25] Production.ERROR: pbx CDR StartTime 2025-02-13 13:17:06 - End Time 2025-02-13 16:17:06 [2025-02-13 16:17:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 16:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467579', 'tblTempUsageDetail_20' ) start [2025-02-13 16:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467579', 'tblTempUsageDetail_20' ) end [2025-02-13 16:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467579', 'tblTempVendorCDR_20' ) start [2025-02-13 16:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467579', 'tblTempVendorCDR_20' ) end [2025-02-13 16:17:25] Production.INFO: ProcessCDR(1,14467579,1,1,2) [2025-02-13 16:17:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:17:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:17:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:17:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:17:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467579', 'tblTempUsageDetail_20' ) start [2025-02-13 16:17:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467579', 'tblTempUsageDetail_20' ) end [2025-02-13 16:17:30] Production.ERROR: pbx prc_insertCDR start [2025-02-13 16:17:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 16:17:30] Production.INFO: ==17550== Releasing lock... [2025-02-13 16:17:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 16:17:30] Production.INFO: 61.75 MB #Memory Used# [2025-02-13 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 13:18:05 [end_date_ymd] => 2025-02-13 16:18:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 13:18:05' and `end` < '2025-02-13 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-02-13 16:18:27] Production.INFO: count ==4488 [2025-02-13 16:18:29] Production.ERROR: pbx CDR StartTime 2025-02-13 13:18:05 - End Time 2025-02-13 16:18:05 [2025-02-13 16:18:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 16:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467584', 'tblTempUsageDetail_20' ) start [2025-02-13 16:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467584', 'tblTempUsageDetail_20' ) end [2025-02-13 16:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467584', 'tblTempVendorCDR_20' ) start [2025-02-13 16:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467584', 'tblTempVendorCDR_20' ) end [2025-02-13 16:18:29] Production.INFO: ProcessCDR(1,14467584,1,1,2) [2025-02-13 16:18:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:18:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:18:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:18:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:18:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467584', 'tblTempUsageDetail_20' ) start [2025-02-13 16:18:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467584', 'tblTempUsageDetail_20' ) end [2025-02-13 16:18:33] Production.ERROR: pbx prc_insertCDR start [2025-02-13 16:18:33] Production.ERROR: pbx prc_insertCDR end [2025-02-13 16:18:33] Production.INFO: ==17636== Releasing lock... [2025-02-13 16:18:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 16:18:33] Production.INFO: 61.5 MB #Memory Used# [2025-02-13 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 13:19:05 [end_date_ymd] => 2025-02-13 16:19:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 13:19:05' and `end` < '2025-02-13 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-02-13 16:19:23] Production.INFO: count ==4485 [2025-02-13 16:19:24] Production.ERROR: pbx CDR StartTime 2025-02-13 13:19:05 - End Time 2025-02-13 16:19:05 [2025-02-13 16:19:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 16:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467589', 'tblTempUsageDetail_20' ) start [2025-02-13 16:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467589', 'tblTempUsageDetail_20' ) end [2025-02-13 16:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467589', 'tblTempVendorCDR_20' ) start [2025-02-13 16:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467589', 'tblTempVendorCDR_20' ) end [2025-02-13 16:19:25] Production.INFO: ProcessCDR(1,14467589,1,1,2) [2025-02-13 16:19:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:19:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:19:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:19:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467589', 'tblTempUsageDetail_20' ) start [2025-02-13 16:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467589', 'tblTempUsageDetail_20' ) end [2025-02-13 16:19:30] Production.ERROR: pbx prc_insertCDR start [2025-02-13 16:19:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 16:19:30] Production.INFO: ==17754== Releasing lock... [2025-02-13 16:19:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 16:19:30] Production.INFO: 61.5 MB #Memory Used# [2025-02-13 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 13:20:06 [end_date_ymd] => 2025-02-13 16:20:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 13:20:06' and `end` < '2025-02-13 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-02-13 16:20:22] Production.INFO: count ==4467 [2025-02-13 16:20:24] Production.ERROR: pbx CDR StartTime 2025-02-13 13:20:06 - End Time 2025-02-13 16:20:06 [2025-02-13 16:20:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 16:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467595', 'tblTempUsageDetail_20' ) start [2025-02-13 16:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467595', 'tblTempUsageDetail_20' ) end [2025-02-13 16:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467595', 'tblTempVendorCDR_20' ) start [2025-02-13 16:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467595', 'tblTempVendorCDR_20' ) end [2025-02-13 16:20:24] Production.INFO: ProcessCDR(1,14467595,1,1,2) [2025-02-13 16:20:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:20:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:20:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:20:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467595', 'tblTempUsageDetail_20' ) start [2025-02-13 16:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467595', 'tblTempUsageDetail_20' ) end [2025-02-13 16:20:30] Production.ERROR: pbx prc_insertCDR start [2025-02-13 16:20:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 16:20:30] Production.INFO: ==17841== Releasing lock... [2025-02-13 16:20:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 16:20:30] Production.INFO: 61.5 MB #Memory Used# [2025-02-13 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 13:21:05 [end_date_ymd] => 2025-02-13 16:21:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 13:21:05' and `end` < '2025-02-13 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-02-13 16:21:21] Production.INFO: count ==4479 [2025-02-13 16:21:23] Production.ERROR: pbx CDR StartTime 2025-02-13 13:21:05 - End Time 2025-02-13 16:21:05 [2025-02-13 16:21:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 16:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467600', 'tblTempUsageDetail_20' ) start [2025-02-13 16:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467600', 'tblTempUsageDetail_20' ) end [2025-02-13 16:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467600', 'tblTempVendorCDR_20' ) start [2025-02-13 16:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467600', 'tblTempVendorCDR_20' ) end [2025-02-13 16:21:24] Production.INFO: ProcessCDR(1,14467600,1,1,2) [2025-02-13 16:21:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:21:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:21:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:21:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467600', 'tblTempUsageDetail_20' ) start [2025-02-13 16:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467600', 'tblTempUsageDetail_20' ) end [2025-02-13 16:21:29] Production.ERROR: pbx prc_insertCDR start [2025-02-13 16:21:29] Production.ERROR: pbx prc_insertCDR end [2025-02-13 16:21:29] Production.INFO: ==17923== Releasing lock... [2025-02-13 16:21:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 16:21:29] Production.INFO: 61.5 MB #Memory Used# [2025-02-13 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 13:22:05 [end_date_ymd] => 2025-02-13 16:22:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 13:22:05' and `end` < '2025-02-13 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-02-13 16:22:24] Production.INFO: count ==4474 [2025-02-13 16:22:26] Production.ERROR: pbx CDR StartTime 2025-02-13 13:22:05 - End Time 2025-02-13 16:22:05 [2025-02-13 16:22:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 16:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467605', 'tblTempUsageDetail_20' ) start [2025-02-13 16:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467605', 'tblTempUsageDetail_20' ) end [2025-02-13 16:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467605', 'tblTempVendorCDR_20' ) start [2025-02-13 16:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467605', 'tblTempVendorCDR_20' ) end [2025-02-13 16:22:26] Production.INFO: ProcessCDR(1,14467605,1,1,2) [2025-02-13 16:22:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:22:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:22:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:22:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:22:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467605', 'tblTempUsageDetail_20' ) start [2025-02-13 16:22:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467605', 'tblTempUsageDetail_20' ) end [2025-02-13 16:22:31] Production.ERROR: pbx prc_insertCDR start [2025-02-13 16:22:31] Production.ERROR: pbx prc_insertCDR end [2025-02-13 16:22:31] Production.INFO: ==18005== Releasing lock... [2025-02-13 16:22:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 16:22:31] Production.INFO: 61.5 MB #Memory Used# [2025-02-13 16:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 13:23:06 [end_date_ymd] => 2025-02-13 16:23:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 13:23:06' and `end` < '2025-02-13 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-02-13 16:23:24] Production.INFO: count ==4459 [2025-02-13 16:23:26] Production.ERROR: pbx CDR StartTime 2025-02-13 13:23:06 - End Time 2025-02-13 16:23:06 [2025-02-13 16:23:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 16:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467610', 'tblTempUsageDetail_20' ) start [2025-02-13 16:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467610', 'tblTempUsageDetail_20' ) end [2025-02-13 16:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467610', 'tblTempVendorCDR_20' ) start [2025-02-13 16:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467610', 'tblTempVendorCDR_20' ) end [2025-02-13 16:23:26] Production.INFO: ProcessCDR(1,14467610,1,1,2) [2025-02-13 16:23:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:23:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:23:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:23:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:23:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467610', 'tblTempUsageDetail_20' ) start [2025-02-13 16:23:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467610', 'tblTempUsageDetail_20' ) end [2025-02-13 16:23:31] Production.ERROR: pbx prc_insertCDR start [2025-02-13 16:23:32] Production.ERROR: pbx prc_insertCDR end [2025-02-13 16:23:32] Production.INFO: ==18086== Releasing lock... [2025-02-13 16:23:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 16:23:32] Production.INFO: 61.25 MB #Memory Used# [2025-02-13 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 13:24:05 [end_date_ymd] => 2025-02-13 16:24:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 13:24:05' and `end` < '2025-02-13 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-02-13 16:24:29] Production.INFO: count ==4459 [2025-02-13 16:24:31] Production.ERROR: pbx CDR StartTime 2025-02-13 13:24:05 - End Time 2025-02-13 16:24:05 [2025-02-13 16:24:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 16:24:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467615', 'tblTempUsageDetail_20' ) start [2025-02-13 16:24:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467615', 'tblTempUsageDetail_20' ) end [2025-02-13 16:24:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467615', 'tblTempVendorCDR_20' ) start [2025-02-13 16:24:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467615', 'tblTempVendorCDR_20' ) end [2025-02-13 16:24:31] Production.INFO: ProcessCDR(1,14467615,1,1,2) [2025-02-13 16:24:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:24:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:24:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:24:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:24:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467615', 'tblTempUsageDetail_20' ) start [2025-02-13 16:24:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467615', 'tblTempUsageDetail_20' ) end [2025-02-13 16:24:36] Production.ERROR: pbx prc_insertCDR start [2025-02-13 16:24:36] Production.ERROR: pbx prc_insertCDR end [2025-02-13 16:24:36] Production.INFO: ==18162== Releasing lock... [2025-02-13 16:24:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 16:24:36] Production.INFO: 61.25 MB #Memory Used# [2025-02-13 16:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 13:25:06 [end_date_ymd] => 2025-02-13 16:25:06 [RateCDR] => 1 ) [2025-02-13 16:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 13:25:06' and `end` < '2025-02-13 16:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-13 16:25:26] Production.INFO: count ==4454 [2025-02-13 16:25:27] Production.ERROR: pbx CDR StartTime 2025-02-13 13:25:06 - End Time 2025-02-13 16:25:06 [2025-02-13 16:25:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 16:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467620', 'tblTempUsageDetail_20' ) start [2025-02-13 16:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467620', 'tblTempUsageDetail_20' ) end [2025-02-13 16:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467620', 'tblTempVendorCDR_20' ) start [2025-02-13 16:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467620', 'tblTempVendorCDR_20' ) end [2025-02-13 16:25:28] Production.INFO: ProcessCDR(1,14467620,1,1,2) [2025-02-13 16:25:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:25:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:25:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467620', 'tblTempUsageDetail_20' ) start [2025-02-13 16:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467620', 'tblTempUsageDetail_20' ) end [2025-02-13 16:25:33] Production.ERROR: pbx prc_insertCDR start [2025-02-13 16:25:33] Production.ERROR: pbx prc_insertCDR end [2025-02-13 16:25:33] Production.INFO: ==18238== Releasing lock... [2025-02-13 16:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 16:25:33] Production.INFO: 61.25 MB #Memory Used# [2025-02-13 16:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 13:26:06 [end_date_ymd] => 2025-02-13 16:26:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 13:26:06' and `end` < '2025-02-13 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-02-13 16:26:25] Production.INFO: count ==4464 [2025-02-13 16:26:27] Production.ERROR: pbx CDR StartTime 2025-02-13 13:26:06 - End Time 2025-02-13 16:26:06 [2025-02-13 16:26:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 16:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467625', 'tblTempUsageDetail_20' ) start [2025-02-13 16:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467625', 'tblTempUsageDetail_20' ) end [2025-02-13 16:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467625', 'tblTempVendorCDR_20' ) start [2025-02-13 16:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467625', 'tblTempVendorCDR_20' ) end [2025-02-13 16:26:27] Production.INFO: ProcessCDR(1,14467625,1,1,2) [2025-02-13 16:26:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:26:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:26:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:26:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:26:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467625', 'tblTempUsageDetail_20' ) start [2025-02-13 16:26:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467625', 'tblTempUsageDetail_20' ) end [2025-02-13 16:26:32] Production.ERROR: pbx prc_insertCDR start [2025-02-13 16:26:32] Production.ERROR: pbx prc_insertCDR end [2025-02-13 16:26:32] Production.INFO: ==18314== Releasing lock... [2025-02-13 16:26:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 16:26:32] Production.INFO: 61.5 MB #Memory Used# [2025-02-13 16:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 13:27:06 [end_date_ymd] => 2025-02-13 16:27:06 [RateCDR] => 1 ) [2025-02-13 16: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-02-13 13:27:06' and `end` < '2025-02-13 16: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-02-13 16:27:20] Production.INFO: count ==4464 [2025-02-13 16:27:22] Production.ERROR: pbx CDR StartTime 2025-02-13 13:27:06 - End Time 2025-02-13 16:27:06 [2025-02-13 16:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467630', 'tblTempUsageDetail_20' ) start [2025-02-13 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467630', 'tblTempUsageDetail_20' ) end [2025-02-13 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467630', 'tblTempVendorCDR_20' ) start [2025-02-13 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467630', 'tblTempVendorCDR_20' ) end [2025-02-13 16:27:22] Production.INFO: ProcessCDR(1,14467630,1,1,2) [2025-02-13 16:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467630', 'tblTempUsageDetail_20' ) start [2025-02-13 16:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467630', 'tblTempUsageDetail_20' ) end [2025-02-13 16:27:28] Production.ERROR: pbx prc_insertCDR start [2025-02-13 16:27:28] Production.ERROR: pbx prc_insertCDR end [2025-02-13 16:27:28] Production.INFO: ==18393== Releasing lock... [2025-02-13 16:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 16:27:28] Production.INFO: 61.5 MB #Memory Used# [2025-02-13 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 13:28:05 [end_date_ymd] => 2025-02-13 16:28:05 [RateCDR] => 1 ) [2025-02-13 16: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-02-13 13:28:05' and `end` < '2025-02-13 16: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-02-13 16:28:22] Production.INFO: count ==4467 [2025-02-13 16:28:24] Production.ERROR: pbx CDR StartTime 2025-02-13 13:28:05 - End Time 2025-02-13 16:28:05 [2025-02-13 16:28:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 16:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467635', 'tblTempUsageDetail_20' ) start [2025-02-13 16:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467635', 'tblTempUsageDetail_20' ) end [2025-02-13 16:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467635', 'tblTempVendorCDR_20' ) start [2025-02-13 16:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467635', 'tblTempVendorCDR_20' ) end [2025-02-13 16:28:25] Production.INFO: ProcessCDR(1,14467635,1,1,2) [2025-02-13 16:28:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:28:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:28:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:28:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467635', 'tblTempUsageDetail_20' ) start [2025-02-13 16:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467635', 'tblTempUsageDetail_20' ) end [2025-02-13 16:28:30] Production.ERROR: pbx prc_insertCDR start [2025-02-13 16:28:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 16:28:30] Production.INFO: ==18472== Releasing lock... [2025-02-13 16:28:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 16:28:30] Production.INFO: 61.5 MB #Memory Used# [2025-02-13 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 13:29:05 [end_date_ymd] => 2025-02-13 16:29:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 13:29:05' and `end` < '2025-02-13 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-02-13 16:29:25] Production.INFO: count ==4465 [2025-02-13 16:29:27] Production.ERROR: pbx CDR StartTime 2025-02-13 13:29:05 - End Time 2025-02-13 16:29:05 [2025-02-13 16:29:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 16:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467640', 'tblTempUsageDetail_20' ) start [2025-02-13 16:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467640', 'tblTempUsageDetail_20' ) end [2025-02-13 16:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467640', 'tblTempVendorCDR_20' ) start [2025-02-13 16:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467640', 'tblTempVendorCDR_20' ) end [2025-02-13 16:29:27] Production.INFO: ProcessCDR(1,14467640,1,1,2) [2025-02-13 16:29:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:29:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:29:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:29:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:29:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467640', 'tblTempUsageDetail_20' ) start [2025-02-13 16:29:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467640', 'tblTempUsageDetail_20' ) end [2025-02-13 16:29:32] Production.ERROR: pbx prc_insertCDR start [2025-02-13 16:29:32] Production.ERROR: pbx prc_insertCDR end [2025-02-13 16:29:32] Production.INFO: ==18547== Releasing lock... [2025-02-13 16:29:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 16:29:32] Production.INFO: 61.5 MB #Memory Used# [2025-02-13 16:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 13:30:07 [end_date_ymd] => 2025-02-13 16:30:07 [RateCDR] => 1 ) [2025-02-13 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-02-13 13:30:07' and `end` < '2025-02-13 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-02-13 16:30:34] Production.INFO: count ==4480 [2025-02-13 16:30:36] Production.ERROR: pbx CDR StartTime 2025-02-13 13:30:07 - End Time 2025-02-13 16:30:07 [2025-02-13 16:30:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 16:30:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467646', 'tblTempUsageDetail_20' ) start [2025-02-13 16:30:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467646', 'tblTempUsageDetail_20' ) end [2025-02-13 16:30:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467646', 'tblTempVendorCDR_20' ) start [2025-02-13 16:30:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467646', 'tblTempVendorCDR_20' ) end [2025-02-13 16:30:36] Production.INFO: ProcessCDR(1,14467646,1,1,2) [2025-02-13 16:30:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:30:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:30:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:30:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:30:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467646', 'tblTempUsageDetail_20' ) start [2025-02-13 16:30:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467646', 'tblTempUsageDetail_20' ) end [2025-02-13 16:30:42] Production.ERROR: pbx prc_insertCDR start [2025-02-13 16:30:42] Production.ERROR: pbx prc_insertCDR end [2025-02-13 16:30:42] Production.INFO: ==18624== Releasing lock... [2025-02-13 16:30:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 16:30:42] Production.INFO: 61.5 MB #Memory Used# [2025-02-13 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 13:31:05 [end_date_ymd] => 2025-02-13 16:31:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 13:31:05' and `end` < '2025-02-13 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-02-13 16:31:33] Production.INFO: count ==4496 [2025-02-13 16:31:35] Production.ERROR: pbx CDR StartTime 2025-02-13 13:31:05 - End Time 2025-02-13 16:31:05 [2025-02-13 16:31:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 16:31:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467651', 'tblTempUsageDetail_20' ) start [2025-02-13 16:31:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467651', 'tblTempUsageDetail_20' ) end [2025-02-13 16:31:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467651', 'tblTempVendorCDR_20' ) start [2025-02-13 16:31:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467651', 'tblTempVendorCDR_20' ) end [2025-02-13 16:31:35] Production.INFO: ProcessCDR(1,14467651,1,1,2) [2025-02-13 16:31:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:31:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:31:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:31:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:31:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467651', 'tblTempUsageDetail_20' ) start [2025-02-13 16:31:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467651', 'tblTempUsageDetail_20' ) end [2025-02-13 16:31:41] Production.ERROR: pbx prc_insertCDR start [2025-02-13 16:31:41] Production.ERROR: pbx prc_insertCDR end [2025-02-13 16:31:41] Production.INFO: ==18702== Releasing lock... [2025-02-13 16:31:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 16:31:41] Production.INFO: 61.75 MB #Memory Used# [2025-02-13 16:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 13:32:06 [end_date_ymd] => 2025-02-13 16:32:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 13:32:06' and `end` < '2025-02-13 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-02-13 16:32:27] Production.INFO: count ==4493 [2025-02-13 16:32:29] Production.ERROR: pbx CDR StartTime 2025-02-13 13:32:06 - End Time 2025-02-13 16:32:06 [2025-02-13 16:32:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 16:32:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467656', 'tblTempUsageDetail_20' ) start [2025-02-13 16:32:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467656', 'tblTempUsageDetail_20' ) end [2025-02-13 16:32:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467656', 'tblTempVendorCDR_20' ) start [2025-02-13 16:32:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467656', 'tblTempVendorCDR_20' ) end [2025-02-13 16:32:29] Production.INFO: ProcessCDR(1,14467656,1,1,2) [2025-02-13 16:32:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:32:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:32:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:32:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:32:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467656', 'tblTempUsageDetail_20' ) start [2025-02-13 16:32:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467656', 'tblTempUsageDetail_20' ) end [2025-02-13 16:32:34] Production.ERROR: pbx prc_insertCDR start [2025-02-13 16:32:34] Production.ERROR: pbx prc_insertCDR end [2025-02-13 16:32:34] Production.INFO: ==18777== Releasing lock... [2025-02-13 16:32:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 16:32:34] Production.INFO: 61.5 MB #Memory Used# [2025-02-13 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 13:33:05 [end_date_ymd] => 2025-02-13 16:33:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 13:33:05' and `end` < '2025-02-13 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-02-13 16:33:27] Production.INFO: count ==4479 [2025-02-13 16:33:29] Production.ERROR: pbx CDR StartTime 2025-02-13 13:33:05 - End Time 2025-02-13 16:33:05 [2025-02-13 16:33:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 16:33:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467661', 'tblTempUsageDetail_20' ) start [2025-02-13 16:33:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467661', 'tblTempUsageDetail_20' ) end [2025-02-13 16:33:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467661', 'tblTempVendorCDR_20' ) start [2025-02-13 16:33:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467661', 'tblTempVendorCDR_20' ) end [2025-02-13 16:33:29] Production.INFO: ProcessCDR(1,14467661,1,1,2) [2025-02-13 16:33:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:33:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:33:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:33:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:33:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467661', 'tblTempUsageDetail_20' ) start [2025-02-13 16:33:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467661', 'tblTempUsageDetail_20' ) end [2025-02-13 16:33:35] Production.ERROR: pbx prc_insertCDR start [2025-02-13 16:33:35] Production.ERROR: pbx prc_insertCDR end [2025-02-13 16:33:35] Production.INFO: ==18852== Releasing lock... [2025-02-13 16:33:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 16:33:35] Production.INFO: 61.5 MB #Memory Used# [2025-02-13 16:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 13:34:06 [end_date_ymd] => 2025-02-13 16:34:06 [RateCDR] => 1 ) [2025-02-13 16: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-02-13 13:34:06' and `end` < '2025-02-13 16: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-02-13 16:34:22] Production.INFO: count ==4468 [2025-02-13 16:34:24] Production.ERROR: pbx CDR StartTime 2025-02-13 13:34:06 - End Time 2025-02-13 16:34:06 [2025-02-13 16:34:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 16:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467666', 'tblTempUsageDetail_20' ) start [2025-02-13 16:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467666', 'tblTempUsageDetail_20' ) end [2025-02-13 16:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467666', 'tblTempVendorCDR_20' ) start [2025-02-13 16:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467666', 'tblTempVendorCDR_20' ) end [2025-02-13 16:34:24] Production.INFO: ProcessCDR(1,14467666,1,1,2) [2025-02-13 16:34:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467666', 'tblTempUsageDetail_20' ) start [2025-02-13 16:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467666', 'tblTempUsageDetail_20' ) end [2025-02-13 16:34:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 16:34:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 16:34:27] Production.INFO: ==18929== Releasing lock... [2025-02-13 16:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 16:34:27] Production.INFO: 61.5 MB #Memory Used# [2025-02-13 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 13:35:05 [end_date_ymd] => 2025-02-13 16:35:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 13:35:05' and `end` < '2025-02-13 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-02-13 16:35:20] Production.INFO: count ==4460 [2025-02-13 16:35:22] Production.ERROR: pbx CDR StartTime 2025-02-13 13:35:05 - End Time 2025-02-13 16:35:05 [2025-02-13 16:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467671', 'tblTempUsageDetail_20' ) start [2025-02-13 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467671', 'tblTempUsageDetail_20' ) end [2025-02-13 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467671', 'tblTempVendorCDR_20' ) start [2025-02-13 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467671', 'tblTempVendorCDR_20' ) end [2025-02-13 16:35:22] Production.INFO: ProcessCDR(1,14467671,1,1,2) [2025-02-13 16:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467671', 'tblTempUsageDetail_20' ) start [2025-02-13 16:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467671', 'tblTempUsageDetail_20' ) end [2025-02-13 16:35:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 16:35:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 16:35:27] Production.INFO: ==19058== Releasing lock... [2025-02-13 16:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 16:35:27] Production.INFO: 61.25 MB #Memory Used# [2025-02-13 16:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 13:36:06 [end_date_ymd] => 2025-02-13 16:36:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 13:36:06' and `end` < '2025-02-13 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-02-13 16:36:23] Production.INFO: count ==4436 [2025-02-13 16:36:25] Production.ERROR: pbx CDR StartTime 2025-02-13 13:36:06 - End Time 2025-02-13 16:36:06 [2025-02-13 16:36:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 16:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467676', 'tblTempUsageDetail_20' ) start [2025-02-13 16:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467676', 'tblTempUsageDetail_20' ) end [2025-02-13 16:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467676', 'tblTempVendorCDR_20' ) start [2025-02-13 16:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467676', 'tblTempVendorCDR_20' ) end [2025-02-13 16:36:25] Production.INFO: ProcessCDR(1,14467676,1,1,2) [2025-02-13 16:36:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:36:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:36:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:36:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:36:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467676', 'tblTempUsageDetail_20' ) start [2025-02-13 16:36:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467676', 'tblTempUsageDetail_20' ) end [2025-02-13 16:36:30] Production.ERROR: pbx prc_insertCDR start [2025-02-13 16:36:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 16:36:30] Production.INFO: ==19233== Releasing lock... [2025-02-13 16:36:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 16:36:30] Production.INFO: 61.5 MB #Memory Used# [2025-02-13 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 13:37:05 [end_date_ymd] => 2025-02-13 16:37:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 13:37:05' and `end` < '2025-02-13 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-02-13 16:37:24] Production.INFO: count ==4433 [2025-02-13 16:37:25] Production.ERROR: pbx CDR StartTime 2025-02-13 13:37:05 - End Time 2025-02-13 16:37:05 [2025-02-13 16:37:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 16:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467681', 'tblTempUsageDetail_20' ) start [2025-02-13 16:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467681', 'tblTempUsageDetail_20' ) end [2025-02-13 16:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467681', 'tblTempVendorCDR_20' ) start [2025-02-13 16:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467681', 'tblTempVendorCDR_20' ) end [2025-02-13 16:37:25] Production.INFO: ProcessCDR(1,14467681,1,1,2) [2025-02-13 16:37:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:37:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:37:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:37:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:37:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467681', 'tblTempUsageDetail_20' ) start [2025-02-13 16:37:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467681', 'tblTempUsageDetail_20' ) end [2025-02-13 16:37:31] Production.ERROR: pbx prc_insertCDR start [2025-02-13 16:37:31] Production.ERROR: pbx prc_insertCDR end [2025-02-13 16:37:31] Production.INFO: ==19306== Releasing lock... [2025-02-13 16:37:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 16:37:31] Production.INFO: 61.25 MB #Memory Used# [2025-02-13 16:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 13:38:06 [end_date_ymd] => 2025-02-13 16:38:06 [RateCDR] => 1 ) [2025-02-13 16: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-02-13 13:38:06' and `end` < '2025-02-13 16: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-02-13 16:38:21] Production.INFO: count ==4416 [2025-02-13 16:38:23] Production.ERROR: pbx CDR StartTime 2025-02-13 13:38:06 - End Time 2025-02-13 16:38:06 [2025-02-13 16:38:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 16:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467686', 'tblTempUsageDetail_20' ) start [2025-02-13 16:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467686', 'tblTempUsageDetail_20' ) end [2025-02-13 16:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467686', 'tblTempVendorCDR_20' ) start [2025-02-13 16:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467686', 'tblTempVendorCDR_20' ) end [2025-02-13 16:38:23] Production.INFO: ProcessCDR(1,14467686,1,1,2) [2025-02-13 16:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:38:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:38:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:38:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467686', 'tblTempUsageDetail_20' ) start [2025-02-13 16:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467686', 'tblTempUsageDetail_20' ) end [2025-02-13 16:38:28] Production.ERROR: pbx prc_insertCDR start [2025-02-13 16:38:28] Production.ERROR: pbx prc_insertCDR end [2025-02-13 16:38:28] Production.INFO: ==19378== Releasing lock... [2025-02-13 16:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 16:38:28] Production.INFO: 61 MB #Memory Used# [2025-02-13 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 13:39:05 [end_date_ymd] => 2025-02-13 16:39:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 13:39:05' and `end` < '2025-02-13 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-02-13 16:39:19] Production.INFO: count ==4404 [2025-02-13 16:39:21] Production.ERROR: pbx CDR StartTime 2025-02-13 13:39:05 - End Time 2025-02-13 16:39:05 [2025-02-13 16:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467691', 'tblTempUsageDetail_20' ) start [2025-02-13 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467691', 'tblTempUsageDetail_20' ) end [2025-02-13 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467691', 'tblTempVendorCDR_20' ) start [2025-02-13 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467691', 'tblTempVendorCDR_20' ) end [2025-02-13 16:39:21] Production.INFO: ProcessCDR(1,14467691,1,1,2) [2025-02-13 16:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467691', 'tblTempUsageDetail_20' ) start [2025-02-13 16:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467691', 'tblTempUsageDetail_20' ) end [2025-02-13 16:39:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 16:39:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 16:39:26] Production.INFO: ==19450== Releasing lock... [2025-02-13 16:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 16:39:26] Production.INFO: 61 MB #Memory Used# [2025-02-13 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 13:40:06 [end_date_ymd] => 2025-02-13 16:40:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 13:40:06' and `end` < '2025-02-13 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-02-13 16:40:26] Production.INFO: count ==4392 [2025-02-13 16:40:28] Production.ERROR: pbx CDR StartTime 2025-02-13 13:40:06 - End Time 2025-02-13 16:40:06 [2025-02-13 16:40:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 16:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467697', 'tblTempUsageDetail_20' ) start [2025-02-13 16:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467697', 'tblTempUsageDetail_20' ) end [2025-02-13 16:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467697', 'tblTempVendorCDR_20' ) start [2025-02-13 16:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467697', 'tblTempVendorCDR_20' ) end [2025-02-13 16:40:28] Production.INFO: ProcessCDR(1,14467697,1,1,2) [2025-02-13 16:40:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:40:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:40:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:40:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:40:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467697', 'tblTempUsageDetail_20' ) start [2025-02-13 16:40:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467697', 'tblTempUsageDetail_20' ) end [2025-02-13 16:40:34] Production.ERROR: pbx prc_insertCDR start [2025-02-13 16:40:34] Production.ERROR: pbx prc_insertCDR end [2025-02-13 16:40:34] Production.INFO: ==19530== Releasing lock... [2025-02-13 16:40:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 16:40:34] Production.INFO: 60.75 MB #Memory Used# [2025-02-13 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 13:41:05 [end_date_ymd] => 2025-02-13 16:41:05 [RateCDR] => 1 ) [2025-02-13 16: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-02-13 13:41:05' and `end` < '2025-02-13 16: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-02-13 16:41:22] Production.INFO: count ==4392 [2025-02-13 16:41:23] Production.ERROR: pbx CDR StartTime 2025-02-13 13:41:05 - End Time 2025-02-13 16:41:05 [2025-02-13 16:41:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 16:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467702', 'tblTempUsageDetail_20' ) start [2025-02-13 16:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467702', 'tblTempUsageDetail_20' ) end [2025-02-13 16:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467702', 'tblTempVendorCDR_20' ) start [2025-02-13 16:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467702', 'tblTempVendorCDR_20' ) end [2025-02-13 16:41:24] Production.INFO: ProcessCDR(1,14467702,1,1,2) [2025-02-13 16:41:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:41:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:41:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:41:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467702', 'tblTempUsageDetail_20' ) start [2025-02-13 16:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467702', 'tblTempUsageDetail_20' ) end [2025-02-13 16:41:29] Production.ERROR: pbx prc_insertCDR start [2025-02-13 16:41:29] Production.ERROR: pbx prc_insertCDR end [2025-02-13 16:41:29] Production.INFO: ==19620== Releasing lock... [2025-02-13 16:41:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 16:41:29] Production.INFO: 60.75 MB #Memory Used# [2025-02-13 16:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 13:42:06 [end_date_ymd] => 2025-02-13 16:42:06 [RateCDR] => 1 ) [2025-02-13 16: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-02-13 13:42:06' and `end` < '2025-02-13 16: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-02-13 16:42:28] Production.INFO: count ==4378 [2025-02-13 16:42:30] Production.ERROR: pbx CDR StartTime 2025-02-13 13:42:06 - End Time 2025-02-13 16:42:06 [2025-02-13 16:42:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 16:42:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467707', 'tblTempUsageDetail_20' ) start [2025-02-13 16:42:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467707', 'tblTempUsageDetail_20' ) end [2025-02-13 16:42:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467707', 'tblTempVendorCDR_20' ) start [2025-02-13 16:42:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467707', 'tblTempVendorCDR_20' ) end [2025-02-13 16:42:30] Production.INFO: ProcessCDR(1,14467707,1,1,2) [2025-02-13 16:42:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:42:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:42:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:42:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:42:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467707', 'tblTempUsageDetail_20' ) start [2025-02-13 16:42:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467707', 'tblTempUsageDetail_20' ) end [2025-02-13 16:42:35] Production.ERROR: pbx prc_insertCDR start [2025-02-13 16:42:35] Production.ERROR: pbx prc_insertCDR end [2025-02-13 16:42:35] Production.INFO: ==19726== Releasing lock... [2025-02-13 16:42:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 16:42:35] Production.INFO: 60.75 MB #Memory Used# [2025-02-13 16:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 13:43:06 [end_date_ymd] => 2025-02-13 16:43:06 [RateCDR] => 1 ) [2025-02-13 16: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-02-13 13:43:06' and `end` < '2025-02-13 16: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-02-13 16:43:24] Production.INFO: count ==4378 [2025-02-13 16:43:26] Production.ERROR: pbx CDR StartTime 2025-02-13 13:43:06 - End Time 2025-02-13 16:43:06 [2025-02-13 16:43:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 16:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467712', 'tblTempUsageDetail_20' ) start [2025-02-13 16:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467712', 'tblTempUsageDetail_20' ) end [2025-02-13 16:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467712', 'tblTempVendorCDR_20' ) start [2025-02-13 16:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467712', 'tblTempVendorCDR_20' ) end [2025-02-13 16:43:26] Production.INFO: ProcessCDR(1,14467712,1,1,2) [2025-02-13 16:43:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:43:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:43:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:43:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:43:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467712', 'tblTempUsageDetail_20' ) start [2025-02-13 16:43:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467712', 'tblTempUsageDetail_20' ) end [2025-02-13 16:43:32] Production.ERROR: pbx prc_insertCDR start [2025-02-13 16:43:32] Production.ERROR: pbx prc_insertCDR end [2025-02-13 16:43:32] Production.INFO: ==19828== Releasing lock... [2025-02-13 16:43:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 16:43:32] Production.INFO: 60.75 MB #Memory Used# [2025-02-13 16:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 13:44:06 [end_date_ymd] => 2025-02-13 16:44:06 [RateCDR] => 1 ) [2025-02-13 16: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-02-13 13:44:06' and `end` < '2025-02-13 16: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-02-13 16:44:20] Production.INFO: count ==4367 [2025-02-13 16:44:22] Production.ERROR: pbx CDR StartTime 2025-02-13 13:44:06 - End Time 2025-02-13 16:44:06 [2025-02-13 16:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467717', 'tblTempUsageDetail_20' ) start [2025-02-13 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467717', 'tblTempUsageDetail_20' ) end [2025-02-13 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467717', 'tblTempVendorCDR_20' ) start [2025-02-13 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467717', 'tblTempVendorCDR_20' ) end [2025-02-13 16:44:22] Production.INFO: ProcessCDR(1,14467717,1,1,2) [2025-02-13 16:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467717', 'tblTempUsageDetail_20' ) start [2025-02-13 16:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467717', 'tblTempUsageDetail_20' ) end [2025-02-13 16:44:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 16:44:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 16:44:27] Production.INFO: ==19907== Releasing lock... [2025-02-13 16:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 16:44:27] Production.INFO: 60.75 MB #Memory Used# [2025-02-13 16:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 13:45:06 [end_date_ymd] => 2025-02-13 16:45:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 13:45:06' and `end` < '2025-02-13 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-02-13 16:45:22] Production.INFO: count ==4367 [2025-02-13 16:45:23] Production.ERROR: pbx CDR StartTime 2025-02-13 13:45:06 - End Time 2025-02-13 16:45:06 [2025-02-13 16:45:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 16:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467722', 'tblTempUsageDetail_20' ) start [2025-02-13 16:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467722', 'tblTempUsageDetail_20' ) end [2025-02-13 16:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467722', 'tblTempVendorCDR_20' ) start [2025-02-13 16:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467722', 'tblTempVendorCDR_20' ) end [2025-02-13 16:45:24] Production.INFO: ProcessCDR(1,14467722,1,1,2) [2025-02-13 16:45:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:45:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:45:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:45:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:45:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467722', 'tblTempUsageDetail_20' ) start [2025-02-13 16:45:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467722', 'tblTempUsageDetail_20' ) end [2025-02-13 16:45:29] Production.ERROR: pbx prc_insertCDR start [2025-02-13 16:45:29] Production.ERROR: pbx prc_insertCDR end [2025-02-13 16:45:29] Production.INFO: ==19979== Releasing lock... [2025-02-13 16:45:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 16:45:29] Production.INFO: 60.75 MB #Memory Used# [2025-02-13 16:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 13:46:06 [end_date_ymd] => 2025-02-13 16:46:06 [RateCDR] => 1 ) [2025-02-13 16: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-02-13 13:46:06' and `end` < '2025-02-13 16: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-02-13 16:46:27] Production.INFO: count ==4355 [2025-02-13 16:46:28] Production.ERROR: pbx CDR StartTime 2025-02-13 13:46:06 - End Time 2025-02-13 16:46:06 [2025-02-13 16:46:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 16:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467727', 'tblTempUsageDetail_20' ) start [2025-02-13 16:46:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467727', 'tblTempUsageDetail_20' ) end [2025-02-13 16:46:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467727', 'tblTempVendorCDR_20' ) start [2025-02-13 16:46:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467727', 'tblTempVendorCDR_20' ) end [2025-02-13 16:46:29] Production.INFO: ProcessCDR(1,14467727,1,1,2) [2025-02-13 16:46:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:46:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:46:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:46:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:46:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467727', 'tblTempUsageDetail_20' ) start [2025-02-13 16:46:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467727', 'tblTempUsageDetail_20' ) end [2025-02-13 16:46:34] Production.ERROR: pbx prc_insertCDR start [2025-02-13 16:46:34] Production.ERROR: pbx prc_insertCDR end [2025-02-13 16:46:34] Production.INFO: ==20052== Releasing lock... [2025-02-13 16:46:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 16:46:34] Production.INFO: 60.5 MB #Memory Used# [2025-02-13 16:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 13:47:06 [end_date_ymd] => 2025-02-13 16:47:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 13:47:06' and `end` < '2025-02-13 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-02-13 16:47:25] Production.INFO: count ==4330 [2025-02-13 16:47:27] Production.ERROR: pbx CDR StartTime 2025-02-13 13:47:06 - End Time 2025-02-13 16:47:06 [2025-02-13 16:47:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 16:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467732', 'tblTempUsageDetail_20' ) start [2025-02-13 16:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467732', 'tblTempUsageDetail_20' ) end [2025-02-13 16:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467732', 'tblTempVendorCDR_20' ) start [2025-02-13 16:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467732', 'tblTempVendorCDR_20' ) end [2025-02-13 16:47:27] Production.INFO: ProcessCDR(1,14467732,1,1,2) [2025-02-13 16:47:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:47:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:47:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:47:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:47:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467732', 'tblTempUsageDetail_20' ) start [2025-02-13 16:47:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467732', 'tblTempUsageDetail_20' ) end [2025-02-13 16:47:33] Production.ERROR: pbx prc_insertCDR start [2025-02-13 16:47:33] Production.ERROR: pbx prc_insertCDR end [2025-02-13 16:47:33] Production.INFO: ==20124== Releasing lock... [2025-02-13 16:47:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 16:47:33] Production.INFO: 60.5 MB #Memory Used# [2025-02-13 16:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 13:48:06 [end_date_ymd] => 2025-02-13 16:48:06 [RateCDR] => 1 ) [2025-02-13 16: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-02-13 13:48:06' and `end` < '2025-02-13 16: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-02-13 16:48:28] Production.INFO: count ==4311 [2025-02-13 16:48:30] Production.ERROR: pbx CDR StartTime 2025-02-13 13:48:06 - End Time 2025-02-13 16:48:06 [2025-02-13 16:48:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 16:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467737', 'tblTempUsageDetail_20' ) start [2025-02-13 16:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467737', 'tblTempUsageDetail_20' ) end [2025-02-13 16:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467737', 'tblTempVendorCDR_20' ) start [2025-02-13 16:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467737', 'tblTempVendorCDR_20' ) end [2025-02-13 16:48:30] Production.INFO: ProcessCDR(1,14467737,1,1,2) [2025-02-13 16:48:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:48:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:48:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:48:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:48:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467737', 'tblTempUsageDetail_20' ) start [2025-02-13 16:48:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467737', 'tblTempUsageDetail_20' ) end [2025-02-13 16:48:36] Production.ERROR: pbx prc_insertCDR start [2025-02-13 16:48:36] Production.ERROR: pbx prc_insertCDR end [2025-02-13 16:48:36] Production.INFO: ==20197== Releasing lock... [2025-02-13 16:48:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 16:48:36] Production.INFO: 60.25 MB #Memory Used# [2025-02-13 16:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 13:49:06 [end_date_ymd] => 2025-02-13 16:49:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 13:49:06' and `end` < '2025-02-13 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-02-13 16:49:27] Production.INFO: count ==4306 [2025-02-13 16:49:29] Production.ERROR: pbx CDR StartTime 2025-02-13 13:49:06 - End Time 2025-02-13 16:49:06 [2025-02-13 16:49:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 16:49:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467742', 'tblTempUsageDetail_20' ) start [2025-02-13 16:49:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467742', 'tblTempUsageDetail_20' ) end [2025-02-13 16:49:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467742', 'tblTempVendorCDR_20' ) start [2025-02-13 16:49:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467742', 'tblTempVendorCDR_20' ) end [2025-02-13 16:49:29] Production.INFO: ProcessCDR(1,14467742,1,1,2) [2025-02-13 16:49:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:49:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:49:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:49:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:49:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467742', 'tblTempUsageDetail_20' ) start [2025-02-13 16:49:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467742', 'tblTempUsageDetail_20' ) end [2025-02-13 16:49:34] Production.ERROR: pbx prc_insertCDR start [2025-02-13 16:49:34] Production.ERROR: pbx prc_insertCDR end [2025-02-13 16:49:34] Production.INFO: ==20274== Releasing lock... [2025-02-13 16:49:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 16:49:34] Production.INFO: 60.25 MB #Memory Used# [2025-02-13 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 13:50:06 [end_date_ymd] => 2025-02-13 16:50:06 [RateCDR] => 1 ) [2025-02-13 16: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-02-13 13:50:06' and `end` < '2025-02-13 16: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-02-13 16:50:26] Production.INFO: count ==4296 [2025-02-13 16:50:28] Production.ERROR: pbx CDR StartTime 2025-02-13 13:50:06 - End Time 2025-02-13 16:50:06 [2025-02-13 16:50:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 16:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467748', 'tblTempUsageDetail_20' ) start [2025-02-13 16:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467748', 'tblTempUsageDetail_20' ) end [2025-02-13 16:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467748', 'tblTempVendorCDR_20' ) start [2025-02-13 16:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467748', 'tblTempVendorCDR_20' ) end [2025-02-13 16:50:28] Production.INFO: ProcessCDR(1,14467748,1,1,2) [2025-02-13 16:50:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:50:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:50:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:50:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:50:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467748', 'tblTempUsageDetail_20' ) start [2025-02-13 16:50:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467748', 'tblTempUsageDetail_20' ) end [2025-02-13 16:50:33] Production.ERROR: pbx prc_insertCDR start [2025-02-13 16:50:33] Production.ERROR: pbx prc_insertCDR end [2025-02-13 16:50:33] Production.INFO: ==20385== Releasing lock... [2025-02-13 16:50:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 16:50:33] Production.INFO: 60.25 MB #Memory Used# [2025-02-13 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 13:51:05 [end_date_ymd] => 2025-02-13 16:51:05 [RateCDR] => 1 ) [2025-02-13 16: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-02-13 13:51:05' and `end` < '2025-02-13 16: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-02-13 16:51:26] Production.INFO: count ==4357 [2025-02-13 16:51:28] Production.ERROR: pbx CDR StartTime 2025-02-13 13:51:05 - End Time 2025-02-13 16:51:05 [2025-02-13 16:51:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 16:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467753', 'tblTempUsageDetail_20' ) start [2025-02-13 16:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467753', 'tblTempUsageDetail_20' ) end [2025-02-13 16:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467753', 'tblTempVendorCDR_20' ) start [2025-02-13 16:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467753', 'tblTempVendorCDR_20' ) end [2025-02-13 16:51:28] Production.INFO: ProcessCDR(1,14467753,1,1,2) [2025-02-13 16:51:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:51:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:51:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:51:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:51:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467753', 'tblTempUsageDetail_20' ) start [2025-02-13 16:51:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467753', 'tblTempUsageDetail_20' ) end [2025-02-13 16:51:33] Production.ERROR: pbx prc_insertCDR start [2025-02-13 16:51:34] Production.ERROR: pbx prc_insertCDR end [2025-02-13 16:51:34] Production.INFO: ==20458== Releasing lock... [2025-02-13 16:51:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 16:51:34] Production.INFO: 60.5 MB #Memory Used# [2025-02-13 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 13:52:05 [end_date_ymd] => 2025-02-13 16:52:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 13:52:05' and `end` < '2025-02-13 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-02-13 16:52:23] Production.INFO: count ==4356 [2025-02-13 16:52:25] Production.ERROR: pbx CDR StartTime 2025-02-13 13:52:05 - End Time 2025-02-13 16:52:05 [2025-02-13 16:52:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 16:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467758', 'tblTempUsageDetail_20' ) start [2025-02-13 16:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467758', 'tblTempUsageDetail_20' ) end [2025-02-13 16:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467758', 'tblTempVendorCDR_20' ) start [2025-02-13 16:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467758', 'tblTempVendorCDR_20' ) end [2025-02-13 16:52:25] Production.INFO: ProcessCDR(1,14467758,1,1,2) [2025-02-13 16:52:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:52:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:52:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:52:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:52:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467758', 'tblTempUsageDetail_20' ) start [2025-02-13 16:52:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467758', 'tblTempUsageDetail_20' ) end [2025-02-13 16:52:31] Production.ERROR: pbx prc_insertCDR start [2025-02-13 16:52:31] Production.ERROR: pbx prc_insertCDR end [2025-02-13 16:52:31] Production.INFO: ==20532== Releasing lock... [2025-02-13 16:52:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 16:52:31] Production.INFO: 60.5 MB #Memory Used# [2025-02-13 16:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 13:53:06 [end_date_ymd] => 2025-02-13 16:53:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 13:53:06' and `end` < '2025-02-13 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-02-13 16:53:22] Production.INFO: count ==4364 [2025-02-13 16:53:23] Production.ERROR: pbx CDR StartTime 2025-02-13 13:53:06 - End Time 2025-02-13 16:53:06 [2025-02-13 16:53:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 16:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467763', 'tblTempUsageDetail_20' ) start [2025-02-13 16:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467763', 'tblTempUsageDetail_20' ) end [2025-02-13 16:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467763', 'tblTempVendorCDR_20' ) start [2025-02-13 16:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467763', 'tblTempVendorCDR_20' ) end [2025-02-13 16:53:24] Production.INFO: ProcessCDR(1,14467763,1,1,2) [2025-02-13 16:53:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:53:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:53:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:53:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467763', 'tblTempUsageDetail_20' ) start [2025-02-13 16:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467763', 'tblTempUsageDetail_20' ) end [2025-02-13 16:53:29] Production.ERROR: pbx prc_insertCDR start [2025-02-13 16:53:29] Production.ERROR: pbx prc_insertCDR end [2025-02-13 16:53:29] Production.INFO: ==20605== Releasing lock... [2025-02-13 16:53:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 16:53:29] Production.INFO: 60.75 MB #Memory Used# [2025-02-13 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 13:54:05 [end_date_ymd] => 2025-02-13 16:54:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 13:54:05' and `end` < '2025-02-13 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-02-13 16:54:25] Production.INFO: count ==4366 [2025-02-13 16:54:26] Production.ERROR: pbx CDR StartTime 2025-02-13 13:54:05 - End Time 2025-02-13 16:54:05 [2025-02-13 16:54:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 16:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467768', 'tblTempUsageDetail_20' ) start [2025-02-13 16:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467768', 'tblTempUsageDetail_20' ) end [2025-02-13 16:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467768', 'tblTempVendorCDR_20' ) start [2025-02-13 16:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467768', 'tblTempVendorCDR_20' ) end [2025-02-13 16:54:27] Production.INFO: ProcessCDR(1,14467768,1,1,2) [2025-02-13 16:54:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:54:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:54:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:54:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:54:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467768', 'tblTempUsageDetail_20' ) start [2025-02-13 16:54:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467768', 'tblTempUsageDetail_20' ) end [2025-02-13 16:54:32] Production.ERROR: pbx prc_insertCDR start [2025-02-13 16:54:32] Production.ERROR: pbx prc_insertCDR end [2025-02-13 16:54:32] Production.INFO: ==20679== Releasing lock... [2025-02-13 16:54:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 16:54:32] Production.INFO: 60.75 MB #Memory Used# [2025-02-13 16:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 13:55:06 [end_date_ymd] => 2025-02-13 16:55:06 [RateCDR] => 1 ) [2025-02-13 16: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-02-13 13:55:06' and `end` < '2025-02-13 16: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-02-13 16:55:29] Production.INFO: count ==4375 [2025-02-13 16:55:31] Production.ERROR: pbx CDR StartTime 2025-02-13 13:55:06 - End Time 2025-02-13 16:55:06 [2025-02-13 16:55:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 16:55:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467773', 'tblTempUsageDetail_20' ) start [2025-02-13 16:55:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467773', 'tblTempUsageDetail_20' ) end [2025-02-13 16:55:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467773', 'tblTempVendorCDR_20' ) start [2025-02-13 16:55:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467773', 'tblTempVendorCDR_20' ) end [2025-02-13 16:55:31] Production.INFO: ProcessCDR(1,14467773,1,1,2) [2025-02-13 16:55:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:55:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:55:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:55:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:55:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467773', 'tblTempUsageDetail_20' ) start [2025-02-13 16:55:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467773', 'tblTempUsageDetail_20' ) end [2025-02-13 16:55:37] Production.ERROR: pbx prc_insertCDR start [2025-02-13 16:55:37] Production.ERROR: pbx prc_insertCDR end [2025-02-13 16:55:37] Production.INFO: ==20754== Releasing lock... [2025-02-13 16:55:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 16:55:37] Production.INFO: 60.75 MB #Memory Used# [2025-02-13 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 13:56:05 [end_date_ymd] => 2025-02-13 16:56:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 13:56:05' and `end` < '2025-02-13 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-02-13 16:56:23] Production.INFO: count ==4348 [2025-02-13 16:56:24] Production.ERROR: pbx CDR StartTime 2025-02-13 13:56:05 - End Time 2025-02-13 16:56:05 [2025-02-13 16:56:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 16:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467778', 'tblTempUsageDetail_20' ) start [2025-02-13 16:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467778', 'tblTempUsageDetail_20' ) end [2025-02-13 16:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467778', 'tblTempVendorCDR_20' ) start [2025-02-13 16:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467778', 'tblTempVendorCDR_20' ) end [2025-02-13 16:56:25] Production.INFO: ProcessCDR(1,14467778,1,1,2) [2025-02-13 16:56:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:56:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:56:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:56:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:56:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467778', 'tblTempUsageDetail_20' ) start [2025-02-13 16:56:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467778', 'tblTempUsageDetail_20' ) end [2025-02-13 16:56:30] Production.ERROR: pbx prc_insertCDR start [2025-02-13 16:56:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 16:56:30] Production.INFO: ==20829== Releasing lock... [2025-02-13 16:56:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 16:56:30] Production.INFO: 60.5 MB #Memory Used# [2025-02-13 16:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 13:57:06 [end_date_ymd] => 2025-02-13 16:57:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 13:57:06' and `end` < '2025-02-13 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-02-13 16:57:20] Production.INFO: count ==4343 [2025-02-13 16:57:22] Production.ERROR: pbx CDR StartTime 2025-02-13 13:57:06 - End Time 2025-02-13 16:57:06 [2025-02-13 16:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 16:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467783', 'tblTempUsageDetail_20' ) start [2025-02-13 16:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467783', 'tblTempUsageDetail_20' ) end [2025-02-13 16:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467783', 'tblTempVendorCDR_20' ) start [2025-02-13 16:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467783', 'tblTempVendorCDR_20' ) end [2025-02-13 16:57:22] Production.INFO: ProcessCDR(1,14467783,1,1,2) [2025-02-13 16:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467783', 'tblTempUsageDetail_20' ) start [2025-02-13 16:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467783', 'tblTempUsageDetail_20' ) end [2025-02-13 16:57:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 16:57:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 16:57:26] Production.INFO: ==20903== Releasing lock... [2025-02-13 16:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 16:57:26] Production.INFO: 60.5 MB #Memory Used# [2025-02-13 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 13:58:05 [end_date_ymd] => 2025-02-13 16:58:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 13:58:05' and `end` < '2025-02-13 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-02-13 16:58:26] Production.INFO: count ==4327 [2025-02-13 16:58:28] Production.ERROR: pbx CDR StartTime 2025-02-13 13:58:05 - End Time 2025-02-13 16:58:05 [2025-02-13 16:58:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 16:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467788', 'tblTempUsageDetail_20' ) start [2025-02-13 16:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467788', 'tblTempUsageDetail_20' ) end [2025-02-13 16:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467788', 'tblTempVendorCDR_20' ) start [2025-02-13 16:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467788', 'tblTempVendorCDR_20' ) end [2025-02-13 16:58:28] Production.INFO: ProcessCDR(1,14467788,1,1,2) [2025-02-13 16:58:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:58:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:58:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:58:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:58:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467788', 'tblTempUsageDetail_20' ) start [2025-02-13 16:58:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467788', 'tblTempUsageDetail_20' ) end [2025-02-13 16:58:33] Production.ERROR: pbx prc_insertCDR start [2025-02-13 16:58:33] Production.ERROR: pbx prc_insertCDR end [2025-02-13 16:58:33] Production.INFO: ==20974== Releasing lock... [2025-02-13 16:58:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 16:58:33] Production.INFO: 60.25 MB #Memory Used# [2025-02-13 16:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 13:59:06 [end_date_ymd] => 2025-02-13 16:59:06 [RateCDR] => 1 ) [2025-02-13 16: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-02-13 13:59:06' and `end` < '2025-02-13 16: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-02-13 16:59:32] Production.INFO: count ==4338 [2025-02-13 16:59:33] Production.ERROR: pbx CDR StartTime 2025-02-13 13:59:06 - End Time 2025-02-13 16:59:06 [2025-02-13 16:59:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 16:59:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467793', 'tblTempUsageDetail_20' ) start [2025-02-13 16:59:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467793', 'tblTempUsageDetail_20' ) end [2025-02-13 16:59:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467793', 'tblTempVendorCDR_20' ) start [2025-02-13 16:59:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467793', 'tblTempVendorCDR_20' ) end [2025-02-13 16:59:34] Production.INFO: ProcessCDR(1,14467793,1,1,2) [2025-02-13 16:59:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:59:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 16:59:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:59:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 16:59:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467793', 'tblTempUsageDetail_20' ) start [2025-02-13 16:59:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467793', 'tblTempUsageDetail_20' ) end [2025-02-13 16:59:39] Production.ERROR: pbx prc_insertCDR start [2025-02-13 16:59:39] Production.ERROR: pbx prc_insertCDR end [2025-02-13 16:59:39] Production.INFO: ==21054== Releasing lock... [2025-02-13 16:59:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 16:59:39] Production.INFO: 60.5 MB #Memory Used# [2025-02-13 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 14:00:06 [end_date_ymd] => 2025-02-13 17:00:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 14:00:06' and `end` < '2025-02-13 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-02-13 17:00:26] Production.INFO: count ==4334 [2025-02-13 17:00:28] Production.ERROR: pbx CDR StartTime 2025-02-13 14:00:06 - End Time 2025-02-13 17:00:06 [2025-02-13 17:00:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 17:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467799', 'tblTempUsageDetail_20' ) start [2025-02-13 17:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467799', 'tblTempUsageDetail_20' ) end [2025-02-13 17:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467799', 'tblTempVendorCDR_20' ) start [2025-02-13 17:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467799', 'tblTempVendorCDR_20' ) end [2025-02-13 17:00:28] Production.INFO: ProcessCDR(1,14467799,1,1,2) [2025-02-13 17:00:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:00:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:00:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:00:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467799', 'tblTempUsageDetail_20' ) start [2025-02-13 17:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467799', 'tblTempUsageDetail_20' ) end [2025-02-13 17:00:34] Production.ERROR: pbx prc_insertCDR start [2025-02-13 17:00:34] Production.ERROR: pbx prc_insertCDR end [2025-02-13 17:00:34] Production.INFO: ==21135== Releasing lock... [2025-02-13 17:00:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 17:00:34] Production.INFO: 60.5 MB #Memory Used# [2025-02-13 17:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 14:01:06 [end_date_ymd] => 2025-02-13 17:01:06 [RateCDR] => 1 ) [2025-02-13 17: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-02-13 14:01:06' and `end` < '2025-02-13 17: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-02-13 17:01:21] Production.INFO: count ==4323 [2025-02-13 17:01:22] Production.ERROR: pbx CDR StartTime 2025-02-13 14:01:06 - End Time 2025-02-13 17:01:06 [2025-02-13 17:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467804', 'tblTempUsageDetail_20' ) start [2025-02-13 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467804', 'tblTempUsageDetail_20' ) end [2025-02-13 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467804', 'tblTempVendorCDR_20' ) start [2025-02-13 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467804', 'tblTempVendorCDR_20' ) end [2025-02-13 17:01:22] Production.INFO: ProcessCDR(1,14467804,1,1,2) [2025-02-13 17:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:01:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467804', 'tblTempUsageDetail_20' ) start [2025-02-13 17:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467804', 'tblTempUsageDetail_20' ) end [2025-02-13 17:01:28] Production.ERROR: pbx prc_insertCDR start [2025-02-13 17:01:28] Production.ERROR: pbx prc_insertCDR end [2025-02-13 17:01:28] Production.INFO: ==21223== Releasing lock... [2025-02-13 17:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 17:01:28] Production.INFO: 60.25 MB #Memory Used# [2025-02-13 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 14:02:05 [end_date_ymd] => 2025-02-13 17:02:05 [RateCDR] => 1 ) [2025-02-13 17: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-02-13 14:02:05' and `end` < '2025-02-13 17: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-02-13 17:02:24] Production.INFO: count ==4326 [2025-02-13 17:02:26] Production.ERROR: pbx CDR StartTime 2025-02-13 14:02:05 - End Time 2025-02-13 17:02:05 [2025-02-13 17:02:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 17:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467809', 'tblTempUsageDetail_20' ) start [2025-02-13 17:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467809', 'tblTempUsageDetail_20' ) end [2025-02-13 17:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467809', 'tblTempVendorCDR_20' ) start [2025-02-13 17:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467809', 'tblTempVendorCDR_20' ) end [2025-02-13 17:02:26] Production.INFO: ProcessCDR(1,14467809,1,1,2) [2025-02-13 17:02:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:02:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:02:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:02:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:02:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467809', 'tblTempUsageDetail_20' ) start [2025-02-13 17:02:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467809', 'tblTempUsageDetail_20' ) end [2025-02-13 17:02:32] Production.ERROR: pbx prc_insertCDR start [2025-02-13 17:02:32] Production.ERROR: pbx prc_insertCDR end [2025-02-13 17:02:32] Production.INFO: ==21298== Releasing lock... [2025-02-13 17:02:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 17:02:32] Production.INFO: 60.25 MB #Memory Used# [2025-02-13 17:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 14:03:06 [end_date_ymd] => 2025-02-13 17:03:06 [RateCDR] => 1 ) [2025-02-13 17: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-02-13 14:03:06' and `end` < '2025-02-13 17: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-02-13 17:03:34] Production.INFO: count ==4320 [2025-02-13 17:03:36] Production.ERROR: pbx CDR StartTime 2025-02-13 14:03:06 - End Time 2025-02-13 17:03:06 [2025-02-13 17:03:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 17:03:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467814', 'tblTempUsageDetail_20' ) start [2025-02-13 17:03:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467814', 'tblTempUsageDetail_20' ) end [2025-02-13 17:03:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467814', 'tblTempVendorCDR_20' ) start [2025-02-13 17:03:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467814', 'tblTempVendorCDR_20' ) end [2025-02-13 17:03:36] Production.INFO: ProcessCDR(1,14467814,1,1,2) [2025-02-13 17:03:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:03:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:03:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:03:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:03:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467814', 'tblTempUsageDetail_20' ) start [2025-02-13 17:03:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467814', 'tblTempUsageDetail_20' ) end [2025-02-13 17:03:41] Production.ERROR: pbx prc_insertCDR start [2025-02-13 17:03:41] Production.ERROR: pbx prc_insertCDR end [2025-02-13 17:03:41] Production.INFO: ==21373== Releasing lock... [2025-02-13 17:03:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 17:03:41] Production.INFO: 60.25 MB #Memory Used# [2025-02-13 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 14:04:05 [end_date_ymd] => 2025-02-13 17:04:05 [RateCDR] => 1 ) [2025-02-13 17: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-02-13 14:04:05' and `end` < '2025-02-13 17: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-02-13 17:04:31] Production.INFO: count ==4320 [2025-02-13 17:04:33] Production.ERROR: pbx CDR StartTime 2025-02-13 14:04:05 - End Time 2025-02-13 17:04:05 [2025-02-13 17:04:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 17:04:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467819', 'tblTempUsageDetail_20' ) start [2025-02-13 17:04:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467819', 'tblTempUsageDetail_20' ) end [2025-02-13 17:04:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467819', 'tblTempVendorCDR_20' ) start [2025-02-13 17:04:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467819', 'tblTempVendorCDR_20' ) end [2025-02-13 17:04:33] Production.INFO: ProcessCDR(1,14467819,1,1,2) [2025-02-13 17:04:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:04:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:04:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:04:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:04:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467819', 'tblTempUsageDetail_20' ) start [2025-02-13 17:04:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467819', 'tblTempUsageDetail_20' ) end [2025-02-13 17:04:39] Production.ERROR: pbx prc_insertCDR start [2025-02-13 17:04:39] Production.ERROR: pbx prc_insertCDR end [2025-02-13 17:04:39] Production.INFO: ==21446== Releasing lock... [2025-02-13 17:04:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 17:04:39] Production.INFO: 60.25 MB #Memory Used# [2025-02-13 17:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 14:05:06 [end_date_ymd] => 2025-02-13 17:05:06 [RateCDR] => 1 ) [2025-02-13 17: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-02-13 14:05:06' and `end` < '2025-02-13 17: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-02-13 17:05:27] Production.INFO: count ==4314 [2025-02-13 17:05:29] Production.ERROR: pbx CDR StartTime 2025-02-13 14:05:06 - End Time 2025-02-13 17:05:06 [2025-02-13 17:05:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 17:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467824', 'tblTempUsageDetail_20' ) start [2025-02-13 17:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467824', 'tblTempUsageDetail_20' ) end [2025-02-13 17:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467824', 'tblTempVendorCDR_20' ) start [2025-02-13 17:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467824', 'tblTempVendorCDR_20' ) end [2025-02-13 17:05:29] Production.INFO: ProcessCDR(1,14467824,1,1,2) [2025-02-13 17:05:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:05:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:05:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:05:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:05:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467824', 'tblTempUsageDetail_20' ) start [2025-02-13 17:05:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467824', 'tblTempUsageDetail_20' ) end [2025-02-13 17:05:34] Production.ERROR: pbx prc_insertCDR start [2025-02-13 17:05:34] Production.ERROR: pbx prc_insertCDR end [2025-02-13 17:05:34] Production.INFO: ==21561== Releasing lock... [2025-02-13 17:05:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 17:05:34] Production.INFO: 60.25 MB #Memory Used# [2025-02-13 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 14:06:05 [end_date_ymd] => 2025-02-13 17:06:05 [RateCDR] => 1 ) [2025-02-13 17: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-02-13 14:06:05' and `end` < '2025-02-13 17: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-02-13 17:06:21] Production.INFO: count ==4294 [2025-02-13 17:06:23] Production.ERROR: pbx CDR StartTime 2025-02-13 14:06:05 - End Time 2025-02-13 17:06:05 [2025-02-13 17:06:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 17:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467829', 'tblTempUsageDetail_20' ) start [2025-02-13 17:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467829', 'tblTempUsageDetail_20' ) end [2025-02-13 17:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467829', 'tblTempVendorCDR_20' ) start [2025-02-13 17:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467829', 'tblTempVendorCDR_20' ) end [2025-02-13 17:06:23] Production.INFO: ProcessCDR(1,14467829,1,1,2) [2025-02-13 17:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:06:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:06:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:06:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467829', 'tblTempUsageDetail_20' ) start [2025-02-13 17:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467829', 'tblTempUsageDetail_20' ) end [2025-02-13 17:06:29] Production.ERROR: pbx prc_insertCDR start [2025-02-13 17:06:29] Production.ERROR: pbx prc_insertCDR end [2025-02-13 17:06:29] Production.INFO: ==21635== Releasing lock... [2025-02-13 17:06:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 17:06:29] Production.INFO: 60 MB #Memory Used# [2025-02-13 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 14:07:05 [end_date_ymd] => 2025-02-13 17:07:05 [RateCDR] => 1 ) [2025-02-13 17: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-02-13 14:07:05' and `end` < '2025-02-13 17: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-02-13 17:07:23] Production.INFO: count ==4269 [2025-02-13 17:07:25] Production.ERROR: pbx CDR StartTime 2025-02-13 14:07:05 - End Time 2025-02-13 17:07:05 [2025-02-13 17:07:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 17:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467834', 'tblTempUsageDetail_20' ) start [2025-02-13 17:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467834', 'tblTempUsageDetail_20' ) end [2025-02-13 17:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467834', 'tblTempVendorCDR_20' ) start [2025-02-13 17:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467834', 'tblTempVendorCDR_20' ) end [2025-02-13 17:07:25] Production.INFO: ProcessCDR(1,14467834,1,1,2) [2025-02-13 17:07:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:07:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:07:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:07:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467834', 'tblTempUsageDetail_20' ) start [2025-02-13 17:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467834', 'tblTempUsageDetail_20' ) end [2025-02-13 17:07:30] Production.ERROR: pbx prc_insertCDR start [2025-02-13 17:07:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 17:07:30] Production.INFO: ==21713== Releasing lock... [2025-02-13 17:07:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 17:07:30] Production.INFO: 60 MB #Memory Used# [2025-02-13 17:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 14:08:05 [end_date_ymd] => 2025-02-13 17:08:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 14:08:05' and `end` < '2025-02-13 17: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-02-13 17:08:24] Production.INFO: count ==4235 [2025-02-13 17:08:26] Production.ERROR: pbx CDR StartTime 2025-02-13 14:08:05 - End Time 2025-02-13 17:08:05 [2025-02-13 17:08:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 17:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467839', 'tblTempUsageDetail_20' ) start [2025-02-13 17:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467839', 'tblTempUsageDetail_20' ) end [2025-02-13 17:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467839', 'tblTempVendorCDR_20' ) start [2025-02-13 17:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467839', 'tblTempVendorCDR_20' ) end [2025-02-13 17:08:26] Production.INFO: ProcessCDR(1,14467839,1,1,2) [2025-02-13 17:08:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:08:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:08:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:08:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467839', 'tblTempUsageDetail_20' ) start [2025-02-13 17:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467839', 'tblTempUsageDetail_20' ) end [2025-02-13 17:08:30] Production.ERROR: pbx prc_insertCDR start [2025-02-13 17:08:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 17:08:30] Production.INFO: ==21792== Releasing lock... [2025-02-13 17:08:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 17:08:30] Production.INFO: 59.75 MB #Memory Used# [2025-02-13 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 14:09:05 [end_date_ymd] => 2025-02-13 17:09:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 14:09:05' and `end` < '2025-02-13 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-02-13 17:09:19] Production.INFO: count ==4211 [2025-02-13 17:09:21] Production.ERROR: pbx CDR StartTime 2025-02-13 14:09:05 - End Time 2025-02-13 17:09:05 [2025-02-13 17:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467844', 'tblTempUsageDetail_20' ) start [2025-02-13 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467844', 'tblTempUsageDetail_20' ) end [2025-02-13 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467844', 'tblTempVendorCDR_20' ) start [2025-02-13 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467844', 'tblTempVendorCDR_20' ) end [2025-02-13 17:09:21] Production.INFO: ProcessCDR(1,14467844,1,1,2) [2025-02-13 17:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467844', 'tblTempUsageDetail_20' ) start [2025-02-13 17:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467844', 'tblTempUsageDetail_20' ) end [2025-02-13 17:09:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 17:09:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 17:09:26] Production.INFO: ==21872== Releasing lock... [2025-02-13 17:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 17:09:26] Production.INFO: 59.5 MB #Memory Used# [2025-02-13 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 14:10:06 [end_date_ymd] => 2025-02-13 17:10:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 14:10:06' and `end` < '2025-02-13 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-02-13 17:10:21] Production.INFO: count ==4201 [2025-02-13 17:10:22] Production.ERROR: pbx CDR StartTime 2025-02-13 14:10:06 - End Time 2025-02-13 17:10:06 [2025-02-13 17:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467850', 'tblTempUsageDetail_20' ) start [2025-02-13 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467850', 'tblTempUsageDetail_20' ) end [2025-02-13 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467850', 'tblTempVendorCDR_20' ) start [2025-02-13 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467850', 'tblTempVendorCDR_20' ) end [2025-02-13 17:10:22] Production.INFO: ProcessCDR(1,14467850,1,1,2) [2025-02-13 17:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467850', 'tblTempUsageDetail_20' ) start [2025-02-13 17:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467850', 'tblTempUsageDetail_20' ) end [2025-02-13 17:10:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 17:10:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 17:10:26] Production.INFO: ==21952== Releasing lock... [2025-02-13 17:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 17:10:26] Production.INFO: 59.5 MB #Memory Used# [2025-02-13 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 14:11:05 [end_date_ymd] => 2025-02-13 17:11:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 14:11:05' and `end` < '2025-02-13 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-02-13 17:11:20] Production.INFO: count ==4188 [2025-02-13 17:11:21] Production.ERROR: pbx CDR StartTime 2025-02-13 14:11:05 - End Time 2025-02-13 17:11:05 [2025-02-13 17:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467855', 'tblTempUsageDetail_20' ) start [2025-02-13 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467855', 'tblTempUsageDetail_20' ) end [2025-02-13 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467855', 'tblTempVendorCDR_20' ) start [2025-02-13 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467855', 'tblTempVendorCDR_20' ) end [2025-02-13 17:11:22] Production.INFO: ProcessCDR(1,14467855,1,1,2) [2025-02-13 17:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467855', 'tblTempUsageDetail_20' ) start [2025-02-13 17:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467855', 'tblTempUsageDetail_20' ) end [2025-02-13 17:11:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 17:11:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 17:11:27] Production.INFO: ==22033== Releasing lock... [2025-02-13 17:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 17:11:27] Production.INFO: 59.25 MB #Memory Used# [2025-02-13 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 14:12:05 [end_date_ymd] => 2025-02-13 17:12:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 14:12:05' and `end` < '2025-02-13 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-02-13 17:12:19] Production.INFO: count ==4193 [2025-02-13 17:12:21] Production.ERROR: pbx CDR StartTime 2025-02-13 14:12:05 - End Time 2025-02-13 17:12:05 [2025-02-13 17:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467860', 'tblTempUsageDetail_20' ) start [2025-02-13 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467860', 'tblTempUsageDetail_20' ) end [2025-02-13 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467860', 'tblTempVendorCDR_20' ) start [2025-02-13 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467860', 'tblTempVendorCDR_20' ) end [2025-02-13 17:12:21] Production.INFO: ProcessCDR(1,14467860,1,1,2) [2025-02-13 17:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467860', 'tblTempUsageDetail_20' ) start [2025-02-13 17:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467860', 'tblTempUsageDetail_20' ) end [2025-02-13 17:12:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 17:12:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 17:12:26] Production.INFO: ==22109== Releasing lock... [2025-02-13 17:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 17:12:26] Production.INFO: 59.5 MB #Memory Used# [2025-02-13 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 14:13:05 [end_date_ymd] => 2025-02-13 17:13:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 14:13:05' and `end` < '2025-02-13 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-02-13 17:13:29] Production.INFO: count ==4176 [2025-02-13 17:13:30] Production.ERROR: pbx CDR StartTime 2025-02-13 14:13:05 - End Time 2025-02-13 17:13:05 [2025-02-13 17:13:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 17:13:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467865', 'tblTempUsageDetail_20' ) start [2025-02-13 17:13:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467865', 'tblTempUsageDetail_20' ) end [2025-02-13 17:13:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467865', 'tblTempVendorCDR_20' ) start [2025-02-13 17:13:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467865', 'tblTempVendorCDR_20' ) end [2025-02-13 17:13:30] Production.INFO: ProcessCDR(1,14467865,1,1,2) [2025-02-13 17:13:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:13:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:13:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:13:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:13:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467865', 'tblTempUsageDetail_20' ) start [2025-02-13 17:13:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467865', 'tblTempUsageDetail_20' ) end [2025-02-13 17:13:34] Production.ERROR: pbx prc_insertCDR start [2025-02-13 17:13:34] Production.ERROR: pbx prc_insertCDR end [2025-02-13 17:13:34] Production.INFO: ==22186== Releasing lock... [2025-02-13 17:13:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 17:13:34] Production.INFO: 59.5 MB #Memory Used# [2025-02-13 17:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 14:14:06 [end_date_ymd] => 2025-02-13 17:14:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 14:14:06' and `end` < '2025-02-13 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-02-13 17:14:26] Production.INFO: count ==4164 [2025-02-13 17:14:28] Production.ERROR: pbx CDR StartTime 2025-02-13 14:14:06 - End Time 2025-02-13 17:14:06 [2025-02-13 17:14:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 17:14:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467870', 'tblTempUsageDetail_20' ) start [2025-02-13 17:14:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467870', 'tblTempUsageDetail_20' ) end [2025-02-13 17:14:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467870', 'tblTempVendorCDR_20' ) start [2025-02-13 17:14:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467870', 'tblTempVendorCDR_20' ) end [2025-02-13 17:14:28] Production.INFO: ProcessCDR(1,14467870,1,1,2) [2025-02-13 17:14:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:14:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:14:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:14:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:14:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467870', 'tblTempUsageDetail_20' ) start [2025-02-13 17:14:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467870', 'tblTempUsageDetail_20' ) end [2025-02-13 17:14:32] Production.ERROR: pbx prc_insertCDR start [2025-02-13 17:14:32] Production.ERROR: pbx prc_insertCDR end [2025-02-13 17:14:32] Production.INFO: ==22266== Releasing lock... [2025-02-13 17:14:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 17:14:32] Production.INFO: 59.25 MB #Memory Used# [2025-02-13 17:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 14:15:06 [end_date_ymd] => 2025-02-13 17:15:06 [RateCDR] => 1 ) [2025-02-13 17: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-02-13 14:15:06' and `end` < '2025-02-13 17: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-02-13 17:15:27] Production.INFO: count ==4166 [2025-02-13 17:15:29] Production.ERROR: pbx CDR StartTime 2025-02-13 14:15:06 - End Time 2025-02-13 17:15:06 [2025-02-13 17:15:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 17:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467875', 'tblTempUsageDetail_20' ) start [2025-02-13 17:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467875', 'tblTempUsageDetail_20' ) end [2025-02-13 17:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467875', 'tblTempVendorCDR_20' ) start [2025-02-13 17:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467875', 'tblTempVendorCDR_20' ) end [2025-02-13 17:15:29] Production.INFO: ProcessCDR(1,14467875,1,1,2) [2025-02-13 17:15:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:15:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:15:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:15:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:15:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467875', 'tblTempUsageDetail_20' ) start [2025-02-13 17:15:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467875', 'tblTempUsageDetail_20' ) end [2025-02-13 17:15:34] Production.ERROR: pbx prc_insertCDR start [2025-02-13 17:15:34] Production.ERROR: pbx prc_insertCDR end [2025-02-13 17:15:34] Production.INFO: ==22349== Releasing lock... [2025-02-13 17:15:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 17:15:34] Production.INFO: 59.25 MB #Memory Used# [2025-02-13 17:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 14:16:06 [end_date_ymd] => 2025-02-13 17:16:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 14:16:06' and `end` < '2025-02-13 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-02-13 17:16:23] Production.INFO: count ==4152 [2025-02-13 17:16:25] Production.ERROR: pbx CDR StartTime 2025-02-13 14:16:06 - End Time 2025-02-13 17:16:06 [2025-02-13 17:16:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 17:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467880', 'tblTempUsageDetail_20' ) start [2025-02-13 17:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467880', 'tblTempUsageDetail_20' ) end [2025-02-13 17:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467880', 'tblTempVendorCDR_20' ) start [2025-02-13 17:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467880', 'tblTempVendorCDR_20' ) end [2025-02-13 17:16:25] Production.INFO: ProcessCDR(1,14467880,1,1,2) [2025-02-13 17:16:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:16:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:16:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:16:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467880', 'tblTempUsageDetail_20' ) start [2025-02-13 17:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467880', 'tblTempUsageDetail_20' ) end [2025-02-13 17:16:30] Production.ERROR: pbx prc_insertCDR start [2025-02-13 17:16:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 17:16:30] Production.INFO: ==22427== Releasing lock... [2025-02-13 17:16:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 17:16:30] Production.INFO: 59 MB #Memory Used# [2025-02-13 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 14:17:05 [end_date_ymd] => 2025-02-13 17:17:05 [RateCDR] => 1 ) [2025-02-13 17: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-02-13 14:17:05' and `end` < '2025-02-13 17: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-02-13 17:17:22] Production.INFO: count ==4148 [2025-02-13 17:17:24] Production.ERROR: pbx CDR StartTime 2025-02-13 14:17:05 - End Time 2025-02-13 17:17:05 [2025-02-13 17:17:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 17:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467885', 'tblTempUsageDetail_20' ) start [2025-02-13 17:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467885', 'tblTempUsageDetail_20' ) end [2025-02-13 17:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467885', 'tblTempVendorCDR_20' ) start [2025-02-13 17:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467885', 'tblTempVendorCDR_20' ) end [2025-02-13 17:17:24] Production.INFO: ProcessCDR(1,14467885,1,1,2) [2025-02-13 17:17:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:17:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:17:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:17:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:17:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467885', 'tblTempUsageDetail_20' ) start [2025-02-13 17:17:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467885', 'tblTempUsageDetail_20' ) end [2025-02-13 17:17:29] Production.ERROR: pbx prc_insertCDR start [2025-02-13 17:17:29] Production.ERROR: pbx prc_insertCDR end [2025-02-13 17:17:29] Production.INFO: ==22510== Releasing lock... [2025-02-13 17:17:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 17:17:29] Production.INFO: 59 MB #Memory Used# [2025-02-13 17:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 14:18:06 [end_date_ymd] => 2025-02-13 17:18:06 [RateCDR] => 1 ) [2025-02-13 17: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-02-13 14:18:06' and `end` < '2025-02-13 17: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-02-13 17:18:19] Production.INFO: count ==4134 [2025-02-13 17:18:21] Production.ERROR: pbx CDR StartTime 2025-02-13 14:18:06 - End Time 2025-02-13 17:18:06 [2025-02-13 17:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467890', 'tblTempUsageDetail_20' ) start [2025-02-13 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467890', 'tblTempUsageDetail_20' ) end [2025-02-13 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467890', 'tblTempVendorCDR_20' ) start [2025-02-13 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467890', 'tblTempVendorCDR_20' ) end [2025-02-13 17:18:21] Production.INFO: ProcessCDR(1,14467890,1,1,2) [2025-02-13 17:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467890', 'tblTempUsageDetail_20' ) start [2025-02-13 17:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467890', 'tblTempUsageDetail_20' ) end [2025-02-13 17:18:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 17:18:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 17:18:26] Production.INFO: ==22597== Releasing lock... [2025-02-13 17:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 17:18:26] Production.INFO: 59 MB #Memory Used# [2025-02-13 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 14:19:05 [end_date_ymd] => 2025-02-13 17:19:05 [RateCDR] => 1 ) [2025-02-13 17: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-02-13 14:19:05' and `end` < '2025-02-13 17: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-02-13 17:19:20] Production.INFO: count ==4114 [2025-02-13 17:19:21] Production.ERROR: pbx CDR StartTime 2025-02-13 14:19:05 - End Time 2025-02-13 17:19:05 [2025-02-13 17:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467895', 'tblTempUsageDetail_20' ) start [2025-02-13 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467895', 'tblTempUsageDetail_20' ) end [2025-02-13 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467895', 'tblTempVendorCDR_20' ) start [2025-02-13 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467895', 'tblTempVendorCDR_20' ) end [2025-02-13 17:19:21] Production.INFO: ProcessCDR(1,14467895,1,1,2) [2025-02-13 17:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467895', 'tblTempUsageDetail_20' ) start [2025-02-13 17:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467895', 'tblTempUsageDetail_20' ) end [2025-02-13 17:19:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 17:19:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 17:19:25] Production.INFO: ==22683== Releasing lock... [2025-02-13 17:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 17:19:25] Production.INFO: 58.75 MB #Memory Used# [2025-02-13 17:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 14:20:07 [end_date_ymd] => 2025-02-13 17:20:07 [RateCDR] => 1 ) [2025-02-13 17: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-02-13 14:20:07' and `end` < '2025-02-13 17: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-02-13 17:20:22] Production.INFO: count ==4103 [2025-02-13 17:20:23] Production.ERROR: pbx CDR StartTime 2025-02-13 14:20:07 - End Time 2025-02-13 17:20:07 [2025-02-13 17:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 17:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467901', 'tblTempUsageDetail_20' ) start [2025-02-13 17:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467901', 'tblTempUsageDetail_20' ) end [2025-02-13 17:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467901', 'tblTempVendorCDR_20' ) start [2025-02-13 17:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467901', 'tblTempVendorCDR_20' ) end [2025-02-13 17:20:24] Production.INFO: ProcessCDR(1,14467901,1,1,2) [2025-02-13 17:20:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:20:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467901', 'tblTempUsageDetail_20' ) start [2025-02-13 17:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467901', 'tblTempUsageDetail_20' ) end [2025-02-13 17:20:29] Production.ERROR: pbx prc_insertCDR start [2025-02-13 17:20:29] Production.ERROR: pbx prc_insertCDR end [2025-02-13 17:20:29] Production.INFO: ==22769== Releasing lock... [2025-02-13 17:20:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 17:20:29] Production.INFO: 58.75 MB #Memory Used# [2025-02-13 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 14:21:05 [end_date_ymd] => 2025-02-13 17:21:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 14:21:05' and `end` < '2025-02-13 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-02-13 17:21:19] Production.INFO: count ==4097 [2025-02-13 17:21:20] Production.ERROR: pbx CDR StartTime 2025-02-13 14:21:05 - End Time 2025-02-13 17:21:05 [2025-02-13 17:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467906', 'tblTempUsageDetail_20' ) start [2025-02-13 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467906', 'tblTempUsageDetail_20' ) end [2025-02-13 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467906', 'tblTempVendorCDR_20' ) start [2025-02-13 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467906', 'tblTempVendorCDR_20' ) end [2025-02-13 17:21:20] Production.INFO: ProcessCDR(1,14467906,1,1,2) [2025-02-13 17:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467906', 'tblTempUsageDetail_20' ) start [2025-02-13 17:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467906', 'tblTempUsageDetail_20' ) end [2025-02-13 17:21:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 17:21:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 17:21:26] Production.INFO: ==22894== Releasing lock... [2025-02-13 17:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 17:21:26] Production.INFO: 58.75 MB #Memory Used# [2025-02-13 17:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 14:22:06 [end_date_ymd] => 2025-02-13 17:22:06 [RateCDR] => 1 ) [2025-02-13 17: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-02-13 14:22:06' and `end` < '2025-02-13 17: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-02-13 17:22:21] Production.INFO: count ==4071 [2025-02-13 17:22:22] Production.ERROR: pbx CDR StartTime 2025-02-13 14:22:06 - End Time 2025-02-13 17:22:06 [2025-02-13 17:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467911', 'tblTempUsageDetail_20' ) start [2025-02-13 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467911', 'tblTempUsageDetail_20' ) end [2025-02-13 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467911', 'tblTempVendorCDR_20' ) start [2025-02-13 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467911', 'tblTempVendorCDR_20' ) end [2025-02-13 17:22:22] Production.INFO: ProcessCDR(1,14467911,1,1,2) [2025-02-13 17:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467911', 'tblTempUsageDetail_20' ) start [2025-02-13 17:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467911', 'tblTempUsageDetail_20' ) end [2025-02-13 17:22:28] Production.ERROR: pbx prc_insertCDR start [2025-02-13 17:22:28] Production.ERROR: pbx prc_insertCDR end [2025-02-13 17:22:28] Production.INFO: ==22979== Releasing lock... [2025-02-13 17:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 17:22:28] Production.INFO: 58.5 MB #Memory Used# [2025-02-13 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 14:23:05 [end_date_ymd] => 2025-02-13 17:23:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 14:23:05' and `end` < '2025-02-13 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-02-13 17:23:19] Production.INFO: count ==4065 [2025-02-13 17:23:20] Production.ERROR: pbx CDR StartTime 2025-02-13 14:23:05 - End Time 2025-02-13 17:23:05 [2025-02-13 17:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467916', 'tblTempUsageDetail_20' ) start [2025-02-13 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467916', 'tblTempUsageDetail_20' ) end [2025-02-13 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467916', 'tblTempVendorCDR_20' ) start [2025-02-13 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467916', 'tblTempVendorCDR_20' ) end [2025-02-13 17:23:20] Production.INFO: ProcessCDR(1,14467916,1,1,2) [2025-02-13 17:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467916', 'tblTempUsageDetail_20' ) start [2025-02-13 17:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467916', 'tblTempUsageDetail_20' ) end [2025-02-13 17:23:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 17:23:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 17:23:26] Production.INFO: ==23059== Releasing lock... [2025-02-13 17:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 17:23:26] Production.INFO: 58.25 MB #Memory Used# [2025-02-13 17:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 14:24:06 [end_date_ymd] => 2025-02-13 17:24:06 [RateCDR] => 1 ) [2025-02-13 17: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-02-13 14:24:06' and `end` < '2025-02-13 17: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-02-13 17:24:20] Production.INFO: count ==4050 [2025-02-13 17:24:22] Production.ERROR: pbx CDR StartTime 2025-02-13 14:24:06 - End Time 2025-02-13 17:24:06 [2025-02-13 17:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467921', 'tblTempUsageDetail_20' ) start [2025-02-13 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467921', 'tblTempUsageDetail_20' ) end [2025-02-13 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467921', 'tblTempVendorCDR_20' ) start [2025-02-13 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467921', 'tblTempVendorCDR_20' ) end [2025-02-13 17:24:22] Production.INFO: ProcessCDR(1,14467921,1,1,2) [2025-02-13 17:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467921', 'tblTempUsageDetail_20' ) start [2025-02-13 17:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467921', 'tblTempUsageDetail_20' ) end [2025-02-13 17:24:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 17:24:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 17:24:27] Production.INFO: ==23146== Releasing lock... [2025-02-13 17:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 17:24:27] Production.INFO: 58.25 MB #Memory Used# [2025-02-13 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 14:25:05 [end_date_ymd] => 2025-02-13 17:25:05 [RateCDR] => 1 ) [2025-02-13 17:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 14:25:05' and `end` < '2025-02-13 17:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-13 17:25:23] Production.INFO: count ==4022 [2025-02-13 17:25:25] Production.ERROR: pbx CDR StartTime 2025-02-13 14:25:05 - End Time 2025-02-13 17:25:05 [2025-02-13 17:25:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 17:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467926', 'tblTempUsageDetail_20' ) start [2025-02-13 17:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467926', 'tblTempUsageDetail_20' ) end [2025-02-13 17:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467926', 'tblTempVendorCDR_20' ) start [2025-02-13 17:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467926', 'tblTempVendorCDR_20' ) end [2025-02-13 17:25:25] Production.INFO: ProcessCDR(1,14467926,1,1,2) [2025-02-13 17:25:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467926', 'tblTempUsageDetail_20' ) start [2025-02-13 17:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467926', 'tblTempUsageDetail_20' ) end [2025-02-13 17:25:30] Production.ERROR: pbx prc_insertCDR start [2025-02-13 17:25:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 17:25:30] Production.INFO: ==23227== Releasing lock... [2025-02-13 17:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 17:25:30] Production.INFO: 58 MB #Memory Used# [2025-02-13 17:26:29] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 14:26:29 [end_date_ymd] => 2025-02-13 17:26:29 [RateCDR] => 1 ) [2025-02-13 17:26:29] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 14:26:29' and `end` < '2025-02-13 17:26:29' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-13 17:26:44] Production.INFO: count ==4008 [2025-02-13 17:27:42] Production.ERROR: pbx CDR StartTime 2025-02-13 14:26:29 - End Time 2025-02-13 17:26:29 [2025-02-13 17:27:42] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 17:27:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467931', 'tblTempUsageDetail_20' ) start [2025-02-13 17:27:50] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467931', 'tblTempUsageDetail_20' ) end [2025-02-13 17:27:50] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467931', 'tblTempVendorCDR_20' ) start [2025-02-13 17:27:53] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467931', 'tblTempVendorCDR_20' ) end [2025-02-13 17:27:53] Production.INFO: ProcessCDR(1,14467931,1,1,2) [2025-02-13 17:27:53] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:28:08] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:28:08] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:28:54] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:28:54] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467931', 'tblTempUsageDetail_20' ) start [2025-02-13 17:29:00] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467931', 'tblTempUsageDetail_20' ) end [2025-02-13 17:29:00] Production.ERROR: pbx prc_insertCDR start [2025-02-13 17:29:00] Production.ERROR: pbx prc_insertCDR end [2025-02-13 17:29:07] Production.INFO: ==23309== Releasing lock... [2025-02-13 17:29:07] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 17:29:07] Production.INFO: 58 MB #Memory Used# [2025-02-13 17:30:25] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 14:30:25 [end_date_ymd] => 2025-02-13 17:30:25 [RateCDR] => 1 ) [2025-02-13 17:30:25] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 14:30:25' and `end` < '2025-02-13 17:30:25' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-13 17:30:39] Production.INFO: count ==3961 [2025-02-13 17:31:38] Production.ERROR: pbx CDR StartTime 2025-02-13 14:30:25 - End Time 2025-02-13 17:30:25 [2025-02-13 17:31:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 17:31:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467946', 'tblTempUsageDetail_20' ) start [2025-02-13 17:31:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467946', 'tblTempUsageDetail_20' ) end [2025-02-13 17:31:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467946', 'tblTempVendorCDR_20' ) start [2025-02-13 17:31:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467946', 'tblTempVendorCDR_20' ) end [2025-02-13 17:31:40] Production.INFO: ProcessCDR(1,14467946,1,1,2) [2025-02-13 17:31:40] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:32:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:32:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:33:06] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:33:06] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467946', 'tblTempUsageDetail_20' ) start [2025-02-13 17:33:11] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467946', 'tblTempUsageDetail_20' ) end [2025-02-13 17:33:11] Production.ERROR: pbx prc_insertCDR start [2025-02-13 17:33:13] Production.ERROR: pbx prc_insertCDR end [2025-02-13 17:33:23] Production.INFO: ==23625== Releasing lock... [2025-02-13 17:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 17:33:23] Production.INFO: 57.75 MB #Memory Used# [2025-02-13 17:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 14:34:06 [end_date_ymd] => 2025-02-13 17:34:06 [RateCDR] => 1 ) [2025-02-13 17: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-02-13 14:34:06' and `end` < '2025-02-13 17: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-02-13 17:34:22] Production.INFO: count ==3938 [2025-02-13 17:34:24] Production.ERROR: pbx CDR StartTime 2025-02-13 14:34:06 - End Time 2025-02-13 17:34:06 [2025-02-13 17:34:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 17:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467960', 'tblTempUsageDetail_20' ) start [2025-02-13 17:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467960', 'tblTempUsageDetail_20' ) end [2025-02-13 17:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467960', 'tblTempVendorCDR_20' ) start [2025-02-13 17:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467960', 'tblTempVendorCDR_20' ) end [2025-02-13 17:34:24] Production.INFO: ProcessCDR(1,14467960,1,1,2) [2025-02-13 17:34:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:34:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:34:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:34:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467960', 'tblTempUsageDetail_20' ) start [2025-02-13 17:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467960', 'tblTempUsageDetail_20' ) end [2025-02-13 17:34:29] Production.ERROR: pbx prc_insertCDR start [2025-02-13 17:34:29] Production.ERROR: pbx prc_insertCDR end [2025-02-13 17:34:29] Production.INFO: ==23931== Releasing lock... [2025-02-13 17:34:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 17:34:29] Production.INFO: 57.5 MB #Memory Used# [2025-02-13 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 14:35:05 [end_date_ymd] => 2025-02-13 17:35:05 [RateCDR] => 1 ) [2025-02-13 17: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-02-13 14:35:05' and `end` < '2025-02-13 17: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-02-13 17:35:20] Production.INFO: count ==3931 [2025-02-13 17:35:21] Production.ERROR: pbx CDR StartTime 2025-02-13 14:35:05 - End Time 2025-02-13 17:35:05 [2025-02-13 17:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467965', 'tblTempUsageDetail_20' ) start [2025-02-13 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467965', 'tblTempUsageDetail_20' ) end [2025-02-13 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467965', 'tblTempVendorCDR_20' ) start [2025-02-13 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467965', 'tblTempVendorCDR_20' ) end [2025-02-13 17:35:21] Production.INFO: ProcessCDR(1,14467965,1,1,2) [2025-02-13 17:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467965', 'tblTempUsageDetail_20' ) start [2025-02-13 17:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467965', 'tblTempUsageDetail_20' ) end [2025-02-13 17:35:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 17:35:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 17:35:25] Production.INFO: ==24009== Releasing lock... [2025-02-13 17:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 17:35:25] Production.INFO: 57.25 MB #Memory Used# [2025-02-13 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 14:36:05 [end_date_ymd] => 2025-02-13 17:36:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 14:36:05' and `end` < '2025-02-13 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-02-13 17:36:19] Production.INFO: count ==3925 [2025-02-13 17:36:21] Production.ERROR: pbx CDR StartTime 2025-02-13 14:36:05 - End Time 2025-02-13 17:36:05 [2025-02-13 17:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467970', 'tblTempUsageDetail_20' ) start [2025-02-13 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467970', 'tblTempUsageDetail_20' ) end [2025-02-13 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467970', 'tblTempVendorCDR_20' ) start [2025-02-13 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467970', 'tblTempVendorCDR_20' ) end [2025-02-13 17:36:21] Production.INFO: ProcessCDR(1,14467970,1,1,2) [2025-02-13 17:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467970', 'tblTempUsageDetail_20' ) start [2025-02-13 17:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467970', 'tblTempUsageDetail_20' ) end [2025-02-13 17:36:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 17:36:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 17:36:26] Production.INFO: ==24132== Releasing lock... [2025-02-13 17:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 17:36:26] Production.INFO: 57.25 MB #Memory Used# [2025-02-13 17:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 14:37:06 [end_date_ymd] => 2025-02-13 17:37:06 [RateCDR] => 1 ) [2025-02-13 17: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-02-13 14:37:06' and `end` < '2025-02-13 17: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-02-13 17:37:23] Production.INFO: count ==3926 [2025-02-13 17:37:24] Production.ERROR: pbx CDR StartTime 2025-02-13 14:37:06 - End Time 2025-02-13 17:37:06 [2025-02-13 17:37:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 17:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467975', 'tblTempUsageDetail_20' ) start [2025-02-13 17:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467975', 'tblTempUsageDetail_20' ) end [2025-02-13 17:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467975', 'tblTempVendorCDR_20' ) start [2025-02-13 17:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467975', 'tblTempVendorCDR_20' ) end [2025-02-13 17:37:24] Production.INFO: ProcessCDR(1,14467975,1,1,2) [2025-02-13 17:37:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:37:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:37:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:37:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:37:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467975', 'tblTempUsageDetail_20' ) start [2025-02-13 17:37:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467975', 'tblTempUsageDetail_20' ) end [2025-02-13 17:37:30] Production.ERROR: pbx prc_insertCDR start [2025-02-13 17:37:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 17:37:30] Production.INFO: ==24213== Releasing lock... [2025-02-13 17:37:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 17:37:30] Production.INFO: 57.25 MB #Memory Used# [2025-02-13 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 14:38:05 [end_date_ymd] => 2025-02-13 17:38:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 14:38:05' and `end` < '2025-02-13 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-02-13 17:38:21] Production.INFO: count ==3924 [2025-02-13 17:38:23] Production.ERROR: pbx CDR StartTime 2025-02-13 14:38:05 - End Time 2025-02-13 17:38:05 [2025-02-13 17:38:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 17:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467980', 'tblTempUsageDetail_20' ) start [2025-02-13 17:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467980', 'tblTempUsageDetail_20' ) end [2025-02-13 17:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467980', 'tblTempVendorCDR_20' ) start [2025-02-13 17:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467980', 'tblTempVendorCDR_20' ) end [2025-02-13 17:38:23] Production.INFO: ProcessCDR(1,14467980,1,1,2) [2025-02-13 17:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:38:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:38:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:38:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467980', 'tblTempUsageDetail_20' ) start [2025-02-13 17:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467980', 'tblTempUsageDetail_20' ) end [2025-02-13 17:38:29] Production.ERROR: pbx prc_insertCDR start [2025-02-13 17:38:29] Production.ERROR: pbx prc_insertCDR end [2025-02-13 17:38:29] Production.INFO: ==24298== Releasing lock... [2025-02-13 17:38:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 17:38:29] Production.INFO: 57.25 MB #Memory Used# [2025-02-13 17:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 14:39:06 [end_date_ymd] => 2025-02-13 17:39:06 [RateCDR] => 1 ) [2025-02-13 17: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-02-13 14:39:06' and `end` < '2025-02-13 17: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-02-13 17:39:20] Production.INFO: count ==3915 [2025-02-13 17:39:21] Production.ERROR: pbx CDR StartTime 2025-02-13 14:39:06 - End Time 2025-02-13 17:39:06 [2025-02-13 17:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467985', 'tblTempUsageDetail_20' ) start [2025-02-13 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467985', 'tblTempUsageDetail_20' ) end [2025-02-13 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467985', 'tblTempVendorCDR_20' ) start [2025-02-13 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467985', 'tblTempVendorCDR_20' ) end [2025-02-13 17:39:21] Production.INFO: ProcessCDR(1,14467985,1,1,2) [2025-02-13 17:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467985', 'tblTempUsageDetail_20' ) start [2025-02-13 17:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467985', 'tblTempUsageDetail_20' ) end [2025-02-13 17:39:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 17:39:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 17:39:26] Production.INFO: ==24380== Releasing lock... [2025-02-13 17:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 17:39:26] Production.INFO: 57.25 MB #Memory Used# [2025-02-13 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 14:40:06 [end_date_ymd] => 2025-02-13 17:40:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 14:40:06' and `end` < '2025-02-13 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-02-13 17:40:21] Production.INFO: count ==3912 [2025-02-13 17:40:23] Production.ERROR: pbx CDR StartTime 2025-02-13 14:40:06 - End Time 2025-02-13 17:40:06 [2025-02-13 17:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 17:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467991', 'tblTempUsageDetail_20' ) start [2025-02-13 17:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467991', 'tblTempUsageDetail_20' ) end [2025-02-13 17:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467991', 'tblTempVendorCDR_20' ) start [2025-02-13 17:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467991', 'tblTempVendorCDR_20' ) end [2025-02-13 17:40:23] Production.INFO: ProcessCDR(1,14467991,1,1,2) [2025-02-13 17:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467991', 'tblTempUsageDetail_20' ) start [2025-02-13 17:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467991', 'tblTempUsageDetail_20' ) end [2025-02-13 17:40:28] Production.ERROR: pbx prc_insertCDR start [2025-02-13 17:40:28] Production.ERROR: pbx prc_insertCDR end [2025-02-13 17:40:28] Production.INFO: ==24464== Releasing lock... [2025-02-13 17:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 17:40:28] Production.INFO: 57.25 MB #Memory Used# [2025-02-13 17:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 14:41:06 [end_date_ymd] => 2025-02-13 17:41:06 [RateCDR] => 1 ) [2025-02-13 17: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-02-13 14:41:06' and `end` < '2025-02-13 17: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-02-13 17:41:20] Production.INFO: count ==3907 [2025-02-13 17:41:22] Production.ERROR: pbx CDR StartTime 2025-02-13 14:41:06 - End Time 2025-02-13 17:41:06 [2025-02-13 17:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467996', 'tblTempUsageDetail_20' ) start [2025-02-13 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14467996', 'tblTempUsageDetail_20' ) end [2025-02-13 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467996', 'tblTempVendorCDR_20' ) start [2025-02-13 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14467996', 'tblTempVendorCDR_20' ) end [2025-02-13 17:41:22] Production.INFO: ProcessCDR(1,14467996,1,1,2) [2025-02-13 17:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14467996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14467996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14467996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14467996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467996', 'tblTempUsageDetail_20' ) start [2025-02-13 17:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14467996', 'tblTempUsageDetail_20' ) end [2025-02-13 17:41:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 17:41:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 17:41:27] Production.INFO: ==24547== Releasing lock... [2025-02-13 17:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 17:41:27] Production.INFO: 57.25 MB #Memory Used# [2025-02-13 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 14:42:05 [end_date_ymd] => 2025-02-13 17:42:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 14:42:05' and `end` < '2025-02-13 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-02-13 17:42:19] Production.INFO: count ==3884 [2025-02-13 17:42:20] Production.ERROR: pbx CDR StartTime 2025-02-13 14:42:05 - End Time 2025-02-13 17:42:05 [2025-02-13 17:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468001', 'tblTempUsageDetail_20' ) start [2025-02-13 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468001', 'tblTempUsageDetail_20' ) end [2025-02-13 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468001', 'tblTempVendorCDR_20' ) start [2025-02-13 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468001', 'tblTempVendorCDR_20' ) end [2025-02-13 17:42:20] Production.INFO: ProcessCDR(1,14468001,1,1,2) [2025-02-13 17:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468001', 'tblTempUsageDetail_20' ) start [2025-02-13 17:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468001', 'tblTempUsageDetail_20' ) end [2025-02-13 17:42:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 17:42:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 17:42:26] Production.INFO: ==24624== Releasing lock... [2025-02-13 17:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 17:42:26] Production.INFO: 57.25 MB #Memory Used# [2025-02-13 17:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 14:43:06 [end_date_ymd] => 2025-02-13 17:43:06 [RateCDR] => 1 ) [2025-02-13 17: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-02-13 14:43:06' and `end` < '2025-02-13 17: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-02-13 17:43:22] Production.INFO: count ==3897 [2025-02-13 17:43:24] Production.ERROR: pbx CDR StartTime 2025-02-13 14:43:06 - End Time 2025-02-13 17:43:06 [2025-02-13 17:43:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 17:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468006', 'tblTempUsageDetail_20' ) start [2025-02-13 17:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468006', 'tblTempUsageDetail_20' ) end [2025-02-13 17:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468006', 'tblTempVendorCDR_20' ) start [2025-02-13 17:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468006', 'tblTempVendorCDR_20' ) end [2025-02-13 17:43:24] Production.INFO: ProcessCDR(1,14468006,1,1,2) [2025-02-13 17:43:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:43:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:43:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:43:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468006', 'tblTempUsageDetail_20' ) start [2025-02-13 17:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468006', 'tblTempUsageDetail_20' ) end [2025-02-13 17:43:29] Production.ERROR: pbx prc_insertCDR start [2025-02-13 17:43:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 17:43:30] Production.INFO: ==24703== Releasing lock... [2025-02-13 17:43:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 17:43:30] Production.INFO: 57.75 MB #Memory Used# [2025-02-13 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 14:44:05 [end_date_ymd] => 2025-02-13 17:44:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 14:44:05' and `end` < '2025-02-13 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-02-13 17:44:18] Production.INFO: count ==3883 [2025-02-13 17:44:20] Production.ERROR: pbx CDR StartTime 2025-02-13 14:44:05 - End Time 2025-02-13 17:44:05 [2025-02-13 17:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468011', 'tblTempUsageDetail_20' ) start [2025-02-13 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468011', 'tblTempUsageDetail_20' ) end [2025-02-13 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468011', 'tblTempVendorCDR_20' ) start [2025-02-13 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468011', 'tblTempVendorCDR_20' ) end [2025-02-13 17:44:20] Production.INFO: ProcessCDR(1,14468011,1,1,2) [2025-02-13 17:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468011', 'tblTempUsageDetail_20' ) start [2025-02-13 17:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468011', 'tblTempUsageDetail_20' ) end [2025-02-13 17:44:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 17:44:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 17:44:26] Production.INFO: ==24781== Releasing lock... [2025-02-13 17:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 17:44:26] Production.INFO: 57 MB #Memory Used# [2025-02-13 17:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 14:45:06 [end_date_ymd] => 2025-02-13 17:45:06 [RateCDR] => 1 ) [2025-02-13 17: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-02-13 14:45:06' and `end` < '2025-02-13 17: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-02-13 17:45:21] Production.INFO: count ==3883 [2025-02-13 17:45:23] Production.ERROR: pbx CDR StartTime 2025-02-13 14:45:06 - End Time 2025-02-13 17:45:06 [2025-02-13 17:45:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 17:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468016', 'tblTempUsageDetail_20' ) start [2025-02-13 17:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468016', 'tblTempUsageDetail_20' ) end [2025-02-13 17:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468016', 'tblTempVendorCDR_20' ) start [2025-02-13 17:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468016', 'tblTempVendorCDR_20' ) end [2025-02-13 17:45:23] Production.INFO: ProcessCDR(1,14468016,1,1,2) [2025-02-13 17:45:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:45:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468016', 'tblTempUsageDetail_20' ) start [2025-02-13 17:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468016', 'tblTempUsageDetail_20' ) end [2025-02-13 17:45:28] Production.ERROR: pbx prc_insertCDR start [2025-02-13 17:45:28] Production.ERROR: pbx prc_insertCDR end [2025-02-13 17:45:28] Production.INFO: ==24861== Releasing lock... [2025-02-13 17:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 17:45:28] Production.INFO: 57.25 MB #Memory Used# [2025-02-13 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 14:46:05 [end_date_ymd] => 2025-02-13 17:46:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 14:46:05' and `end` < '2025-02-13 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-02-13 17:46:23] Production.INFO: count ==3865 [2025-02-13 17:46:24] Production.ERROR: pbx CDR StartTime 2025-02-13 14:46:05 - End Time 2025-02-13 17:46:05 [2025-02-13 17:46:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 17:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468021', 'tblTempUsageDetail_20' ) start [2025-02-13 17:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468021', 'tblTempUsageDetail_20' ) end [2025-02-13 17:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468021', 'tblTempVendorCDR_20' ) start [2025-02-13 17:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468021', 'tblTempVendorCDR_20' ) end [2025-02-13 17:46:24] Production.INFO: ProcessCDR(1,14468021,1,1,2) [2025-02-13 17:46:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:46:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:46:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:46:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468021', 'tblTempUsageDetail_20' ) start [2025-02-13 17:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468021', 'tblTempUsageDetail_20' ) end [2025-02-13 17:46:30] Production.ERROR: pbx prc_insertCDR start [2025-02-13 17:46:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 17:46:30] Production.INFO: ==24939== Releasing lock... [2025-02-13 17:46:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 17:46:30] Production.INFO: 57 MB #Memory Used# [2025-02-13 17:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 14:47:06 [end_date_ymd] => 2025-02-13 17:47:06 [RateCDR] => 1 ) [2025-02-13 17: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-02-13 14:47:06' and `end` < '2025-02-13 17: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-02-13 17:47:21] Production.INFO: count ==3857 [2025-02-13 17:47:22] Production.ERROR: pbx CDR StartTime 2025-02-13 14:47:06 - End Time 2025-02-13 17:47:06 [2025-02-13 17:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 17:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468026', 'tblTempUsageDetail_20' ) start [2025-02-13 17:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468026', 'tblTempUsageDetail_20' ) end [2025-02-13 17:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468026', 'tblTempVendorCDR_20' ) start [2025-02-13 17:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468026', 'tblTempVendorCDR_20' ) end [2025-02-13 17:47:22] Production.INFO: ProcessCDR(1,14468026,1,1,2) [2025-02-13 17:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:47:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468026', 'tblTempUsageDetail_20' ) start [2025-02-13 17:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468026', 'tblTempUsageDetail_20' ) end [2025-02-13 17:47:28] Production.ERROR: pbx prc_insertCDR start [2025-02-13 17:47:28] Production.ERROR: pbx prc_insertCDR end [2025-02-13 17:47:28] Production.INFO: ==25020== Releasing lock... [2025-02-13 17:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 17:47:28] Production.INFO: 56.75 MB #Memory Used# [2025-02-13 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 14:48:05 [end_date_ymd] => 2025-02-13 17:48:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 14:48:05' and `end` < '2025-02-13 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-02-13 17:48:23] Production.INFO: count ==3850 [2025-02-13 17:48:24] Production.ERROR: pbx CDR StartTime 2025-02-13 14:48:05 - End Time 2025-02-13 17:48:05 [2025-02-13 17:48:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 17:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468031', 'tblTempUsageDetail_20' ) start [2025-02-13 17:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468031', 'tblTempUsageDetail_20' ) end [2025-02-13 17:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468031', 'tblTempVendorCDR_20' ) start [2025-02-13 17:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468031', 'tblTempVendorCDR_20' ) end [2025-02-13 17:48:24] Production.INFO: ProcessCDR(1,14468031,1,1,2) [2025-02-13 17:48:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468031', 'tblTempUsageDetail_20' ) start [2025-02-13 17:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468031', 'tblTempUsageDetail_20' ) end [2025-02-13 17:48:28] Production.ERROR: pbx prc_insertCDR start [2025-02-13 17:48:28] Production.ERROR: pbx prc_insertCDR end [2025-02-13 17:48:28] Production.INFO: ==25101== Releasing lock... [2025-02-13 17:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 17:48:28] Production.INFO: 56.75 MB #Memory Used# [2025-02-13 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 14:49:05 [end_date_ymd] => 2025-02-13 17:49:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 14:49:05' and `end` < '2025-02-13 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-02-13 17:49:20] Production.INFO: count ==3861 [2025-02-13 17:49:21] Production.ERROR: pbx CDR StartTime 2025-02-13 14:49:05 - End Time 2025-02-13 17:49:05 [2025-02-13 17:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468036', 'tblTempUsageDetail_20' ) start [2025-02-13 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468036', 'tblTempUsageDetail_20' ) end [2025-02-13 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468036', 'tblTempVendorCDR_20' ) start [2025-02-13 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468036', 'tblTempVendorCDR_20' ) end [2025-02-13 17:49:21] Production.INFO: ProcessCDR(1,14468036,1,1,2) [2025-02-13 17:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468036', 'tblTempUsageDetail_20' ) start [2025-02-13 17:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468036', 'tblTempUsageDetail_20' ) end [2025-02-13 17:49:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 17:49:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 17:49:27] Production.INFO: ==25176== Releasing lock... [2025-02-13 17:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 17:49:27] Production.INFO: 57.25 MB #Memory Used# [2025-02-13 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 14:50:06 [end_date_ymd] => 2025-02-13 17:50:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 14:50:06' and `end` < '2025-02-13 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-02-13 17:50:19] Production.INFO: count ==3847 [2025-02-13 17:50:21] Production.ERROR: pbx CDR StartTime 2025-02-13 14:50:06 - End Time 2025-02-13 17:50:06 [2025-02-13 17:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468041', 'tblTempUsageDetail_20' ) start [2025-02-13 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468041', 'tblTempUsageDetail_20' ) end [2025-02-13 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468041', 'tblTempVendorCDR_20' ) start [2025-02-13 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468041', 'tblTempVendorCDR_20' ) end [2025-02-13 17:50:21] Production.INFO: ProcessCDR(1,14468041,1,1,2) [2025-02-13 17:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468041', 'tblTempUsageDetail_20' ) start [2025-02-13 17:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468041', 'tblTempUsageDetail_20' ) end [2025-02-13 17:50:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 17:50:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 17:50:26] Production.INFO: ==25252== Releasing lock... [2025-02-13 17:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 17:50:26] Production.INFO: 57.25 MB #Memory Used# [2025-02-13 17:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 14:51:06 [end_date_ymd] => 2025-02-13 17:51:06 [RateCDR] => 1 ) [2025-02-13 17: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-02-13 14:51:06' and `end` < '2025-02-13 17: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-02-13 17:51:21] Production.INFO: count ==3844 [2025-02-13 17:51:23] Production.ERROR: pbx CDR StartTime 2025-02-13 14:51:06 - End Time 2025-02-13 17:51:06 [2025-02-13 17:51:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 17:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468047', 'tblTempUsageDetail_20' ) start [2025-02-13 17:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468047', 'tblTempUsageDetail_20' ) end [2025-02-13 17:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468047', 'tblTempVendorCDR_20' ) start [2025-02-13 17:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468047', 'tblTempVendorCDR_20' ) end [2025-02-13 17:51:23] Production.INFO: ProcessCDR(1,14468047,1,1,2) [2025-02-13 17:51:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468047', 'tblTempUsageDetail_20' ) start [2025-02-13 17:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468047', 'tblTempUsageDetail_20' ) end [2025-02-13 17:51:28] Production.ERROR: pbx prc_insertCDR start [2025-02-13 17:51:28] Production.ERROR: pbx prc_insertCDR end [2025-02-13 17:51:28] Production.INFO: ==25332== Releasing lock... [2025-02-13 17:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 17:51:28] Production.INFO: 56.75 MB #Memory Used# [2025-02-13 17:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 14:52:06 [end_date_ymd] => 2025-02-13 17:52:06 [RateCDR] => 1 ) [2025-02-13 17: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-02-13 14:52:06' and `end` < '2025-02-13 17: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-02-13 17:52:20] Production.INFO: count ==3822 [2025-02-13 17:52:21] Production.ERROR: pbx CDR StartTime 2025-02-13 14:52:06 - End Time 2025-02-13 17:52:06 [2025-02-13 17:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468052', 'tblTempUsageDetail_20' ) start [2025-02-13 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468052', 'tblTempUsageDetail_20' ) end [2025-02-13 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468052', 'tblTempVendorCDR_20' ) start [2025-02-13 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468052', 'tblTempVendorCDR_20' ) end [2025-02-13 17:52:21] Production.INFO: ProcessCDR(1,14468052,1,1,2) [2025-02-13 17:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468052', 'tblTempUsageDetail_20' ) start [2025-02-13 17:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468052', 'tblTempUsageDetail_20' ) end [2025-02-13 17:52:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 17:52:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 17:52:26] Production.INFO: ==25447== Releasing lock... [2025-02-13 17:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 17:52:26] Production.INFO: 56.5 MB #Memory Used# [2025-02-13 17:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 14:53:06 [end_date_ymd] => 2025-02-13 17:53:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 14:53:06' and `end` < '2025-02-13 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-02-13 17:53:20] Production.INFO: count ==3817 [2025-02-13 17:53:21] Production.ERROR: pbx CDR StartTime 2025-02-13 14:53:06 - End Time 2025-02-13 17:53:06 [2025-02-13 17:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468057', 'tblTempUsageDetail_20' ) start [2025-02-13 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468057', 'tblTempUsageDetail_20' ) end [2025-02-13 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468057', 'tblTempVendorCDR_20' ) start [2025-02-13 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468057', 'tblTempVendorCDR_20' ) end [2025-02-13 17:53:21] Production.INFO: ProcessCDR(1,14468057,1,1,2) [2025-02-13 17:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468057', 'tblTempUsageDetail_20' ) start [2025-02-13 17:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468057', 'tblTempUsageDetail_20' ) end [2025-02-13 17:53:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 17:53:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 17:53:27] Production.INFO: ==25523== Releasing lock... [2025-02-13 17:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 17:53:27] Production.INFO: 56.75 MB #Memory Used# [2025-02-13 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 14:54:05 [end_date_ymd] => 2025-02-13 17:54:05 [RateCDR] => 1 ) [2025-02-13 17: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-02-13 14:54:05' and `end` < '2025-02-13 17: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-02-13 17:54:22] Production.INFO: count ==3820 [2025-02-13 17:54:24] Production.ERROR: pbx CDR StartTime 2025-02-13 14:54:05 - End Time 2025-02-13 17:54:05 [2025-02-13 17:54:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 17:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468062', 'tblTempUsageDetail_20' ) start [2025-02-13 17:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468062', 'tblTempUsageDetail_20' ) end [2025-02-13 17:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468062', 'tblTempVendorCDR_20' ) start [2025-02-13 17:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468062', 'tblTempVendorCDR_20' ) end [2025-02-13 17:54:24] Production.INFO: ProcessCDR(1,14468062,1,1,2) [2025-02-13 17:54:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:54:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:54:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:54:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:54:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468062', 'tblTempUsageDetail_20' ) start [2025-02-13 17:54:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468062', 'tblTempUsageDetail_20' ) end [2025-02-13 17:54:29] Production.ERROR: pbx prc_insertCDR start [2025-02-13 17:54:29] Production.ERROR: pbx prc_insertCDR end [2025-02-13 17:54:29] Production.INFO: ==25598== Releasing lock... [2025-02-13 17:54:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 17:54:29] Production.INFO: 56.5 MB #Memory Used# [2025-02-13 17:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 14:55:06 [end_date_ymd] => 2025-02-13 17:55:06 [RateCDR] => 1 ) [2025-02-13 17: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-02-13 14:55:06' and `end` < '2025-02-13 17: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-02-13 17:55:23] Production.INFO: count ==3788 [2025-02-13 17:55:24] Production.ERROR: pbx CDR StartTime 2025-02-13 14:55:06 - End Time 2025-02-13 17:55:06 [2025-02-13 17:55:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 17:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468067', 'tblTempUsageDetail_20' ) start [2025-02-13 17:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468067', 'tblTempUsageDetail_20' ) end [2025-02-13 17:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468067', 'tblTempVendorCDR_20' ) start [2025-02-13 17:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468067', 'tblTempVendorCDR_20' ) end [2025-02-13 17:55:24] Production.INFO: ProcessCDR(1,14468067,1,1,2) [2025-02-13 17:55:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:55:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:55:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:55:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:55:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468067', 'tblTempUsageDetail_20' ) start [2025-02-13 17:55:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468067', 'tblTempUsageDetail_20' ) end [2025-02-13 17:55:29] Production.ERROR: pbx prc_insertCDR start [2025-02-13 17:55:29] Production.ERROR: pbx prc_insertCDR end [2025-02-13 17:55:29] Production.INFO: ==25672== Releasing lock... [2025-02-13 17:55:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 17:55:29] Production.INFO: 56.75 MB #Memory Used# [2025-02-13 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 14:56:05 [end_date_ymd] => 2025-02-13 17:56:05 [RateCDR] => 1 ) [2025-02-13 17: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-02-13 14:56:05' and `end` < '2025-02-13 17: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-02-13 17:56:20] Production.INFO: count ==3783 [2025-02-13 17:56:22] Production.ERROR: pbx CDR StartTime 2025-02-13 14:56:05 - End Time 2025-02-13 17:56:05 [2025-02-13 17:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 17:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468072', 'tblTempUsageDetail_20' ) start [2025-02-13 17:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468072', 'tblTempUsageDetail_20' ) end [2025-02-13 17:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468072', 'tblTempVendorCDR_20' ) start [2025-02-13 17:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468072', 'tblTempVendorCDR_20' ) end [2025-02-13 17:56:22] Production.INFO: ProcessCDR(1,14468072,1,1,2) [2025-02-13 17:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468072', 'tblTempUsageDetail_20' ) start [2025-02-13 17:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468072', 'tblTempUsageDetail_20' ) end [2025-02-13 17:56:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 17:56:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 17:56:27] Production.INFO: ==25747== Releasing lock... [2025-02-13 17:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 17:56:27] Production.INFO: 56.25 MB #Memory Used# [2025-02-13 17:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 14:57:06 [end_date_ymd] => 2025-02-13 17:57:06 [RateCDR] => 1 ) [2025-02-13 17: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-02-13 14:57:06' and `end` < '2025-02-13 17: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-02-13 17:57:20] Production.INFO: count ==3775 [2025-02-13 17:57:21] Production.ERROR: pbx CDR StartTime 2025-02-13 14:57:06 - End Time 2025-02-13 17:57:06 [2025-02-13 17:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468077', 'tblTempUsageDetail_20' ) start [2025-02-13 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468077', 'tblTempUsageDetail_20' ) end [2025-02-13 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468077', 'tblTempVendorCDR_20' ) start [2025-02-13 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468077', 'tblTempVendorCDR_20' ) end [2025-02-13 17:57:21] Production.INFO: ProcessCDR(1,14468077,1,1,2) [2025-02-13 17:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468077', 'tblTempUsageDetail_20' ) start [2025-02-13 17:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468077', 'tblTempUsageDetail_20' ) end [2025-02-13 17:57:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 17:57:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 17:57:26] Production.INFO: ==25826== Releasing lock... [2025-02-13 17:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 17:57:26] Production.INFO: 57 MB #Memory Used# [2025-02-13 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 14:58:05 [end_date_ymd] => 2025-02-13 17:58:05 [RateCDR] => 1 ) [2025-02-13 17: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-02-13 14:58:05' and `end` < '2025-02-13 17: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-02-13 17:58:23] Production.INFO: count ==3777 [2025-02-13 17:58:25] Production.ERROR: pbx CDR StartTime 2025-02-13 14:58:05 - End Time 2025-02-13 17:58:05 [2025-02-13 17:58:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 17:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468082', 'tblTempUsageDetail_20' ) start [2025-02-13 17:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468082', 'tblTempUsageDetail_20' ) end [2025-02-13 17:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468082', 'tblTempVendorCDR_20' ) start [2025-02-13 17:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468082', 'tblTempVendorCDR_20' ) end [2025-02-13 17:58:25] Production.INFO: ProcessCDR(1,14468082,1,1,2) [2025-02-13 17:58:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:58:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:58:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:58:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468082', 'tblTempUsageDetail_20' ) start [2025-02-13 17:58:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468082', 'tblTempUsageDetail_20' ) end [2025-02-13 17:58:30] Production.ERROR: pbx prc_insertCDR start [2025-02-13 17:58:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 17:58:30] Production.INFO: ==25898== Releasing lock... [2025-02-13 17:58:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 17:58:30] Production.INFO: 56.5 MB #Memory Used# [2025-02-13 17:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 14:59:06 [end_date_ymd] => 2025-02-13 17:59:06 [RateCDR] => 1 ) [2025-02-13 17: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-02-13 14:59:06' and `end` < '2025-02-13 17: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-02-13 17:59:24] Production.INFO: count ==3781 [2025-02-13 17:59:26] Production.ERROR: pbx CDR StartTime 2025-02-13 14:59:06 - End Time 2025-02-13 17:59:06 [2025-02-13 17:59:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 17:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468087', 'tblTempUsageDetail_20' ) start [2025-02-13 17:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468087', 'tblTempUsageDetail_20' ) end [2025-02-13 17:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468087', 'tblTempVendorCDR_20' ) start [2025-02-13 17:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468087', 'tblTempVendorCDR_20' ) end [2025-02-13 17:59:26] Production.INFO: ProcessCDR(1,14468087,1,1,2) [2025-02-13 17:59:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:59:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 17:59:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:59:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 17:59:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468087', 'tblTempUsageDetail_20' ) start [2025-02-13 17:59:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468087', 'tblTempUsageDetail_20' ) end [2025-02-13 17:59:31] Production.ERROR: pbx prc_insertCDR start [2025-02-13 17:59:31] Production.ERROR: pbx prc_insertCDR end [2025-02-13 17:59:31] Production.INFO: ==25970== Releasing lock... [2025-02-13 17:59:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 17:59:31] Production.INFO: 56.5 MB #Memory Used# [2025-02-13 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 15:00:06 [end_date_ymd] => 2025-02-13 18:00:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 15:00:06' and `end` < '2025-02-13 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-02-13 18:00:34] Production.INFO: count ==3777 [2025-02-13 18:00:36] Production.ERROR: pbx CDR StartTime 2025-02-13 15:00:06 - End Time 2025-02-13 18:00:06 [2025-02-13 18:00:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 18:00:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468092', 'tblTempUsageDetail_20' ) start [2025-02-13 18:00:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468092', 'tblTempUsageDetail_20' ) end [2025-02-13 18:00:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468092', 'tblTempVendorCDR_20' ) start [2025-02-13 18:00:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468092', 'tblTempVendorCDR_20' ) end [2025-02-13 18:00:36] Production.INFO: ProcessCDR(1,14468092,1,1,2) [2025-02-13 18:00:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:00:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:00:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:00:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:00:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468092', 'tblTempUsageDetail_20' ) start [2025-02-13 18:00:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468092', 'tblTempUsageDetail_20' ) end [2025-02-13 18:00:42] Production.ERROR: pbx prc_insertCDR start [2025-02-13 18:00:42] Production.ERROR: pbx prc_insertCDR end [2025-02-13 18:00:42] Production.INFO: ==26047== Releasing lock... [2025-02-13 18:00:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 18:00:42] Production.INFO: 57 MB #Memory Used# [2025-02-13 18:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 15:01:06 [end_date_ymd] => 2025-02-13 18:01:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 15:01:06' and `end` < '2025-02-13 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-02-13 18:01:24] Production.INFO: count ==3758 [2025-02-13 18:01:25] Production.ERROR: pbx CDR StartTime 2025-02-13 15:01:06 - End Time 2025-02-13 18:01:06 [2025-02-13 18:01:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 18:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468098', 'tblTempUsageDetail_20' ) start [2025-02-13 18:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468098', 'tblTempUsageDetail_20' ) end [2025-02-13 18:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468098', 'tblTempVendorCDR_20' ) start [2025-02-13 18:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468098', 'tblTempVendorCDR_20' ) end [2025-02-13 18:01:25] Production.INFO: ProcessCDR(1,14468098,1,1,2) [2025-02-13 18:01:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:01:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:01:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:01:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468098', 'tblTempUsageDetail_20' ) start [2025-02-13 18:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468098', 'tblTempUsageDetail_20' ) end [2025-02-13 18:01:30] Production.ERROR: pbx prc_insertCDR start [2025-02-13 18:01:30] Production.ERROR: pbx prc_insertCDR end [2025-02-13 18:01:30] Production.INFO: ==26133== Releasing lock... [2025-02-13 18:01:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 18:01:30] Production.INFO: 57 MB #Memory Used# [2025-02-13 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 15:02:05 [end_date_ymd] => 2025-02-13 18:02:05 [RateCDR] => 1 ) [2025-02-13 18: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-02-13 15:02:05' and `end` < '2025-02-13 18: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-02-13 18:02:22] Production.INFO: count ==3752 [2025-02-13 18:02:23] Production.ERROR: pbx CDR StartTime 2025-02-13 15:02:05 - End Time 2025-02-13 18:02:05 [2025-02-13 18:02:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 18:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468103', 'tblTempUsageDetail_20' ) start [2025-02-13 18:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468103', 'tblTempUsageDetail_20' ) end [2025-02-13 18:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468103', 'tblTempVendorCDR_20' ) start [2025-02-13 18:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468103', 'tblTempVendorCDR_20' ) end [2025-02-13 18:02:24] Production.INFO: ProcessCDR(1,14468103,1,1,2) [2025-02-13 18:02:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:02:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468103', 'tblTempUsageDetail_20' ) start [2025-02-13 18:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468103', 'tblTempUsageDetail_20' ) end [2025-02-13 18:02:29] Production.ERROR: pbx prc_insertCDR start [2025-02-13 18:02:29] Production.ERROR: pbx prc_insertCDR end [2025-02-13 18:02:29] Production.INFO: ==26203== Releasing lock... [2025-02-13 18:02:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 18:02:29] Production.INFO: 56 MB #Memory Used# [2025-02-13 18:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 15:03:06 [end_date_ymd] => 2025-02-13 18:03:06 [RateCDR] => 1 ) [2025-02-13 18: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-02-13 15:03:06' and `end` < '2025-02-13 18: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-02-13 18:03:20] Production.INFO: count ==3749 [2025-02-13 18:03:21] Production.ERROR: pbx CDR StartTime 2025-02-13 15:03:06 - End Time 2025-02-13 18:03:06 [2025-02-13 18:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468108', 'tblTempUsageDetail_20' ) start [2025-02-13 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468108', 'tblTempUsageDetail_20' ) end [2025-02-13 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468108', 'tblTempVendorCDR_20' ) start [2025-02-13 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468108', 'tblTempVendorCDR_20' ) end [2025-02-13 18:03:21] Production.INFO: ProcessCDR(1,14468108,1,1,2) [2025-02-13 18:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468108', 'tblTempUsageDetail_20' ) start [2025-02-13 18:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468108', 'tblTempUsageDetail_20' ) end [2025-02-13 18:03:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 18:03:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 18:03:27] Production.INFO: ==26276== Releasing lock... [2025-02-13 18:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 18:03:27] Production.INFO: 56 MB #Memory Used# [2025-02-13 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 15:04:05 [end_date_ymd] => 2025-02-13 18:04:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 15:04:05' and `end` < '2025-02-13 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-02-13 18:04:22] Production.INFO: count ==3737 [2025-02-13 18:04:23] Production.ERROR: pbx CDR StartTime 2025-02-13 15:04:05 - End Time 2025-02-13 18:04:05 [2025-02-13 18:04:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 18:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468113', 'tblTempUsageDetail_20' ) start [2025-02-13 18:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468113', 'tblTempUsageDetail_20' ) end [2025-02-13 18:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468113', 'tblTempVendorCDR_20' ) start [2025-02-13 18:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468113', 'tblTempVendorCDR_20' ) end [2025-02-13 18:04:23] Production.INFO: ProcessCDR(1,14468113,1,1,2) [2025-02-13 18:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:04:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:04:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468113', 'tblTempUsageDetail_20' ) start [2025-02-13 18:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468113', 'tblTempUsageDetail_20' ) end [2025-02-13 18:04:28] Production.ERROR: pbx prc_insertCDR start [2025-02-13 18:04:28] Production.ERROR: pbx prc_insertCDR end [2025-02-13 18:04:28] Production.INFO: ==26347== Releasing lock... [2025-02-13 18:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 18:04:28] Production.INFO: 56 MB #Memory Used# [2025-02-13 18:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 15:05:06 [end_date_ymd] => 2025-02-13 18:05:06 [RateCDR] => 1 ) [2025-02-13 18: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-02-13 15:05:06' and `end` < '2025-02-13 18: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-02-13 18:05:19] Production.INFO: count ==3713 [2025-02-13 18:05:21] Production.ERROR: pbx CDR StartTime 2025-02-13 15:05:06 - End Time 2025-02-13 18:05:06 [2025-02-13 18:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468118', 'tblTempUsageDetail_20' ) start [2025-02-13 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468118', 'tblTempUsageDetail_20' ) end [2025-02-13 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468118', 'tblTempVendorCDR_20' ) start [2025-02-13 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468118', 'tblTempVendorCDR_20' ) end [2025-02-13 18:05:21] Production.INFO: ProcessCDR(1,14468118,1,1,2) [2025-02-13 18:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468118', 'tblTempUsageDetail_20' ) start [2025-02-13 18:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468118', 'tblTempUsageDetail_20' ) end [2025-02-13 18:05:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 18:05:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 18:05:25] Production.INFO: ==26418== Releasing lock... [2025-02-13 18:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 18:05:25] Production.INFO: 55.75 MB #Memory Used# [2025-02-13 18:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 15:06:06 [end_date_ymd] => 2025-02-13 18:06:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 15:06:06' and `end` < '2025-02-13 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-02-13 18:06:22] Production.INFO: count ==3707 [2025-02-13 18:06:23] Production.ERROR: pbx CDR StartTime 2025-02-13 15:06:06 - End Time 2025-02-13 18:06:06 [2025-02-13 18:06:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 18:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468123', 'tblTempUsageDetail_20' ) start [2025-02-13 18:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468123', 'tblTempUsageDetail_20' ) end [2025-02-13 18:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468123', 'tblTempVendorCDR_20' ) start [2025-02-13 18:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468123', 'tblTempVendorCDR_20' ) end [2025-02-13 18:06:23] Production.INFO: ProcessCDR(1,14468123,1,1,2) [2025-02-13 18:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468123', 'tblTempUsageDetail_20' ) start [2025-02-13 18:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468123', 'tblTempUsageDetail_20' ) end [2025-02-13 18:06:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 18:06:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 18:06:27] Production.INFO: ==26489== Releasing lock... [2025-02-13 18:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 18:06:27] Production.INFO: 55.75 MB #Memory Used# [2025-02-13 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 15:07:05 [end_date_ymd] => 2025-02-13 18:07:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 15:07:05' and `end` < '2025-02-13 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-02-13 18:07:19] Production.INFO: count ==3724 [2025-02-13 18:07:20] Production.ERROR: pbx CDR StartTime 2025-02-13 15:07:05 - End Time 2025-02-13 18:07:05 [2025-02-13 18:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468128', 'tblTempUsageDetail_20' ) start [2025-02-13 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468128', 'tblTempUsageDetail_20' ) end [2025-02-13 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468128', 'tblTempVendorCDR_20' ) start [2025-02-13 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468128', 'tblTempVendorCDR_20' ) end [2025-02-13 18:07:20] Production.INFO: ProcessCDR(1,14468128,1,1,2) [2025-02-13 18:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468128', 'tblTempUsageDetail_20' ) start [2025-02-13 18:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468128', 'tblTempUsageDetail_20' ) end [2025-02-13 18:07:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 18:07:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 18:07:25] Production.INFO: ==26598== Releasing lock... [2025-02-13 18:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 18:07:25] Production.INFO: 55.75 MB #Memory Used# [2025-02-13 18:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 15:08:06 [end_date_ymd] => 2025-02-13 18:08:06 [RateCDR] => 1 ) [2025-02-13 18: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-02-13 15:08:06' and `end` < '2025-02-13 18: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-02-13 18:08:20] Production.INFO: count ==3717 [2025-02-13 18:08:22] Production.ERROR: pbx CDR StartTime 2025-02-13 15:08:06 - End Time 2025-02-13 18:08:06 [2025-02-13 18:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 18:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468133', 'tblTempUsageDetail_20' ) start [2025-02-13 18:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468133', 'tblTempUsageDetail_20' ) end [2025-02-13 18:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468133', 'tblTempVendorCDR_20' ) start [2025-02-13 18:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468133', 'tblTempVendorCDR_20' ) end [2025-02-13 18:08:22] Production.INFO: ProcessCDR(1,14468133,1,1,2) [2025-02-13 18:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468133', 'tblTempUsageDetail_20' ) start [2025-02-13 18:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468133', 'tblTempUsageDetail_20' ) end [2025-02-13 18:08:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 18:08:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 18:08:27] Production.INFO: ==26670== Releasing lock... [2025-02-13 18:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 18:08:27] Production.INFO: 56.25 MB #Memory Used# [2025-02-13 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 15:09:05 [end_date_ymd] => 2025-02-13 18:09:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 15:09:05' and `end` < '2025-02-13 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-02-13 18:09:20] Production.INFO: count ==3705 [2025-02-13 18:09:21] Production.ERROR: pbx CDR StartTime 2025-02-13 15:09:05 - End Time 2025-02-13 18:09:05 [2025-02-13 18:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468138', 'tblTempUsageDetail_20' ) start [2025-02-13 18:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468138', 'tblTempUsageDetail_20' ) end [2025-02-13 18:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468138', 'tblTempVendorCDR_20' ) start [2025-02-13 18:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468138', 'tblTempVendorCDR_20' ) end [2025-02-13 18:09:22] Production.INFO: ProcessCDR(1,14468138,1,1,2) [2025-02-13 18:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468138', 'tblTempUsageDetail_20' ) start [2025-02-13 18:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468138', 'tblTempUsageDetail_20' ) end [2025-02-13 18:09:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 18:09:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 18:09:25] Production.INFO: ==26741== Releasing lock... [2025-02-13 18:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 18:09:25] Production.INFO: 55.75 MB #Memory Used# [2025-02-13 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 15:10:06 [end_date_ymd] => 2025-02-13 18:10:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 15:10:06' and `end` < '2025-02-13 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-02-13 18:10:20] Production.INFO: count ==3699 [2025-02-13 18:10:21] Production.ERROR: pbx CDR StartTime 2025-02-13 15:10:06 - End Time 2025-02-13 18:10:06 [2025-02-13 18:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468144', 'tblTempUsageDetail_20' ) start [2025-02-13 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468144', 'tblTempUsageDetail_20' ) end [2025-02-13 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468144', 'tblTempVendorCDR_20' ) start [2025-02-13 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468144', 'tblTempVendorCDR_20' ) end [2025-02-13 18:10:21] Production.INFO: ProcessCDR(1,14468144,1,1,2) [2025-02-13 18:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468144', 'tblTempUsageDetail_20' ) start [2025-02-13 18:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468144', 'tblTempUsageDetail_20' ) end [2025-02-13 18:10:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 18:10:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 18:10:26] Production.INFO: ==26816== Releasing lock... [2025-02-13 18:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 18:10:26] Production.INFO: 55.5 MB #Memory Used# [2025-02-13 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 15:11:05 [end_date_ymd] => 2025-02-13 18:11:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 15:11:05' and `end` < '2025-02-13 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-02-13 18:11:20] Production.INFO: count ==3685 [2025-02-13 18:11:22] Production.ERROR: pbx CDR StartTime 2025-02-13 15:11:05 - End Time 2025-02-13 18:11:05 [2025-02-13 18:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 18:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468149', 'tblTempUsageDetail_20' ) start [2025-02-13 18:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468149', 'tblTempUsageDetail_20' ) end [2025-02-13 18:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468149', 'tblTempVendorCDR_20' ) start [2025-02-13 18:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468149', 'tblTempVendorCDR_20' ) end [2025-02-13 18:11:22] Production.INFO: ProcessCDR(1,14468149,1,1,2) [2025-02-13 18:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468149', 'tblTempUsageDetail_20' ) start [2025-02-13 18:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468149', 'tblTempUsageDetail_20' ) end [2025-02-13 18:11:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 18:11:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 18:11:25] Production.INFO: ==26889== Releasing lock... [2025-02-13 18:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 18:11:25] Production.INFO: 55.75 MB #Memory Used# [2025-02-13 18:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 15:12:06 [end_date_ymd] => 2025-02-13 18:12:06 [RateCDR] => 1 ) [2025-02-13 18: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-02-13 15:12:06' and `end` < '2025-02-13 18: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-02-13 18:12:21] Production.INFO: count ==3685 [2025-02-13 18:12:22] Production.ERROR: pbx CDR StartTime 2025-02-13 15:12:06 - End Time 2025-02-13 18:12:06 [2025-02-13 18:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 18:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468154', 'tblTempUsageDetail_20' ) start [2025-02-13 18:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468154', 'tblTempUsageDetail_20' ) end [2025-02-13 18:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468154', 'tblTempVendorCDR_20' ) start [2025-02-13 18:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468154', 'tblTempVendorCDR_20' ) end [2025-02-13 18:12:22] Production.INFO: ProcessCDR(1,14468154,1,1,2) [2025-02-13 18:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468154', 'tblTempUsageDetail_20' ) start [2025-02-13 18:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468154', 'tblTempUsageDetail_20' ) end [2025-02-13 18:12:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 18:12:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 18:12:27] Production.INFO: ==26960== Releasing lock... [2025-02-13 18:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 18:12:27] Production.INFO: 56.25 MB #Memory Used# [2025-02-13 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 15:13:05 [end_date_ymd] => 2025-02-13 18:13:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 15:13:05' and `end` < '2025-02-13 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-02-13 18:13:22] Production.INFO: count ==3668 [2025-02-13 18:13:23] Production.ERROR: pbx CDR StartTime 2025-02-13 15:13:05 - End Time 2025-02-13 18:13:05 [2025-02-13 18:13:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 18:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468159', 'tblTempUsageDetail_20' ) start [2025-02-13 18:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468159', 'tblTempUsageDetail_20' ) end [2025-02-13 18:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468159', 'tblTempVendorCDR_20' ) start [2025-02-13 18:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468159', 'tblTempVendorCDR_20' ) end [2025-02-13 18:13:23] Production.INFO: ProcessCDR(1,14468159,1,1,2) [2025-02-13 18:13:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468159', 'tblTempUsageDetail_20' ) start [2025-02-13 18:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468159', 'tblTempUsageDetail_20' ) end [2025-02-13 18:13:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 18:13:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 18:13:27] Production.INFO: ==27031== Releasing lock... [2025-02-13 18:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 18:13:27] Production.INFO: 55.5 MB #Memory Used# [2025-02-13 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 15:14:05 [end_date_ymd] => 2025-02-13 18:14:05 [RateCDR] => 1 ) [2025-02-13 18: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-02-13 15:14:05' and `end` < '2025-02-13 18: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-02-13 18:14:20] Production.INFO: count ==3668 [2025-02-13 18:14:21] Production.ERROR: pbx CDR StartTime 2025-02-13 15:14:05 - End Time 2025-02-13 18:14:05 [2025-02-13 18:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468164', 'tblTempUsageDetail_20' ) start [2025-02-13 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468164', 'tblTempUsageDetail_20' ) end [2025-02-13 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468164', 'tblTempVendorCDR_20' ) start [2025-02-13 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468164', 'tblTempVendorCDR_20' ) end [2025-02-13 18:14:21] Production.INFO: ProcessCDR(1,14468164,1,1,2) [2025-02-13 18:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468164', 'tblTempUsageDetail_20' ) start [2025-02-13 18:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468164', 'tblTempUsageDetail_20' ) end [2025-02-13 18:14:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 18:14:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 18:14:26] Production.INFO: ==27100== Releasing lock... [2025-02-13 18:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 18:14:26] Production.INFO: 55.5 MB #Memory Used# [2025-02-13 18:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 15:15:06 [end_date_ymd] => 2025-02-13 18:15:06 [RateCDR] => 1 ) [2025-02-13 18: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-02-13 15:15:06' and `end` < '2025-02-13 18: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-02-13 18:15:24] Production.INFO: count ==3667 [2025-02-13 18:15:25] Production.ERROR: pbx CDR StartTime 2025-02-13 15:15:06 - End Time 2025-02-13 18:15:06 [2025-02-13 18:15:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 18:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468169', 'tblTempUsageDetail_20' ) start [2025-02-13 18:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468169', 'tblTempUsageDetail_20' ) end [2025-02-13 18:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468169', 'tblTempVendorCDR_20' ) start [2025-02-13 18:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468169', 'tblTempVendorCDR_20' ) end [2025-02-13 18:15:25] Production.INFO: ProcessCDR(1,14468169,1,1,2) [2025-02-13 18:15:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:15:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:15:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:15:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:15:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468169', 'tblTempUsageDetail_20' ) start [2025-02-13 18:15:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468169', 'tblTempUsageDetail_20' ) end [2025-02-13 18:15:29] Production.ERROR: pbx prc_insertCDR start [2025-02-13 18:15:29] Production.ERROR: pbx prc_insertCDR end [2025-02-13 18:15:29] Production.INFO: ==27172== Releasing lock... [2025-02-13 18:15:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 18:15:29] Production.INFO: 55.5 MB #Memory Used# [2025-02-13 18:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 15:16:06 [end_date_ymd] => 2025-02-13 18:16:06 [RateCDR] => 1 ) [2025-02-13 18: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-02-13 15:16:06' and `end` < '2025-02-13 18: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-02-13 18:16:22] Production.INFO: count ==3663 [2025-02-13 18:16:23] Production.ERROR: pbx CDR StartTime 2025-02-13 15:16:06 - End Time 2025-02-13 18:16:06 [2025-02-13 18:16:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 18:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468174', 'tblTempUsageDetail_20' ) start [2025-02-13 18:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468174', 'tblTempUsageDetail_20' ) end [2025-02-13 18:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468174', 'tblTempVendorCDR_20' ) start [2025-02-13 18:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468174', 'tblTempVendorCDR_20' ) end [2025-02-13 18:16:23] Production.INFO: ProcessCDR(1,14468174,1,1,2) [2025-02-13 18:16:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:16:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:16:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:16:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468174', 'tblTempUsageDetail_20' ) start [2025-02-13 18:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468174', 'tblTempUsageDetail_20' ) end [2025-02-13 18:16:28] Production.ERROR: pbx prc_insertCDR start [2025-02-13 18:16:28] Production.ERROR: pbx prc_insertCDR end [2025-02-13 18:16:28] Production.INFO: ==27243== Releasing lock... [2025-02-13 18:16:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 18:16:28] Production.INFO: 55.25 MB #Memory Used# [2025-02-13 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 15:17:05 [end_date_ymd] => 2025-02-13 18:17:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 15:17:05' and `end` < '2025-02-13 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-02-13 18:17:19] Production.INFO: count ==3659 [2025-02-13 18:17:21] Production.ERROR: pbx CDR StartTime 2025-02-13 15:17:05 - End Time 2025-02-13 18:17:05 [2025-02-13 18:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468179', 'tblTempUsageDetail_20' ) start [2025-02-13 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468179', 'tblTempUsageDetail_20' ) end [2025-02-13 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468179', 'tblTempVendorCDR_20' ) start [2025-02-13 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468179', 'tblTempVendorCDR_20' ) end [2025-02-13 18:17:21] Production.INFO: ProcessCDR(1,14468179,1,1,2) [2025-02-13 18:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468179', 'tblTempUsageDetail_20' ) start [2025-02-13 18:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468179', 'tblTempUsageDetail_20' ) end [2025-02-13 18:17:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 18:17:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 18:17:26] Production.INFO: ==27320== Releasing lock... [2025-02-13 18:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 18:17:26] Production.INFO: 55.5 MB #Memory Used# [2025-02-13 18:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 15:18:06 [end_date_ymd] => 2025-02-13 18:18:06 [RateCDR] => 1 ) [2025-02-13 18: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-02-13 15:18:06' and `end` < '2025-02-13 18: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-02-13 18:18:20] Production.INFO: count ==3634 [2025-02-13 18:18:21] Production.ERROR: pbx CDR StartTime 2025-02-13 15:18:06 - End Time 2025-02-13 18:18:06 [2025-02-13 18:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468184', 'tblTempUsageDetail_20' ) start [2025-02-13 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468184', 'tblTempUsageDetail_20' ) end [2025-02-13 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468184', 'tblTempVendorCDR_20' ) start [2025-02-13 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468184', 'tblTempVendorCDR_20' ) end [2025-02-13 18:18:21] Production.INFO: ProcessCDR(1,14468184,1,1,2) [2025-02-13 18:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468184', 'tblTempUsageDetail_20' ) start [2025-02-13 18:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468184', 'tblTempUsageDetail_20' ) end [2025-02-13 18:18:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 18:18:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 18:18:26] Production.INFO: ==27392== Releasing lock... [2025-02-13 18:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 18:18:26] Production.INFO: 55.25 MB #Memory Used# [2025-02-13 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 15:19:05 [end_date_ymd] => 2025-02-13 18:19:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 15:19:05' and `end` < '2025-02-13 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-02-13 18:19:19] Production.INFO: count ==3631 [2025-02-13 18:19:20] Production.ERROR: pbx CDR StartTime 2025-02-13 15:19:05 - End Time 2025-02-13 18:19:05 [2025-02-13 18:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468189', 'tblTempUsageDetail_20' ) start [2025-02-13 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468189', 'tblTempUsageDetail_20' ) end [2025-02-13 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468189', 'tblTempVendorCDR_20' ) start [2025-02-13 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468189', 'tblTempVendorCDR_20' ) end [2025-02-13 18:19:20] Production.INFO: ProcessCDR(1,14468189,1,1,2) [2025-02-13 18:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468189', 'tblTempUsageDetail_20' ) start [2025-02-13 18:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468189', 'tblTempUsageDetail_20' ) end [2025-02-13 18:19:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 18:19:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 18:19:25] Production.INFO: ==27463== Releasing lock... [2025-02-13 18:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 18:19:25] Production.INFO: 55.25 MB #Memory Used# [2025-02-13 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 15:20:06 [end_date_ymd] => 2025-02-13 18:20:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 15:20:06' and `end` < '2025-02-13 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-02-13 18:20:20] Production.INFO: count ==3620 [2025-02-13 18:20:21] Production.ERROR: pbx CDR StartTime 2025-02-13 15:20:06 - End Time 2025-02-13 18:20:06 [2025-02-13 18:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468195', 'tblTempUsageDetail_20' ) start [2025-02-13 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468195', 'tblTempUsageDetail_20' ) end [2025-02-13 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468195', 'tblTempVendorCDR_20' ) start [2025-02-13 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468195', 'tblTempVendorCDR_20' ) end [2025-02-13 18:20:21] Production.INFO: ProcessCDR(1,14468195,1,1,2) [2025-02-13 18:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468195', 'tblTempUsageDetail_20' ) start [2025-02-13 18:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468195', 'tblTempUsageDetail_20' ) end [2025-02-13 18:20:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 18:20:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 18:20:26] Production.INFO: ==27535== Releasing lock... [2025-02-13 18:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 18:20:26] Production.INFO: 55.5 MB #Memory Used# [2025-02-13 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 15:21:05 [end_date_ymd] => 2025-02-13 18:21:05 [RateCDR] => 1 ) [2025-02-13 18: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-02-13 15:21:05' and `end` < '2025-02-13 18: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-02-13 18:21:20] Production.INFO: count ==3591 [2025-02-13 18:21:21] Production.ERROR: pbx CDR StartTime 2025-02-13 15:21:05 - End Time 2025-02-13 18:21:05 [2025-02-13 18:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468200', 'tblTempUsageDetail_20' ) start [2025-02-13 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468200', 'tblTempUsageDetail_20' ) end [2025-02-13 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468200', 'tblTempVendorCDR_20' ) start [2025-02-13 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468200', 'tblTempVendorCDR_20' ) end [2025-02-13 18:21:21] Production.INFO: ProcessCDR(1,14468200,1,1,2) [2025-02-13 18:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468200', 'tblTempUsageDetail_20' ) start [2025-02-13 18:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468200', 'tblTempUsageDetail_20' ) end [2025-02-13 18:21:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 18:21:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 18:21:26] Production.INFO: ==27610== Releasing lock... [2025-02-13 18:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 18:21:26] Production.INFO: 55 MB #Memory Used# [2025-02-13 18:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 15:22:06 [end_date_ymd] => 2025-02-13 18:22:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 15:22:06' and `end` < '2025-02-13 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-02-13 18:22:19] Production.INFO: count ==3587 [2025-02-13 18:22:21] Production.ERROR: pbx CDR StartTime 2025-02-13 15:22:06 - End Time 2025-02-13 18:22:06 [2025-02-13 18:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468205', 'tblTempUsageDetail_20' ) start [2025-02-13 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468205', 'tblTempUsageDetail_20' ) end [2025-02-13 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468205', 'tblTempVendorCDR_20' ) start [2025-02-13 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468205', 'tblTempVendorCDR_20' ) end [2025-02-13 18:22:21] Production.INFO: ProcessCDR(1,14468205,1,1,2) [2025-02-13 18:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468205', 'tblTempUsageDetail_20' ) start [2025-02-13 18:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468205', 'tblTempUsageDetail_20' ) end [2025-02-13 18:22:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 18:22:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 18:22:26] Production.INFO: ==27683== Releasing lock... [2025-02-13 18:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 18:22:26] Production.INFO: 55.5 MB #Memory Used# [2025-02-13 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 15:23:05 [end_date_ymd] => 2025-02-13 18:23:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 15:23:05' and `end` < '2025-02-13 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-02-13 18:23:21] Production.INFO: count ==3584 [2025-02-13 18:23:23] Production.ERROR: pbx CDR StartTime 2025-02-13 15:23:05 - End Time 2025-02-13 18:23:05 [2025-02-13 18:23:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 18:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468210', 'tblTempUsageDetail_20' ) start [2025-02-13 18:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468210', 'tblTempUsageDetail_20' ) end [2025-02-13 18:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468210', 'tblTempVendorCDR_20' ) start [2025-02-13 18:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468210', 'tblTempVendorCDR_20' ) end [2025-02-13 18:23:23] Production.INFO: ProcessCDR(1,14468210,1,1,2) [2025-02-13 18:23:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468210', 'tblTempUsageDetail_20' ) start [2025-02-13 18:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468210', 'tblTempUsageDetail_20' ) end [2025-02-13 18:23:28] Production.ERROR: pbx prc_insertCDR start [2025-02-13 18:23:28] Production.ERROR: pbx prc_insertCDR end [2025-02-13 18:23:28] Production.INFO: ==27795== Releasing lock... [2025-02-13 18:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 18:23:28] Production.INFO: 55.5 MB #Memory Used# [2025-02-13 18:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 15:24:06 [end_date_ymd] => 2025-02-13 18:24:06 [RateCDR] => 1 ) [2025-02-13 18: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-02-13 15:24:06' and `end` < '2025-02-13 18: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-02-13 18:24:20] Production.INFO: count ==3558 [2025-02-13 18:24:21] Production.ERROR: pbx CDR StartTime 2025-02-13 15:24:06 - End Time 2025-02-13 18:24:06 [2025-02-13 18:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468215', 'tblTempUsageDetail_20' ) start [2025-02-13 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468215', 'tblTempUsageDetail_20' ) end [2025-02-13 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468215', 'tblTempVendorCDR_20' ) start [2025-02-13 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468215', 'tblTempVendorCDR_20' ) end [2025-02-13 18:24:21] Production.INFO: ProcessCDR(1,14468215,1,1,2) [2025-02-13 18:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468215', 'tblTempUsageDetail_20' ) start [2025-02-13 18:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468215', 'tblTempUsageDetail_20' ) end [2025-02-13 18:24:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 18:24:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 18:24:26] Production.INFO: ==27868== Releasing lock... [2025-02-13 18:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 18:24:26] Production.INFO: 54.5 MB #Memory Used# [2025-02-13 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 15:25:05 [end_date_ymd] => 2025-02-13 18:25:05 [RateCDR] => 1 ) [2025-02-13 18:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 15:25:05' and `end` < '2025-02-13 18:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-13 18:25:20] Production.INFO: count ==3551 [2025-02-13 18:25:21] Production.ERROR: pbx CDR StartTime 2025-02-13 15:25:05 - End Time 2025-02-13 18:25:05 [2025-02-13 18:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468220', 'tblTempUsageDetail_20' ) start [2025-02-13 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468220', 'tblTempUsageDetail_20' ) end [2025-02-13 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468220', 'tblTempVendorCDR_20' ) start [2025-02-13 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468220', 'tblTempVendorCDR_20' ) end [2025-02-13 18:25:21] Production.INFO: ProcessCDR(1,14468220,1,1,2) [2025-02-13 18:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468220', 'tblTempUsageDetail_20' ) start [2025-02-13 18:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468220', 'tblTempUsageDetail_20' ) end [2025-02-13 18:25:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 18:25:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 18:25:25] Production.INFO: ==27938== Releasing lock... [2025-02-13 18:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 18:25:25] Production.INFO: 54.5 MB #Memory Used# [2025-02-13 18:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 15:26:05 [end_date_ymd] => 2025-02-13 18:26:05 [RateCDR] => 1 ) [2025-02-13 18: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-02-13 15:26:05' and `end` < '2025-02-13 18: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-02-13 18:26:20] Production.INFO: count ==3550 [2025-02-13 18:26:21] Production.ERROR: pbx CDR StartTime 2025-02-13 15:26:05 - End Time 2025-02-13 18:26:05 [2025-02-13 18:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 18:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468225', 'tblTempUsageDetail_20' ) start [2025-02-13 18:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468225', 'tblTempUsageDetail_20' ) end [2025-02-13 18:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468225', 'tblTempVendorCDR_20' ) start [2025-02-13 18:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468225', 'tblTempVendorCDR_20' ) end [2025-02-13 18:26:21] Production.INFO: ProcessCDR(1,14468225,1,1,2) [2025-02-13 18:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468225', 'tblTempUsageDetail_20' ) start [2025-02-13 18:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468225', 'tblTempUsageDetail_20' ) end [2025-02-13 18:26:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 18:26:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 18:26:26] Production.INFO: ==28009== Releasing lock... [2025-02-13 18:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 18:26:26] Production.INFO: 55.25 MB #Memory Used# [2025-02-13 18:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 15:27:05 [end_date_ymd] => 2025-02-13 18:27:05 [RateCDR] => 1 ) [2025-02-13 18: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-02-13 15:27:05' and `end` < '2025-02-13 18: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-02-13 18:27:19] Production.INFO: count ==3548 [2025-02-13 18:27:20] Production.ERROR: pbx CDR StartTime 2025-02-13 15:27:05 - End Time 2025-02-13 18:27:05 [2025-02-13 18:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 18:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468230', 'tblTempUsageDetail_20' ) start [2025-02-13 18:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468230', 'tblTempUsageDetail_20' ) end [2025-02-13 18:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468230', 'tblTempVendorCDR_20' ) start [2025-02-13 18:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468230', 'tblTempVendorCDR_20' ) end [2025-02-13 18:27:20] Production.INFO: ProcessCDR(1,14468230,1,1,2) [2025-02-13 18:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468230', 'tblTempUsageDetail_20' ) start [2025-02-13 18:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468230', 'tblTempUsageDetail_20' ) end [2025-02-13 18:27:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 18:27:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 18:27:25] Production.INFO: ==28078== Releasing lock... [2025-02-13 18:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 18:27:25] Production.INFO: 55 MB #Memory Used# [2025-02-13 18:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 15:28:06 [end_date_ymd] => 2025-02-13 18:28:06 [RateCDR] => 1 ) [2025-02-13 18: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-02-13 15:28:06' and `end` < '2025-02-13 18: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-02-13 18:28:20] Production.INFO: count ==3540 [2025-02-13 18:28:21] Production.ERROR: pbx CDR StartTime 2025-02-13 15:28:06 - End Time 2025-02-13 18:28:06 [2025-02-13 18:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 18:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468235', 'tblTempUsageDetail_20' ) start [2025-02-13 18:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468235', 'tblTempUsageDetail_20' ) end [2025-02-13 18:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468235', 'tblTempVendorCDR_20' ) start [2025-02-13 18:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468235', 'tblTempVendorCDR_20' ) end [2025-02-13 18:28:21] Production.INFO: ProcessCDR(1,14468235,1,1,2) [2025-02-13 18:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468235', 'tblTempUsageDetail_20' ) start [2025-02-13 18:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468235', 'tblTempUsageDetail_20' ) end [2025-02-13 18:28:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 18:28:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 18:28:26] Production.INFO: ==28151== Releasing lock... [2025-02-13 18:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 18:28:26] Production.INFO: 54.75 MB #Memory Used# [2025-02-13 18:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 15:29:05 [end_date_ymd] => 2025-02-13 18:29:05 [RateCDR] => 1 ) [2025-02-13 18: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-02-13 15:29:05' and `end` < '2025-02-13 18: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-02-13 18:29:19] Production.INFO: count ==3513 [2025-02-13 18:29:20] Production.ERROR: pbx CDR StartTime 2025-02-13 15:29:05 - End Time 2025-02-13 18:29:05 [2025-02-13 18:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468240', 'tblTempUsageDetail_20' ) start [2025-02-13 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468240', 'tblTempUsageDetail_20' ) end [2025-02-13 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468240', 'tblTempVendorCDR_20' ) start [2025-02-13 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468240', 'tblTempVendorCDR_20' ) end [2025-02-13 18:29:20] Production.INFO: ProcessCDR(1,14468240,1,1,2) [2025-02-13 18:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468240', 'tblTempUsageDetail_20' ) start [2025-02-13 18:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468240', 'tblTempUsageDetail_20' ) end [2025-02-13 18:29:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 18:29:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 18:29:25] Production.INFO: ==28225== Releasing lock... [2025-02-13 18:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 18:29:25] Production.INFO: 54.5 MB #Memory Used# [2025-02-13 18:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 15:30:07 [end_date_ymd] => 2025-02-13 18:30:07 [RateCDR] => 1 ) [2025-02-13 18: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-02-13 15:30:07' and `end` < '2025-02-13 18: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-02-13 18:30:21] Production.INFO: count ==3506 [2025-02-13 18:30:22] Production.ERROR: pbx CDR StartTime 2025-02-13 15:30:07 - End Time 2025-02-13 18:30:07 [2025-02-13 18:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 18:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468246', 'tblTempUsageDetail_20' ) start [2025-02-13 18:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468246', 'tblTempUsageDetail_20' ) end [2025-02-13 18:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468246', 'tblTempVendorCDR_20' ) start [2025-02-13 18:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468246', 'tblTempVendorCDR_20' ) end [2025-02-13 18:30:22] Production.INFO: ProcessCDR(1,14468246,1,1,2) [2025-02-13 18:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468246', 'tblTempUsageDetail_20' ) start [2025-02-13 18:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468246', 'tblTempUsageDetail_20' ) end [2025-02-13 18:30:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 18:30:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 18:30:25] Production.INFO: ==28301== Releasing lock... [2025-02-13 18:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 18:30:25] Production.INFO: 54.25 MB #Memory Used# [2025-02-13 18:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 15:31:05 [end_date_ymd] => 2025-02-13 18:31:05 [RateCDR] => 1 ) [2025-02-13 18: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-02-13 15:31:05' and `end` < '2025-02-13 18: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-02-13 18:31:18] Production.INFO: count ==3442 [2025-02-13 18:31:19] Production.ERROR: pbx CDR StartTime 2025-02-13 15:31:05 - End Time 2025-02-13 18:31:05 [2025-02-13 18:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468251', 'tblTempUsageDetail_20' ) start [2025-02-13 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468251', 'tblTempUsageDetail_20' ) end [2025-02-13 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468251', 'tblTempVendorCDR_20' ) start [2025-02-13 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468251', 'tblTempVendorCDR_20' ) end [2025-02-13 18:31:19] Production.INFO: ProcessCDR(1,14468251,1,1,2) [2025-02-13 18:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468251', 'tblTempUsageDetail_20' ) start [2025-02-13 18:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468251', 'tblTempUsageDetail_20' ) end [2025-02-13 18:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 18:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 18:31:23] Production.INFO: ==28372== Releasing lock... [2025-02-13 18:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 18:31:23] Production.INFO: 54.25 MB #Memory Used# [2025-02-13 18:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 15:32:06 [end_date_ymd] => 2025-02-13 18:32:06 [RateCDR] => 1 ) [2025-02-13 18: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-02-13 15:32:06' and `end` < '2025-02-13 18: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-02-13 18:32:20] Production.INFO: count ==3427 [2025-02-13 18:32:21] Production.ERROR: pbx CDR StartTime 2025-02-13 15:32:06 - End Time 2025-02-13 18:32:06 [2025-02-13 18:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 18:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468256', 'tblTempUsageDetail_20' ) start [2025-02-13 18:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468256', 'tblTempUsageDetail_20' ) end [2025-02-13 18:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468256', 'tblTempVendorCDR_20' ) start [2025-02-13 18:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468256', 'tblTempVendorCDR_20' ) end [2025-02-13 18:32:21] Production.INFO: ProcessCDR(1,14468256,1,1,2) [2025-02-13 18:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468256', 'tblTempUsageDetail_20' ) start [2025-02-13 18:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468256', 'tblTempUsageDetail_20' ) end [2025-02-13 18:32:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 18:32:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 18:32:24] Production.INFO: ==28442== Releasing lock... [2025-02-13 18:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 18:32:24] Production.INFO: 53.5 MB #Memory Used# [2025-02-13 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 15:33:05 [end_date_ymd] => 2025-02-13 18:33:05 [RateCDR] => 1 ) [2025-02-13 18: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-02-13 15:33:05' and `end` < '2025-02-13 18: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-02-13 18:33:19] Production.INFO: count ==3421 [2025-02-13 18:33:20] Production.ERROR: pbx CDR StartTime 2025-02-13 15:33:05 - End Time 2025-02-13 18:33:05 [2025-02-13 18:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468261', 'tblTempUsageDetail_20' ) start [2025-02-13 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468261', 'tblTempUsageDetail_20' ) end [2025-02-13 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468261', 'tblTempVendorCDR_20' ) start [2025-02-13 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468261', 'tblTempVendorCDR_20' ) end [2025-02-13 18:33:20] Production.INFO: ProcessCDR(1,14468261,1,1,2) [2025-02-13 18:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468261', 'tblTempUsageDetail_20' ) start [2025-02-13 18:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468261', 'tblTempUsageDetail_20' ) end [2025-02-13 18:33:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 18:33:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 18:33:24] Production.INFO: ==28513== Releasing lock... [2025-02-13 18:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 18:33:24] Production.INFO: 54 MB #Memory Used# [2025-02-13 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 15:34:05 [end_date_ymd] => 2025-02-13 18:34:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 15:34:05' and `end` < '2025-02-13 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-02-13 18:34:19] Production.INFO: count ==3416 [2025-02-13 18:34:20] Production.ERROR: pbx CDR StartTime 2025-02-13 15:34:05 - End Time 2025-02-13 18:34:05 [2025-02-13 18:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468266', 'tblTempUsageDetail_20' ) start [2025-02-13 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468266', 'tblTempUsageDetail_20' ) end [2025-02-13 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468266', 'tblTempVendorCDR_20' ) start [2025-02-13 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468266', 'tblTempVendorCDR_20' ) end [2025-02-13 18:34:20] Production.INFO: ProcessCDR(1,14468266,1,1,2) [2025-02-13 18:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468266', 'tblTempUsageDetail_20' ) start [2025-02-13 18:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468266', 'tblTempUsageDetail_20' ) end [2025-02-13 18:34:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 18:34:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 18:34:24] Production.INFO: ==28583== Releasing lock... [2025-02-13 18:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 18:34:24] Production.INFO: 53.5 MB #Memory Used# [2025-02-13 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 15:35:05 [end_date_ymd] => 2025-02-13 18:35:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 15:35:05' and `end` < '2025-02-13 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-02-13 18:35:19] Production.INFO: count ==3405 [2025-02-13 18:35:20] Production.ERROR: pbx CDR StartTime 2025-02-13 15:35:05 - End Time 2025-02-13 18:35:05 [2025-02-13 18:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468271', 'tblTempUsageDetail_20' ) start [2025-02-13 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468271', 'tblTempUsageDetail_20' ) end [2025-02-13 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468271', 'tblTempVendorCDR_20' ) start [2025-02-13 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468271', 'tblTempVendorCDR_20' ) end [2025-02-13 18:35:20] Production.INFO: ProcessCDR(1,14468271,1,1,2) [2025-02-13 18:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468271', 'tblTempUsageDetail_20' ) start [2025-02-13 18:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468271', 'tblTempUsageDetail_20' ) end [2025-02-13 18:35:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 18:35:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 18:35:25] Production.INFO: ==28654== Releasing lock... [2025-02-13 18:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 18:35:25] Production.INFO: 53.5 MB #Memory Used# [2025-02-13 18:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 15:36:06 [end_date_ymd] => 2025-02-13 18:36:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 15:36:06' and `end` < '2025-02-13 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-02-13 18:36:19] Production.INFO: count ==3402 [2025-02-13 18:36:20] Production.ERROR: pbx CDR StartTime 2025-02-13 15:36:06 - End Time 2025-02-13 18:36:06 [2025-02-13 18:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468276', 'tblTempUsageDetail_20' ) start [2025-02-13 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468276', 'tblTempUsageDetail_20' ) end [2025-02-13 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468276', 'tblTempVendorCDR_20' ) start [2025-02-13 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468276', 'tblTempVendorCDR_20' ) end [2025-02-13 18:36:20] Production.INFO: ProcessCDR(1,14468276,1,1,2) [2025-02-13 18:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468276', 'tblTempUsageDetail_20' ) start [2025-02-13 18:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468276', 'tblTempUsageDetail_20' ) end [2025-02-13 18:36:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 18:36:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 18:36:25] Production.INFO: ==28730== Releasing lock... [2025-02-13 18:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 18:36:25] Production.INFO: 53.75 MB #Memory Used# [2025-02-13 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 15:37:05 [end_date_ymd] => 2025-02-13 18:37:05 [RateCDR] => 1 ) [2025-02-13 18: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-02-13 15:37:05' and `end` < '2025-02-13 18: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-02-13 18:37:20] Production.INFO: count ==3393 [2025-02-13 18:37:21] Production.ERROR: pbx CDR StartTime 2025-02-13 15:37:05 - End Time 2025-02-13 18:37:05 [2025-02-13 18:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468281', 'tblTempUsageDetail_20' ) start [2025-02-13 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468281', 'tblTempUsageDetail_20' ) end [2025-02-13 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468281', 'tblTempVendorCDR_20' ) start [2025-02-13 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468281', 'tblTempVendorCDR_20' ) end [2025-02-13 18:37:21] Production.INFO: ProcessCDR(1,14468281,1,1,2) [2025-02-13 18:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468281', 'tblTempUsageDetail_20' ) start [2025-02-13 18:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468281', 'tblTempUsageDetail_20' ) end [2025-02-13 18:37:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 18:37:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 18:37:24] Production.INFO: ==28802== Releasing lock... [2025-02-13 18:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 18:37:24] Production.INFO: 53.5 MB #Memory Used# [2025-02-13 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 15:38:05 [end_date_ymd] => 2025-02-13 18:38:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 15:38:05' and `end` < '2025-02-13 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-02-13 18:38:19] Production.INFO: count ==3391 [2025-02-13 18:38:20] Production.ERROR: pbx CDR StartTime 2025-02-13 15:38:05 - End Time 2025-02-13 18:38:05 [2025-02-13 18:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468286', 'tblTempUsageDetail_20' ) start [2025-02-13 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468286', 'tblTempUsageDetail_20' ) end [2025-02-13 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468286', 'tblTempVendorCDR_20' ) start [2025-02-13 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468286', 'tblTempVendorCDR_20' ) end [2025-02-13 18:38:20] Production.INFO: ProcessCDR(1,14468286,1,1,2) [2025-02-13 18:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468286', 'tblTempUsageDetail_20' ) start [2025-02-13 18:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468286', 'tblTempUsageDetail_20' ) end [2025-02-13 18:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 18:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 18:38:23] Production.INFO: ==28914== Releasing lock... [2025-02-13 18:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 18:38:23] Production.INFO: 53.25 MB #Memory Used# [2025-02-13 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 15:39:05 [end_date_ymd] => 2025-02-13 18:39:05 [RateCDR] => 1 ) [2025-02-13 18: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-02-13 15:39:05' and `end` < '2025-02-13 18: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-02-13 18:39:19] Production.INFO: count ==3363 [2025-02-13 18:39:20] Production.ERROR: pbx CDR StartTime 2025-02-13 15:39:05 - End Time 2025-02-13 18:39:05 [2025-02-13 18:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468291', 'tblTempUsageDetail_20' ) start [2025-02-13 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468291', 'tblTempUsageDetail_20' ) end [2025-02-13 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468291', 'tblTempVendorCDR_20' ) start [2025-02-13 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468291', 'tblTempVendorCDR_20' ) end [2025-02-13 18:39:20] Production.INFO: ProcessCDR(1,14468291,1,1,2) [2025-02-13 18:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468291', 'tblTempUsageDetail_20' ) start [2025-02-13 18:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468291', 'tblTempUsageDetail_20' ) end [2025-02-13 18:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 18:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 18:39:23] Production.INFO: ==28985== Releasing lock... [2025-02-13 18:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 18:39:23] Production.INFO: 53 MB #Memory Used# [2025-02-13 18:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 15:40:05 [end_date_ymd] => 2025-02-13 18:40:05 [RateCDR] => 1 ) [2025-02-13 18: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-02-13 15:40:05' and `end` < '2025-02-13 18: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-02-13 18:40:20] Production.INFO: count ==3356 [2025-02-13 18:40:21] Production.ERROR: pbx CDR StartTime 2025-02-13 15:40:05 - End Time 2025-02-13 18:40:05 [2025-02-13 18:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468297', 'tblTempUsageDetail_20' ) start [2025-02-13 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468297', 'tblTempUsageDetail_20' ) end [2025-02-13 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468297', 'tblTempVendorCDR_20' ) start [2025-02-13 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468297', 'tblTempVendorCDR_20' ) end [2025-02-13 18:40:21] Production.INFO: ProcessCDR(1,14468297,1,1,2) [2025-02-13 18:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468297', 'tblTempUsageDetail_20' ) start [2025-02-13 18:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468297', 'tblTempUsageDetail_20' ) end [2025-02-13 18:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 18:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 18:40:24] Production.INFO: ==29056== Releasing lock... [2025-02-13 18:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 18:40:24] Production.INFO: 53 MB #Memory Used# [2025-02-13 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 15:41:05 [end_date_ymd] => 2025-02-13 18:41:05 [RateCDR] => 1 ) [2025-02-13 18: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-02-13 15:41:05' and `end` < '2025-02-13 18: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-02-13 18:41:20] Production.INFO: count ==3318 [2025-02-13 18:41:21] Production.ERROR: pbx CDR StartTime 2025-02-13 15:41:05 - End Time 2025-02-13 18:41:05 [2025-02-13 18:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 18:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468302', 'tblTempUsageDetail_20' ) start [2025-02-13 18:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468302', 'tblTempUsageDetail_20' ) end [2025-02-13 18:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468302', 'tblTempVendorCDR_20' ) start [2025-02-13 18:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468302', 'tblTempVendorCDR_20' ) end [2025-02-13 18:41:22] Production.INFO: ProcessCDR(1,14468302,1,1,2) [2025-02-13 18:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468302', 'tblTempUsageDetail_20' ) start [2025-02-13 18:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468302', 'tblTempUsageDetail_20' ) end [2025-02-13 18:41:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 18:41:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 18:41:26] Production.INFO: ==29130== Releasing lock... [2025-02-13 18:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 18:41:26] Production.INFO: 53 MB #Memory Used# [2025-02-13 18:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 15:42:06 [end_date_ymd] => 2025-02-13 18:42:06 [RateCDR] => 1 ) [2025-02-13 18: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-02-13 15:42:06' and `end` < '2025-02-13 18: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-02-13 18:42:33] Production.INFO: count ==3304 [2025-02-13 18:42:34] Production.ERROR: pbx CDR StartTime 2025-02-13 15:42:06 - End Time 2025-02-13 18:42:06 [2025-02-13 18:42:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 18:42:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468307', 'tblTempUsageDetail_20' ) start [2025-02-13 18:42:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468307', 'tblTempUsageDetail_20' ) end [2025-02-13 18:42:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468307', 'tblTempVendorCDR_20' ) start [2025-02-13 18:42:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468307', 'tblTempVendorCDR_20' ) end [2025-02-13 18:42:34] Production.INFO: ProcessCDR(1,14468307,1,1,2) [2025-02-13 18:42:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:42:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:42:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:42:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:42:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468307', 'tblTempUsageDetail_20' ) start [2025-02-13 18:42:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468307', 'tblTempUsageDetail_20' ) end [2025-02-13 18:42:39] Production.ERROR: pbx prc_insertCDR start [2025-02-13 18:42:39] Production.ERROR: pbx prc_insertCDR end [2025-02-13 18:42:39] Production.INFO: ==29203== Releasing lock... [2025-02-13 18:42:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 18:42:39] Production.INFO: 52.75 MB #Memory Used# [2025-02-13 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 15:43:05 [end_date_ymd] => 2025-02-13 18:43:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 15:43:05' and `end` < '2025-02-13 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-02-13 18:43:24] Production.INFO: count ==3273 [2025-02-13 18:43:25] Production.ERROR: pbx CDR StartTime 2025-02-13 15:43:05 - End Time 2025-02-13 18:43:05 [2025-02-13 18:43:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 18:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468312', 'tblTempUsageDetail_20' ) start [2025-02-13 18:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468312', 'tblTempUsageDetail_20' ) end [2025-02-13 18:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468312', 'tblTempVendorCDR_20' ) start [2025-02-13 18:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468312', 'tblTempVendorCDR_20' ) end [2025-02-13 18:43:25] Production.INFO: ProcessCDR(1,14468312,1,1,2) [2025-02-13 18:43:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:43:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:43:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:43:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468312', 'tblTempUsageDetail_20' ) start [2025-02-13 18:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468312', 'tblTempUsageDetail_20' ) end [2025-02-13 18:43:29] Production.ERROR: pbx prc_insertCDR start [2025-02-13 18:43:29] Production.ERROR: pbx prc_insertCDR end [2025-02-13 18:43:29] Production.INFO: ==29273== Releasing lock... [2025-02-13 18:43:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 18:43:29] Production.INFO: 52.5 MB #Memory Used# [2025-02-13 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 15:44:05 [end_date_ymd] => 2025-02-13 18:44:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 15:44:05' and `end` < '2025-02-13 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-02-13 18:44:22] Production.INFO: count ==3250 [2025-02-13 18:44:23] Production.ERROR: pbx CDR StartTime 2025-02-13 15:44:05 - End Time 2025-02-13 18:44:05 [2025-02-13 18:44:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 18:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468317', 'tblTempUsageDetail_20' ) start [2025-02-13 18:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468317', 'tblTempUsageDetail_20' ) end [2025-02-13 18:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468317', 'tblTempVendorCDR_20' ) start [2025-02-13 18:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468317', 'tblTempVendorCDR_20' ) end [2025-02-13 18:44:23] Production.INFO: ProcessCDR(1,14468317,1,1,2) [2025-02-13 18:44:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468317', 'tblTempUsageDetail_20' ) start [2025-02-13 18:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468317', 'tblTempUsageDetail_20' ) end [2025-02-13 18:44:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 18:44:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 18:44:26] Production.INFO: ==29343== Releasing lock... [2025-02-13 18:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 18:44:26] Production.INFO: 52.75 MB #Memory Used# [2025-02-13 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 15:45:05 [end_date_ymd] => 2025-02-13 18:45:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 15:45:05' and `end` < '2025-02-13 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-02-13 18:45:18] Production.INFO: count ==3236 [2025-02-13 18:45:19] Production.ERROR: pbx CDR StartTime 2025-02-13 15:45:05 - End Time 2025-02-13 18:45:05 [2025-02-13 18:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468322', 'tblTempUsageDetail_20' ) start [2025-02-13 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468322', 'tblTempUsageDetail_20' ) end [2025-02-13 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468322', 'tblTempVendorCDR_20' ) start [2025-02-13 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468322', 'tblTempVendorCDR_20' ) end [2025-02-13 18:45:19] Production.INFO: ProcessCDR(1,14468322,1,1,2) [2025-02-13 18:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468322', 'tblTempUsageDetail_20' ) start [2025-02-13 18:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468322', 'tblTempUsageDetail_20' ) end [2025-02-13 18:45:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 18:45:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 18:45:24] Production.INFO: ==29413== Releasing lock... [2025-02-13 18:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 18:45:24] Production.INFO: 52.25 MB #Memory Used# [2025-02-13 18:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 15:46:06 [end_date_ymd] => 2025-02-13 18:46:06 [RateCDR] => 1 ) [2025-02-13 18: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-02-13 15:46:06' and `end` < '2025-02-13 18: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-02-13 18:46:19] Production.INFO: count ==3195 [2025-02-13 18:46:20] Production.ERROR: pbx CDR StartTime 2025-02-13 15:46:06 - End Time 2025-02-13 18:46:06 [2025-02-13 18:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468327', 'tblTempUsageDetail_20' ) start [2025-02-13 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468327', 'tblTempUsageDetail_20' ) end [2025-02-13 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468327', 'tblTempVendorCDR_20' ) start [2025-02-13 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468327', 'tblTempVendorCDR_20' ) end [2025-02-13 18:46:20] Production.INFO: ProcessCDR(1,14468327,1,1,2) [2025-02-13 18:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468327', 'tblTempUsageDetail_20' ) start [2025-02-13 18:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468327', 'tblTempUsageDetail_20' ) end [2025-02-13 18:46:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 18:46:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 18:46:25] Production.INFO: ==29483== Releasing lock... [2025-02-13 18:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 18:46:25] Production.INFO: 51.75 MB #Memory Used# [2025-02-13 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 15:47:05 [end_date_ymd] => 2025-02-13 18:47:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 15:47:05' and `end` < '2025-02-13 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-02-13 18:47:19] Production.INFO: count ==3192 [2025-02-13 18:47:20] Production.ERROR: pbx CDR StartTime 2025-02-13 15:47:05 - End Time 2025-02-13 18:47:05 [2025-02-13 18:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468332', 'tblTempUsageDetail_20' ) start [2025-02-13 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468332', 'tblTempUsageDetail_20' ) end [2025-02-13 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468332', 'tblTempVendorCDR_20' ) start [2025-02-13 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468332', 'tblTempVendorCDR_20' ) end [2025-02-13 18:47:20] Production.INFO: ProcessCDR(1,14468332,1,1,2) [2025-02-13 18:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468332', 'tblTempUsageDetail_20' ) start [2025-02-13 18:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468332', 'tblTempUsageDetail_20' ) end [2025-02-13 18:47:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 18:47:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 18:47:25] Production.INFO: ==29555== Releasing lock... [2025-02-13 18:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 18:47:25] Production.INFO: 51.75 MB #Memory Used# [2025-02-13 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 15:48:05 [end_date_ymd] => 2025-02-13 18:48:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 15:48:05' and `end` < '2025-02-13 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-02-13 18:48:19] Production.INFO: count ==3180 [2025-02-13 18:48:20] Production.ERROR: pbx CDR StartTime 2025-02-13 15:48:05 - End Time 2025-02-13 18:48:05 [2025-02-13 18:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468337', 'tblTempUsageDetail_20' ) start [2025-02-13 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468337', 'tblTempUsageDetail_20' ) end [2025-02-13 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468337', 'tblTempVendorCDR_20' ) start [2025-02-13 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468337', 'tblTempVendorCDR_20' ) end [2025-02-13 18:48:20] Production.INFO: ProcessCDR(1,14468337,1,1,2) [2025-02-13 18:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468337', 'tblTempUsageDetail_20' ) start [2025-02-13 18:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468337', 'tblTempUsageDetail_20' ) end [2025-02-13 18:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 18:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 18:48:23] Production.INFO: ==29627== Releasing lock... [2025-02-13 18:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 18:48:23] Production.INFO: 51.75 MB #Memory Used# [2025-02-13 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 15:49:05 [end_date_ymd] => 2025-02-13 18:49:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 15:49:05' and `end` < '2025-02-13 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-02-13 18:49:18] Production.INFO: count ==3169 [2025-02-13 18:49:19] Production.ERROR: pbx CDR StartTime 2025-02-13 15:49:05 - End Time 2025-02-13 18:49:05 [2025-02-13 18:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468342', 'tblTempUsageDetail_20' ) start [2025-02-13 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468342', 'tblTempUsageDetail_20' ) end [2025-02-13 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468342', 'tblTempVendorCDR_20' ) start [2025-02-13 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468342', 'tblTempVendorCDR_20' ) end [2025-02-13 18:49:19] Production.INFO: ProcessCDR(1,14468342,1,1,2) [2025-02-13 18:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468342', 'tblTempUsageDetail_20' ) start [2025-02-13 18:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468342', 'tblTempUsageDetail_20' ) end [2025-02-13 18:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 18:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 18:49:23] Production.INFO: ==29697== Releasing lock... [2025-02-13 18:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 18:49:23] Production.INFO: 51.75 MB #Memory Used# [2025-02-13 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 15:50:06 [end_date_ymd] => 2025-02-13 18:50:06 [RateCDR] => 1 ) [2025-02-13 18: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-02-13 15:50:06' and `end` < '2025-02-13 18: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-02-13 18:50:20] Production.INFO: count ==3160 [2025-02-13 18:50:21] Production.ERROR: pbx CDR StartTime 2025-02-13 15:50:06 - End Time 2025-02-13 18:50:06 [2025-02-13 18:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468348', 'tblTempUsageDetail_20' ) start [2025-02-13 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468348', 'tblTempUsageDetail_20' ) end [2025-02-13 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468348', 'tblTempVendorCDR_20' ) start [2025-02-13 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468348', 'tblTempVendorCDR_20' ) end [2025-02-13 18:50:21] Production.INFO: ProcessCDR(1,14468348,1,1,2) [2025-02-13 18:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468348', 'tblTempUsageDetail_20' ) start [2025-02-13 18:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468348', 'tblTempUsageDetail_20' ) end [2025-02-13 18:50:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 18:50:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 18:50:24] Production.INFO: ==29771== Releasing lock... [2025-02-13 18:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 18:50:24] Production.INFO: 51.5 MB #Memory Used# [2025-02-13 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 15:51:05 [end_date_ymd] => 2025-02-13 18:51:05 [RateCDR] => 1 ) [2025-02-13 18: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-02-13 15:51:05' and `end` < '2025-02-13 18: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-02-13 18:51:19] Production.INFO: count ==3102 [2025-02-13 18:51:20] Production.ERROR: pbx CDR StartTime 2025-02-13 15:51:05 - End Time 2025-02-13 18:51:05 [2025-02-13 18:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468353', 'tblTempUsageDetail_20' ) start [2025-02-13 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468353', 'tblTempUsageDetail_20' ) end [2025-02-13 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468353', 'tblTempVendorCDR_20' ) start [2025-02-13 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468353', 'tblTempVendorCDR_20' ) end [2025-02-13 18:51:20] Production.INFO: ProcessCDR(1,14468353,1,1,2) [2025-02-13 18:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468353', 'tblTempUsageDetail_20' ) start [2025-02-13 18:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468353', 'tblTempUsageDetail_20' ) end [2025-02-13 18:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 18:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 18:51:23] Production.INFO: ==29844== Releasing lock... [2025-02-13 18:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 18:51:23] Production.INFO: 51.25 MB #Memory Used# [2025-02-13 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 15:52:05 [end_date_ymd] => 2025-02-13 18:52:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 15:52:05' and `end` < '2025-02-13 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-02-13 18:52:19] Production.INFO: count ==3079 [2025-02-13 18:52:20] Production.ERROR: pbx CDR StartTime 2025-02-13 15:52:05 - End Time 2025-02-13 18:52:05 [2025-02-13 18:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468358', 'tblTempUsageDetail_20' ) start [2025-02-13 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468358', 'tblTempUsageDetail_20' ) end [2025-02-13 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468358', 'tblTempVendorCDR_20' ) start [2025-02-13 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468358', 'tblTempVendorCDR_20' ) end [2025-02-13 18:52:20] Production.INFO: ProcessCDR(1,14468358,1,1,2) [2025-02-13 18:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468358', 'tblTempUsageDetail_20' ) start [2025-02-13 18:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468358', 'tblTempUsageDetail_20' ) end [2025-02-13 18:52:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 18:52:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 18:52:24] Production.INFO: ==29914== Releasing lock... [2025-02-13 18:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 18:52:24] Production.INFO: 51 MB #Memory Used# [2025-02-13 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 15:53:05 [end_date_ymd] => 2025-02-13 18:53:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 15:53:05' and `end` < '2025-02-13 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-02-13 18:53:18] Production.INFO: count ==3039 [2025-02-13 18:53:19] Production.ERROR: pbx CDR StartTime 2025-02-13 15:53:05 - End Time 2025-02-13 18:53:05 [2025-02-13 18:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468363', 'tblTempUsageDetail_20' ) start [2025-02-13 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468363', 'tblTempUsageDetail_20' ) end [2025-02-13 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468363', 'tblTempVendorCDR_20' ) start [2025-02-13 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468363', 'tblTempVendorCDR_20' ) end [2025-02-13 18:53:19] Production.INFO: ProcessCDR(1,14468363,1,1,2) [2025-02-13 18:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468363', 'tblTempUsageDetail_20' ) start [2025-02-13 18:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468363', 'tblTempUsageDetail_20' ) end [2025-02-13 18:53:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 18:53:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 18:53:24] Production.INFO: ==29985== Releasing lock... [2025-02-13 18:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 18:53:24] Production.INFO: 50.75 MB #Memory Used# [2025-02-13 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 15:54:05 [end_date_ymd] => 2025-02-13 18:54:05 [RateCDR] => 1 ) [2025-02-13 18: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-02-13 15:54:05' and `end` < '2025-02-13 18: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-02-13 18:54:19] Production.INFO: count ==3040 [2025-02-13 18:54:20] Production.ERROR: pbx CDR StartTime 2025-02-13 15:54:05 - End Time 2025-02-13 18:54:05 [2025-02-13 18:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468368', 'tblTempUsageDetail_20' ) start [2025-02-13 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468368', 'tblTempUsageDetail_20' ) end [2025-02-13 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468368', 'tblTempVendorCDR_20' ) start [2025-02-13 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468368', 'tblTempVendorCDR_20' ) end [2025-02-13 18:54:20] Production.INFO: ProcessCDR(1,14468368,1,1,2) [2025-02-13 18:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468368', 'tblTempUsageDetail_20' ) start [2025-02-13 18:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468368', 'tblTempUsageDetail_20' ) end [2025-02-13 18:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 18:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 18:54:23] Production.INFO: ==30097== Releasing lock... [2025-02-13 18:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 18:54:23] Production.INFO: 50.75 MB #Memory Used# [2025-02-13 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 15:55:05 [end_date_ymd] => 2025-02-13 18:55:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 15:55:05' and `end` < '2025-02-13 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-02-13 18:55:19] Production.INFO: count ==3030 [2025-02-13 18:55:20] Production.ERROR: pbx CDR StartTime 2025-02-13 15:55:05 - End Time 2025-02-13 18:55:05 [2025-02-13 18:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468373', 'tblTempUsageDetail_20' ) start [2025-02-13 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468373', 'tblTempUsageDetail_20' ) end [2025-02-13 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468373', 'tblTempVendorCDR_20' ) start [2025-02-13 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468373', 'tblTempVendorCDR_20' ) end [2025-02-13 18:55:20] Production.INFO: ProcessCDR(1,14468373,1,1,2) [2025-02-13 18:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468373', 'tblTempUsageDetail_20' ) start [2025-02-13 18:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468373', 'tblTempUsageDetail_20' ) end [2025-02-13 18:55:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 18:55:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 18:55:24] Production.INFO: ==30172== Releasing lock... [2025-02-13 18:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 18:55:24] Production.INFO: 51 MB #Memory Used# [2025-02-13 18:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 15:56:06 [end_date_ymd] => 2025-02-13 18:56:06 [RateCDR] => 1 ) [2025-02-13 18: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-02-13 15:56:06' and `end` < '2025-02-13 18: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-02-13 18:56:20] Production.INFO: count ==3025 [2025-02-13 18:56:20] Production.ERROR: pbx CDR StartTime 2025-02-13 15:56:06 - End Time 2025-02-13 18:56:06 [2025-02-13 18:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468378', 'tblTempUsageDetail_20' ) start [2025-02-13 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468378', 'tblTempUsageDetail_20' ) end [2025-02-13 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468378', 'tblTempVendorCDR_20' ) start [2025-02-13 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468378', 'tblTempVendorCDR_20' ) end [2025-02-13 18:56:21] Production.INFO: ProcessCDR(1,14468378,1,1,2) [2025-02-13 18:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468378', 'tblTempUsageDetail_20' ) start [2025-02-13 18:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468378', 'tblTempUsageDetail_20' ) end [2025-02-13 18:56:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 18:56:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 18:56:24] Production.INFO: ==30244== Releasing lock... [2025-02-13 18:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 18:56:24] Production.INFO: 50.5 MB #Memory Used# [2025-02-13 18:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 15:57:06 [end_date_ymd] => 2025-02-13 18:57:06 [RateCDR] => 1 ) [2025-02-13 18: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-02-13 15:57:06' and `end` < '2025-02-13 18: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-02-13 18:57:20] Production.INFO: count ==3016 [2025-02-13 18:57:21] Production.ERROR: pbx CDR StartTime 2025-02-13 15:57:06 - End Time 2025-02-13 18:57:06 [2025-02-13 18:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468383', 'tblTempUsageDetail_20' ) start [2025-02-13 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468383', 'tblTempUsageDetail_20' ) end [2025-02-13 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468383', 'tblTempVendorCDR_20' ) start [2025-02-13 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468383', 'tblTempVendorCDR_20' ) end [2025-02-13 18:57:21] Production.INFO: ProcessCDR(1,14468383,1,1,2) [2025-02-13 18:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468383', 'tblTempUsageDetail_20' ) start [2025-02-13 18:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468383', 'tblTempUsageDetail_20' ) end [2025-02-13 18:57:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 18:57:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 18:57:25] Production.INFO: ==30315== Releasing lock... [2025-02-13 18:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 18:57:25] Production.INFO: 50.5 MB #Memory Used# [2025-02-13 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 15:58:05 [end_date_ymd] => 2025-02-13 18:58:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 15:58:05' and `end` < '2025-02-13 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-02-13 18:58:18] Production.INFO: count ==3008 [2025-02-13 18:58:19] Production.ERROR: pbx CDR StartTime 2025-02-13 15:58:05 - End Time 2025-02-13 18:58:05 [2025-02-13 18:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468388', 'tblTempUsageDetail_20' ) start [2025-02-13 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468388', 'tblTempUsageDetail_20' ) end [2025-02-13 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468388', 'tblTempVendorCDR_20' ) start [2025-02-13 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468388', 'tblTempVendorCDR_20' ) end [2025-02-13 18:58:19] Production.INFO: ProcessCDR(1,14468388,1,1,2) [2025-02-13 18:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468388', 'tblTempUsageDetail_20' ) start [2025-02-13 18:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468388', 'tblTempUsageDetail_20' ) end [2025-02-13 18:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 18:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 18:58:22] Production.INFO: ==30386== Releasing lock... [2025-02-13 18:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 18:58:22] Production.INFO: 50.5 MB #Memory Used# [2025-02-13 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 15:59:05 [end_date_ymd] => 2025-02-13 18:59:05 [RateCDR] => 1 ) [2025-02-13 18: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-02-13 15:59:05' and `end` < '2025-02-13 18: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-02-13 18:59:21] Production.INFO: count ==2999 [2025-02-13 18:59:21] Production.ERROR: pbx CDR StartTime 2025-02-13 15:59:05 - End Time 2025-02-13 18:59:05 [2025-02-13 18:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 18:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468393', 'tblTempUsageDetail_20' ) start [2025-02-13 18:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468393', 'tblTempUsageDetail_20' ) end [2025-02-13 18:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468393', 'tblTempVendorCDR_20' ) start [2025-02-13 18:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468393', 'tblTempVendorCDR_20' ) end [2025-02-13 18:59:21] Production.INFO: ProcessCDR(1,14468393,1,1,2) [2025-02-13 18:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 18:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 18:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468393', 'tblTempUsageDetail_20' ) start [2025-02-13 18:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468393', 'tblTempUsageDetail_20' ) end [2025-02-13 18:59:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 18:59:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 18:59:25] Production.INFO: ==30457== Releasing lock... [2025-02-13 18:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 18:59:25] Production.INFO: 50.5 MB #Memory Used# [2025-02-13 19:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 16:00:05 [end_date_ymd] => 2025-02-13 19:00:05 [RateCDR] => 1 ) [2025-02-13 19: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-02-13 16:00:05' and `end` < '2025-02-13 19: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-02-13 19:00:21] Production.INFO: count ==2983 [2025-02-13 19:00:22] Production.ERROR: pbx CDR StartTime 2025-02-13 16:00:05 - End Time 2025-02-13 19:00:05 [2025-02-13 19:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468399', 'tblTempUsageDetail_20' ) start [2025-02-13 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468399', 'tblTempUsageDetail_20' ) end [2025-02-13 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468399', 'tblTempVendorCDR_20' ) start [2025-02-13 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468399', 'tblTempVendorCDR_20' ) end [2025-02-13 19:00:22] Production.INFO: ProcessCDR(1,14468399,1,1,2) [2025-02-13 19:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468399', 'tblTempUsageDetail_20' ) start [2025-02-13 19:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468399', 'tblTempUsageDetail_20' ) end [2025-02-13 19:00:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 19:00:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 19:00:26] Production.INFO: ==30530== Releasing lock... [2025-02-13 19:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 19:00:26] Production.INFO: 50.5 MB #Memory Used# [2025-02-13 19:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 16:01:06 [end_date_ymd] => 2025-02-13 19:01:06 [RateCDR] => 1 ) [2025-02-13 19: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-02-13 16:01:06' and `end` < '2025-02-13 19: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-02-13 19:01:19] Production.INFO: count ==2963 [2025-02-13 19:01:20] Production.ERROR: pbx CDR StartTime 2025-02-13 16:01:06 - End Time 2025-02-13 19:01:06 [2025-02-13 19:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468404', 'tblTempUsageDetail_20' ) start [2025-02-13 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468404', 'tblTempUsageDetail_20' ) end [2025-02-13 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468404', 'tblTempVendorCDR_20' ) start [2025-02-13 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468404', 'tblTempVendorCDR_20' ) end [2025-02-13 19:01:20] Production.INFO: ProcessCDR(1,14468404,1,1,2) [2025-02-13 19:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468404', 'tblTempUsageDetail_20' ) start [2025-02-13 19:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468404', 'tblTempUsageDetail_20' ) end [2025-02-13 19:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 19:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 19:01:23] Production.INFO: ==30693== Releasing lock... [2025-02-13 19:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 19:01:23] Production.INFO: 50.75 MB #Memory Used# [2025-02-13 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 16:02:05 [end_date_ymd] => 2025-02-13 19:02:05 [RateCDR] => 1 ) [2025-02-13 19: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-02-13 16:02:05' and `end` < '2025-02-13 19: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-02-13 19:02:19] Production.INFO: count ==2966 [2025-02-13 19:02:20] Production.ERROR: pbx CDR StartTime 2025-02-13 16:02:05 - End Time 2025-02-13 19:02:05 [2025-02-13 19:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468409', 'tblTempUsageDetail_20' ) start [2025-02-13 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468409', 'tblTempUsageDetail_20' ) end [2025-02-13 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468409', 'tblTempVendorCDR_20' ) start [2025-02-13 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468409', 'tblTempVendorCDR_20' ) end [2025-02-13 19:02:20] Production.INFO: ProcessCDR(1,14468409,1,1,2) [2025-02-13 19:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468409', 'tblTempUsageDetail_20' ) start [2025-02-13 19:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468409', 'tblTempUsageDetail_20' ) end [2025-02-13 19:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 19:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 19:02:23] Production.INFO: ==30763== Releasing lock... [2025-02-13 19:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 19:02:23] Production.INFO: 50 MB #Memory Used# [2025-02-13 19:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 16:03:06 [end_date_ymd] => 2025-02-13 19:03:06 [RateCDR] => 1 ) [2025-02-13 19: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-02-13 16:03:06' and `end` < '2025-02-13 19: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-02-13 19:03:20] Production.INFO: count ==2959 [2025-02-13 19:03:21] Production.ERROR: pbx CDR StartTime 2025-02-13 16:03:06 - End Time 2025-02-13 19:03:06 [2025-02-13 19:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 19:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468414', 'tblTempUsageDetail_20' ) start [2025-02-13 19:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468414', 'tblTempUsageDetail_20' ) end [2025-02-13 19:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468414', 'tblTempVendorCDR_20' ) start [2025-02-13 19:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468414', 'tblTempVendorCDR_20' ) end [2025-02-13 19:03:21] Production.INFO: ProcessCDR(1,14468414,1,1,2) [2025-02-13 19:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468414', 'tblTempUsageDetail_20' ) start [2025-02-13 19:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468414', 'tblTempUsageDetail_20' ) end [2025-02-13 19:03:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 19:03:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 19:03:25] Production.INFO: ==30834== Releasing lock... [2025-02-13 19:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 19:03:25] Production.INFO: 50 MB #Memory Used# [2025-02-13 19:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 16:04:05 [end_date_ymd] => 2025-02-13 19:04:05 [RateCDR] => 1 ) [2025-02-13 19: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-02-13 16:04:05' and `end` < '2025-02-13 19: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-02-13 19:04:19] Production.INFO: count ==2940 [2025-02-13 19:04:19] Production.ERROR: pbx CDR StartTime 2025-02-13 16:04:05 - End Time 2025-02-13 19:04:05 [2025-02-13 19:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468419', 'tblTempUsageDetail_20' ) start [2025-02-13 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468419', 'tblTempUsageDetail_20' ) end [2025-02-13 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468419', 'tblTempVendorCDR_20' ) start [2025-02-13 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468419', 'tblTempVendorCDR_20' ) end [2025-02-13 19:04:19] Production.INFO: ProcessCDR(1,14468419,1,1,2) [2025-02-13 19:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468419', 'tblTempUsageDetail_20' ) start [2025-02-13 19:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468419', 'tblTempUsageDetail_20' ) end [2025-02-13 19:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 19:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 19:04:23] Production.INFO: ==30905== Releasing lock... [2025-02-13 19:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 19:04:23] Production.INFO: 50 MB #Memory Used# [2025-02-13 19:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 16:05:06 [end_date_ymd] => 2025-02-13 19:05:06 [RateCDR] => 1 ) [2025-02-13 19: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-02-13 16:05:06' and `end` < '2025-02-13 19: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-02-13 19:05:19] Production.INFO: count ==2920 [2025-02-13 19:05:20] Production.ERROR: pbx CDR StartTime 2025-02-13 16:05:06 - End Time 2025-02-13 19:05:06 [2025-02-13 19:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468424', 'tblTempUsageDetail_20' ) start [2025-02-13 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468424', 'tblTempUsageDetail_20' ) end [2025-02-13 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468424', 'tblTempVendorCDR_20' ) start [2025-02-13 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468424', 'tblTempVendorCDR_20' ) end [2025-02-13 19:05:20] Production.INFO: ProcessCDR(1,14468424,1,1,2) [2025-02-13 19:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468424', 'tblTempUsageDetail_20' ) start [2025-02-13 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468424', 'tblTempUsageDetail_20' ) end [2025-02-13 19:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 19:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 19:05:23] Production.INFO: ==31056== Releasing lock... [2025-02-13 19:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 19:05:23] Production.INFO: 50.25 MB #Memory Used# [2025-02-13 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 16:06:05 [end_date_ymd] => 2025-02-13 19:06:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 16:06:05' and `end` < '2025-02-13 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-02-13 19:06:19] Production.INFO: count ==2919 [2025-02-13 19:06:20] Production.ERROR: pbx CDR StartTime 2025-02-13 16:06:05 - End Time 2025-02-13 19:06:05 [2025-02-13 19:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468429', 'tblTempUsageDetail_20' ) start [2025-02-13 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468429', 'tblTempUsageDetail_20' ) end [2025-02-13 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468429', 'tblTempVendorCDR_20' ) start [2025-02-13 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468429', 'tblTempVendorCDR_20' ) end [2025-02-13 19:06:20] Production.INFO: ProcessCDR(1,14468429,1,1,2) [2025-02-13 19:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468429', 'tblTempUsageDetail_20' ) start [2025-02-13 19:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468429', 'tblTempUsageDetail_20' ) end [2025-02-13 19:06:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 19:06:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 19:06:25] Production.INFO: ==31126== Releasing lock... [2025-02-13 19:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 19:06:25] Production.INFO: 50 MB #Memory Used# [2025-02-13 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 16:07:05 [end_date_ymd] => 2025-02-13 19:07:05 [RateCDR] => 1 ) [2025-02-13 19: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-02-13 16:07:05' and `end` < '2025-02-13 19: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-02-13 19:07:21] Production.INFO: count ==2921 [2025-02-13 19:07:22] Production.ERROR: pbx CDR StartTime 2025-02-13 16:07:05 - End Time 2025-02-13 19:07:05 [2025-02-13 19:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 19:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468434', 'tblTempUsageDetail_20' ) start [2025-02-13 19:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468434', 'tblTempUsageDetail_20' ) end [2025-02-13 19:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468434', 'tblTempVendorCDR_20' ) start [2025-02-13 19:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468434', 'tblTempVendorCDR_20' ) end [2025-02-13 19:07:22] Production.INFO: ProcessCDR(1,14468434,1,1,2) [2025-02-13 19:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468434', 'tblTempUsageDetail_20' ) start [2025-02-13 19:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468434', 'tblTempUsageDetail_20' ) end [2025-02-13 19:07:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 19:07:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 19:07:25] Production.INFO: ==31197== Releasing lock... [2025-02-13 19:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 19:07:25] Production.INFO: 50 MB #Memory Used# [2025-02-13 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 16:08:05 [end_date_ymd] => 2025-02-13 19:08:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 16:08:05' and `end` < '2025-02-13 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-02-13 19:08:19] Production.INFO: count ==2904 [2025-02-13 19:08:20] Production.ERROR: pbx CDR StartTime 2025-02-13 16:08:05 - End Time 2025-02-13 19:08:05 [2025-02-13 19:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468439', 'tblTempUsageDetail_20' ) start [2025-02-13 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468439', 'tblTempUsageDetail_20' ) end [2025-02-13 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468439', 'tblTempVendorCDR_20' ) start [2025-02-13 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468439', 'tblTempVendorCDR_20' ) end [2025-02-13 19:08:20] Production.INFO: ProcessCDR(1,14468439,1,1,2) [2025-02-13 19:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468439', 'tblTempUsageDetail_20' ) start [2025-02-13 19:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468439', 'tblTempUsageDetail_20' ) end [2025-02-13 19:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 19:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 19:08:23] Production.INFO: ==31346== Releasing lock... [2025-02-13 19:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 19:08:23] Production.INFO: 49.75 MB #Memory Used# [2025-02-13 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 16:09:05 [end_date_ymd] => 2025-02-13 19:09:05 [RateCDR] => 1 ) [2025-02-13 19: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-02-13 16:09:05' and `end` < '2025-02-13 19: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-02-13 19:09:19] Production.INFO: count ==2882 [2025-02-13 19:09:19] Production.ERROR: pbx CDR StartTime 2025-02-13 16:09:05 - End Time 2025-02-13 19:09:05 [2025-02-13 19:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468444', 'tblTempUsageDetail_20' ) start [2025-02-13 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468444', 'tblTempUsageDetail_20' ) end [2025-02-13 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468444', 'tblTempVendorCDR_20' ) start [2025-02-13 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468444', 'tblTempVendorCDR_20' ) end [2025-02-13 19:09:19] Production.INFO: ProcessCDR(1,14468444,1,1,2) [2025-02-13 19:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468444', 'tblTempUsageDetail_20' ) start [2025-02-13 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468444', 'tblTempUsageDetail_20' ) end [2025-02-13 19:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 19:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 19:09:23] Production.INFO: ==31457== Releasing lock... [2025-02-13 19:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 19:09:23] Production.INFO: 49.75 MB #Memory Used# [2025-02-13 19:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 16:10:05 [end_date_ymd] => 2025-02-13 19:10:05 [RateCDR] => 1 ) [2025-02-13 19: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-02-13 16:10:05' and `end` < '2025-02-13 19: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-02-13 19:10:18] Production.INFO: count ==2873 [2025-02-13 19:10:19] Production.ERROR: pbx CDR StartTime 2025-02-13 16:10:05 - End Time 2025-02-13 19:10:05 [2025-02-13 19:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468449', 'tblTempUsageDetail_20' ) start [2025-02-13 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468449', 'tblTempUsageDetail_20' ) end [2025-02-13 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468449', 'tblTempVendorCDR_20' ) start [2025-02-13 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468449', 'tblTempVendorCDR_20' ) end [2025-02-13 19:10:19] Production.INFO: ProcessCDR(1,14468449,1,1,2) [2025-02-13 19:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468449', 'tblTempUsageDetail_20' ) start [2025-02-13 19:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468449', 'tblTempUsageDetail_20' ) end [2025-02-13 19:10:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 19:10:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 19:10:24] Production.INFO: ==31531== Releasing lock... [2025-02-13 19:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 19:10:24] Production.INFO: 49.5 MB #Memory Used# [2025-02-13 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 16:11:05 [end_date_ymd] => 2025-02-13 19:11:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 16:11:05' and `end` < '2025-02-13 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-02-13 19:11:19] Production.INFO: count ==2807 [2025-02-13 19:11:19] Production.ERROR: pbx CDR StartTime 2025-02-13 16:11:05 - End Time 2025-02-13 19:11:05 [2025-02-13 19:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468455', 'tblTempUsageDetail_20' ) start [2025-02-13 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468455', 'tblTempUsageDetail_20' ) end [2025-02-13 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468455', 'tblTempVendorCDR_20' ) start [2025-02-13 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468455', 'tblTempVendorCDR_20' ) end [2025-02-13 19:11:19] Production.INFO: ProcessCDR(1,14468455,1,1,2) [2025-02-13 19:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468455', 'tblTempUsageDetail_20' ) start [2025-02-13 19:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468455', 'tblTempUsageDetail_20' ) end [2025-02-13 19:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 19:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 19:11:23] Production.INFO: ==31605== Releasing lock... [2025-02-13 19:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 19:11:23] Production.INFO: 49.25 MB #Memory Used# [2025-02-13 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 16:12:05 [end_date_ymd] => 2025-02-13 19:12:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 16:12:05' and `end` < '2025-02-13 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-02-13 19:12:18] Production.INFO: count ==2800 [2025-02-13 19:12:19] Production.ERROR: pbx CDR StartTime 2025-02-13 16:12:05 - End Time 2025-02-13 19:12:05 [2025-02-13 19:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468460', 'tblTempUsageDetail_20' ) start [2025-02-13 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468460', 'tblTempUsageDetail_20' ) end [2025-02-13 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468460', 'tblTempVendorCDR_20' ) start [2025-02-13 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468460', 'tblTempVendorCDR_20' ) end [2025-02-13 19:12:19] Production.INFO: ProcessCDR(1,14468460,1,1,2) [2025-02-13 19:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468460', 'tblTempUsageDetail_20' ) start [2025-02-13 19:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468460', 'tblTempUsageDetail_20' ) end [2025-02-13 19:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 19:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 19:12:23] Production.INFO: ==31754== Releasing lock... [2025-02-13 19:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 19:12:23] Production.INFO: 49 MB #Memory Used# [2025-02-13 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 16:13:05 [end_date_ymd] => 2025-02-13 19:13:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 16:13:05' and `end` < '2025-02-13 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-02-13 19:13:19] Production.INFO: count ==2796 [2025-02-13 19:13:19] Production.ERROR: pbx CDR StartTime 2025-02-13 16:13:05 - End Time 2025-02-13 19:13:05 [2025-02-13 19:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468465', 'tblTempUsageDetail_20' ) start [2025-02-13 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468465', 'tblTempUsageDetail_20' ) end [2025-02-13 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468465', 'tblTempVendorCDR_20' ) start [2025-02-13 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468465', 'tblTempVendorCDR_20' ) end [2025-02-13 19:13:19] Production.INFO: ProcessCDR(1,14468465,1,1,2) [2025-02-13 19:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468465', 'tblTempUsageDetail_20' ) start [2025-02-13 19:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468465', 'tblTempUsageDetail_20' ) end [2025-02-13 19:13:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 19:13:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 19:13:24] Production.INFO: ==31824== Releasing lock... [2025-02-13 19:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 19:13:24] Production.INFO: 49 MB #Memory Used# [2025-02-13 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 16:14:05 [end_date_ymd] => 2025-02-13 19:14:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 16:14:05' and `end` < '2025-02-13 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-02-13 19:14:21] Production.INFO: count ==2785 [2025-02-13 19:14:22] Production.ERROR: pbx CDR StartTime 2025-02-13 16:14:05 - End Time 2025-02-13 19:14:05 [2025-02-13 19:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 19:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468470', 'tblTempUsageDetail_20' ) start [2025-02-13 19:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468470', 'tblTempUsageDetail_20' ) end [2025-02-13 19:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468470', 'tblTempVendorCDR_20' ) start [2025-02-13 19:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468470', 'tblTempVendorCDR_20' ) end [2025-02-13 19:14:22] Production.INFO: ProcessCDR(1,14468470,1,1,2) [2025-02-13 19:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468470', 'tblTempUsageDetail_20' ) start [2025-02-13 19:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468470', 'tblTempUsageDetail_20' ) end [2025-02-13 19:14:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 19:14:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 19:14:26] Production.INFO: ==31896== Releasing lock... [2025-02-13 19:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 19:14:26] Production.INFO: 48.75 MB #Memory Used# [2025-02-13 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 16:15:05 [end_date_ymd] => 2025-02-13 19:15:05 [RateCDR] => 1 ) [2025-02-13 19: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-02-13 16:15:05' and `end` < '2025-02-13 19: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-02-13 19:15:18] Production.INFO: count ==2776 [2025-02-13 19:15:19] Production.ERROR: pbx CDR StartTime 2025-02-13 16:15:05 - End Time 2025-02-13 19:15:05 [2025-02-13 19:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468475', 'tblTempUsageDetail_20' ) start [2025-02-13 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468475', 'tblTempUsageDetail_20' ) end [2025-02-13 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468475', 'tblTempVendorCDR_20' ) start [2025-02-13 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468475', 'tblTempVendorCDR_20' ) end [2025-02-13 19:15:19] Production.INFO: ProcessCDR(1,14468475,1,1,2) [2025-02-13 19:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468475', 'tblTempUsageDetail_20' ) start [2025-02-13 19:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468475', 'tblTempUsageDetail_20' ) end [2025-02-13 19:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 19:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 19:15:22] Production.INFO: ==32051== Releasing lock... [2025-02-13 19:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 19:15:22] Production.INFO: 49 MB #Memory Used# [2025-02-13 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 16:16:05 [end_date_ymd] => 2025-02-13 19:16:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 16:16:05' and `end` < '2025-02-13 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-02-13 19:16:21] Production.INFO: count ==2762 [2025-02-13 19:16:21] Production.ERROR: pbx CDR StartTime 2025-02-13 16:16:05 - End Time 2025-02-13 19:16:05 [2025-02-13 19:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468480', 'tblTempUsageDetail_20' ) start [2025-02-13 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468480', 'tblTempUsageDetail_20' ) end [2025-02-13 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468480', 'tblTempVendorCDR_20' ) start [2025-02-13 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468480', 'tblTempVendorCDR_20' ) end [2025-02-13 19:16:21] Production.INFO: ProcessCDR(1,14468480,1,1,2) [2025-02-13 19:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468480', 'tblTempUsageDetail_20' ) start [2025-02-13 19:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468480', 'tblTempUsageDetail_20' ) end [2025-02-13 19:16:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 19:16:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 19:16:25] Production.INFO: ==32122== Releasing lock... [2025-02-13 19:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 19:16:25] Production.INFO: 48.75 MB #Memory Used# [2025-02-13 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 16:17:05 [end_date_ymd] => 2025-02-13 19:17:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 16:17:05' and `end` < '2025-02-13 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-02-13 19:17:18] Production.INFO: count ==2760 [2025-02-13 19:17:19] Production.ERROR: pbx CDR StartTime 2025-02-13 16:17:05 - End Time 2025-02-13 19:17:05 [2025-02-13 19:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468485', 'tblTempUsageDetail_20' ) start [2025-02-13 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468485', 'tblTempUsageDetail_20' ) end [2025-02-13 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468485', 'tblTempVendorCDR_20' ) start [2025-02-13 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468485', 'tblTempVendorCDR_20' ) end [2025-02-13 19:17:19] Production.INFO: ProcessCDR(1,14468485,1,1,2) [2025-02-13 19:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468485', 'tblTempUsageDetail_20' ) start [2025-02-13 19:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468485', 'tblTempUsageDetail_20' ) end [2025-02-13 19:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 19:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 19:17:23] Production.INFO: ==32192== Releasing lock... [2025-02-13 19:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 19:17:23] Production.INFO: 48.75 MB #Memory Used# [2025-02-13 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 16:18:05 [end_date_ymd] => 2025-02-13 19:18:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 16:18:05' and `end` < '2025-02-13 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-02-13 19:18:18] Production.INFO: count ==2748 [2025-02-13 19:18:19] Production.ERROR: pbx CDR StartTime 2025-02-13 16:18:05 - End Time 2025-02-13 19:18:05 [2025-02-13 19:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468490', 'tblTempUsageDetail_20' ) start [2025-02-13 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468490', 'tblTempUsageDetail_20' ) end [2025-02-13 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468490', 'tblTempVendorCDR_20' ) start [2025-02-13 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468490', 'tblTempVendorCDR_20' ) end [2025-02-13 19:18:19] Production.INFO: ProcessCDR(1,14468490,1,1,2) [2025-02-13 19:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468490', 'tblTempUsageDetail_20' ) start [2025-02-13 19:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468490', 'tblTempUsageDetail_20' ) end [2025-02-13 19:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 19:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 19:18:22] Production.INFO: ==32263== Releasing lock... [2025-02-13 19:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 19:18:22] Production.INFO: 48.75 MB #Memory Used# [2025-02-13 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 16:19:05 [end_date_ymd] => 2025-02-13 19:19:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 16:19:05' and `end` < '2025-02-13 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-02-13 19:19:18] Production.INFO: count ==2747 [2025-02-13 19:19:19] Production.ERROR: pbx CDR StartTime 2025-02-13 16:19:05 - End Time 2025-02-13 19:19:05 [2025-02-13 19:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468495', 'tblTempUsageDetail_20' ) start [2025-02-13 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468495', 'tblTempUsageDetail_20' ) end [2025-02-13 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468495', 'tblTempVendorCDR_20' ) start [2025-02-13 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468495', 'tblTempVendorCDR_20' ) end [2025-02-13 19:19:19] Production.INFO: ProcessCDR(1,14468495,1,1,2) [2025-02-13 19:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468495', 'tblTempUsageDetail_20' ) start [2025-02-13 19:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468495', 'tblTempUsageDetail_20' ) end [2025-02-13 19:19:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 19:19:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 19:19:24] Production.INFO: ==32333== Releasing lock... [2025-02-13 19:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 19:19:24] Production.INFO: 48.75 MB #Memory Used# [2025-02-13 19:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 16:20:06 [end_date_ymd] => 2025-02-13 19:20:06 [RateCDR] => 1 ) [2025-02-13 19: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-02-13 16:20:06' and `end` < '2025-02-13 19: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-02-13 19:20:21] Production.INFO: count ==2743 [2025-02-13 19:20:21] Production.ERROR: pbx CDR StartTime 2025-02-13 16:20:06 - End Time 2025-02-13 19:20:06 [2025-02-13 19:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468500', 'tblTempUsageDetail_20' ) start [2025-02-13 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468500', 'tblTempUsageDetail_20' ) end [2025-02-13 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468500', 'tblTempVendorCDR_20' ) start [2025-02-13 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468500', 'tblTempVendorCDR_20' ) end [2025-02-13 19:20:21] Production.INFO: ProcessCDR(1,14468500,1,1,2) [2025-02-13 19:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468500', 'tblTempUsageDetail_20' ) start [2025-02-13 19:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468500', 'tblTempUsageDetail_20' ) end [2025-02-13 19:20:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 19:20:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 19:20:26] Production.INFO: ==32407== Releasing lock... [2025-02-13 19:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 19:20:26] Production.INFO: 49.25 MB #Memory Used# [2025-02-13 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 16:21:05 [end_date_ymd] => 2025-02-13 19:21:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 16:21:05' and `end` < '2025-02-13 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-02-13 19:21:19] Production.INFO: count ==2698 [2025-02-13 19:21:19] Production.ERROR: pbx CDR StartTime 2025-02-13 16:21:05 - End Time 2025-02-13 19:21:05 [2025-02-13 19:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468506', 'tblTempUsageDetail_20' ) start [2025-02-13 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468506', 'tblTempUsageDetail_20' ) end [2025-02-13 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468506', 'tblTempVendorCDR_20' ) start [2025-02-13 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468506', 'tblTempVendorCDR_20' ) end [2025-02-13 19:21:19] Production.INFO: ProcessCDR(1,14468506,1,1,2) [2025-02-13 19:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468506', 'tblTempUsageDetail_20' ) start [2025-02-13 19:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468506', 'tblTempUsageDetail_20' ) end [2025-02-13 19:21:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 19:21:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 19:21:25] Production.INFO: ==32480== Releasing lock... [2025-02-13 19:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 19:21:25] Production.INFO: 48.25 MB #Memory Used# [2025-02-13 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 16:22:05 [end_date_ymd] => 2025-02-13 19:22:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 16:22:05' and `end` < '2025-02-13 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-02-13 19:22:18] Production.INFO: count ==2690 [2025-02-13 19:22:19] Production.ERROR: pbx CDR StartTime 2025-02-13 16:22:05 - End Time 2025-02-13 19:22:05 [2025-02-13 19:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468511', 'tblTempUsageDetail_20' ) start [2025-02-13 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468511', 'tblTempUsageDetail_20' ) end [2025-02-13 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468511', 'tblTempVendorCDR_20' ) start [2025-02-13 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468511', 'tblTempVendorCDR_20' ) end [2025-02-13 19:22:19] Production.INFO: ProcessCDR(1,14468511,1,1,2) [2025-02-13 19:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468511', 'tblTempUsageDetail_20' ) start [2025-02-13 19:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468511', 'tblTempUsageDetail_20' ) end [2025-02-13 19:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 19:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 19:22:23] Production.INFO: ==32550== Releasing lock... [2025-02-13 19:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 19:22:23] Production.INFO: 48.25 MB #Memory Used# [2025-02-13 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 16:23:05 [end_date_ymd] => 2025-02-13 19:23:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 16:23:05' and `end` < '2025-02-13 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-02-13 19:23:18] Production.INFO: count ==2679 [2025-02-13 19:23:19] Production.ERROR: pbx CDR StartTime 2025-02-13 16:23:05 - End Time 2025-02-13 19:23:05 [2025-02-13 19:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468516', 'tblTempUsageDetail_20' ) start [2025-02-13 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468516', 'tblTempUsageDetail_20' ) end [2025-02-13 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468516', 'tblTempVendorCDR_20' ) start [2025-02-13 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468516', 'tblTempVendorCDR_20' ) end [2025-02-13 19:23:19] Production.INFO: ProcessCDR(1,14468516,1,1,2) [2025-02-13 19:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468516', 'tblTempUsageDetail_20' ) start [2025-02-13 19:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468516', 'tblTempUsageDetail_20' ) end [2025-02-13 19:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 19:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 19:23:22] Production.INFO: ==32622== Releasing lock... [2025-02-13 19:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 19:23:22] Production.INFO: 48.25 MB #Memory Used# [2025-02-13 19:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 16:24:06 [end_date_ymd] => 2025-02-13 19:24:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 16:24:06' and `end` < '2025-02-13 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-02-13 19:24:19] Production.INFO: count ==2670 [2025-02-13 19:24:20] Production.ERROR: pbx CDR StartTime 2025-02-13 16:24:06 - End Time 2025-02-13 19:24:06 [2025-02-13 19:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468521', 'tblTempUsageDetail_20' ) start [2025-02-13 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468521', 'tblTempUsageDetail_20' ) end [2025-02-13 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468521', 'tblTempVendorCDR_20' ) start [2025-02-13 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468521', 'tblTempVendorCDR_20' ) end [2025-02-13 19:24:20] Production.INFO: ProcessCDR(1,14468521,1,1,2) [2025-02-13 19:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468521', 'tblTempUsageDetail_20' ) start [2025-02-13 19:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468521', 'tblTempUsageDetail_20' ) end [2025-02-13 19:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 19:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 19:24:23] Production.INFO: ==32693== Releasing lock... [2025-02-13 19:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 19:24:23] Production.INFO: 48 MB #Memory Used# [2025-02-13 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 16:25:05 [end_date_ymd] => 2025-02-13 19:25:05 [RateCDR] => 1 ) [2025-02-13 19:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 16:25:05' and `end` < '2025-02-13 19:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-13 19:25:19] Production.INFO: count ==2646 [2025-02-13 19:25:19] Production.ERROR: pbx CDR StartTime 2025-02-13 16:25:05 - End Time 2025-02-13 19:25:05 [2025-02-13 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468526', 'tblTempUsageDetail_20' ) start [2025-02-13 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468526', 'tblTempUsageDetail_20' ) end [2025-02-13 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468526', 'tblTempVendorCDR_20' ) start [2025-02-13 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468526', 'tblTempVendorCDR_20' ) end [2025-02-13 19:25:19] Production.INFO: ProcessCDR(1,14468526,1,1,2) [2025-02-13 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468526', 'tblTempUsageDetail_20' ) start [2025-02-13 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468526', 'tblTempUsageDetail_20' ) end [2025-02-13 19:25:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 19:25:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 19:25:24] Production.INFO: ==355== Releasing lock... [2025-02-13 19:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 19:25:24] Production.INFO: 48 MB #Memory Used# [2025-02-13 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 16:26:05 [end_date_ymd] => 2025-02-13 19:26:05 [RateCDR] => 1 ) [2025-02-13 19: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-02-13 16:26:05' and `end` < '2025-02-13 19: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-02-13 19:26:19] Production.INFO: count ==2638 [2025-02-13 19:26:20] Production.ERROR: pbx CDR StartTime 2025-02-13 16:26:05 - End Time 2025-02-13 19:26:05 [2025-02-13 19:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468531', 'tblTempUsageDetail_20' ) start [2025-02-13 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468531', 'tblTempUsageDetail_20' ) end [2025-02-13 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468531', 'tblTempVendorCDR_20' ) start [2025-02-13 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468531', 'tblTempVendorCDR_20' ) end [2025-02-13 19:26:20] Production.INFO: ProcessCDR(1,14468531,1,1,2) [2025-02-13 19:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468531', 'tblTempUsageDetail_20' ) start [2025-02-13 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468531', 'tblTempUsageDetail_20' ) end [2025-02-13 19:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 19:26:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 19:26:23] Production.INFO: ==432== Releasing lock... [2025-02-13 19:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 19:26:23] Production.INFO: 47.75 MB #Memory Used# [2025-02-13 19:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 16:27:04 [end_date_ymd] => 2025-02-13 19:27:04 [RateCDR] => 1 ) [2025-02-13 19:27: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-02-13 16:27:04' and `end` < '2025-02-13 19:27: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-02-13 19:27:18] Production.INFO: count ==2632 [2025-02-13 19:27:19] Production.ERROR: pbx CDR StartTime 2025-02-13 16:27:04 - End Time 2025-02-13 19:27:04 [2025-02-13 19:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468536', 'tblTempUsageDetail_20' ) start [2025-02-13 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468536', 'tblTempUsageDetail_20' ) end [2025-02-13 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468536', 'tblTempVendorCDR_20' ) start [2025-02-13 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468536', 'tblTempVendorCDR_20' ) end [2025-02-13 19:27:19] Production.INFO: ProcessCDR(1,14468536,1,1,2) [2025-02-13 19:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468536', 'tblTempUsageDetail_20' ) start [2025-02-13 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468536', 'tblTempUsageDetail_20' ) end [2025-02-13 19:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 19:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 19:27:22] Production.INFO: ==507== Releasing lock... [2025-02-13 19:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 19:27:22] Production.INFO: 47.75 MB #Memory Used# [2025-02-13 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 16:28:05 [end_date_ymd] => 2025-02-13 19:28:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 16:28:05' and `end` < '2025-02-13 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-02-13 19:28:19] Production.INFO: count ==2622 [2025-02-13 19:28:19] Production.ERROR: pbx CDR StartTime 2025-02-13 16:28:05 - End Time 2025-02-13 19:28:05 [2025-02-13 19:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468541', 'tblTempUsageDetail_20' ) start [2025-02-13 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468541', 'tblTempUsageDetail_20' ) end [2025-02-13 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468541', 'tblTempVendorCDR_20' ) start [2025-02-13 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468541', 'tblTempVendorCDR_20' ) end [2025-02-13 19:28:20] Production.INFO: ProcessCDR(1,14468541,1,1,2) [2025-02-13 19:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468541', 'tblTempUsageDetail_20' ) start [2025-02-13 19:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468541', 'tblTempUsageDetail_20' ) end [2025-02-13 19:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 19:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 19:28:23] Production.INFO: ==580== Releasing lock... [2025-02-13 19:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 19:28:23] Production.INFO: 47.75 MB #Memory Used# [2025-02-13 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 16:29:05 [end_date_ymd] => 2025-02-13 19:29:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 16:29:05' and `end` < '2025-02-13 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-02-13 19:29:18] Production.INFO: count ==2610 [2025-02-13 19:29:19] Production.ERROR: pbx CDR StartTime 2025-02-13 16:29:05 - End Time 2025-02-13 19:29:05 [2025-02-13 19:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468546', 'tblTempUsageDetail_20' ) start [2025-02-13 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468546', 'tblTempUsageDetail_20' ) end [2025-02-13 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468546', 'tblTempVendorCDR_20' ) start [2025-02-13 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468546', 'tblTempVendorCDR_20' ) end [2025-02-13 19:29:19] Production.INFO: ProcessCDR(1,14468546,1,1,2) [2025-02-13 19:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468546', 'tblTempUsageDetail_20' ) start [2025-02-13 19:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468546', 'tblTempUsageDetail_20' ) end [2025-02-13 19:29:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 19:29:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 19:29:24] Production.INFO: ==663== Releasing lock... [2025-02-13 19:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 19:29:24] Production.INFO: 47.75 MB #Memory Used# [2025-02-13 19:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 16:30:06 [end_date_ymd] => 2025-02-13 19:30:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 16:30:06' and `end` < '2025-02-13 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-02-13 19:30:20] Production.INFO: count ==2599 [2025-02-13 19:30:20] Production.ERROR: pbx CDR StartTime 2025-02-13 16:30:06 - End Time 2025-02-13 19:30:06 [2025-02-13 19:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468552', 'tblTempUsageDetail_20' ) start [2025-02-13 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468552', 'tblTempUsageDetail_20' ) end [2025-02-13 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468552', 'tblTempVendorCDR_20' ) start [2025-02-13 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468552', 'tblTempVendorCDR_20' ) end [2025-02-13 19:30:20] Production.INFO: ProcessCDR(1,14468552,1,1,2) [2025-02-13 19:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468552', 'tblTempUsageDetail_20' ) start [2025-02-13 19:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468552', 'tblTempUsageDetail_20' ) end [2025-02-13 19:30:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 19:30:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 19:30:26] Production.INFO: ==765== Releasing lock... [2025-02-13 19:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 19:30:26] Production.INFO: 47.5 MB #Memory Used# [2025-02-13 19:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 16:31:06 [end_date_ymd] => 2025-02-13 19:31:06 [RateCDR] => 1 ) [2025-02-13 19: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-02-13 16:31:06' and `end` < '2025-02-13 19: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-02-13 19:31:20] Production.INFO: count ==2573 [2025-02-13 19:31:21] Production.ERROR: pbx CDR StartTime 2025-02-13 16:31:06 - End Time 2025-02-13 19:31:06 [2025-02-13 19:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 19:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468557', 'tblTempUsageDetail_20' ) start [2025-02-13 19:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468557', 'tblTempUsageDetail_20' ) end [2025-02-13 19:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468557', 'tblTempVendorCDR_20' ) start [2025-02-13 19:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468557', 'tblTempVendorCDR_20' ) end [2025-02-13 19:31:21] Production.INFO: ProcessCDR(1,14468557,1,1,2) [2025-02-13 19:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468557', 'tblTempUsageDetail_20' ) start [2025-02-13 19:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468557', 'tblTempUsageDetail_20' ) end [2025-02-13 19:31:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 19:31:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 19:31:24] Production.INFO: ==845== Releasing lock... [2025-02-13 19:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 19:31:24] Production.INFO: 47.25 MB #Memory Used# [2025-02-13 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 16:32:05 [end_date_ymd] => 2025-02-13 19:32:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 16:32:05' and `end` < '2025-02-13 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-02-13 19:32:26] Production.INFO: count ==2577 [2025-02-13 19:32:26] Production.ERROR: pbx CDR StartTime 2025-02-13 16:32:05 - End Time 2025-02-13 19:32:05 [2025-02-13 19:32:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 19:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468562', 'tblTempUsageDetail_20' ) start [2025-02-13 19:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468562', 'tblTempUsageDetail_20' ) end [2025-02-13 19:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468562', 'tblTempVendorCDR_20' ) start [2025-02-13 19:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468562', 'tblTempVendorCDR_20' ) end [2025-02-13 19:32:26] Production.INFO: ProcessCDR(1,14468562,1,1,2) [2025-02-13 19:32:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:32:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:32:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:32:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:32:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468562', 'tblTempUsageDetail_20' ) start [2025-02-13 19:32:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468562', 'tblTempUsageDetail_20' ) end [2025-02-13 19:32:31] Production.ERROR: pbx prc_insertCDR start [2025-02-13 19:32:31] Production.ERROR: pbx prc_insertCDR end [2025-02-13 19:32:31] Production.INFO: ==919== Releasing lock... [2025-02-13 19:32:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 19:32:31] Production.INFO: 47.5 MB #Memory Used# [2025-02-13 19:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 16:33:06 [end_date_ymd] => 2025-02-13 19:33:06 [RateCDR] => 1 ) [2025-02-13 19: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-02-13 16:33:06' and `end` < '2025-02-13 19: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-02-13 19:33:21] Production.INFO: count ==2574 [2025-02-13 19:33:21] Production.ERROR: pbx CDR StartTime 2025-02-13 16:33:06 - End Time 2025-02-13 19:33:06 [2025-02-13 19:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 19:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468567', 'tblTempUsageDetail_20' ) start [2025-02-13 19:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468567', 'tblTempUsageDetail_20' ) end [2025-02-13 19:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468567', 'tblTempVendorCDR_20' ) start [2025-02-13 19:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468567', 'tblTempVendorCDR_20' ) end [2025-02-13 19:33:21] Production.INFO: ProcessCDR(1,14468567,1,1,2) [2025-02-13 19:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468567', 'tblTempUsageDetail_20' ) start [2025-02-13 19:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468567', 'tblTempUsageDetail_20' ) end [2025-02-13 19:33:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 19:33:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 19:33:26] Production.INFO: ==998== Releasing lock... [2025-02-13 19:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 19:33:26] Production.INFO: 47.25 MB #Memory Used# [2025-02-13 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 16:34:05 [end_date_ymd] => 2025-02-13 19:34:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 16:34:05' and `end` < '2025-02-13 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-02-13 19:34:22] Production.INFO: count ==2576 [2025-02-13 19:34:23] Production.ERROR: pbx CDR StartTime 2025-02-13 16:34:05 - End Time 2025-02-13 19:34:05 [2025-02-13 19:34:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 19:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468572', 'tblTempUsageDetail_20' ) start [2025-02-13 19:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468572', 'tblTempUsageDetail_20' ) end [2025-02-13 19:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468572', 'tblTempVendorCDR_20' ) start [2025-02-13 19:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468572', 'tblTempVendorCDR_20' ) end [2025-02-13 19:34:23] Production.INFO: ProcessCDR(1,14468572,1,1,2) [2025-02-13 19:34:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468572', 'tblTempUsageDetail_20' ) start [2025-02-13 19:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468572', 'tblTempUsageDetail_20' ) end [2025-02-13 19:34:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 19:34:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 19:34:26] Production.INFO: ==1077== Releasing lock... [2025-02-13 19:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 19:34:26] Production.INFO: 47.5 MB #Memory Used# [2025-02-13 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 16:35:05 [end_date_ymd] => 2025-02-13 19:35:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 16:35:05' and `end` < '2025-02-13 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-02-13 19:35:20] Production.INFO: count ==2572 [2025-02-13 19:35:21] Production.ERROR: pbx CDR StartTime 2025-02-13 16:35:05 - End Time 2025-02-13 19:35:05 [2025-02-13 19:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 19:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468577', 'tblTempUsageDetail_20' ) start [2025-02-13 19:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468577', 'tblTempUsageDetail_20' ) end [2025-02-13 19:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468577', 'tblTempVendorCDR_20' ) start [2025-02-13 19:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468577', 'tblTempVendorCDR_20' ) end [2025-02-13 19:35:21] Production.INFO: ProcessCDR(1,14468577,1,1,2) [2025-02-13 19:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468577', 'tblTempUsageDetail_20' ) start [2025-02-13 19:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468577', 'tblTempUsageDetail_20' ) end [2025-02-13 19:35:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 19:35:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 19:35:24] Production.INFO: ==1157== Releasing lock... [2025-02-13 19:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 19:35:24] Production.INFO: 47.25 MB #Memory Used# [2025-02-13 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 16:36:05 [end_date_ymd] => 2025-02-13 19:36:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 16:36:05' and `end` < '2025-02-13 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-02-13 19:36:20] Production.INFO: count ==2569 [2025-02-13 19:36:20] Production.ERROR: pbx CDR StartTime 2025-02-13 16:36:05 - End Time 2025-02-13 19:36:05 [2025-02-13 19:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468582', 'tblTempUsageDetail_20' ) start [2025-02-13 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468582', 'tblTempUsageDetail_20' ) end [2025-02-13 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468582', 'tblTempVendorCDR_20' ) start [2025-02-13 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468582', 'tblTempVendorCDR_20' ) end [2025-02-13 19:36:20] Production.INFO: ProcessCDR(1,14468582,1,1,2) [2025-02-13 19:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468582', 'tblTempUsageDetail_20' ) start [2025-02-13 19:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468582', 'tblTempUsageDetail_20' ) end [2025-02-13 19:36:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 19:36:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 19:36:25] Production.INFO: ==1241== Releasing lock... [2025-02-13 19:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 19:36:25] Production.INFO: 47.25 MB #Memory Used# [2025-02-13 19:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 16:37:05 [end_date_ymd] => 2025-02-13 19:37:05 [RateCDR] => 1 ) [2025-02-13 19: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-02-13 16:37:05' and `end` < '2025-02-13 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-02-13 19:37:19] Production.INFO: count ==2562 [2025-02-13 19:37:19] Production.ERROR: pbx CDR StartTime 2025-02-13 16:37:05 - End Time 2025-02-13 19:37:05 [2025-02-13 19:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468587', 'tblTempUsageDetail_20' ) start [2025-02-13 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468587', 'tblTempUsageDetail_20' ) end [2025-02-13 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468587', 'tblTempVendorCDR_20' ) start [2025-02-13 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468587', 'tblTempVendorCDR_20' ) end [2025-02-13 19:37:20] Production.INFO: ProcessCDR(1,14468587,1,1,2) [2025-02-13 19:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468587', 'tblTempUsageDetail_20' ) start [2025-02-13 19:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468587', 'tblTempUsageDetail_20' ) end [2025-02-13 19:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 19:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 19:37:23] Production.INFO: ==1329== Releasing lock... [2025-02-13 19:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 19:37:23] Production.INFO: 47.5 MB #Memory Used# [2025-02-13 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 16:38:05 [end_date_ymd] => 2025-02-13 19:38:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 16:38:05' and `end` < '2025-02-13 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-02-13 19:38:19] Production.INFO: count ==2559 [2025-02-13 19:38:20] Production.ERROR: pbx CDR StartTime 2025-02-13 16:38:05 - End Time 2025-02-13 19:38:05 [2025-02-13 19:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468592', 'tblTempUsageDetail_20' ) start [2025-02-13 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468592', 'tblTempUsageDetail_20' ) end [2025-02-13 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468592', 'tblTempVendorCDR_20' ) start [2025-02-13 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468592', 'tblTempVendorCDR_20' ) end [2025-02-13 19:38:20] Production.INFO: ProcessCDR(1,14468592,1,1,2) [2025-02-13 19:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468592', 'tblTempUsageDetail_20' ) start [2025-02-13 19:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468592', 'tblTempUsageDetail_20' ) end [2025-02-13 19:38:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 19:38:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 19:38:25] Production.INFO: ==1408== Releasing lock... [2025-02-13 19:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 19:38:25] Production.INFO: 47.25 MB #Memory Used# [2025-02-13 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 16:39:05 [end_date_ymd] => 2025-02-13 19:39:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 16:39:05' and `end` < '2025-02-13 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-02-13 19:39:19] Production.INFO: count ==2559 [2025-02-13 19:39:19] Production.ERROR: pbx CDR StartTime 2025-02-13 16:39:05 - End Time 2025-02-13 19:39:05 [2025-02-13 19:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468597', 'tblTempUsageDetail_20' ) start [2025-02-13 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468597', 'tblTempUsageDetail_20' ) end [2025-02-13 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468597', 'tblTempVendorCDR_20' ) start [2025-02-13 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468597', 'tblTempVendorCDR_20' ) end [2025-02-13 19:39:19] Production.INFO: ProcessCDR(1,14468597,1,1,2) [2025-02-13 19:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468597', 'tblTempUsageDetail_20' ) start [2025-02-13 19:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468597', 'tblTempUsageDetail_20' ) end [2025-02-13 19:39:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 19:39:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 19:39:24] Production.INFO: ==1484== Releasing lock... [2025-02-13 19:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 19:39:24] Production.INFO: 47.25 MB #Memory Used# [2025-02-13 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 16:40:06 [end_date_ymd] => 2025-02-13 19:40:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 16:40:06' and `end` < '2025-02-13 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-02-13 19:40:19] Production.INFO: count ==2544 [2025-02-13 19:40:20] Production.ERROR: pbx CDR StartTime 2025-02-13 16:40:06 - End Time 2025-02-13 19:40:06 [2025-02-13 19:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468603', 'tblTempUsageDetail_20' ) start [2025-02-13 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468603', 'tblTempUsageDetail_20' ) end [2025-02-13 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468603', 'tblTempVendorCDR_20' ) start [2025-02-13 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468603', 'tblTempVendorCDR_20' ) end [2025-02-13 19:40:20] Production.INFO: ProcessCDR(1,14468603,1,1,2) [2025-02-13 19:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468603', 'tblTempUsageDetail_20' ) start [2025-02-13 19:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468603', 'tblTempUsageDetail_20' ) end [2025-02-13 19:40:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 19:40:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 19:40:25] Production.INFO: ==1641== Releasing lock... [2025-02-13 19:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 19:40:25] Production.INFO: 47.25 MB #Memory Used# [2025-02-13 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 16:41:05 [end_date_ymd] => 2025-02-13 19:41:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 16:41:05' and `end` < '2025-02-13 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-02-13 19:41:20] Production.INFO: count ==2521 [2025-02-13 19:41:21] Production.ERROR: pbx CDR StartTime 2025-02-13 16:41:05 - End Time 2025-02-13 19:41:05 [2025-02-13 19:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 19:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468608', 'tblTempUsageDetail_20' ) start [2025-02-13 19:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468608', 'tblTempUsageDetail_20' ) end [2025-02-13 19:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468608', 'tblTempVendorCDR_20' ) start [2025-02-13 19:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468608', 'tblTempVendorCDR_20' ) end [2025-02-13 19:41:21] Production.INFO: ProcessCDR(1,14468608,1,1,2) [2025-02-13 19:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468608', 'tblTempUsageDetail_20' ) start [2025-02-13 19:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468608', 'tblTempUsageDetail_20' ) end [2025-02-13 19:41:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 19:41:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 19:41:26] Production.INFO: ==1722== Releasing lock... [2025-02-13 19:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 19:41:26] Production.INFO: 47 MB #Memory Used# [2025-02-13 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 16:42:05 [end_date_ymd] => 2025-02-13 19:42:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 16:42:05' and `end` < '2025-02-13 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-02-13 19:42:18] Production.INFO: count ==2515 [2025-02-13 19:42:19] Production.ERROR: pbx CDR StartTime 2025-02-13 16:42:05 - End Time 2025-02-13 19:42:05 [2025-02-13 19:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468612', 'tblTempUsageDetail_20' ) start [2025-02-13 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468612', 'tblTempUsageDetail_20' ) end [2025-02-13 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468612', 'tblTempVendorCDR_20' ) start [2025-02-13 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468612', 'tblTempVendorCDR_20' ) end [2025-02-13 19:42:19] Production.INFO: ProcessCDR(1,14468612,1,1,2) [2025-02-13 19:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468612', 'tblTempUsageDetail_20' ) start [2025-02-13 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468612', 'tblTempUsageDetail_20' ) end [2025-02-13 19:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 19:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 19:42:23] Production.INFO: ==1800== Releasing lock... [2025-02-13 19:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 19:42:23] Production.INFO: 47 MB #Memory Used# [2025-02-13 19:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 16:43:06 [end_date_ymd] => 2025-02-13 19:43:06 [RateCDR] => 1 ) [2025-02-13 19: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-02-13 16:43:06' and `end` < '2025-02-13 19: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-02-13 19:43:21] Production.INFO: count ==2512 [2025-02-13 19:43:22] Production.ERROR: pbx CDR StartTime 2025-02-13 16:43:06 - End Time 2025-02-13 19:43:06 [2025-02-13 19:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 19:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468618', 'tblTempUsageDetail_20' ) start [2025-02-13 19:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468618', 'tblTempUsageDetail_20' ) end [2025-02-13 19:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468618', 'tblTempVendorCDR_20' ) start [2025-02-13 19:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468618', 'tblTempVendorCDR_20' ) end [2025-02-13 19:43:22] Production.INFO: ProcessCDR(1,14468618,1,1,2) [2025-02-13 19:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468618', 'tblTempUsageDetail_20' ) start [2025-02-13 19:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468618', 'tblTempUsageDetail_20' ) end [2025-02-13 19:43:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 19:43:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 19:43:27] Production.INFO: ==1878== Releasing lock... [2025-02-13 19:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 19:43:27] Production.INFO: 47 MB #Memory Used# [2025-02-13 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 16:44:05 [end_date_ymd] => 2025-02-13 19:44:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 16:44:05' and `end` < '2025-02-13 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-02-13 19:44:18] Production.INFO: count ==2498 [2025-02-13 19:44:19] Production.ERROR: pbx CDR StartTime 2025-02-13 16:44:05 - End Time 2025-02-13 19:44:05 [2025-02-13 19:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468623', 'tblTempUsageDetail_20' ) start [2025-02-13 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468623', 'tblTempUsageDetail_20' ) end [2025-02-13 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468623', 'tblTempVendorCDR_20' ) start [2025-02-13 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468623', 'tblTempVendorCDR_20' ) end [2025-02-13 19:44:19] Production.INFO: ProcessCDR(1,14468623,1,1,2) [2025-02-13 19:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468623', 'tblTempUsageDetail_20' ) start [2025-02-13 19:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468623', 'tblTempUsageDetail_20' ) end [2025-02-13 19:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 19:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 19:44:23] Production.INFO: ==1956== Releasing lock... [2025-02-13 19:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 19:44:23] Production.INFO: 46.75 MB #Memory Used# [2025-02-13 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 16:45:05 [end_date_ymd] => 2025-02-13 19:45:05 [RateCDR] => 1 ) [2025-02-13 19: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-02-13 16:45:05' and `end` < '2025-02-13 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-02-13 19:45:21] Production.INFO: count ==2490 [2025-02-13 19:45:22] Production.ERROR: pbx CDR StartTime 2025-02-13 16:45:05 - End Time 2025-02-13 19:45:05 [2025-02-13 19:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 19:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468628', 'tblTempUsageDetail_20' ) start [2025-02-13 19:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468628', 'tblTempUsageDetail_20' ) end [2025-02-13 19:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468628', 'tblTempVendorCDR_20' ) start [2025-02-13 19:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468628', 'tblTempVendorCDR_20' ) end [2025-02-13 19:45:22] Production.INFO: ProcessCDR(1,14468628,1,1,2) [2025-02-13 19:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468628', 'tblTempUsageDetail_20' ) start [2025-02-13 19:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468628', 'tblTempUsageDetail_20' ) end [2025-02-13 19:45:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 19:45:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 19:45:27] Production.INFO: ==2038== Releasing lock... [2025-02-13 19:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 19:45:27] Production.INFO: 46.75 MB #Memory Used# [2025-02-13 19:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 16:46:06 [end_date_ymd] => 2025-02-13 19:46:06 [RateCDR] => 1 ) [2025-02-13 19: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-02-13 16:46:06' and `end` < '2025-02-13 19: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-02-13 19:46:19] Production.INFO: count ==2496 [2025-02-13 19:46:20] Production.ERROR: pbx CDR StartTime 2025-02-13 16:46:06 - End Time 2025-02-13 19:46:06 [2025-02-13 19:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468633', 'tblTempUsageDetail_20' ) start [2025-02-13 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468633', 'tblTempUsageDetail_20' ) end [2025-02-13 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468633', 'tblTempVendorCDR_20' ) start [2025-02-13 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468633', 'tblTempVendorCDR_20' ) end [2025-02-13 19:46:20] Production.INFO: ProcessCDR(1,14468633,1,1,2) [2025-02-13 19:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468633', 'tblTempUsageDetail_20' ) start [2025-02-13 19:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468633', 'tblTempUsageDetail_20' ) end [2025-02-13 19:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 19:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 19:46:23] Production.INFO: ==2127== Releasing lock... [2025-02-13 19:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 19:46:23] Production.INFO: 46.75 MB #Memory Used# [2025-02-13 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 16:47:05 [end_date_ymd] => 2025-02-13 19:47:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 16:47:05' and `end` < '2025-02-13 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-02-13 19:47:19] Production.INFO: count ==2498 [2025-02-13 19:47:19] Production.ERROR: pbx CDR StartTime 2025-02-13 16:47:05 - End Time 2025-02-13 19:47:05 [2025-02-13 19:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468638', 'tblTempUsageDetail_20' ) start [2025-02-13 19:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468638', 'tblTempUsageDetail_20' ) end [2025-02-13 19:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468638', 'tblTempVendorCDR_20' ) start [2025-02-13 19:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468638', 'tblTempVendorCDR_20' ) end [2025-02-13 19:47:20] Production.INFO: ProcessCDR(1,14468638,1,1,2) [2025-02-13 19:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468638', 'tblTempUsageDetail_20' ) start [2025-02-13 19:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468638', 'tblTempUsageDetail_20' ) end [2025-02-13 19:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 19:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 19:47:23] Production.INFO: ==2242== Releasing lock... [2025-02-13 19:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 19:47:23] Production.INFO: 46.75 MB #Memory Used# [2025-02-13 19:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 16:48:06 [end_date_ymd] => 2025-02-13 19:48:06 [RateCDR] => 1 ) [2025-02-13 19: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-02-13 16:48:06' and `end` < '2025-02-13 19: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-02-13 19:48:20] Production.INFO: count ==2494 [2025-02-13 19:48:21] Production.ERROR: pbx CDR StartTime 2025-02-13 16:48:06 - End Time 2025-02-13 19:48:06 [2025-02-13 19:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 19:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468643', 'tblTempUsageDetail_20' ) start [2025-02-13 19:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468643', 'tblTempUsageDetail_20' ) end [2025-02-13 19:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468643', 'tblTempVendorCDR_20' ) start [2025-02-13 19:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468643', 'tblTempVendorCDR_20' ) end [2025-02-13 19:48:21] Production.INFO: ProcessCDR(1,14468643,1,1,2) [2025-02-13 19:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468643', 'tblTempUsageDetail_20' ) start [2025-02-13 19:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468643', 'tblTempUsageDetail_20' ) end [2025-02-13 19:48:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 19:48:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 19:48:24] Production.INFO: ==2365== Releasing lock... [2025-02-13 19:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 19:48:24] Production.INFO: 46.5 MB #Memory Used# [2025-02-13 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 16:49:05 [end_date_ymd] => 2025-02-13 19:49:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 16:49:05' and `end` < '2025-02-13 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-02-13 19:49:18] Production.INFO: count ==2476 [2025-02-13 19:49:19] Production.ERROR: pbx CDR StartTime 2025-02-13 16:49:05 - End Time 2025-02-13 19:49:05 [2025-02-13 19:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468648', 'tblTempUsageDetail_20' ) start [2025-02-13 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468648', 'tblTempUsageDetail_20' ) end [2025-02-13 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468648', 'tblTempVendorCDR_20' ) start [2025-02-13 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468648', 'tblTempVendorCDR_20' ) end [2025-02-13 19:49:19] Production.INFO: ProcessCDR(1,14468648,1,1,2) [2025-02-13 19:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468648', 'tblTempUsageDetail_20' ) start [2025-02-13 19:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468648', 'tblTempUsageDetail_20' ) end [2025-02-13 19:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 19:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 19:49:23] Production.INFO: ==2484== Releasing lock... [2025-02-13 19:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 19:49:23] Production.INFO: 46.75 MB #Memory Used# [2025-02-13 19:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 16:50:06 [end_date_ymd] => 2025-02-13 19:50:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 16:50:06' and `end` < '2025-02-13 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-02-13 19:50:20] Production.INFO: count ==2471 [2025-02-13 19:50:20] Production.ERROR: pbx CDR StartTime 2025-02-13 16:50:06 - End Time 2025-02-13 19:50:06 [2025-02-13 19:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468654', 'tblTempUsageDetail_20' ) start [2025-02-13 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468654', 'tblTempUsageDetail_20' ) end [2025-02-13 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468654', 'tblTempVendorCDR_20' ) start [2025-02-13 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468654', 'tblTempVendorCDR_20' ) end [2025-02-13 19:50:20] Production.INFO: ProcessCDR(1,14468654,1,1,2) [2025-02-13 19:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468654', 'tblTempUsageDetail_20' ) start [2025-02-13 19:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468654', 'tblTempUsageDetail_20' ) end [2025-02-13 19:50:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 19:50:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 19:50:25] Production.INFO: ==2601== Releasing lock... [2025-02-13 19:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 19:50:25] Production.INFO: 46.5 MB #Memory Used# [2025-02-13 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 16:51:05 [end_date_ymd] => 2025-02-13 19:51:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 16:51:05' and `end` < '2025-02-13 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-02-13 19:51:21] Production.INFO: count ==2425 [2025-02-13 19:51:21] Production.ERROR: pbx CDR StartTime 2025-02-13 16:51:05 - End Time 2025-02-13 19:51:05 [2025-02-13 19:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 19:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468659', 'tblTempUsageDetail_20' ) start [2025-02-13 19:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468659', 'tblTempUsageDetail_20' ) end [2025-02-13 19:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468659', 'tblTempVendorCDR_20' ) start [2025-02-13 19:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468659', 'tblTempVendorCDR_20' ) end [2025-02-13 19:51:22] Production.INFO: ProcessCDR(1,14468659,1,1,2) [2025-02-13 19:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468659', 'tblTempUsageDetail_20' ) start [2025-02-13 19:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468659', 'tblTempUsageDetail_20' ) end [2025-02-13 19:51:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 19:51:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 19:51:25] Production.INFO: ==2726== Releasing lock... [2025-02-13 19:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 19:51:25] Production.INFO: 46.5 MB #Memory Used# [2025-02-13 19:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 16:52:06 [end_date_ymd] => 2025-02-13 19:52:06 [RateCDR] => 1 ) [2025-02-13 19: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-02-13 16:52:06' and `end` < '2025-02-13 19: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-02-13 19:52:19] Production.INFO: count ==2410 [2025-02-13 19:52:20] Production.ERROR: pbx CDR StartTime 2025-02-13 16:52:06 - End Time 2025-02-13 19:52:06 [2025-02-13 19:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468663', 'tblTempUsageDetail_20' ) start [2025-02-13 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468663', 'tblTempUsageDetail_20' ) end [2025-02-13 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468663', 'tblTempVendorCDR_20' ) start [2025-02-13 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468663', 'tblTempVendorCDR_20' ) end [2025-02-13 19:52:20] Production.INFO: ProcessCDR(1,14468663,1,1,2) [2025-02-13 19:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468663', 'tblTempUsageDetail_20' ) start [2025-02-13 19:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468663', 'tblTempUsageDetail_20' ) end [2025-02-13 19:52:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 19:52:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 19:52:25] Production.INFO: ==2843== Releasing lock... [2025-02-13 19:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 19:52:25] Production.INFO: 46.25 MB #Memory Used# [2025-02-13 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 16:53:05 [end_date_ymd] => 2025-02-13 19:53:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 16:53:05' and `end` < '2025-02-13 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-02-13 19:53:19] Production.INFO: count ==2378 [2025-02-13 19:53:20] Production.ERROR: pbx CDR StartTime 2025-02-13 16:53:05 - End Time 2025-02-13 19:53:05 [2025-02-13 19:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468669', 'tblTempUsageDetail_20' ) start [2025-02-13 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468669', 'tblTempUsageDetail_20' ) end [2025-02-13 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468669', 'tblTempVendorCDR_20' ) start [2025-02-13 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468669', 'tblTempVendorCDR_20' ) end [2025-02-13 19:53:20] Production.INFO: ProcessCDR(1,14468669,1,1,2) [2025-02-13 19:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468669', 'tblTempUsageDetail_20' ) start [2025-02-13 19:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468669', 'tblTempUsageDetail_20' ) end [2025-02-13 19:53:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 19:53:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 19:53:24] Production.INFO: ==2970== Releasing lock... [2025-02-13 19:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 19:53:24] Production.INFO: 45.75 MB #Memory Used# [2025-02-13 19:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 16:54:06 [end_date_ymd] => 2025-02-13 19:54:06 [RateCDR] => 1 ) [2025-02-13 19: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-02-13 16:54:06' and `end` < '2025-02-13 19: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-02-13 19:54:19] Production.INFO: count ==2374 [2025-02-13 19:54:19] Production.ERROR: pbx CDR StartTime 2025-02-13 16:54:06 - End Time 2025-02-13 19:54:06 [2025-02-13 19:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468674', 'tblTempUsageDetail_20' ) start [2025-02-13 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468674', 'tblTempUsageDetail_20' ) end [2025-02-13 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468674', 'tblTempVendorCDR_20' ) start [2025-02-13 19:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468674', 'tblTempVendorCDR_20' ) end [2025-02-13 19:54:20] Production.INFO: ProcessCDR(1,14468674,1,1,2) [2025-02-13 19:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468674', 'tblTempUsageDetail_20' ) start [2025-02-13 19:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468674', 'tblTempUsageDetail_20' ) end [2025-02-13 19:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 19:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 19:54:23] Production.INFO: ==3094== Releasing lock... [2025-02-13 19:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 19:54:23] Production.INFO: 45.75 MB #Memory Used# [2025-02-13 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 16:55:05 [end_date_ymd] => 2025-02-13 19:55:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 16:55:05' and `end` < '2025-02-13 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-02-13 19:55:18] Production.INFO: count ==2359 [2025-02-13 19:55:19] Production.ERROR: pbx CDR StartTime 2025-02-13 16:55:05 - End Time 2025-02-13 19:55:05 [2025-02-13 19:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468679', 'tblTempUsageDetail_20' ) start [2025-02-13 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468679', 'tblTempUsageDetail_20' ) end [2025-02-13 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468679', 'tblTempVendorCDR_20' ) start [2025-02-13 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468679', 'tblTempVendorCDR_20' ) end [2025-02-13 19:55:19] Production.INFO: ProcessCDR(1,14468679,1,1,2) [2025-02-13 19:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468679', 'tblTempUsageDetail_20' ) start [2025-02-13 19:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468679', 'tblTempUsageDetail_20' ) end [2025-02-13 19:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 19:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 19:55:22] Production.INFO: ==3220== Releasing lock... [2025-02-13 19:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 19:55:22] Production.INFO: 45.5 MB #Memory Used# [2025-02-13 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 16:56:05 [end_date_ymd] => 2025-02-13 19:56:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 16:56:05' and `end` < '2025-02-13 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-02-13 19:56:19] Production.INFO: count ==2355 [2025-02-13 19:56:19] Production.ERROR: pbx CDR StartTime 2025-02-13 16:56:05 - End Time 2025-02-13 19:56:05 [2025-02-13 19:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468684', 'tblTempUsageDetail_20' ) start [2025-02-13 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468684', 'tblTempUsageDetail_20' ) end [2025-02-13 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468684', 'tblTempVendorCDR_20' ) start [2025-02-13 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468684', 'tblTempVendorCDR_20' ) end [2025-02-13 19:56:19] Production.INFO: ProcessCDR(1,14468684,1,1,2) [2025-02-13 19:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468684', 'tblTempUsageDetail_20' ) start [2025-02-13 19:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468684', 'tblTempUsageDetail_20' ) end [2025-02-13 19:56:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 19:56:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 19:56:24] Production.INFO: ==3388== Releasing lock... [2025-02-13 19:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 19:56:24] Production.INFO: 45.5 MB #Memory Used# [2025-02-13 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 16:57:05 [end_date_ymd] => 2025-02-13 19:57:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 16:57:05' and `end` < '2025-02-13 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-02-13 19:57:18] Production.INFO: count ==2352 [2025-02-13 19:57:19] Production.ERROR: pbx CDR StartTime 2025-02-13 16:57:05 - End Time 2025-02-13 19:57:05 [2025-02-13 19:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468689', 'tblTempUsageDetail_20' ) start [2025-02-13 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468689', 'tblTempUsageDetail_20' ) end [2025-02-13 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468689', 'tblTempVendorCDR_20' ) start [2025-02-13 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468689', 'tblTempVendorCDR_20' ) end [2025-02-13 19:57:19] Production.INFO: ProcessCDR(1,14468689,1,1,2) [2025-02-13 19:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468689', 'tblTempUsageDetail_20' ) start [2025-02-13 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468689', 'tblTempUsageDetail_20' ) end [2025-02-13 19:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 19:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 19:57:22] Production.INFO: ==3510== Releasing lock... [2025-02-13 19:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 19:57:22] Production.INFO: 45.75 MB #Memory Used# [2025-02-13 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 16:58:05 [end_date_ymd] => 2025-02-13 19:58:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 16:58:05' and `end` < '2025-02-13 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-02-13 19:58:19] Production.INFO: count ==2331 [2025-02-13 19:58:19] Production.ERROR: pbx CDR StartTime 2025-02-13 16:58:05 - End Time 2025-02-13 19:58:05 [2025-02-13 19:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468694', 'tblTempUsageDetail_20' ) start [2025-02-13 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468694', 'tblTempUsageDetail_20' ) end [2025-02-13 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468694', 'tblTempVendorCDR_20' ) start [2025-02-13 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468694', 'tblTempVendorCDR_20' ) end [2025-02-13 19:58:19] Production.INFO: ProcessCDR(1,14468694,1,1,2) [2025-02-13 19:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468694', 'tblTempUsageDetail_20' ) start [2025-02-13 19:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468694', 'tblTempUsageDetail_20' ) end [2025-02-13 19:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 19:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 19:58:22] Production.INFO: ==3637== Releasing lock... [2025-02-13 19:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 19:58:22] Production.INFO: 45.25 MB #Memory Used# [2025-02-13 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 16:59:05 [end_date_ymd] => 2025-02-13 19:59:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 16:59:05' and `end` < '2025-02-13 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-02-13 19:59:18] Production.INFO: count ==2326 [2025-02-13 19:59:18] Production.ERROR: pbx CDR StartTime 2025-02-13 16:59:05 - End Time 2025-02-13 19:59:05 [2025-02-13 19:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468699', 'tblTempUsageDetail_20' ) start [2025-02-13 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468699', 'tblTempUsageDetail_20' ) end [2025-02-13 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468699', 'tblTempVendorCDR_20' ) start [2025-02-13 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468699', 'tblTempVendorCDR_20' ) end [2025-02-13 19:59:18] Production.INFO: ProcessCDR(1,14468699,1,1,2) [2025-02-13 19:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 19:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 19:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468699', 'tblTempUsageDetail_20' ) start [2025-02-13 19:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468699', 'tblTempUsageDetail_20' ) end [2025-02-13 19:59:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 19:59:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 19:59:23] Production.INFO: ==3749== Releasing lock... [2025-02-13 19:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 19:59:23] Production.INFO: 45 MB #Memory Used# [2025-02-13 20:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 17:00:07 [end_date_ymd] => 2025-02-13 20:00:07 [RateCDR] => 1 ) [2025-02-13 20: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-02-13 17:00:07' and `end` < '2025-02-13 20: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-02-13 20:00:20] Production.INFO: count ==2335 [2025-02-13 20:00:21] Production.ERROR: pbx CDR StartTime 2025-02-13 17:00:07 - End Time 2025-02-13 20:00:07 [2025-02-13 20:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468705', 'tblTempUsageDetail_20' ) start [2025-02-13 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468705', 'tblTempUsageDetail_20' ) end [2025-02-13 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468705', 'tblTempVendorCDR_20' ) start [2025-02-13 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468705', 'tblTempVendorCDR_20' ) end [2025-02-13 20:00:21] Production.INFO: ProcessCDR(1,14468705,1,1,2) [2025-02-13 20:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468705', 'tblTempUsageDetail_20' ) start [2025-02-13 20:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468705', 'tblTempUsageDetail_20' ) end [2025-02-13 20:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 20:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 20:00:24] Production.INFO: ==3841== Releasing lock... [2025-02-13 20:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 20:00:24] Production.INFO: 45.5 MB #Memory Used# [2025-02-13 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 17:01:05 [end_date_ymd] => 2025-02-13 20:01:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 17:01:05' and `end` < '2025-02-13 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-02-13 20:01:18] Production.INFO: count ==2279 [2025-02-13 20:01:19] Production.ERROR: pbx CDR StartTime 2025-02-13 17:01:05 - End Time 2025-02-13 20:01:05 [2025-02-13 20:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468710', 'tblTempUsageDetail_20' ) start [2025-02-13 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468710', 'tblTempUsageDetail_20' ) end [2025-02-13 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468710', 'tblTempVendorCDR_20' ) start [2025-02-13 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468710', 'tblTempVendorCDR_20' ) end [2025-02-13 20:01:19] Production.INFO: ProcessCDR(1,14468710,1,1,2) [2025-02-13 20:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468710', 'tblTempUsageDetail_20' ) start [2025-02-13 20:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468710', 'tblTempUsageDetail_20' ) end [2025-02-13 20:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 20:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 20:01:22] Production.INFO: ==3970== Releasing lock... [2025-02-13 20:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 20:01:22] Production.INFO: 45 MB #Memory Used# [2025-02-13 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 17:02:05 [end_date_ymd] => 2025-02-13 20:02:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 17:02:05' and `end` < '2025-02-13 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-02-13 20:02:19] Production.INFO: count ==2278 [2025-02-13 20:02:19] Production.ERROR: pbx CDR StartTime 2025-02-13 17:02:05 - End Time 2025-02-13 20:02:05 [2025-02-13 20:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468715', 'tblTempUsageDetail_20' ) start [2025-02-13 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468715', 'tblTempUsageDetail_20' ) end [2025-02-13 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468715', 'tblTempVendorCDR_20' ) start [2025-02-13 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468715', 'tblTempVendorCDR_20' ) end [2025-02-13 20:02:19] Production.INFO: ProcessCDR(1,14468715,1,1,2) [2025-02-13 20:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468715', 'tblTempUsageDetail_20' ) start [2025-02-13 20:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468715', 'tblTempUsageDetail_20' ) end [2025-02-13 20:02:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 20:02:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 20:02:25] Production.INFO: ==4060== Releasing lock... [2025-02-13 20:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 20:02:25] Production.INFO: 45 MB #Memory Used# [2025-02-13 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 17:03:05 [end_date_ymd] => 2025-02-13 20:03:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 17:03:05' and `end` < '2025-02-13 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-02-13 20:03:19] Production.INFO: count ==2276 [2025-02-13 20:03:19] Production.ERROR: pbx CDR StartTime 2025-02-13 17:03:05 - End Time 2025-02-13 20:03:05 [2025-02-13 20:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468720', 'tblTempUsageDetail_20' ) start [2025-02-13 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468720', 'tblTempUsageDetail_20' ) end [2025-02-13 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468720', 'tblTempVendorCDR_20' ) start [2025-02-13 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468720', 'tblTempVendorCDR_20' ) end [2025-02-13 20:03:19] Production.INFO: ProcessCDR(1,14468720,1,1,2) [2025-02-13 20:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468720', 'tblTempUsageDetail_20' ) start [2025-02-13 20:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468720', 'tblTempUsageDetail_20' ) end [2025-02-13 20:03:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 20:03:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 20:03:25] Production.INFO: ==4148== Releasing lock... [2025-02-13 20:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 20:03:25] Production.INFO: 45 MB #Memory Used# [2025-02-13 20:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 17:04:06 [end_date_ymd] => 2025-02-13 20:04:06 [RateCDR] => 1 ) [2025-02-13 20: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-02-13 17:04:06' and `end` < '2025-02-13 20: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-02-13 20:04:19] Production.INFO: count ==2252 [2025-02-13 20:04:20] Production.ERROR: pbx CDR StartTime 2025-02-13 17:04:06 - End Time 2025-02-13 20:04:06 [2025-02-13 20:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 20:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468725', 'tblTempUsageDetail_20' ) start [2025-02-13 20:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468725', 'tblTempUsageDetail_20' ) end [2025-02-13 20:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468725', 'tblTempVendorCDR_20' ) start [2025-02-13 20:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468725', 'tblTempVendorCDR_20' ) end [2025-02-13 20:04:20] Production.INFO: ProcessCDR(1,14468725,1,1,2) [2025-02-13 20:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468725', 'tblTempUsageDetail_20' ) start [2025-02-13 20:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468725', 'tblTempUsageDetail_20' ) end [2025-02-13 20:04:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 20:04:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 20:04:24] Production.INFO: ==4231== Releasing lock... [2025-02-13 20:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 20:04:24] Production.INFO: 44.75 MB #Memory Used# [2025-02-13 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 17:05:05 [end_date_ymd] => 2025-02-13 20:05:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 17:05:05' and `end` < '2025-02-13 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-02-13 20:05:19] Production.INFO: count ==2254 [2025-02-13 20:05:19] Production.ERROR: pbx CDR StartTime 2025-02-13 17:05:05 - End Time 2025-02-13 20:05:05 [2025-02-13 20:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468730', 'tblTempUsageDetail_20' ) start [2025-02-13 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468730', 'tblTempUsageDetail_20' ) end [2025-02-13 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468730', 'tblTempVendorCDR_20' ) start [2025-02-13 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468730', 'tblTempVendorCDR_20' ) end [2025-02-13 20:05:19] Production.INFO: ProcessCDR(1,14468730,1,1,2) [2025-02-13 20:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468730', 'tblTempUsageDetail_20' ) start [2025-02-13 20:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468730', 'tblTempUsageDetail_20' ) end [2025-02-13 20:05:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 20:05:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 20:05:24] Production.INFO: ==4317== Releasing lock... [2025-02-13 20:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 20:05:24] Production.INFO: 45 MB #Memory Used# [2025-02-13 20:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 17:06:06 [end_date_ymd] => 2025-02-13 20:06:06 [RateCDR] => 1 ) [2025-02-13 20: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-02-13 17:06:06' and `end` < '2025-02-13 20: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-02-13 20:06:19] Production.INFO: count ==2253 [2025-02-13 20:06:20] Production.ERROR: pbx CDR StartTime 2025-02-13 17:06:06 - End Time 2025-02-13 20:06:06 [2025-02-13 20:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 20:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468735', 'tblTempUsageDetail_20' ) start [2025-02-13 20:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468735', 'tblTempUsageDetail_20' ) end [2025-02-13 20:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468735', 'tblTempVendorCDR_20' ) start [2025-02-13 20:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468735', 'tblTempVendorCDR_20' ) end [2025-02-13 20:06:20] Production.INFO: ProcessCDR(1,14468735,1,1,2) [2025-02-13 20:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468735', 'tblTempUsageDetail_20' ) start [2025-02-13 20:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468735', 'tblTempUsageDetail_20' ) end [2025-02-13 20:06:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 20:06:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 20:06:25] Production.INFO: ==4400== Releasing lock... [2025-02-13 20:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 20:06:25] Production.INFO: 45 MB #Memory Used# [2025-02-13 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 17:07:05 [end_date_ymd] => 2025-02-13 20:07:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 17:07:05' and `end` < '2025-02-13 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-02-13 20:07:19] Production.INFO: count ==2249 [2025-02-13 20:07:20] Production.ERROR: pbx CDR StartTime 2025-02-13 17:07:05 - End Time 2025-02-13 20:07:05 [2025-02-13 20:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468740', 'tblTempUsageDetail_20' ) start [2025-02-13 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468740', 'tblTempUsageDetail_20' ) end [2025-02-13 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468740', 'tblTempVendorCDR_20' ) start [2025-02-13 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468740', 'tblTempVendorCDR_20' ) end [2025-02-13 20:07:20] Production.INFO: ProcessCDR(1,14468740,1,1,2) [2025-02-13 20:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468740', 'tblTempUsageDetail_20' ) start [2025-02-13 20:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468740', 'tblTempUsageDetail_20' ) end [2025-02-13 20:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 20:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 20:07:23] Production.INFO: ==4486== Releasing lock... [2025-02-13 20:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 20:07:23] Production.INFO: 45 MB #Memory Used# [2025-02-13 20:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 17:08:06 [end_date_ymd] => 2025-02-13 20:08:06 [RateCDR] => 1 ) [2025-02-13 20: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-02-13 17:08:06' and `end` < '2025-02-13 20: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-02-13 20:08:19] Production.INFO: count ==2249 [2025-02-13 20:08:20] Production.ERROR: pbx CDR StartTime 2025-02-13 17:08:06 - End Time 2025-02-13 20:08:06 [2025-02-13 20:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 20:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468745', 'tblTempUsageDetail_20' ) start [2025-02-13 20:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468745', 'tblTempUsageDetail_20' ) end [2025-02-13 20:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468745', 'tblTempVendorCDR_20' ) start [2025-02-13 20:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468745', 'tblTempVendorCDR_20' ) end [2025-02-13 20:08:20] Production.INFO: ProcessCDR(1,14468745,1,1,2) [2025-02-13 20:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468745', 'tblTempUsageDetail_20' ) start [2025-02-13 20:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468745', 'tblTempUsageDetail_20' ) end [2025-02-13 20:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 20:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 20:08:23] Production.INFO: ==4563== Releasing lock... [2025-02-13 20:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 20:08:23] Production.INFO: 44.75 MB #Memory Used# [2025-02-13 20:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 17:09:06 [end_date_ymd] => 2025-02-13 20:09:06 [RateCDR] => 1 ) [2025-02-13 20: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-02-13 17:09:06' and `end` < '2025-02-13 20: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-02-13 20:09:19] Production.INFO: count ==2245 [2025-02-13 20:09:20] Production.ERROR: pbx CDR StartTime 2025-02-13 17:09:06 - End Time 2025-02-13 20:09:06 [2025-02-13 20:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 20:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468750', 'tblTempUsageDetail_20' ) start [2025-02-13 20:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468750', 'tblTempUsageDetail_20' ) end [2025-02-13 20:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468750', 'tblTempVendorCDR_20' ) start [2025-02-13 20:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468750', 'tblTempVendorCDR_20' ) end [2025-02-13 20:09:20] Production.INFO: ProcessCDR(1,14468750,1,1,2) [2025-02-13 20:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468750', 'tblTempUsageDetail_20' ) start [2025-02-13 20:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468750', 'tblTempUsageDetail_20' ) end [2025-02-13 20:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 20:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 20:09:23] Production.INFO: ==4654== Releasing lock... [2025-02-13 20:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 20:09:23] Production.INFO: 44.75 MB #Memory Used# [2025-02-13 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 17:10:06 [end_date_ymd] => 2025-02-13 20:10:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 17:10:06' and `end` < '2025-02-13 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-02-13 20:10:20] Production.INFO: count ==2248 [2025-02-13 20:10:20] Production.ERROR: pbx CDR StartTime 2025-02-13 17:10:06 - End Time 2025-02-13 20:10:06 [2025-02-13 20:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468756', 'tblTempUsageDetail_20' ) start [2025-02-13 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468756', 'tblTempUsageDetail_20' ) end [2025-02-13 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468756', 'tblTempVendorCDR_20' ) start [2025-02-13 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468756', 'tblTempVendorCDR_20' ) end [2025-02-13 20:10:20] Production.INFO: ProcessCDR(1,14468756,1,1,2) [2025-02-13 20:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468756', 'tblTempUsageDetail_20' ) start [2025-02-13 20:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468756', 'tblTempUsageDetail_20' ) end [2025-02-13 20:10:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 20:10:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 20:10:24] Production.INFO: ==4737== Releasing lock... [2025-02-13 20:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 20:10:24] Production.INFO: 44.75 MB #Memory Used# [2025-02-13 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 17:11:05 [end_date_ymd] => 2025-02-13 20:11:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 17:11:05' and `end` < '2025-02-13 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-02-13 20:11:19] Production.INFO: count ==2223 [2025-02-13 20:11:20] Production.ERROR: pbx CDR StartTime 2025-02-13 17:11:05 - End Time 2025-02-13 20:11:05 [2025-02-13 20:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 20:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468761', 'tblTempUsageDetail_20' ) start [2025-02-13 20:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468761', 'tblTempUsageDetail_20' ) end [2025-02-13 20:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468761', 'tblTempVendorCDR_20' ) start [2025-02-13 20:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468761', 'tblTempVendorCDR_20' ) end [2025-02-13 20:11:20] Production.INFO: ProcessCDR(1,14468761,1,1,2) [2025-02-13 20:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468761', 'tblTempUsageDetail_20' ) start [2025-02-13 20:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468761', 'tblTempUsageDetail_20' ) end [2025-02-13 20:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 20:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 20:11:23] Production.INFO: ==4859== Releasing lock... [2025-02-13 20:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 20:11:23] Production.INFO: 44.5 MB #Memory Used# [2025-02-13 20:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 17:12:06 [end_date_ymd] => 2025-02-13 20:12:06 [RateCDR] => 1 ) [2025-02-13 20: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-02-13 17:12:06' and `end` < '2025-02-13 20: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-02-13 20:12:20] Production.INFO: count ==2208 [2025-02-13 20:12:20] Production.ERROR: pbx CDR StartTime 2025-02-13 17:12:06 - End Time 2025-02-13 20:12:06 [2025-02-13 20:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468766', 'tblTempUsageDetail_20' ) start [2025-02-13 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468766', 'tblTempUsageDetail_20' ) end [2025-02-13 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468766', 'tblTempVendorCDR_20' ) start [2025-02-13 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468766', 'tblTempVendorCDR_20' ) end [2025-02-13 20:12:20] Production.INFO: ProcessCDR(1,14468766,1,1,2) [2025-02-13 20:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468766', 'tblTempUsageDetail_20' ) start [2025-02-13 20:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468766', 'tblTempUsageDetail_20' ) end [2025-02-13 20:12:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 20:12:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 20:12:24] Production.INFO: ==4937== Releasing lock... [2025-02-13 20:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 20:12:24] Production.INFO: 44.5 MB #Memory Used# [2025-02-13 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 17:13:05 [end_date_ymd] => 2025-02-13 20:13:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 17:13:05' and `end` < '2025-02-13 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-02-13 20:13:19] Production.INFO: count ==2198 [2025-02-13 20:13:19] Production.ERROR: pbx CDR StartTime 2025-02-13 17:13:05 - End Time 2025-02-13 20:13:05 [2025-02-13 20:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468771', 'tblTempUsageDetail_20' ) start [2025-02-13 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468771', 'tblTempUsageDetail_20' ) end [2025-02-13 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468771', 'tblTempVendorCDR_20' ) start [2025-02-13 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468771', 'tblTempVendorCDR_20' ) end [2025-02-13 20:13:19] Production.INFO: ProcessCDR(1,14468771,1,1,2) [2025-02-13 20:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468771', 'tblTempUsageDetail_20' ) start [2025-02-13 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468771', 'tblTempUsageDetail_20' ) end [2025-02-13 20:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 20:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 20:13:23] Production.INFO: ==5020== Releasing lock... [2025-02-13 20:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 20:13:23] Production.INFO: 44.5 MB #Memory Used# [2025-02-13 20:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 17:14:06 [end_date_ymd] => 2025-02-13 20:14:06 [RateCDR] => 1 ) [2025-02-13 20: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-02-13 17:14:06' and `end` < '2025-02-13 20: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-02-13 20:14:19] Production.INFO: count ==2193 [2025-02-13 20:14:20] Production.ERROR: pbx CDR StartTime 2025-02-13 17:14:06 - End Time 2025-02-13 20:14:06 [2025-02-13 20:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 20:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468776', 'tblTempUsageDetail_20' ) start [2025-02-13 20:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468776', 'tblTempUsageDetail_20' ) end [2025-02-13 20:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468776', 'tblTempVendorCDR_20' ) start [2025-02-13 20:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468776', 'tblTempVendorCDR_20' ) end [2025-02-13 20:14:20] Production.INFO: ProcessCDR(1,14468776,1,1,2) [2025-02-13 20:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468776', 'tblTempUsageDetail_20' ) start [2025-02-13 20:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468776', 'tblTempUsageDetail_20' ) end [2025-02-13 20:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 20:14:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 20:14:23] Production.INFO: ==5098== Releasing lock... [2025-02-13 20:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 20:14:23] Production.INFO: 44.25 MB #Memory Used# [2025-02-13 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 17:15:05 [end_date_ymd] => 2025-02-13 20:15:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 17:15:05' and `end` < '2025-02-13 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-02-13 20:15:18] Production.INFO: count ==2190 [2025-02-13 20:15:19] Production.ERROR: pbx CDR StartTime 2025-02-13 17:15:05 - End Time 2025-02-13 20:15:05 [2025-02-13 20:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468781', 'tblTempUsageDetail_20' ) start [2025-02-13 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468781', 'tblTempUsageDetail_20' ) end [2025-02-13 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468781', 'tblTempVendorCDR_20' ) start [2025-02-13 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468781', 'tblTempVendorCDR_20' ) end [2025-02-13 20:15:19] Production.INFO: ProcessCDR(1,14468781,1,1,2) [2025-02-13 20:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468781', 'tblTempUsageDetail_20' ) start [2025-02-13 20:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468781', 'tblTempUsageDetail_20' ) end [2025-02-13 20:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 20:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 20:15:22] Production.INFO: ==5180== Releasing lock... [2025-02-13 20:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 20:15:22] Production.INFO: 44.25 MB #Memory Used# [2025-02-13 20:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 17:16:06 [end_date_ymd] => 2025-02-13 20:16:06 [RateCDR] => 1 ) [2025-02-13 20: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-02-13 17:16:06' and `end` < '2025-02-13 20: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-02-13 20:16:19] Production.INFO: count ==2184 [2025-02-13 20:16:20] Production.ERROR: pbx CDR StartTime 2025-02-13 17:16:06 - End Time 2025-02-13 20:16:06 [2025-02-13 20:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468786', 'tblTempUsageDetail_20' ) start [2025-02-13 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468786', 'tblTempUsageDetail_20' ) end [2025-02-13 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468786', 'tblTempVendorCDR_20' ) start [2025-02-13 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468786', 'tblTempVendorCDR_20' ) end [2025-02-13 20:16:20] Production.INFO: ProcessCDR(1,14468786,1,1,2) [2025-02-13 20:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468786', 'tblTempUsageDetail_20' ) start [2025-02-13 20:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468786', 'tblTempUsageDetail_20' ) end [2025-02-13 20:16:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 20:16:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 20:16:24] Production.INFO: ==5255== Releasing lock... [2025-02-13 20:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 20:16:24] Production.INFO: 44.5 MB #Memory Used# [2025-02-13 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 17:17:05 [end_date_ymd] => 2025-02-13 20:17:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 17:17:05' and `end` < '2025-02-13 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-02-13 20:17:19] Production.INFO: count ==2183 [2025-02-13 20:17:20] Production.ERROR: pbx CDR StartTime 2025-02-13 17:17:05 - End Time 2025-02-13 20:17:05 [2025-02-13 20:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 20:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468791', 'tblTempUsageDetail_20' ) start [2025-02-13 20:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468791', 'tblTempUsageDetail_20' ) end [2025-02-13 20:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468791', 'tblTempVendorCDR_20' ) start [2025-02-13 20:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468791', 'tblTempVendorCDR_20' ) end [2025-02-13 20:17:20] Production.INFO: ProcessCDR(1,14468791,1,1,2) [2025-02-13 20:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468791', 'tblTempUsageDetail_20' ) start [2025-02-13 20:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468791', 'tblTempUsageDetail_20' ) end [2025-02-13 20:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 20:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 20:17:23] Production.INFO: ==5334== Releasing lock... [2025-02-13 20:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 20:17:23] Production.INFO: 44.25 MB #Memory Used# [2025-02-13 20:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 17:18:06 [end_date_ymd] => 2025-02-13 20:18:06 [RateCDR] => 1 ) [2025-02-13 20: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-02-13 17:18:06' and `end` < '2025-02-13 20: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-02-13 20:18:20] Production.INFO: count ==2162 [2025-02-13 20:18:20] Production.ERROR: pbx CDR StartTime 2025-02-13 17:18:06 - End Time 2025-02-13 20:18:06 [2025-02-13 20:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468796', 'tblTempUsageDetail_20' ) start [2025-02-13 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468796', 'tblTempUsageDetail_20' ) end [2025-02-13 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468796', 'tblTempVendorCDR_20' ) start [2025-02-13 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468796', 'tblTempVendorCDR_20' ) end [2025-02-13 20:18:20] Production.INFO: ProcessCDR(1,14468796,1,1,2) [2025-02-13 20:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468796', 'tblTempUsageDetail_20' ) start [2025-02-13 20:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468796', 'tblTempUsageDetail_20' ) end [2025-02-13 20:18:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 20:18:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 20:18:24] Production.INFO: ==5421== Releasing lock... [2025-02-13 20:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 20:18:24] Production.INFO: 44 MB #Memory Used# [2025-02-13 20:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 17:19:06 [end_date_ymd] => 2025-02-13 20:19:06 [RateCDR] => 1 ) [2025-02-13 20: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-02-13 17:19:06' and `end` < '2025-02-13 20: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-02-13 20:19:19] Production.INFO: count ==2164 [2025-02-13 20:19:19] Production.ERROR: pbx CDR StartTime 2025-02-13 17:19:06 - End Time 2025-02-13 20:19:06 [2025-02-13 20:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468801', 'tblTempUsageDetail_20' ) start [2025-02-13 20:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468801', 'tblTempUsageDetail_20' ) end [2025-02-13 20:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468801', 'tblTempVendorCDR_20' ) start [2025-02-13 20:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468801', 'tblTempVendorCDR_20' ) end [2025-02-13 20:19:20] Production.INFO: ProcessCDR(1,14468801,1,1,2) [2025-02-13 20:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468801', 'tblTempUsageDetail_20' ) start [2025-02-13 20:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468801', 'tblTempUsageDetail_20' ) end [2025-02-13 20:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 20:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 20:19:23] Production.INFO: ==5503== Releasing lock... [2025-02-13 20:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 20:19:23] Production.INFO: 44.25 MB #Memory Used# [2025-02-13 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 17:20:06 [end_date_ymd] => 2025-02-13 20:20:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 17:20:06' and `end` < '2025-02-13 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-02-13 20:20:19] Production.INFO: count ==2165 [2025-02-13 20:20:20] Production.ERROR: pbx CDR StartTime 2025-02-13 17:20:06 - End Time 2025-02-13 20:20:06 [2025-02-13 20:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468806', 'tblTempUsageDetail_20' ) start [2025-02-13 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468806', 'tblTempUsageDetail_20' ) end [2025-02-13 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468806', 'tblTempVendorCDR_20' ) start [2025-02-13 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468806', 'tblTempVendorCDR_20' ) end [2025-02-13 20:20:20] Production.INFO: ProcessCDR(1,14468806,1,1,2) [2025-02-13 20:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468806', 'tblTempUsageDetail_20' ) start [2025-02-13 20:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468806', 'tblTempUsageDetail_20' ) end [2025-02-13 20:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 20:20:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 20:20:24] Production.INFO: ==5585== Releasing lock... [2025-02-13 20:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 20:20:24] Production.INFO: 44 MB #Memory Used# [2025-02-13 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 17:21:05 [end_date_ymd] => 2025-02-13 20:21:05 [RateCDR] => 1 ) [2025-02-13 20: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-02-13 17:21:05' and `end` < '2025-02-13 20: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-02-13 20:21:19] Production.INFO: count ==2132 [2025-02-13 20:21:20] Production.ERROR: pbx CDR StartTime 2025-02-13 17:21:05 - End Time 2025-02-13 20:21:05 [2025-02-13 20:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468812', 'tblTempUsageDetail_20' ) start [2025-02-13 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468812', 'tblTempUsageDetail_20' ) end [2025-02-13 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468812', 'tblTempVendorCDR_20' ) start [2025-02-13 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468812', 'tblTempVendorCDR_20' ) end [2025-02-13 20:21:20] Production.INFO: ProcessCDR(1,14468812,1,1,2) [2025-02-13 20:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468812', 'tblTempUsageDetail_20' ) start [2025-02-13 20:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468812', 'tblTempUsageDetail_20' ) end [2025-02-13 20:21:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 20:21:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 20:21:25] Production.INFO: ==5667== Releasing lock... [2025-02-13 20:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 20:21:25] Production.INFO: 44 MB #Memory Used# [2025-02-13 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 17:22:05 [end_date_ymd] => 2025-02-13 20:22:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 17:22:05' and `end` < '2025-02-13 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-02-13 20:22:19] Production.INFO: count ==2129 [2025-02-13 20:22:20] Production.ERROR: pbx CDR StartTime 2025-02-13 17:22:05 - End Time 2025-02-13 20:22:05 [2025-02-13 20:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 20:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468817', 'tblTempUsageDetail_20' ) start [2025-02-13 20:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468817', 'tblTempUsageDetail_20' ) end [2025-02-13 20:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468817', 'tblTempVendorCDR_20' ) start [2025-02-13 20:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468817', 'tblTempVendorCDR_20' ) end [2025-02-13 20:22:20] Production.INFO: ProcessCDR(1,14468817,1,1,2) [2025-02-13 20:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468817', 'tblTempUsageDetail_20' ) start [2025-02-13 20:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468817', 'tblTempUsageDetail_20' ) end [2025-02-13 20:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 20:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 20:22:23] Production.INFO: ==5745== Releasing lock... [2025-02-13 20:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 20:22:23] Production.INFO: 44 MB #Memory Used# [2025-02-13 20:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 17:23:06 [end_date_ymd] => 2025-02-13 20:23:06 [RateCDR] => 1 ) [2025-02-13 20: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-02-13 17:23:06' and `end` < '2025-02-13 20: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-02-13 20:23:19] Production.INFO: count ==2127 [2025-02-13 20:23:19] Production.ERROR: pbx CDR StartTime 2025-02-13 17:23:06 - End Time 2025-02-13 20:23:06 [2025-02-13 20:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468822', 'tblTempUsageDetail_20' ) start [2025-02-13 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468822', 'tblTempUsageDetail_20' ) end [2025-02-13 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468822', 'tblTempVendorCDR_20' ) start [2025-02-13 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468822', 'tblTempVendorCDR_20' ) end [2025-02-13 20:23:19] Production.INFO: ProcessCDR(1,14468822,1,1,2) [2025-02-13 20:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468822', 'tblTempUsageDetail_20' ) start [2025-02-13 20:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468822', 'tblTempUsageDetail_20' ) end [2025-02-13 20:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 20:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 20:23:23] Production.INFO: ==5822== Releasing lock... [2025-02-13 20:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 20:23:23] Production.INFO: 44 MB #Memory Used# [2025-02-13 20:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 17:24:06 [end_date_ymd] => 2025-02-13 20:24:06 [RateCDR] => 1 ) [2025-02-13 20: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-02-13 17:24:06' and `end` < '2025-02-13 20: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-02-13 20:24:19] Production.INFO: count ==2126 [2025-02-13 20:24:20] Production.ERROR: pbx CDR StartTime 2025-02-13 17:24:06 - End Time 2025-02-13 20:24:06 [2025-02-13 20:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468827', 'tblTempUsageDetail_20' ) start [2025-02-13 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468827', 'tblTempUsageDetail_20' ) end [2025-02-13 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468827', 'tblTempVendorCDR_20' ) start [2025-02-13 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468827', 'tblTempVendorCDR_20' ) end [2025-02-13 20:24:20] Production.INFO: ProcessCDR(1,14468827,1,1,2) [2025-02-13 20:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468827', 'tblTempUsageDetail_20' ) start [2025-02-13 20:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468827', 'tblTempUsageDetail_20' ) end [2025-02-13 20:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 20:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 20:24:23] Production.INFO: ==5899== Releasing lock... [2025-02-13 20:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 20:24:23] Production.INFO: 43.75 MB #Memory Used# [2025-02-13 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 17:25:05 [end_date_ymd] => 2025-02-13 20:25:05 [RateCDR] => 1 ) [2025-02-13 20:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 17:25:05' and `end` < '2025-02-13 20:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-13 20:25:19] Production.INFO: count ==2122 [2025-02-13 20:25:19] Production.ERROR: pbx CDR StartTime 2025-02-13 17:25:05 - End Time 2025-02-13 20:25:05 [2025-02-13 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468832', 'tblTempUsageDetail_20' ) start [2025-02-13 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468832', 'tblTempUsageDetail_20' ) end [2025-02-13 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468832', 'tblTempVendorCDR_20' ) start [2025-02-13 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468832', 'tblTempVendorCDR_20' ) end [2025-02-13 20:25:19] Production.INFO: ProcessCDR(1,14468832,1,1,2) [2025-02-13 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468832', 'tblTempUsageDetail_20' ) start [2025-02-13 20:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468832', 'tblTempUsageDetail_20' ) end [2025-02-13 20:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 20:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 20:25:23] Production.INFO: ==5974== Releasing lock... [2025-02-13 20:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 20:25:23] Production.INFO: 44 MB #Memory Used# [2025-02-13 20:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 17:26:06 [end_date_ymd] => 2025-02-13 20:26:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 17:26:06' and `end` < '2025-02-13 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-02-13 20:26:19] Production.INFO: count ==2123 [2025-02-13 20:26:20] Production.ERROR: pbx CDR StartTime 2025-02-13 17:26:06 - End Time 2025-02-13 20:26:06 [2025-02-13 20:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 20:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468837', 'tblTempUsageDetail_20' ) start [2025-02-13 20:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468837', 'tblTempUsageDetail_20' ) end [2025-02-13 20:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468837', 'tblTempVendorCDR_20' ) start [2025-02-13 20:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468837', 'tblTempVendorCDR_20' ) end [2025-02-13 20:26:20] Production.INFO: ProcessCDR(1,14468837,1,1,2) [2025-02-13 20:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468837', 'tblTempUsageDetail_20' ) start [2025-02-13 20:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468837', 'tblTempUsageDetail_20' ) end [2025-02-13 20:26:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 20:26:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 20:26:25] Production.INFO: ==6091== Releasing lock... [2025-02-13 20:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 20:26:25] Production.INFO: 43.75 MB #Memory Used# [2025-02-13 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 17:27:05 [end_date_ymd] => 2025-02-13 20:27:05 [RateCDR] => 1 ) [2025-02-13 20: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-02-13 17:27:05' and `end` < '2025-02-13 20: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-02-13 20:27:19] Production.INFO: count ==2118 [2025-02-13 20:27:19] Production.ERROR: pbx CDR StartTime 2025-02-13 17:27:05 - End Time 2025-02-13 20:27:05 [2025-02-13 20:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468842', 'tblTempUsageDetail_20' ) start [2025-02-13 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468842', 'tblTempUsageDetail_20' ) end [2025-02-13 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468842', 'tblTempVendorCDR_20' ) start [2025-02-13 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468842', 'tblTempVendorCDR_20' ) end [2025-02-13 20:27:19] Production.INFO: ProcessCDR(1,14468842,1,1,2) [2025-02-13 20:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468842', 'tblTempUsageDetail_20' ) start [2025-02-13 20:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468842', 'tblTempUsageDetail_20' ) end [2025-02-13 20:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 20:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 20:27:23] Production.INFO: ==6163== Releasing lock... [2025-02-13 20:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 20:27:23] Production.INFO: 44 MB #Memory Used# [2025-02-13 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 17:28:05 [end_date_ymd] => 2025-02-13 20:28:05 [RateCDR] => 1 ) [2025-02-13 20: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-02-13 17:28:05' and `end` < '2025-02-13 20: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-02-13 20:28:19] Production.INFO: count ==2112 [2025-02-13 20:28:19] Production.ERROR: pbx CDR StartTime 2025-02-13 17:28:05 - End Time 2025-02-13 20:28:05 [2025-02-13 20:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468847', 'tblTempUsageDetail_20' ) start [2025-02-13 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468847', 'tblTempUsageDetail_20' ) end [2025-02-13 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468847', 'tblTempVendorCDR_20' ) start [2025-02-13 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468847', 'tblTempVendorCDR_20' ) end [2025-02-13 20:28:19] Production.INFO: ProcessCDR(1,14468847,1,1,2) [2025-02-13 20:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468847', 'tblTempUsageDetail_20' ) start [2025-02-13 20:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468847', 'tblTempUsageDetail_20' ) end [2025-02-13 20:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 20:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 20:28:23] Production.INFO: ==6240== Releasing lock... [2025-02-13 20:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 20:28:23] Production.INFO: 44 MB #Memory Used# [2025-02-13 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 17:29:05 [end_date_ymd] => 2025-02-13 20:29:05 [RateCDR] => 1 ) [2025-02-13 20: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-02-13 17:29:05' and `end` < '2025-02-13 20: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-02-13 20:29:19] Production.INFO: count ==2114 [2025-02-13 20:29:19] Production.ERROR: pbx CDR StartTime 2025-02-13 17:29:05 - End Time 2025-02-13 20:29:05 [2025-02-13 20:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468852', 'tblTempUsageDetail_20' ) start [2025-02-13 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468852', 'tblTempUsageDetail_20' ) end [2025-02-13 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468852', 'tblTempVendorCDR_20' ) start [2025-02-13 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468852', 'tblTempVendorCDR_20' ) end [2025-02-13 20:29:19] Production.INFO: ProcessCDR(1,14468852,1,1,2) [2025-02-13 20:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468852', 'tblTempUsageDetail_20' ) start [2025-02-13 20:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468852', 'tblTempUsageDetail_20' ) end [2025-02-13 20:29:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 20:29:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 20:29:24] Production.INFO: ==6313== Releasing lock... [2025-02-13 20:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 20:29:24] Production.INFO: 44 MB #Memory Used# [2025-02-13 20:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 17:30:06 [end_date_ymd] => 2025-02-13 20:30:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 17:30:06' and `end` < '2025-02-13 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-02-13 20:30:20] Production.INFO: count ==2112 [2025-02-13 20:30:20] Production.ERROR: pbx CDR StartTime 2025-02-13 17:30:06 - End Time 2025-02-13 20:30:06 [2025-02-13 20:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468858', 'tblTempUsageDetail_20' ) start [2025-02-13 20:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468858', 'tblTempUsageDetail_20' ) end [2025-02-13 20:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468858', 'tblTempVendorCDR_20' ) start [2025-02-13 20:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468858', 'tblTempVendorCDR_20' ) end [2025-02-13 20:30:21] Production.INFO: ProcessCDR(1,14468858,1,1,2) [2025-02-13 20:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468858', 'tblTempUsageDetail_20' ) start [2025-02-13 20:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468858', 'tblTempUsageDetail_20' ) end [2025-02-13 20:30:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 20:30:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 20:30:26] Production.INFO: ==6391== Releasing lock... [2025-02-13 20:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 20:30:26] Production.INFO: 44 MB #Memory Used# [2025-02-13 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 17:31:05 [end_date_ymd] => 2025-02-13 20:31:05 [RateCDR] => 1 ) [2025-02-13 20: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-02-13 17:31:05' and `end` < '2025-02-13 20: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-02-13 20:31:19] Production.INFO: count ==2078 [2025-02-13 20:31:20] Production.ERROR: pbx CDR StartTime 2025-02-13 17:31:05 - End Time 2025-02-13 20:31:05 [2025-02-13 20:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 20:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468863', 'tblTempUsageDetail_20' ) start [2025-02-13 20:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468863', 'tblTempUsageDetail_20' ) end [2025-02-13 20:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468863', 'tblTempVendorCDR_20' ) start [2025-02-13 20:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468863', 'tblTempVendorCDR_20' ) end [2025-02-13 20:31:20] Production.INFO: ProcessCDR(1,14468863,1,1,2) [2025-02-13 20:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468863', 'tblTempUsageDetail_20' ) start [2025-02-13 20:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468863', 'tblTempUsageDetail_20' ) end [2025-02-13 20:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 20:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 20:31:23] Production.INFO: ==6463== Releasing lock... [2025-02-13 20:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 20:31:23] Production.INFO: 43.75 MB #Memory Used# [2025-02-13 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 17:32:05 [end_date_ymd] => 2025-02-13 20:32:05 [RateCDR] => 1 ) [2025-02-13 20: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-02-13 17:32:05' and `end` < '2025-02-13 20: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-02-13 20:32:19] Production.INFO: count ==2071 [2025-02-13 20:32:19] Production.ERROR: pbx CDR StartTime 2025-02-13 17:32:05 - End Time 2025-02-13 20:32:05 [2025-02-13 20:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468868', 'tblTempUsageDetail_20' ) start [2025-02-13 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468868', 'tblTempUsageDetail_20' ) end [2025-02-13 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468868', 'tblTempVendorCDR_20' ) start [2025-02-13 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468868', 'tblTempVendorCDR_20' ) end [2025-02-13 20:32:19] Production.INFO: ProcessCDR(1,14468868,1,1,2) [2025-02-13 20:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468868', 'tblTempUsageDetail_20' ) start [2025-02-13 20:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468868', 'tblTempUsageDetail_20' ) end [2025-02-13 20:32:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 20:32:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 20:32:24] Production.INFO: ==6548== Releasing lock... [2025-02-13 20:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 20:32:24] Production.INFO: 43.25 MB #Memory Used# [2025-02-13 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 17:33:05 [end_date_ymd] => 2025-02-13 20:33:05 [RateCDR] => 1 ) [2025-02-13 20: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-02-13 17:33:05' and `end` < '2025-02-13 20: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-02-13 20:33:19] Production.INFO: count ==2070 [2025-02-13 20:33:19] Production.ERROR: pbx CDR StartTime 2025-02-13 17:33:05 - End Time 2025-02-13 20:33:05 [2025-02-13 20:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468873', 'tblTempUsageDetail_20' ) start [2025-02-13 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468873', 'tblTempUsageDetail_20' ) end [2025-02-13 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468873', 'tblTempVendorCDR_20' ) start [2025-02-13 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468873', 'tblTempVendorCDR_20' ) end [2025-02-13 20:33:19] Production.INFO: ProcessCDR(1,14468873,1,1,2) [2025-02-13 20:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468873', 'tblTempUsageDetail_20' ) start [2025-02-13 20:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468873', 'tblTempUsageDetail_20' ) end [2025-02-13 20:33:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 20:33:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 20:33:23] Production.INFO: ==6625== Releasing lock... [2025-02-13 20:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 20:33:23] Production.INFO: 43.25 MB #Memory Used# [2025-02-13 20:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 17:34:06 [end_date_ymd] => 2025-02-13 20:34:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 17:34:06' and `end` < '2025-02-13 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-02-13 20:34:19] Production.INFO: count ==2057 [2025-02-13 20:34:20] Production.ERROR: pbx CDR StartTime 2025-02-13 17:34:06 - End Time 2025-02-13 20:34:06 [2025-02-13 20:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 20:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468878', 'tblTempUsageDetail_20' ) start [2025-02-13 20:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468878', 'tblTempUsageDetail_20' ) end [2025-02-13 20:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468878', 'tblTempVendorCDR_20' ) start [2025-02-13 20:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468878', 'tblTempVendorCDR_20' ) end [2025-02-13 20:34:20] Production.INFO: ProcessCDR(1,14468878,1,1,2) [2025-02-13 20:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468878', 'tblTempUsageDetail_20' ) start [2025-02-13 20:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468878', 'tblTempUsageDetail_20' ) end [2025-02-13 20:34:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 20:34:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 20:34:25] Production.INFO: ==6701== Releasing lock... [2025-02-13 20:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 20:34:25] Production.INFO: 43.5 MB #Memory Used# [2025-02-13 20:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 17:35:06 [end_date_ymd] => 2025-02-13 20:35:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 17:35:06' and `end` < '2025-02-13 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-02-13 20:35:19] Production.INFO: count ==2053 [2025-02-13 20:35:20] Production.ERROR: pbx CDR StartTime 2025-02-13 17:35:06 - End Time 2025-02-13 20:35:06 [2025-02-13 20:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 20:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468883', 'tblTempUsageDetail_20' ) start [2025-02-13 20:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468883', 'tblTempUsageDetail_20' ) end [2025-02-13 20:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468883', 'tblTempVendorCDR_20' ) start [2025-02-13 20:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468883', 'tblTempVendorCDR_20' ) end [2025-02-13 20:35:20] Production.INFO: ProcessCDR(1,14468883,1,1,2) [2025-02-13 20:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468883', 'tblTempUsageDetail_20' ) start [2025-02-13 20:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468883', 'tblTempUsageDetail_20' ) end [2025-02-13 20:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 20:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 20:35:23] Production.INFO: ==6774== Releasing lock... [2025-02-13 20:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 20:35:23] Production.INFO: 43.5 MB #Memory Used# [2025-02-13 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 17:36:05 [end_date_ymd] => 2025-02-13 20:36:05 [RateCDR] => 1 ) [2025-02-13 20: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-02-13 17:36:05' and `end` < '2025-02-13 20: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-02-13 20:36:18] Production.INFO: count ==2052 [2025-02-13 20:36:19] Production.ERROR: pbx CDR StartTime 2025-02-13 17:36:05 - End Time 2025-02-13 20:36:05 [2025-02-13 20:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468888', 'tblTempUsageDetail_20' ) start [2025-02-13 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468888', 'tblTempUsageDetail_20' ) end [2025-02-13 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468888', 'tblTempVendorCDR_20' ) start [2025-02-13 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468888', 'tblTempVendorCDR_20' ) end [2025-02-13 20:36:19] Production.INFO: ProcessCDR(1,14468888,1,1,2) [2025-02-13 20:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468888', 'tblTempUsageDetail_20' ) start [2025-02-13 20:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468888', 'tblTempUsageDetail_20' ) end [2025-02-13 20:36:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 20:36:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 20:36:24] Production.INFO: ==6847== Releasing lock... [2025-02-13 20:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 20:36:24] Production.INFO: 43.25 MB #Memory Used# [2025-02-13 20:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 17:37:06 [end_date_ymd] => 2025-02-13 20:37:06 [RateCDR] => 1 ) [2025-02-13 20: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-02-13 17:37:06' and `end` < '2025-02-13 20: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-02-13 20:37:21] Production.INFO: count ==2045 [2025-02-13 20:37:21] Production.ERROR: pbx CDR StartTime 2025-02-13 17:37:06 - End Time 2025-02-13 20:37:06 [2025-02-13 20:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 20:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468893', 'tblTempUsageDetail_20' ) start [2025-02-13 20:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468893', 'tblTempUsageDetail_20' ) end [2025-02-13 20:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468893', 'tblTempVendorCDR_20' ) start [2025-02-13 20:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468893', 'tblTempVendorCDR_20' ) end [2025-02-13 20:37:22] Production.INFO: ProcessCDR(1,14468893,1,1,2) [2025-02-13 20:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468893', 'tblTempUsageDetail_20' ) start [2025-02-13 20:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468893', 'tblTempUsageDetail_20' ) end [2025-02-13 20:37:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 20:37:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 20:37:25] Production.INFO: ==6925== Releasing lock... [2025-02-13 20:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 20:37:25] Production.INFO: 43.25 MB #Memory Used# [2025-02-13 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 17:38:05 [end_date_ymd] => 2025-02-13 20:38:05 [RateCDR] => 1 ) [2025-02-13 20: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-02-13 17:38:05' and `end` < '2025-02-13 20: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-02-13 20:38:20] Production.INFO: count ==2042 [2025-02-13 20:38:20] Production.ERROR: pbx CDR StartTime 2025-02-13 17:38:05 - End Time 2025-02-13 20:38:05 [2025-02-13 20:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 20:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468898', 'tblTempUsageDetail_20' ) start [2025-02-13 20:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468898', 'tblTempUsageDetail_20' ) end [2025-02-13 20:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468898', 'tblTempVendorCDR_20' ) start [2025-02-13 20:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468898', 'tblTempVendorCDR_20' ) end [2025-02-13 20:38:20] Production.INFO: ProcessCDR(1,14468898,1,1,2) [2025-02-13 20:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468898', 'tblTempUsageDetail_20' ) start [2025-02-13 20:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468898', 'tblTempUsageDetail_20' ) end [2025-02-13 20:38:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 20:38:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 20:38:24] Production.INFO: ==7000== Releasing lock... [2025-02-13 20:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 20:38:24] Production.INFO: 43 MB #Memory Used# [2025-02-13 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 17:39:05 [end_date_ymd] => 2025-02-13 20:39:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 17:39:05' and `end` < '2025-02-13 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-02-13 20:39:19] Production.INFO: count ==2039 [2025-02-13 20:39:19] Production.ERROR: pbx CDR StartTime 2025-02-13 17:39:05 - End Time 2025-02-13 20:39:05 [2025-02-13 20:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468903', 'tblTempUsageDetail_20' ) start [2025-02-13 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468903', 'tblTempUsageDetail_20' ) end [2025-02-13 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468903', 'tblTempVendorCDR_20' ) start [2025-02-13 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468903', 'tblTempVendorCDR_20' ) end [2025-02-13 20:39:19] Production.INFO: ProcessCDR(1,14468903,1,1,2) [2025-02-13 20:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468903', 'tblTempUsageDetail_20' ) start [2025-02-13 20:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468903', 'tblTempUsageDetail_20' ) end [2025-02-13 20:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 20:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 20:39:23] Production.INFO: ==7075== Releasing lock... [2025-02-13 20:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 20:39:23] Production.INFO: 43.25 MB #Memory Used# [2025-02-13 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 17:40:06 [end_date_ymd] => 2025-02-13 20:40:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 17:40:06' and `end` < '2025-02-13 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-02-13 20:40:19] Production.INFO: count ==2032 [2025-02-13 20:40:19] Production.ERROR: pbx CDR StartTime 2025-02-13 17:40:06 - End Time 2025-02-13 20:40:06 [2025-02-13 20:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468909', 'tblTempUsageDetail_20' ) start [2025-02-13 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468909', 'tblTempUsageDetail_20' ) end [2025-02-13 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468909', 'tblTempVendorCDR_20' ) start [2025-02-13 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468909', 'tblTempVendorCDR_20' ) end [2025-02-13 20:40:20] Production.INFO: ProcessCDR(1,14468909,1,1,2) [2025-02-13 20:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468909', 'tblTempUsageDetail_20' ) start [2025-02-13 20:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468909', 'tblTempUsageDetail_20' ) end [2025-02-13 20:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 20:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 20:40:23] Production.INFO: ==7155== Releasing lock... [2025-02-13 20:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 20:40:23] Production.INFO: 43 MB #Memory Used# [2025-02-13 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 17:41:05 [end_date_ymd] => 2025-02-13 20:41:05 [RateCDR] => 1 ) [2025-02-13 20: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-02-13 17:41:05' and `end` < '2025-02-13 20: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-02-13 20:41:19] Production.INFO: count ==2013 [2025-02-13 20:41:19] Production.ERROR: pbx CDR StartTime 2025-02-13 17:41:05 - End Time 2025-02-13 20:41:05 [2025-02-13 20:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468914', 'tblTempUsageDetail_20' ) start [2025-02-13 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468914', 'tblTempUsageDetail_20' ) end [2025-02-13 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468914', 'tblTempVendorCDR_20' ) start [2025-02-13 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468914', 'tblTempVendorCDR_20' ) end [2025-02-13 20:41:19] Production.INFO: ProcessCDR(1,14468914,1,1,2) [2025-02-13 20:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468914', 'tblTempUsageDetail_20' ) start [2025-02-13 20:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468914', 'tblTempUsageDetail_20' ) end [2025-02-13 20:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 20:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 20:41:23] Production.INFO: ==7230== Releasing lock... [2025-02-13 20:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 20:41:23] Production.INFO: 43.25 MB #Memory Used# [2025-02-13 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 17:42:05 [end_date_ymd] => 2025-02-13 20:42:05 [RateCDR] => 1 ) [2025-02-13 20: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-02-13 17:42:05' and `end` < '2025-02-13 20: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-02-13 20:42:19] Production.INFO: count ==2005 [2025-02-13 20:42:20] Production.ERROR: pbx CDR StartTime 2025-02-13 17:42:05 - End Time 2025-02-13 20:42:05 [2025-02-13 20:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 20:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468919', 'tblTempUsageDetail_20' ) start [2025-02-13 20:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468919', 'tblTempUsageDetail_20' ) end [2025-02-13 20:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468919', 'tblTempVendorCDR_20' ) start [2025-02-13 20:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468919', 'tblTempVendorCDR_20' ) end [2025-02-13 20:42:20] Production.INFO: ProcessCDR(1,14468919,1,1,2) [2025-02-13 20:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468919', 'tblTempUsageDetail_20' ) start [2025-02-13 20:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468919', 'tblTempUsageDetail_20' ) end [2025-02-13 20:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 20:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 20:42:23] Production.INFO: ==7349== Releasing lock... [2025-02-13 20:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 20:42:23] Production.INFO: 42.75 MB #Memory Used# [2025-02-13 20:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 17:43:06 [end_date_ymd] => 2025-02-13 20:43:06 [RateCDR] => 1 ) [2025-02-13 20: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-02-13 17:43:06' and `end` < '2025-02-13 20: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-02-13 20:43:20] Production.INFO: count ==1993 [2025-02-13 20:43:20] Production.ERROR: pbx CDR StartTime 2025-02-13 17:43:06 - End Time 2025-02-13 20:43:06 [2025-02-13 20:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 20:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468924', 'tblTempUsageDetail_20' ) start [2025-02-13 20:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468924', 'tblTempUsageDetail_20' ) end [2025-02-13 20:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468924', 'tblTempVendorCDR_20' ) start [2025-02-13 20:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468924', 'tblTempVendorCDR_20' ) end [2025-02-13 20:43:20] Production.INFO: ProcessCDR(1,14468924,1,1,2) [2025-02-13 20:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468924', 'tblTempUsageDetail_20' ) start [2025-02-13 20:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468924', 'tblTempUsageDetail_20' ) end [2025-02-13 20:43:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 20:43:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 20:43:24] Production.INFO: ==7423== Releasing lock... [2025-02-13 20:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 20:43:24] Production.INFO: 42.75 MB #Memory Used# [2025-02-13 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 17:44:05 [end_date_ymd] => 2025-02-13 20:44:05 [RateCDR] => 1 ) [2025-02-13 20: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-02-13 17:44:05' and `end` < '2025-02-13 20: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-02-13 20:44:19] Production.INFO: count ==1991 [2025-02-13 20:44:19] Production.ERROR: pbx CDR StartTime 2025-02-13 17:44:05 - End Time 2025-02-13 20:44:05 [2025-02-13 20:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468929', 'tblTempUsageDetail_20' ) start [2025-02-13 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468929', 'tblTempUsageDetail_20' ) end [2025-02-13 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468929', 'tblTempVendorCDR_20' ) start [2025-02-13 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468929', 'tblTempVendorCDR_20' ) end [2025-02-13 20:44:19] Production.INFO: ProcessCDR(1,14468929,1,1,2) [2025-02-13 20:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468929', 'tblTempUsageDetail_20' ) start [2025-02-13 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468929', 'tblTempUsageDetail_20' ) end [2025-02-13 20:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 20:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 20:44:23] Production.INFO: ==7497== Releasing lock... [2025-02-13 20:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 20:44:23] Production.INFO: 43 MB #Memory Used# [2025-02-13 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 17:45:05 [end_date_ymd] => 2025-02-13 20:45:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 17:45:05' and `end` < '2025-02-13 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-02-13 20:45:19] Production.INFO: count ==1988 [2025-02-13 20:45:20] Production.ERROR: pbx CDR StartTime 2025-02-13 17:45:05 - End Time 2025-02-13 20:45:05 [2025-02-13 20:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 20:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468934', 'tblTempUsageDetail_20' ) start [2025-02-13 20:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468934', 'tblTempUsageDetail_20' ) end [2025-02-13 20:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468934', 'tblTempVendorCDR_20' ) start [2025-02-13 20:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468934', 'tblTempVendorCDR_20' ) end [2025-02-13 20:45:20] Production.INFO: ProcessCDR(1,14468934,1,1,2) [2025-02-13 20:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468934', 'tblTempUsageDetail_20' ) start [2025-02-13 20:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468934', 'tblTempUsageDetail_20' ) end [2025-02-13 20:45:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 20:45:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 20:45:23] Production.INFO: ==7573== Releasing lock... [2025-02-13 20:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 20:45:23] Production.INFO: 42.75 MB #Memory Used# [2025-02-13 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 17:46:05 [end_date_ymd] => 2025-02-13 20:46:05 [RateCDR] => 1 ) [2025-02-13 20: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-02-13 17:46:05' and `end` < '2025-02-13 20: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-02-13 20:46:18] Production.INFO: count ==1979 [2025-02-13 20:46:18] Production.ERROR: pbx CDR StartTime 2025-02-13 17:46:05 - End Time 2025-02-13 20:46:05 [2025-02-13 20:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468939', 'tblTempUsageDetail_20' ) start [2025-02-13 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468939', 'tblTempUsageDetail_20' ) end [2025-02-13 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468939', 'tblTempVendorCDR_20' ) start [2025-02-13 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468939', 'tblTempVendorCDR_20' ) end [2025-02-13 20:46:18] Production.INFO: ProcessCDR(1,14468939,1,1,2) [2025-02-13 20:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468939', 'tblTempUsageDetail_20' ) start [2025-02-13 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468939', 'tblTempUsageDetail_20' ) end [2025-02-13 20:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 20:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 20:46:22] Production.INFO: ==7647== Releasing lock... [2025-02-13 20:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 20:46:22] Production.INFO: 42.75 MB #Memory Used# [2025-02-13 20:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 17:47:06 [end_date_ymd] => 2025-02-13 20:47:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 17:47:06' and `end` < '2025-02-13 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-02-13 20:47:19] Production.INFO: count ==1976 [2025-02-13 20:47:20] Production.ERROR: pbx CDR StartTime 2025-02-13 17:47:06 - End Time 2025-02-13 20:47:06 [2025-02-13 20:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 20:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468944', 'tblTempUsageDetail_20' ) start [2025-02-13 20:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468944', 'tblTempUsageDetail_20' ) end [2025-02-13 20:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468944', 'tblTempVendorCDR_20' ) start [2025-02-13 20:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468944', 'tblTempVendorCDR_20' ) end [2025-02-13 20:47:20] Production.INFO: ProcessCDR(1,14468944,1,1,2) [2025-02-13 20:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468944', 'tblTempUsageDetail_20' ) start [2025-02-13 20:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468944', 'tblTempUsageDetail_20' ) end [2025-02-13 20:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 20:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 20:47:23] Production.INFO: ==7724== Releasing lock... [2025-02-13 20:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 20:47:23] Production.INFO: 42.5 MB #Memory Used# [2025-02-13 20:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 17:48:06 [end_date_ymd] => 2025-02-13 20:48:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 17:48:06' and `end` < '2025-02-13 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-02-13 20:48:19] Production.INFO: count ==1966 [2025-02-13 20:48:19] Production.ERROR: pbx CDR StartTime 2025-02-13 17:48:06 - End Time 2025-02-13 20:48:06 [2025-02-13 20:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468949', 'tblTempUsageDetail_20' ) start [2025-02-13 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468949', 'tblTempUsageDetail_20' ) end [2025-02-13 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468949', 'tblTempVendorCDR_20' ) start [2025-02-13 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468949', 'tblTempVendorCDR_20' ) end [2025-02-13 20:48:19] Production.INFO: ProcessCDR(1,14468949,1,1,2) [2025-02-13 20:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468949', 'tblTempUsageDetail_20' ) start [2025-02-13 20:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468949', 'tblTempUsageDetail_20' ) end [2025-02-13 20:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 20:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 20:48:23] Production.INFO: ==7798== Releasing lock... [2025-02-13 20:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 20:48:23] Production.INFO: 42.75 MB #Memory Used# [2025-02-13 20:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 17:49:06 [end_date_ymd] => 2025-02-13 20:49:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 17:49:06' and `end` < '2025-02-13 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-02-13 20:49:20] Production.INFO: count ==1963 [2025-02-13 20:49:20] Production.ERROR: pbx CDR StartTime 2025-02-13 17:49:06 - End Time 2025-02-13 20:49:06 [2025-02-13 20:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 20:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468954', 'tblTempUsageDetail_20' ) start [2025-02-13 20:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468954', 'tblTempUsageDetail_20' ) end [2025-02-13 20:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468954', 'tblTempVendorCDR_20' ) start [2025-02-13 20:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468954', 'tblTempVendorCDR_20' ) end [2025-02-13 20:49:20] Production.INFO: ProcessCDR(1,14468954,1,1,2) [2025-02-13 20:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468954', 'tblTempUsageDetail_20' ) start [2025-02-13 20:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468954', 'tblTempUsageDetail_20' ) end [2025-02-13 20:49:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 20:49:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 20:49:24] Production.INFO: ==7877== Releasing lock... [2025-02-13 20:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 20:49:24] Production.INFO: 42.75 MB #Memory Used# [2025-02-13 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 17:50:06 [end_date_ymd] => 2025-02-13 20:50:06 [RateCDR] => 1 ) [2025-02-13 20: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-02-13 17:50:06' and `end` < '2025-02-13 20: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-02-13 20:50:19] Production.INFO: count ==1962 [2025-02-13 20:50:20] Production.ERROR: pbx CDR StartTime 2025-02-13 17:50:06 - End Time 2025-02-13 20:50:06 [2025-02-13 20:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468960', 'tblTempUsageDetail_20' ) start [2025-02-13 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468960', 'tblTempUsageDetail_20' ) end [2025-02-13 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468960', 'tblTempVendorCDR_20' ) start [2025-02-13 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468960', 'tblTempVendorCDR_20' ) end [2025-02-13 20:50:20] Production.INFO: ProcessCDR(1,14468960,1,1,2) [2025-02-13 20:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468960', 'tblTempUsageDetail_20' ) start [2025-02-13 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468960', 'tblTempUsageDetail_20' ) end [2025-02-13 20:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 20:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 20:50:23] Production.INFO: ==7952== Releasing lock... [2025-02-13 20:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 20:50:23] Production.INFO: 42.75 MB #Memory Used# [2025-02-13 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 17:51:05 [end_date_ymd] => 2025-02-13 20:51:05 [RateCDR] => 1 ) [2025-02-13 20: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-02-13 17:51:05' and `end` < '2025-02-13 20: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-02-13 20:51:19] Production.INFO: count ==1905 [2025-02-13 20:51:19] Production.ERROR: pbx CDR StartTime 2025-02-13 17:51:05 - End Time 2025-02-13 20:51:05 [2025-02-13 20:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468965', 'tblTempUsageDetail_20' ) start [2025-02-13 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468965', 'tblTempUsageDetail_20' ) end [2025-02-13 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468965', 'tblTempVendorCDR_20' ) start [2025-02-13 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468965', 'tblTempVendorCDR_20' ) end [2025-02-13 20:51:19] Production.INFO: ProcessCDR(1,14468965,1,1,2) [2025-02-13 20:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468965', 'tblTempUsageDetail_20' ) start [2025-02-13 20:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468965', 'tblTempUsageDetail_20' ) end [2025-02-13 20:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 20:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 20:51:23] Production.INFO: ==8038== Releasing lock... [2025-02-13 20:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 20:51:23] Production.INFO: 42.25 MB #Memory Used# [2025-02-13 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 17:52:05 [end_date_ymd] => 2025-02-13 20:52:05 [RateCDR] => 1 ) [2025-02-13 20: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-02-13 17:52:05' and `end` < '2025-02-13 20: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-02-13 20:52:19] Production.INFO: count ==1906 [2025-02-13 20:52:20] Production.ERROR: pbx CDR StartTime 2025-02-13 17:52:05 - End Time 2025-02-13 20:52:05 [2025-02-13 20:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 20:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468970', 'tblTempUsageDetail_20' ) start [2025-02-13 20:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468970', 'tblTempUsageDetail_20' ) end [2025-02-13 20:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468970', 'tblTempVendorCDR_20' ) start [2025-02-13 20:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468970', 'tblTempVendorCDR_20' ) end [2025-02-13 20:52:20] Production.INFO: ProcessCDR(1,14468970,1,1,2) [2025-02-13 20:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468970', 'tblTempUsageDetail_20' ) start [2025-02-13 20:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468970', 'tblTempUsageDetail_20' ) end [2025-02-13 20:52:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 20:52:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 20:52:25] Production.INFO: ==8113== Releasing lock... [2025-02-13 20:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 20:52:25] Production.INFO: 42.25 MB #Memory Used# [2025-02-13 20:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 17:53:06 [end_date_ymd] => 2025-02-13 20:53:06 [RateCDR] => 1 ) [2025-02-13 20: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-02-13 17:53:06' and `end` < '2025-02-13 20: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-02-13 20:53:25] Production.INFO: count ==1902 [2025-02-13 20:53:25] Production.ERROR: pbx CDR StartTime 2025-02-13 17:53:06 - End Time 2025-02-13 20:53:06 [2025-02-13 20:53:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 20:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468975', 'tblTempUsageDetail_20' ) start [2025-02-13 20:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468975', 'tblTempUsageDetail_20' ) end [2025-02-13 20:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468975', 'tblTempVendorCDR_20' ) start [2025-02-13 20:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468975', 'tblTempVendorCDR_20' ) end [2025-02-13 20:53:26] Production.INFO: ProcessCDR(1,14468975,1,1,2) [2025-02-13 20:53:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:53:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:53:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:53:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468975', 'tblTempUsageDetail_20' ) start [2025-02-13 20:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468975', 'tblTempUsageDetail_20' ) end [2025-02-13 20:53:29] Production.ERROR: pbx prc_insertCDR start [2025-02-13 20:53:29] Production.ERROR: pbx prc_insertCDR end [2025-02-13 20:53:29] Production.INFO: ==8192== Releasing lock... [2025-02-13 20:53:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 20:53:29] Production.INFO: 42.25 MB #Memory Used# [2025-02-13 20:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 17:54:06 [end_date_ymd] => 2025-02-13 20:54:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 17:54:06' and `end` < '2025-02-13 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-02-13 20:54:22] Production.INFO: count ==1903 [2025-02-13 20:54:23] Production.ERROR: pbx CDR StartTime 2025-02-13 17:54:06 - End Time 2025-02-13 20:54:06 [2025-02-13 20:54:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 20:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468980', 'tblTempUsageDetail_20' ) start [2025-02-13 20:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468980', 'tblTempUsageDetail_20' ) end [2025-02-13 20:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468980', 'tblTempVendorCDR_20' ) start [2025-02-13 20:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468980', 'tblTempVendorCDR_20' ) end [2025-02-13 20:54:23] Production.INFO: ProcessCDR(1,14468980,1,1,2) [2025-02-13 20:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:54:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468980', 'tblTempUsageDetail_20' ) start [2025-02-13 20:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468980', 'tblTempUsageDetail_20' ) end [2025-02-13 20:54:28] Production.ERROR: pbx prc_insertCDR start [2025-02-13 20:54:28] Production.ERROR: pbx prc_insertCDR end [2025-02-13 20:54:28] Production.INFO: ==8267== Releasing lock... [2025-02-13 20:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 20:54:28] Production.INFO: 42.25 MB #Memory Used# [2025-02-13 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 17:55:05 [end_date_ymd] => 2025-02-13 20:55:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 17:55:05' and `end` < '2025-02-13 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-02-13 20:55:19] Production.INFO: count ==1909 [2025-02-13 20:55:19] Production.ERROR: pbx CDR StartTime 2025-02-13 17:55:05 - End Time 2025-02-13 20:55:05 [2025-02-13 20:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468985', 'tblTempUsageDetail_20' ) start [2025-02-13 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468985', 'tblTempUsageDetail_20' ) end [2025-02-13 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468985', 'tblTempVendorCDR_20' ) start [2025-02-13 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468985', 'tblTempVendorCDR_20' ) end [2025-02-13 20:55:19] Production.INFO: ProcessCDR(1,14468985,1,1,2) [2025-02-13 20:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468985', 'tblTempUsageDetail_20' ) start [2025-02-13 20:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468985', 'tblTempUsageDetail_20' ) end [2025-02-13 20:55:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 20:55:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 20:55:24] Production.INFO: ==8341== Releasing lock... [2025-02-13 20:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 20:55:24] Production.INFO: 42.25 MB #Memory Used# [2025-02-13 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 17:56:05 [end_date_ymd] => 2025-02-13 20:56:05 [RateCDR] => 1 ) [2025-02-13 20: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-02-13 17:56:05' and `end` < '2025-02-13 20: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-02-13 20:56:19] Production.INFO: count ==1895 [2025-02-13 20:56:19] Production.ERROR: pbx CDR StartTime 2025-02-13 17:56:05 - End Time 2025-02-13 20:56:05 [2025-02-13 20:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468990', 'tblTempUsageDetail_20' ) start [2025-02-13 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468990', 'tblTempUsageDetail_20' ) end [2025-02-13 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468990', 'tblTempVendorCDR_20' ) start [2025-02-13 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468990', 'tblTempVendorCDR_20' ) end [2025-02-13 20:56:19] Production.INFO: ProcessCDR(1,14468990,1,1,2) [2025-02-13 20:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468990', 'tblTempUsageDetail_20' ) start [2025-02-13 20:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468990', 'tblTempUsageDetail_20' ) end [2025-02-13 20:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 20:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 20:56:23] Production.INFO: ==8419== Releasing lock... [2025-02-13 20:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 20:56:23] Production.INFO: 42.25 MB #Memory Used# [2025-02-13 20:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 17:57:06 [end_date_ymd] => 2025-02-13 20:57:06 [RateCDR] => 1 ) [2025-02-13 20: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-02-13 17:57:06' and `end` < '2025-02-13 20: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-02-13 20:57:20] Production.INFO: count ==1891 [2025-02-13 20:57:20] Production.ERROR: pbx CDR StartTime 2025-02-13 17:57:06 - End Time 2025-02-13 20:57:06 [2025-02-13 20:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 20:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468995', 'tblTempUsageDetail_20' ) start [2025-02-13 20:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14468995', 'tblTempUsageDetail_20' ) end [2025-02-13 20:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468995', 'tblTempVendorCDR_20' ) start [2025-02-13 20:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14468995', 'tblTempVendorCDR_20' ) end [2025-02-13 20:57:20] Production.INFO: ProcessCDR(1,14468995,1,1,2) [2025-02-13 20:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14468995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14468995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14468995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14468995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468995', 'tblTempUsageDetail_20' ) start [2025-02-13 20:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14468995', 'tblTempUsageDetail_20' ) end [2025-02-13 20:57:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 20:57:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 20:57:25] Production.INFO: ==8530== Releasing lock... [2025-02-13 20:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 20:57:25] Production.INFO: 42.25 MB #Memory Used# [2025-02-13 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 17:58:05 [end_date_ymd] => 2025-02-13 20:58:05 [RateCDR] => 1 ) [2025-02-13 20: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-02-13 17:58:05' and `end` < '2025-02-13 20: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-02-13 20:58:19] Production.INFO: count ==1892 [2025-02-13 20:58:19] Production.ERROR: pbx CDR StartTime 2025-02-13 17:58:05 - End Time 2025-02-13 20:58:05 [2025-02-13 20:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469000', 'tblTempUsageDetail_20' ) start [2025-02-13 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469000', 'tblTempUsageDetail_20' ) end [2025-02-13 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469000', 'tblTempVendorCDR_20' ) start [2025-02-13 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469000', 'tblTempVendorCDR_20' ) end [2025-02-13 20:58:19] Production.INFO: ProcessCDR(1,14469000,1,1,2) [2025-02-13 20:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469000', 'tblTempUsageDetail_20' ) start [2025-02-13 20:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469000', 'tblTempUsageDetail_20' ) end [2025-02-13 20:58:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 20:58:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 20:58:24] Production.INFO: ==8607== Releasing lock... [2025-02-13 20:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 20:58:24] Production.INFO: 42.25 MB #Memory Used# [2025-02-13 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 17:59:05 [end_date_ymd] => 2025-02-13 20:59:05 [RateCDR] => 1 ) [2025-02-13 20: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-02-13 17:59:05' and `end` < '2025-02-13 20: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-02-13 20:59:19] Production.INFO: count ==1883 [2025-02-13 20:59:19] Production.ERROR: pbx CDR StartTime 2025-02-13 17:59:05 - End Time 2025-02-13 20:59:05 [2025-02-13 20:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469005', 'tblTempUsageDetail_20' ) start [2025-02-13 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469005', 'tblTempUsageDetail_20' ) end [2025-02-13 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469005', 'tblTempVendorCDR_20' ) start [2025-02-13 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469005', 'tblTempVendorCDR_20' ) end [2025-02-13 20:59:19] Production.INFO: ProcessCDR(1,14469005,1,1,2) [2025-02-13 20:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 20:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 20:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469005', 'tblTempUsageDetail_20' ) start [2025-02-13 20:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469005', 'tblTempUsageDetail_20' ) end [2025-02-13 20:59:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 20:59:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 20:59:24] Production.INFO: ==8681== Releasing lock... [2025-02-13 20:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 20:59:24] Production.INFO: 42 MB #Memory Used# [2025-02-13 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 18:00:06 [end_date_ymd] => 2025-02-13 21:00:06 [RateCDR] => 1 ) [2025-02-13 21: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-02-13 18:00:06' and `end` < '2025-02-13 21: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-02-13 21:00:21] Production.INFO: count ==1889 [2025-02-13 21:00:21] Production.ERROR: pbx CDR StartTime 2025-02-13 18:00:06 - End Time 2025-02-13 21:00:06 [2025-02-13 21:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 21:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469011', 'tblTempUsageDetail_20' ) start [2025-02-13 21:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469011', 'tblTempUsageDetail_20' ) end [2025-02-13 21:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469011', 'tblTempVendorCDR_20' ) start [2025-02-13 21:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469011', 'tblTempVendorCDR_20' ) end [2025-02-13 21:00:21] Production.INFO: ProcessCDR(1,14469011,1,1,2) [2025-02-13 21:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469011', 'tblTempUsageDetail_20' ) start [2025-02-13 21:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469011', 'tblTempUsageDetail_20' ) end [2025-02-13 21:00:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 21:00:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 21:00:26] Production.INFO: ==8754== Releasing lock... [2025-02-13 21:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 21:00:26] Production.INFO: 42.25 MB #Memory Used# [2025-02-13 21:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 18:01:06 [end_date_ymd] => 2025-02-13 21:01:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 18:01:06' and `end` < '2025-02-13 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-02-13 21:01:20] Production.INFO: count ==1881 [2025-02-13 21:01:20] Production.ERROR: pbx CDR StartTime 2025-02-13 18:01:06 - End Time 2025-02-13 21:01:06 [2025-02-13 21:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 21:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469016', 'tblTempUsageDetail_20' ) start [2025-02-13 21:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469016', 'tblTempUsageDetail_20' ) end [2025-02-13 21:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469016', 'tblTempVendorCDR_20' ) start [2025-02-13 21:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469016', 'tblTempVendorCDR_20' ) end [2025-02-13 21:01:20] Production.INFO: ProcessCDR(1,14469016,1,1,2) [2025-02-13 21:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469016', 'tblTempUsageDetail_20' ) start [2025-02-13 21:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469016', 'tblTempUsageDetail_20' ) end [2025-02-13 21:01:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 21:01:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 21:01:25] Production.INFO: ==8843== Releasing lock... [2025-02-13 21:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 21:01:25] Production.INFO: 42.25 MB #Memory Used# [2025-02-13 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 18:02:05 [end_date_ymd] => 2025-02-13 21:02:05 [RateCDR] => 1 ) [2025-02-13 21: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-02-13 18:02:05' and `end` < '2025-02-13 21: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-02-13 21:02:18] Production.INFO: count ==1871 [2025-02-13 21:02:19] Production.ERROR: pbx CDR StartTime 2025-02-13 18:02:05 - End Time 2025-02-13 21:02:05 [2025-02-13 21:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469021', 'tblTempUsageDetail_20' ) start [2025-02-13 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469021', 'tblTempUsageDetail_20' ) end [2025-02-13 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469021', 'tblTempVendorCDR_20' ) start [2025-02-13 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469021', 'tblTempVendorCDR_20' ) end [2025-02-13 21:02:19] Production.INFO: ProcessCDR(1,14469021,1,1,2) [2025-02-13 21:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469021', 'tblTempUsageDetail_20' ) start [2025-02-13 21:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469021', 'tblTempUsageDetail_20' ) end [2025-02-13 21:02:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 21:02:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 21:02:24] Production.INFO: ==8918== Releasing lock... [2025-02-13 21:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 21:02:24] Production.INFO: 42 MB #Memory Used# [2025-02-13 21:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 18:03:06 [end_date_ymd] => 2025-02-13 21:03:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 18:03:06' and `end` < '2025-02-13 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-02-13 21:03:19] Production.INFO: count ==1864 [2025-02-13 21:03:20] Production.ERROR: pbx CDR StartTime 2025-02-13 18:03:06 - End Time 2025-02-13 21:03:06 [2025-02-13 21:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 21:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469026', 'tblTempUsageDetail_20' ) start [2025-02-13 21:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469026', 'tblTempUsageDetail_20' ) end [2025-02-13 21:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469026', 'tblTempVendorCDR_20' ) start [2025-02-13 21:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469026', 'tblTempVendorCDR_20' ) end [2025-02-13 21:03:20] Production.INFO: ProcessCDR(1,14469026,1,1,2) [2025-02-13 21:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469026', 'tblTempUsageDetail_20' ) start [2025-02-13 21:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469026', 'tblTempUsageDetail_20' ) end [2025-02-13 21:03:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 21:03:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 21:03:25] Production.INFO: ==8993== Releasing lock... [2025-02-13 21:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 21:03:25] Production.INFO: 42 MB #Memory Used# [2025-02-13 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 18:04:05 [end_date_ymd] => 2025-02-13 21:04:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 18:04:05' and `end` < '2025-02-13 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-02-13 21:04:20] Production.INFO: count ==1861 [2025-02-13 21:04:20] Production.ERROR: pbx CDR StartTime 2025-02-13 18:04:05 - End Time 2025-02-13 21:04:05 [2025-02-13 21:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 21:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469031', 'tblTempUsageDetail_20' ) start [2025-02-13 21:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469031', 'tblTempUsageDetail_20' ) end [2025-02-13 21:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469031', 'tblTempVendorCDR_20' ) start [2025-02-13 21:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469031', 'tblTempVendorCDR_20' ) end [2025-02-13 21:04:20] Production.INFO: ProcessCDR(1,14469031,1,1,2) [2025-02-13 21:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469031', 'tblTempUsageDetail_20' ) start [2025-02-13 21:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469031', 'tblTempUsageDetail_20' ) end [2025-02-13 21:04:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 21:04:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 21:04:24] Production.INFO: ==9071== Releasing lock... [2025-02-13 21:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 21:04:24] Production.INFO: 41.75 MB #Memory Used# [2025-02-13 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 18:05:05 [end_date_ymd] => 2025-02-13 21:05:05 [RateCDR] => 1 ) [2025-02-13 21: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-02-13 18:05:05' and `end` < '2025-02-13 21: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-02-13 21:05:19] Production.INFO: count ==1842 [2025-02-13 21:05:19] Production.ERROR: pbx CDR StartTime 2025-02-13 18:05:05 - End Time 2025-02-13 21:05:05 [2025-02-13 21:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469036', 'tblTempUsageDetail_20' ) start [2025-02-13 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469036', 'tblTempUsageDetail_20' ) end [2025-02-13 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469036', 'tblTempVendorCDR_20' ) start [2025-02-13 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469036', 'tblTempVendorCDR_20' ) end [2025-02-13 21:05:19] Production.INFO: ProcessCDR(1,14469036,1,1,2) [2025-02-13 21:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469036', 'tblTempUsageDetail_20' ) start [2025-02-13 21:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469036', 'tblTempUsageDetail_20' ) end [2025-02-13 21:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 21:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 21:05:23] Production.INFO: ==9144== Releasing lock... [2025-02-13 21:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 21:05:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-13 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 18:06:05 [end_date_ymd] => 2025-02-13 21:06:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 18:06:05' and `end` < '2025-02-13 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-02-13 21:06:18] Production.INFO: count ==1838 [2025-02-13 21:06:19] Production.ERROR: pbx CDR StartTime 2025-02-13 18:06:05 - End Time 2025-02-13 21:06:05 [2025-02-13 21:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469041', 'tblTempUsageDetail_20' ) start [2025-02-13 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469041', 'tblTempUsageDetail_20' ) end [2025-02-13 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469041', 'tblTempVendorCDR_20' ) start [2025-02-13 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469041', 'tblTempVendorCDR_20' ) end [2025-02-13 21:06:19] Production.INFO: ProcessCDR(1,14469041,1,1,2) [2025-02-13 21:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469041', 'tblTempUsageDetail_20' ) start [2025-02-13 21:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469041', 'tblTempUsageDetail_20' ) end [2025-02-13 21:06:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 21:06:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 21:06:24] Production.INFO: ==9217== Releasing lock... [2025-02-13 21:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 21:06:24] Production.INFO: 41.75 MB #Memory Used# [2025-02-13 21:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 18:07:06 [end_date_ymd] => 2025-02-13 21:07:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 18:07:06' and `end` < '2025-02-13 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-02-13 21:07:19] Production.INFO: count ==1828 [2025-02-13 21:07:20] Production.ERROR: pbx CDR StartTime 2025-02-13 18:07:06 - End Time 2025-02-13 21:07:06 [2025-02-13 21:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 21:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469046', 'tblTempUsageDetail_20' ) start [2025-02-13 21:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469046', 'tblTempUsageDetail_20' ) end [2025-02-13 21:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469046', 'tblTempVendorCDR_20' ) start [2025-02-13 21:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469046', 'tblTempVendorCDR_20' ) end [2025-02-13 21:07:20] Production.INFO: ProcessCDR(1,14469046,1,1,2) [2025-02-13 21:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469046', 'tblTempUsageDetail_20' ) start [2025-02-13 21:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469046', 'tblTempUsageDetail_20' ) end [2025-02-13 21:07:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 21:07:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 21:07:25] Production.INFO: ==9289== Releasing lock... [2025-02-13 21:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 21:07:25] Production.INFO: 41.75 MB #Memory Used# [2025-02-13 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 18:08:05 [end_date_ymd] => 2025-02-13 21:08:05 [RateCDR] => 1 ) [2025-02-13 21: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-02-13 18:08:05' and `end` < '2025-02-13 21: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-02-13 21:08:18] Production.INFO: count ==1821 [2025-02-13 21:08:19] Production.ERROR: pbx CDR StartTime 2025-02-13 18:08:05 - End Time 2025-02-13 21:08:05 [2025-02-13 21:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469051', 'tblTempUsageDetail_20' ) start [2025-02-13 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469051', 'tblTempUsageDetail_20' ) end [2025-02-13 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469051', 'tblTempVendorCDR_20' ) start [2025-02-13 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469051', 'tblTempVendorCDR_20' ) end [2025-02-13 21:08:19] Production.INFO: ProcessCDR(1,14469051,1,1,2) [2025-02-13 21:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469051', 'tblTempUsageDetail_20' ) start [2025-02-13 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469051', 'tblTempUsageDetail_20' ) end [2025-02-13 21:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 21:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 21:08:22] Production.INFO: ==9360== Releasing lock... [2025-02-13 21:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 21:08:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-13 21:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 18:09:06 [end_date_ymd] => 2025-02-13 21:09:06 [RateCDR] => 1 ) [2025-02-13 21: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-02-13 18:09:06' and `end` < '2025-02-13 21: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-02-13 21:09:19] Production.INFO: count ==1818 [2025-02-13 21:09:19] Production.ERROR: pbx CDR StartTime 2025-02-13 18:09:06 - End Time 2025-02-13 21:09:06 [2025-02-13 21:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469056', 'tblTempUsageDetail_20' ) start [2025-02-13 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469056', 'tblTempUsageDetail_20' ) end [2025-02-13 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469056', 'tblTempVendorCDR_20' ) start [2025-02-13 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469056', 'tblTempVendorCDR_20' ) end [2025-02-13 21:09:19] Production.INFO: ProcessCDR(1,14469056,1,1,2) [2025-02-13 21:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469056', 'tblTempUsageDetail_20' ) start [2025-02-13 21:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469056', 'tblTempUsageDetail_20' ) end [2025-02-13 21:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 21:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 21:09:23] Production.INFO: ==9433== Releasing lock... [2025-02-13 21:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 21:09:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-13 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 18:10:06 [end_date_ymd] => 2025-02-13 21:10:06 [RateCDR] => 1 ) [2025-02-13 21: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-02-13 18:10:06' and `end` < '2025-02-13 21: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-02-13 21:10:19] Production.INFO: count ==1817 [2025-02-13 21:10:20] Production.ERROR: pbx CDR StartTime 2025-02-13 18:10:06 - End Time 2025-02-13 21:10:06 [2025-02-13 21:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469062', 'tblTempUsageDetail_20' ) start [2025-02-13 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469062', 'tblTempUsageDetail_20' ) end [2025-02-13 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469062', 'tblTempVendorCDR_20' ) start [2025-02-13 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469062', 'tblTempVendorCDR_20' ) end [2025-02-13 21:10:20] Production.INFO: ProcessCDR(1,14469062,1,1,2) [2025-02-13 21:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469062', 'tblTempUsageDetail_20' ) start [2025-02-13 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469062', 'tblTempUsageDetail_20' ) end [2025-02-13 21:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 21:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 21:10:23] Production.INFO: ==9512== Releasing lock... [2025-02-13 21:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 21:10:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-13 21:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 18:11:06 [end_date_ymd] => 2025-02-13 21:11:06 [RateCDR] => 1 ) [2025-02-13 21: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-02-13 18:11:06' and `end` < '2025-02-13 21: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-02-13 21:11:19] Production.INFO: count ==1768 [2025-02-13 21:11:19] Production.ERROR: pbx CDR StartTime 2025-02-13 18:11:06 - End Time 2025-02-13 21:11:06 [2025-02-13 21:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469067', 'tblTempUsageDetail_20' ) start [2025-02-13 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469067', 'tblTempUsageDetail_20' ) end [2025-02-13 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469067', 'tblTempVendorCDR_20' ) start [2025-02-13 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469067', 'tblTempVendorCDR_20' ) end [2025-02-13 21:11:19] Production.INFO: ProcessCDR(1,14469067,1,1,2) [2025-02-13 21:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469067', 'tblTempUsageDetail_20' ) start [2025-02-13 21:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469067', 'tblTempUsageDetail_20' ) end [2025-02-13 21:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 21:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 21:11:23] Production.INFO: ==9590== Releasing lock... [2025-02-13 21:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 21:11:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-13 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 18:12:05 [end_date_ymd] => 2025-02-13 21:12:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 18:12:05' and `end` < '2025-02-13 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-02-13 21:12:18] Production.INFO: count ==1762 [2025-02-13 21:12:19] Production.ERROR: pbx CDR StartTime 2025-02-13 18:12:05 - End Time 2025-02-13 21:12:05 [2025-02-13 21:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469072', 'tblTempUsageDetail_20' ) start [2025-02-13 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469072', 'tblTempUsageDetail_20' ) end [2025-02-13 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469072', 'tblTempVendorCDR_20' ) start [2025-02-13 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469072', 'tblTempVendorCDR_20' ) end [2025-02-13 21:12:19] Production.INFO: ProcessCDR(1,14469072,1,1,2) [2025-02-13 21:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469072', 'tblTempUsageDetail_20' ) start [2025-02-13 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469072', 'tblTempUsageDetail_20' ) end [2025-02-13 21:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 21:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 21:12:22] Production.INFO: ==9664== Releasing lock... [2025-02-13 21:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 21:12:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-13 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 18:13:05 [end_date_ymd] => 2025-02-13 21:13:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 18:13:05' and `end` < '2025-02-13 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-02-13 21:13:19] Production.INFO: count ==1762 [2025-02-13 21:13:19] Production.ERROR: pbx CDR StartTime 2025-02-13 18:13:05 - End Time 2025-02-13 21:13:05 [2025-02-13 21:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469077', 'tblTempUsageDetail_20' ) start [2025-02-13 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469077', 'tblTempUsageDetail_20' ) end [2025-02-13 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469077', 'tblTempVendorCDR_20' ) start [2025-02-13 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469077', 'tblTempVendorCDR_20' ) end [2025-02-13 21:13:19] Production.INFO: ProcessCDR(1,14469077,1,1,2) [2025-02-13 21:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469077', 'tblTempUsageDetail_20' ) start [2025-02-13 21:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469077', 'tblTempUsageDetail_20' ) end [2025-02-13 21:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 21:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 21:13:23] Production.INFO: ==9776== Releasing lock... [2025-02-13 21:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 21:13:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-13 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 18:14:05 [end_date_ymd] => 2025-02-13 21:14:05 [RateCDR] => 1 ) [2025-02-13 21: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-02-13 18:14:05' and `end` < '2025-02-13 21: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-02-13 21:14:24] Production.INFO: count ==1756 [2025-02-13 21:14:25] Production.ERROR: pbx CDR StartTime 2025-02-13 18:14:05 - End Time 2025-02-13 21:14:05 [2025-02-13 21:14:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 21:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469082', 'tblTempUsageDetail_20' ) start [2025-02-13 21:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469082', 'tblTempUsageDetail_20' ) end [2025-02-13 21:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469082', 'tblTempVendorCDR_20' ) start [2025-02-13 21:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469082', 'tblTempVendorCDR_20' ) end [2025-02-13 21:14:25] Production.INFO: ProcessCDR(1,14469082,1,1,2) [2025-02-13 21:14:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:14:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:14:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:14:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469082', 'tblTempUsageDetail_20' ) start [2025-02-13 21:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469082', 'tblTempUsageDetail_20' ) end [2025-02-13 21:14:29] Production.ERROR: pbx prc_insertCDR start [2025-02-13 21:14:29] Production.ERROR: pbx prc_insertCDR end [2025-02-13 21:14:29] Production.INFO: ==9847== Releasing lock... [2025-02-13 21:14:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 21:14:29] Production.INFO: 41 MB #Memory Used# [2025-02-13 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 18:15:05 [end_date_ymd] => 2025-02-13 21:15:05 [RateCDR] => 1 ) [2025-02-13 21: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-02-13 18:15:05' and `end` < '2025-02-13 21: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-02-13 21:15:19] Production.INFO: count ==1754 [2025-02-13 21:15:19] Production.ERROR: pbx CDR StartTime 2025-02-13 18:15:05 - End Time 2025-02-13 21:15:05 [2025-02-13 21:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469087', 'tblTempUsageDetail_20' ) start [2025-02-13 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469087', 'tblTempUsageDetail_20' ) end [2025-02-13 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469087', 'tblTempVendorCDR_20' ) start [2025-02-13 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469087', 'tblTempVendorCDR_20' ) end [2025-02-13 21:15:19] Production.INFO: ProcessCDR(1,14469087,1,1,2) [2025-02-13 21:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469087', 'tblTempUsageDetail_20' ) start [2025-02-13 21:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469087', 'tblTempUsageDetail_20' ) end [2025-02-13 21:15:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 21:15:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 21:15:24] Production.INFO: ==9929== Releasing lock... [2025-02-13 21:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 21:15:24] Production.INFO: 41 MB #Memory Used# [2025-02-13 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 18:16:05 [end_date_ymd] => 2025-02-13 21:16:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 18:16:05' and `end` < '2025-02-13 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-02-13 21:16:19] Production.INFO: count ==1764 [2025-02-13 21:16:19] Production.ERROR: pbx CDR StartTime 2025-02-13 18:16:05 - End Time 2025-02-13 21:16:05 [2025-02-13 21:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469092', 'tblTempUsageDetail_20' ) start [2025-02-13 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469092', 'tblTempUsageDetail_20' ) end [2025-02-13 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469092', 'tblTempVendorCDR_20' ) start [2025-02-13 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469092', 'tblTempVendorCDR_20' ) end [2025-02-13 21:16:19] Production.INFO: ProcessCDR(1,14469092,1,1,2) [2025-02-13 21:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469092', 'tblTempUsageDetail_20' ) start [2025-02-13 21:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469092', 'tblTempUsageDetail_20' ) end [2025-02-13 21:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 21:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 21:16:23] Production.INFO: ==9998== Releasing lock... [2025-02-13 21:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 21:16:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-13 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 18:17:05 [end_date_ymd] => 2025-02-13 21:17:05 [RateCDR] => 1 ) [2025-02-13 21: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-02-13 18:17:05' and `end` < '2025-02-13 21: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-02-13 21:17:20] Production.INFO: count ==1762 [2025-02-13 21:17:20] Production.ERROR: pbx CDR StartTime 2025-02-13 18:17:05 - End Time 2025-02-13 21:17:05 [2025-02-13 21:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 21:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469097', 'tblTempUsageDetail_20' ) start [2025-02-13 21:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469097', 'tblTempUsageDetail_20' ) end [2025-02-13 21:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469097', 'tblTempVendorCDR_20' ) start [2025-02-13 21:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469097', 'tblTempVendorCDR_20' ) end [2025-02-13 21:17:20] Production.INFO: ProcessCDR(1,14469097,1,1,2) [2025-02-13 21:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469097', 'tblTempUsageDetail_20' ) start [2025-02-13 21:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469097', 'tblTempUsageDetail_20' ) end [2025-02-13 21:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 21:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 21:17:24] Production.INFO: ==10074== Releasing lock... [2025-02-13 21:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 21:17:24] Production.INFO: 41.25 MB #Memory Used# [2025-02-13 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 18:18:05 [end_date_ymd] => 2025-02-13 21:18:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 18:18:05' and `end` < '2025-02-13 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-02-13 21:18:18] Production.INFO: count ==1759 [2025-02-13 21:18:18] Production.ERROR: pbx CDR StartTime 2025-02-13 18:18:05 - End Time 2025-02-13 21:18:05 [2025-02-13 21:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469102', 'tblTempUsageDetail_20' ) start [2025-02-13 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469102', 'tblTempUsageDetail_20' ) end [2025-02-13 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469102', 'tblTempVendorCDR_20' ) start [2025-02-13 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469102', 'tblTempVendorCDR_20' ) end [2025-02-13 21:18:19] Production.INFO: ProcessCDR(1,14469102,1,1,2) [2025-02-13 21:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469102', 'tblTempUsageDetail_20' ) start [2025-02-13 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469102', 'tblTempUsageDetail_20' ) end [2025-02-13 21:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 21:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 21:18:22] Production.INFO: ==10147== Releasing lock... [2025-02-13 21:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 21:18:22] Production.INFO: 41 MB #Memory Used# [2025-02-13 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 18:19:05 [end_date_ymd] => 2025-02-13 21:19:05 [RateCDR] => 1 ) [2025-02-13 21: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-02-13 18:19:05' and `end` < '2025-02-13 21: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-02-13 21:19:18] Production.INFO: count ==1756 [2025-02-13 21:19:19] Production.ERROR: pbx CDR StartTime 2025-02-13 18:19:05 - End Time 2025-02-13 21:19:05 [2025-02-13 21:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469107', 'tblTempUsageDetail_20' ) start [2025-02-13 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469107', 'tblTempUsageDetail_20' ) end [2025-02-13 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469107', 'tblTempVendorCDR_20' ) start [2025-02-13 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469107', 'tblTempVendorCDR_20' ) end [2025-02-13 21:19:19] Production.INFO: ProcessCDR(1,14469107,1,1,2) [2025-02-13 21:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469107', 'tblTempUsageDetail_20' ) start [2025-02-13 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469107', 'tblTempUsageDetail_20' ) end [2025-02-13 21:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 21:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 21:19:22] Production.INFO: ==10222== Releasing lock... [2025-02-13 21:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 21:19:22] Production.INFO: 41 MB #Memory Used# [2025-02-13 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 18:20:06 [end_date_ymd] => 2025-02-13 21:20:06 [RateCDR] => 1 ) [2025-02-13 21: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-02-13 18:20:06' and `end` < '2025-02-13 21: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-02-13 21:20:19] Production.INFO: count ==1747 [2025-02-13 21:20:20] Production.ERROR: pbx CDR StartTime 2025-02-13 18:20:06 - End Time 2025-02-13 21:20:06 [2025-02-13 21:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469113', 'tblTempUsageDetail_20' ) start [2025-02-13 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469113', 'tblTempUsageDetail_20' ) end [2025-02-13 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469113', 'tblTempVendorCDR_20' ) start [2025-02-13 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469113', 'tblTempVendorCDR_20' ) end [2025-02-13 21:20:20] Production.INFO: ProcessCDR(1,14469113,1,1,2) [2025-02-13 21:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469113', 'tblTempUsageDetail_20' ) start [2025-02-13 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469113', 'tblTempUsageDetail_20' ) end [2025-02-13 21:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 21:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 21:20:23] Production.INFO: ==10294== Releasing lock... [2025-02-13 21:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 21:20:23] Production.INFO: 41 MB #Memory Used# [2025-02-13 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 18:21:05 [end_date_ymd] => 2025-02-13 21:21:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 18:21:05' and `end` < '2025-02-13 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-02-13 21:21:19] Production.INFO: count ==1688 [2025-02-13 21:21:19] Production.ERROR: pbx CDR StartTime 2025-02-13 18:21:05 - End Time 2025-02-13 21:21:05 [2025-02-13 21:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469118', 'tblTempUsageDetail_20' ) start [2025-02-13 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469118', 'tblTempUsageDetail_20' ) end [2025-02-13 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469118', 'tblTempVendorCDR_20' ) start [2025-02-13 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469118', 'tblTempVendorCDR_20' ) end [2025-02-13 21:21:19] Production.INFO: ProcessCDR(1,14469118,1,1,2) [2025-02-13 21:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469118', 'tblTempUsageDetail_20' ) start [2025-02-13 21:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469118', 'tblTempUsageDetail_20' ) end [2025-02-13 21:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 21:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 21:21:23] Production.INFO: ==10373== Releasing lock... [2025-02-13 21:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 21:21:23] Production.INFO: 40.5 MB #Memory Used# [2025-02-13 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 18:22:05 [end_date_ymd] => 2025-02-13 21:22:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 18:22:05' and `end` < '2025-02-13 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-02-13 21:22:18] Production.INFO: count ==1684 [2025-02-13 21:22:19] Production.ERROR: pbx CDR StartTime 2025-02-13 18:22:05 - End Time 2025-02-13 21:22:05 [2025-02-13 21:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469123', 'tblTempUsageDetail_20' ) start [2025-02-13 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469123', 'tblTempUsageDetail_20' ) end [2025-02-13 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469123', 'tblTempVendorCDR_20' ) start [2025-02-13 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469123', 'tblTempVendorCDR_20' ) end [2025-02-13 21:22:19] Production.INFO: ProcessCDR(1,14469123,1,1,2) [2025-02-13 21:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469123', 'tblTempUsageDetail_20' ) start [2025-02-13 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469123', 'tblTempUsageDetail_20' ) end [2025-02-13 21:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 21:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 21:22:22] Production.INFO: ==10446== Releasing lock... [2025-02-13 21:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 21:22:22] Production.INFO: 40.5 MB #Memory Used# [2025-02-13 21:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 18:23:05 [end_date_ymd] => 2025-02-13 21:23:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 18:23:05' and `end` < '2025-02-13 21: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-02-13 21:23:19] Production.INFO: count ==1682 [2025-02-13 21:23:19] Production.ERROR: pbx CDR StartTime 2025-02-13 18:23:05 - End Time 2025-02-13 21:23:05 [2025-02-13 21:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469128', 'tblTempUsageDetail_20' ) start [2025-02-13 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469128', 'tblTempUsageDetail_20' ) end [2025-02-13 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469128', 'tblTempVendorCDR_20' ) start [2025-02-13 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469128', 'tblTempVendorCDR_20' ) end [2025-02-13 21:23:19] Production.INFO: ProcessCDR(1,14469128,1,1,2) [2025-02-13 21:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469128', 'tblTempUsageDetail_20' ) start [2025-02-13 21:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469128', 'tblTempUsageDetail_20' ) end [2025-02-13 21:23:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 21:23:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 21:23:24] Production.INFO: ==10520== Releasing lock... [2025-02-13 21:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 21:23:24] Production.INFO: 40.5 MB #Memory Used# [2025-02-13 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 18:24:05 [end_date_ymd] => 2025-02-13 21:24:05 [RateCDR] => 1 ) [2025-02-13 21: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-02-13 18:24:05' and `end` < '2025-02-13 21: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-02-13 21:24:18] Production.INFO: count ==1685 [2025-02-13 21:24:19] Production.ERROR: pbx CDR StartTime 2025-02-13 18:24:05 - End Time 2025-02-13 21:24:05 [2025-02-13 21:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469133', 'tblTempUsageDetail_20' ) start [2025-02-13 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469133', 'tblTempUsageDetail_20' ) end [2025-02-13 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469133', 'tblTempVendorCDR_20' ) start [2025-02-13 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469133', 'tblTempVendorCDR_20' ) end [2025-02-13 21:24:19] Production.INFO: ProcessCDR(1,14469133,1,1,2) [2025-02-13 21:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469133', 'tblTempUsageDetail_20' ) start [2025-02-13 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469133', 'tblTempUsageDetail_20' ) end [2025-02-13 21:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 21:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 21:24:22] Production.INFO: ==10591== Releasing lock... [2025-02-13 21:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 21:24:22] Production.INFO: 40.5 MB #Memory Used# [2025-02-13 21:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 18:25:06 [end_date_ymd] => 2025-02-13 21:25:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 18:25:06' and `end` < '2025-02-13 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-02-13 21:25:19] Production.INFO: count ==1682 [2025-02-13 21:25:19] Production.ERROR: pbx CDR StartTime 2025-02-13 18:25:06 - End Time 2025-02-13 21:25:06 [2025-02-13 21:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469138', 'tblTempUsageDetail_20' ) start [2025-02-13 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469138', 'tblTempUsageDetail_20' ) end [2025-02-13 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469138', 'tblTempVendorCDR_20' ) start [2025-02-13 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469138', 'tblTempVendorCDR_20' ) end [2025-02-13 21:25:19] Production.INFO: ProcessCDR(1,14469138,1,1,2) [2025-02-13 21:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469138', 'tblTempUsageDetail_20' ) start [2025-02-13 21:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469138', 'tblTempUsageDetail_20' ) end [2025-02-13 21:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 21:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 21:25:22] Production.INFO: ==10666== Releasing lock... [2025-02-13 21:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 21:25:22] Production.INFO: 40.5 MB #Memory Used# [2025-02-13 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 18:26:05 [end_date_ymd] => 2025-02-13 21:26:05 [RateCDR] => 1 ) [2025-02-13 21: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-02-13 18:26:05' and `end` < '2025-02-13 21: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-02-13 21:26:18] Production.INFO: count ==1680 [2025-02-13 21:26:19] Production.ERROR: pbx CDR StartTime 2025-02-13 18:26:05 - End Time 2025-02-13 21:26:05 [2025-02-13 21:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469143', 'tblTempUsageDetail_20' ) start [2025-02-13 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469143', 'tblTempUsageDetail_20' ) end [2025-02-13 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469143', 'tblTempVendorCDR_20' ) start [2025-02-13 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469143', 'tblTempVendorCDR_20' ) end [2025-02-13 21:26:19] Production.INFO: ProcessCDR(1,14469143,1,1,2) [2025-02-13 21:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469143', 'tblTempUsageDetail_20' ) start [2025-02-13 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469143', 'tblTempUsageDetail_20' ) end [2025-02-13 21:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 21:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 21:26:22] Production.INFO: ==10739== Releasing lock... [2025-02-13 21:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 21:26:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-13 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 18:27:05 [end_date_ymd] => 2025-02-13 21:27:05 [RateCDR] => 1 ) [2025-02-13 21: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-02-13 18:27:05' and `end` < '2025-02-13 21: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-02-13 21:27:19] Production.INFO: count ==1673 [2025-02-13 21:27:19] Production.ERROR: pbx CDR StartTime 2025-02-13 18:27:05 - End Time 2025-02-13 21:27:05 [2025-02-13 21:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469148', 'tblTempUsageDetail_20' ) start [2025-02-13 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469148', 'tblTempUsageDetail_20' ) end [2025-02-13 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469148', 'tblTempVendorCDR_20' ) start [2025-02-13 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469148', 'tblTempVendorCDR_20' ) end [2025-02-13 21:27:19] Production.INFO: ProcessCDR(1,14469148,1,1,2) [2025-02-13 21:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469148', 'tblTempUsageDetail_20' ) start [2025-02-13 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469148', 'tblTempUsageDetail_20' ) end [2025-02-13 21:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 21:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 21:27:23] Production.INFO: ==10811== Releasing lock... [2025-02-13 21:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 21:27:23] Production.INFO: 40.25 MB #Memory Used# [2025-02-13 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 18:28:05 [end_date_ymd] => 2025-02-13 21:28:05 [RateCDR] => 1 ) [2025-02-13 21: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-02-13 18:28:05' and `end` < '2025-02-13 21: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-02-13 21:28:27] Production.INFO: count ==1679 [2025-02-13 21:28:27] Production.ERROR: pbx CDR StartTime 2025-02-13 18:28:05 - End Time 2025-02-13 21:28:05 [2025-02-13 21:28:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 21:28:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469153', 'tblTempUsageDetail_20' ) start [2025-02-13 21:28:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469153', 'tblTempUsageDetail_20' ) end [2025-02-13 21:28:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469153', 'tblTempVendorCDR_20' ) start [2025-02-13 21:28:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469153', 'tblTempVendorCDR_20' ) end [2025-02-13 21:28:27] Production.INFO: ProcessCDR(1,14469153,1,1,2) [2025-02-13 21:28:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:28:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:28:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:28:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:28:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469153', 'tblTempUsageDetail_20' ) start [2025-02-13 21:28:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469153', 'tblTempUsageDetail_20' ) end [2025-02-13 21:28:32] Production.ERROR: pbx prc_insertCDR start [2025-02-13 21:28:32] Production.ERROR: pbx prc_insertCDR end [2025-02-13 21:28:32] Production.INFO: ==10920== Releasing lock... [2025-02-13 21:28:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 21:28:32] Production.INFO: 40.5 MB #Memory Used# [2025-02-13 21:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 18:29:06 [end_date_ymd] => 2025-02-13 21:29:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 18:29:06' and `end` < '2025-02-13 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-02-13 21:29:22] Production.INFO: count ==1677 [2025-02-13 21:29:22] Production.ERROR: pbx CDR StartTime 2025-02-13 18:29:06 - End Time 2025-02-13 21:29:06 [2025-02-13 21:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 21:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469158', 'tblTempUsageDetail_20' ) start [2025-02-13 21:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469158', 'tblTempUsageDetail_20' ) end [2025-02-13 21:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469158', 'tblTempVendorCDR_20' ) start [2025-02-13 21:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469158', 'tblTempVendorCDR_20' ) end [2025-02-13 21:29:22] Production.INFO: ProcessCDR(1,14469158,1,1,2) [2025-02-13 21:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469158', 'tblTempUsageDetail_20' ) start [2025-02-13 21:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469158', 'tblTempUsageDetail_20' ) end [2025-02-13 21:29:26] Production.ERROR: pbx prc_insertCDR start [2025-02-13 21:29:26] Production.ERROR: pbx prc_insertCDR end [2025-02-13 21:29:26] Production.INFO: ==10995== Releasing lock... [2025-02-13 21:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 21:29:26] Production.INFO: 40.25 MB #Memory Used# [2025-02-13 21:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 18:30:05 [end_date_ymd] => 2025-02-13 21:30:05 [RateCDR] => 1 ) [2025-02-13 21: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-02-13 18:30:05' and `end` < '2025-02-13 21: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-02-13 21:30:19] Production.INFO: count ==1679 [2025-02-13 21:30:19] Production.ERROR: pbx CDR StartTime 2025-02-13 18:30:05 - End Time 2025-02-13 21:30:05 [2025-02-13 21:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469164', 'tblTempUsageDetail_20' ) start [2025-02-13 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469164', 'tblTempUsageDetail_20' ) end [2025-02-13 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469164', 'tblTempVendorCDR_20' ) start [2025-02-13 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469164', 'tblTempVendorCDR_20' ) end [2025-02-13 21:30:19] Production.INFO: ProcessCDR(1,14469164,1,1,2) [2025-02-13 21:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469164', 'tblTempUsageDetail_20' ) start [2025-02-13 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469164', 'tblTempUsageDetail_20' ) end [2025-02-13 21:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 21:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 21:30:22] Production.INFO: ==11076== Releasing lock... [2025-02-13 21:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 21:30:22] Production.INFO: 40.5 MB #Memory Used# [2025-02-13 21:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 18:31:06 [end_date_ymd] => 2025-02-13 21:31:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 18:31:06' and `end` < '2025-02-13 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-02-13 21:31:19] Production.INFO: count ==1670 [2025-02-13 21:31:19] Production.ERROR: pbx CDR StartTime 2025-02-13 18:31:06 - End Time 2025-02-13 21:31:06 [2025-02-13 21:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469169', 'tblTempUsageDetail_20' ) start [2025-02-13 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469169', 'tblTempUsageDetail_20' ) end [2025-02-13 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469169', 'tblTempVendorCDR_20' ) start [2025-02-13 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469169', 'tblTempVendorCDR_20' ) end [2025-02-13 21:31:19] Production.INFO: ProcessCDR(1,14469169,1,1,2) [2025-02-13 21:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469169', 'tblTempUsageDetail_20' ) start [2025-02-13 21:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469169', 'tblTempUsageDetail_20' ) end [2025-02-13 21:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 21:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 21:31:23] Production.INFO: ==11150== Releasing lock... [2025-02-13 21:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 21:31:23] Production.INFO: 40.5 MB #Memory Used# [2025-02-13 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 18:32:05 [end_date_ymd] => 2025-02-13 21:32:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 18:32:05' and `end` < '2025-02-13 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-02-13 21:32:18] Production.INFO: count ==1676 [2025-02-13 21:32:19] Production.ERROR: pbx CDR StartTime 2025-02-13 18:32:05 - End Time 2025-02-13 21:32:05 [2025-02-13 21:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469174', 'tblTempUsageDetail_20' ) start [2025-02-13 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469174', 'tblTempUsageDetail_20' ) end [2025-02-13 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469174', 'tblTempVendorCDR_20' ) start [2025-02-13 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469174', 'tblTempVendorCDR_20' ) end [2025-02-13 21:32:19] Production.INFO: ProcessCDR(1,14469174,1,1,2) [2025-02-13 21:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469174', 'tblTempUsageDetail_20' ) start [2025-02-13 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469174', 'tblTempUsageDetail_20' ) end [2025-02-13 21:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 21:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 21:32:22] Production.INFO: ==11219== Releasing lock... [2025-02-13 21:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 21:32:22] Production.INFO: 40.5 MB #Memory Used# [2025-02-13 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 18:33:05 [end_date_ymd] => 2025-02-13 21:33:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 18:33:05' and `end` < '2025-02-13 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-02-13 21:33:18] Production.INFO: count ==1675 [2025-02-13 21:33:19] Production.ERROR: pbx CDR StartTime 2025-02-13 18:33:05 - End Time 2025-02-13 21:33:05 [2025-02-13 21:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469179', 'tblTempUsageDetail_20' ) start [2025-02-13 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469179', 'tblTempUsageDetail_20' ) end [2025-02-13 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469179', 'tblTempVendorCDR_20' ) start [2025-02-13 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469179', 'tblTempVendorCDR_20' ) end [2025-02-13 21:33:19] Production.INFO: ProcessCDR(1,14469179,1,1,2) [2025-02-13 21:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469179', 'tblTempUsageDetail_20' ) start [2025-02-13 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469179', 'tblTempUsageDetail_20' ) end [2025-02-13 21:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 21:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 21:33:22] Production.INFO: ==11318== Releasing lock... [2025-02-13 21:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 21:33:22] Production.INFO: 40.5 MB #Memory Used# [2025-02-13 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 18:34:05 [end_date_ymd] => 2025-02-13 21:34:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 18:34:05' and `end` < '2025-02-13 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-02-13 21:34:18] Production.INFO: count ==1673 [2025-02-13 21:34:19] Production.ERROR: pbx CDR StartTime 2025-02-13 18:34:05 - End Time 2025-02-13 21:34:05 [2025-02-13 21:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469184', 'tblTempUsageDetail_20' ) start [2025-02-13 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469184', 'tblTempUsageDetail_20' ) end [2025-02-13 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469184', 'tblTempVendorCDR_20' ) start [2025-02-13 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469184', 'tblTempVendorCDR_20' ) end [2025-02-13 21:34:19] Production.INFO: ProcessCDR(1,14469184,1,1,2) [2025-02-13 21:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469184', 'tblTempUsageDetail_20' ) start [2025-02-13 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469184', 'tblTempUsageDetail_20' ) end [2025-02-13 21:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 21:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 21:34:22] Production.INFO: ==11391== Releasing lock... [2025-02-13 21:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 21:34:22] Production.INFO: 40.5 MB #Memory Used# [2025-02-13 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 18:35:05 [end_date_ymd] => 2025-02-13 21:35:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 18:35:05' and `end` < '2025-02-13 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-02-13 21:35:18] Production.INFO: count ==1675 [2025-02-13 21:35:19] Production.ERROR: pbx CDR StartTime 2025-02-13 18:35:05 - End Time 2025-02-13 21:35:05 [2025-02-13 21:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469189', 'tblTempUsageDetail_20' ) start [2025-02-13 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469189', 'tblTempUsageDetail_20' ) end [2025-02-13 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469189', 'tblTempVendorCDR_20' ) start [2025-02-13 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469189', 'tblTempVendorCDR_20' ) end [2025-02-13 21:35:19] Production.INFO: ProcessCDR(1,14469189,1,1,2) [2025-02-13 21:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469189', 'tblTempUsageDetail_20' ) start [2025-02-13 21:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469189', 'tblTempUsageDetail_20' ) end [2025-02-13 21:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 21:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 21:35:22] Production.INFO: ==11461== Releasing lock... [2025-02-13 21:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 21:35:22] Production.INFO: 40.5 MB #Memory Used# [2025-02-13 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 18:36:05 [end_date_ymd] => 2025-02-13 21:36:05 [RateCDR] => 1 ) [2025-02-13 21: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-02-13 18:36:05' and `end` < '2025-02-13 21: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-02-13 21:36:19] Production.INFO: count ==1670 [2025-02-13 21:36:19] Production.ERROR: pbx CDR StartTime 2025-02-13 18:36:05 - End Time 2025-02-13 21:36:05 [2025-02-13 21:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469194', 'tblTempUsageDetail_20' ) start [2025-02-13 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469194', 'tblTempUsageDetail_20' ) end [2025-02-13 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469194', 'tblTempVendorCDR_20' ) start [2025-02-13 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469194', 'tblTempVendorCDR_20' ) end [2025-02-13 21:36:19] Production.INFO: ProcessCDR(1,14469194,1,1,2) [2025-02-13 21:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469194', 'tblTempUsageDetail_20' ) start [2025-02-13 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469194', 'tblTempUsageDetail_20' ) end [2025-02-13 21:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 21:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 21:36:22] Production.INFO: ==11538== Releasing lock... [2025-02-13 21:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 21:36:22] Production.INFO: 40.5 MB #Memory Used# [2025-02-13 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 18:37:05 [end_date_ymd] => 2025-02-13 21:37:05 [RateCDR] => 1 ) [2025-02-13 21: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-02-13 18:37:05' and `end` < '2025-02-13 21: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-02-13 21:37:19] Production.INFO: count ==1665 [2025-02-13 21:37:19] Production.ERROR: pbx CDR StartTime 2025-02-13 18:37:05 - End Time 2025-02-13 21:37:05 [2025-02-13 21:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469199', 'tblTempUsageDetail_20' ) start [2025-02-13 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469199', 'tblTempUsageDetail_20' ) end [2025-02-13 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469199', 'tblTempVendorCDR_20' ) start [2025-02-13 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469199', 'tblTempVendorCDR_20' ) end [2025-02-13 21:37:19] Production.INFO: ProcessCDR(1,14469199,1,1,2) [2025-02-13 21:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469199', 'tblTempUsageDetail_20' ) start [2025-02-13 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469199', 'tblTempUsageDetail_20' ) end [2025-02-13 21:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 21:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 21:37:22] Production.INFO: ==11611== Releasing lock... [2025-02-13 21:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 21:37:22] Production.INFO: 40.25 MB #Memory Used# [2025-02-13 21:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 18:38:04 [end_date_ymd] => 2025-02-13 21:38:04 [RateCDR] => 1 ) [2025-02-13 21:38: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-02-13 18:38:04' and `end` < '2025-02-13 21:38: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-02-13 21:38:18] Production.INFO: count ==1664 [2025-02-13 21:38:18] Production.ERROR: pbx CDR StartTime 2025-02-13 18:38:04 - End Time 2025-02-13 21:38:04 [2025-02-13 21:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469204', 'tblTempUsageDetail_20' ) start [2025-02-13 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469204', 'tblTempUsageDetail_20' ) end [2025-02-13 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469204', 'tblTempVendorCDR_20' ) start [2025-02-13 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469204', 'tblTempVendorCDR_20' ) end [2025-02-13 21:38:18] Production.INFO: ProcessCDR(1,14469204,1,1,2) [2025-02-13 21:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469204', 'tblTempUsageDetail_20' ) start [2025-02-13 21:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469204', 'tblTempUsageDetail_20' ) end [2025-02-13 21:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 21:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 21:38:21] Production.INFO: ==11685== Releasing lock... [2025-02-13 21:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 21:38:21] Production.INFO: 40.25 MB #Memory Used# [2025-02-13 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 18:39:05 [end_date_ymd] => 2025-02-13 21:39:05 [RateCDR] => 1 ) [2025-02-13 21: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-02-13 18:39:05' and `end` < '2025-02-13 21: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-02-13 21:39:19] Production.INFO: count ==1667 [2025-02-13 21:39:19] Production.ERROR: pbx CDR StartTime 2025-02-13 18:39:05 - End Time 2025-02-13 21:39:05 [2025-02-13 21:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469209', 'tblTempUsageDetail_20' ) start [2025-02-13 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469209', 'tblTempUsageDetail_20' ) end [2025-02-13 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469209', 'tblTempVendorCDR_20' ) start [2025-02-13 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469209', 'tblTempVendorCDR_20' ) end [2025-02-13 21:39:19] Production.INFO: ProcessCDR(1,14469209,1,1,2) [2025-02-13 21:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469209', 'tblTempUsageDetail_20' ) start [2025-02-13 21:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469209', 'tblTempUsageDetail_20' ) end [2025-02-13 21:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 21:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 21:39:23] Production.INFO: ==11756== Releasing lock... [2025-02-13 21:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 21:39:23] Production.INFO: 40.5 MB #Memory Used# [2025-02-13 21:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 18:40:05 [end_date_ymd] => 2025-02-13 21:40:05 [RateCDR] => 1 ) [2025-02-13 21: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-02-13 18:40:05' and `end` < '2025-02-13 21: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-02-13 21:40:18] Production.INFO: count ==1662 [2025-02-13 21:40:19] Production.ERROR: pbx CDR StartTime 2025-02-13 18:40:05 - End Time 2025-02-13 21:40:05 [2025-02-13 21:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469212', 'tblTempUsageDetail_20' ) start [2025-02-13 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469212', 'tblTempUsageDetail_20' ) end [2025-02-13 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469212', 'tblTempVendorCDR_20' ) start [2025-02-13 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469212', 'tblTempVendorCDR_20' ) end [2025-02-13 21:40:19] Production.INFO: ProcessCDR(1,14469212,1,1,2) [2025-02-13 21:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469212', 'tblTempUsageDetail_20' ) start [2025-02-13 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469212', 'tblTempUsageDetail_20' ) end [2025-02-13 21:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 21:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 21:40:22] Production.INFO: ==11835== Releasing lock... [2025-02-13 21:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 21:40:22] Production.INFO: 40.25 MB #Memory Used# [2025-02-13 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 18:41:05 [end_date_ymd] => 2025-02-13 21:41:05 [RateCDR] => 1 ) [2025-02-13 21: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-02-13 18:41:05' and `end` < '2025-02-13 21: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-02-13 21:41:18] Production.INFO: count ==1611 [2025-02-13 21:41:19] Production.ERROR: pbx CDR StartTime 2025-02-13 18:41:05 - End Time 2025-02-13 21:41:05 [2025-02-13 21:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469220', 'tblTempUsageDetail_20' ) start [2025-02-13 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469220', 'tblTempUsageDetail_20' ) end [2025-02-13 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469220', 'tblTempVendorCDR_20' ) start [2025-02-13 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469220', 'tblTempVendorCDR_20' ) end [2025-02-13 21:41:19] Production.INFO: ProcessCDR(1,14469220,1,1,2) [2025-02-13 21:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469220', 'tblTempUsageDetail_20' ) start [2025-02-13 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469220', 'tblTempUsageDetail_20' ) end [2025-02-13 21:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 21:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 21:41:22] Production.INFO: ==11911== Releasing lock... [2025-02-13 21:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 21:41:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-13 21:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 18:42:06 [end_date_ymd] => 2025-02-13 21:42:06 [RateCDR] => 1 ) [2025-02-13 21: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-02-13 18:42:06' and `end` < '2025-02-13 21: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-02-13 21:42:19] Production.INFO: count ==1607 [2025-02-13 21:42:19] Production.ERROR: pbx CDR StartTime 2025-02-13 18:42:06 - End Time 2025-02-13 21:42:06 [2025-02-13 21:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469225', 'tblTempUsageDetail_20' ) start [2025-02-13 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469225', 'tblTempUsageDetail_20' ) end [2025-02-13 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469225', 'tblTempVendorCDR_20' ) start [2025-02-13 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469225', 'tblTempVendorCDR_20' ) end [2025-02-13 21:42:19] Production.INFO: ProcessCDR(1,14469225,1,1,2) [2025-02-13 21:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469225', 'tblTempUsageDetail_20' ) start [2025-02-13 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469225', 'tblTempUsageDetail_20' ) end [2025-02-13 21:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 21:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 21:42:22] Production.INFO: ==11989== Releasing lock... [2025-02-13 21:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 21:42:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-13 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 18:43:05 [end_date_ymd] => 2025-02-13 21:43:05 [RateCDR] => 1 ) [2025-02-13 21: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-02-13 18:43:05' and `end` < '2025-02-13 21: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-02-13 21:43:18] Production.INFO: count ==1610 [2025-02-13 21:43:18] Production.ERROR: pbx CDR StartTime 2025-02-13 18:43:05 - End Time 2025-02-13 21:43:05 [2025-02-13 21:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469230', 'tblTempUsageDetail_20' ) start [2025-02-13 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469230', 'tblTempUsageDetail_20' ) end [2025-02-13 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469230', 'tblTempVendorCDR_20' ) start [2025-02-13 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469230', 'tblTempVendorCDR_20' ) end [2025-02-13 21:43:19] Production.INFO: ProcessCDR(1,14469230,1,1,2) [2025-02-13 21:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469230', 'tblTempUsageDetail_20' ) start [2025-02-13 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469230', 'tblTempUsageDetail_20' ) end [2025-02-13 21:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 21:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 21:43:22] Production.INFO: ==12066== Releasing lock... [2025-02-13 21:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 21:43:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-13 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 18:44:05 [end_date_ymd] => 2025-02-13 21:44:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 18:44:05' and `end` < '2025-02-13 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-02-13 21:44:18] Production.INFO: count ==1608 [2025-02-13 21:44:19] Production.ERROR: pbx CDR StartTime 2025-02-13 18:44:05 - End Time 2025-02-13 21:44:05 [2025-02-13 21:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469235', 'tblTempUsageDetail_20' ) start [2025-02-13 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469235', 'tblTempUsageDetail_20' ) end [2025-02-13 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469235', 'tblTempVendorCDR_20' ) start [2025-02-13 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469235', 'tblTempVendorCDR_20' ) end [2025-02-13 21:44:19] Production.INFO: ProcessCDR(1,14469235,1,1,2) [2025-02-13 21:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469235', 'tblTempUsageDetail_20' ) start [2025-02-13 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469235', 'tblTempUsageDetail_20' ) end [2025-02-13 21:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 21:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 21:44:22] Production.INFO: ==12186== Releasing lock... [2025-02-13 21:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 21:44:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-13 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 18:45:05 [end_date_ymd] => 2025-02-13 21:45:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 18:45:05' and `end` < '2025-02-13 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-02-13 21:45:18] Production.INFO: count ==1596 [2025-02-13 21:45:18] Production.ERROR: pbx CDR StartTime 2025-02-13 18:45:05 - End Time 2025-02-13 21:45:05 [2025-02-13 21:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469240', 'tblTempUsageDetail_20' ) start [2025-02-13 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469240', 'tblTempUsageDetail_20' ) end [2025-02-13 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469240', 'tblTempVendorCDR_20' ) start [2025-02-13 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469240', 'tblTempVendorCDR_20' ) end [2025-02-13 21:45:18] Production.INFO: ProcessCDR(1,14469240,1,1,2) [2025-02-13 21:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469240', 'tblTempUsageDetail_20' ) start [2025-02-13 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469240', 'tblTempUsageDetail_20' ) end [2025-02-13 21:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 21:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 21:45:22] Production.INFO: ==12261== Releasing lock... [2025-02-13 21:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 21:45:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-13 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 18:46:05 [end_date_ymd] => 2025-02-13 21:46:05 [RateCDR] => 1 ) [2025-02-13 21: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-02-13 18:46:05' and `end` < '2025-02-13 21: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-02-13 21:46:19] Production.INFO: count ==1596 [2025-02-13 21:46:19] Production.ERROR: pbx CDR StartTime 2025-02-13 18:46:05 - End Time 2025-02-13 21:46:05 [2025-02-13 21:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469245', 'tblTempUsageDetail_20' ) start [2025-02-13 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469245', 'tblTempUsageDetail_20' ) end [2025-02-13 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469245', 'tblTempVendorCDR_20' ) start [2025-02-13 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469245', 'tblTempVendorCDR_20' ) end [2025-02-13 21:46:19] Production.INFO: ProcessCDR(1,14469245,1,1,2) [2025-02-13 21:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469245', 'tblTempUsageDetail_20' ) start [2025-02-13 21:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469245', 'tblTempUsageDetail_20' ) end [2025-02-13 21:46:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 21:46:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 21:46:24] Production.INFO: ==12338== Releasing lock... [2025-02-13 21:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 21:46:24] Production.INFO: 40 MB #Memory Used# [2025-02-13 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 18:47:05 [end_date_ymd] => 2025-02-13 21:47:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 18:47:05' and `end` < '2025-02-13 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-02-13 21:47:18] Production.INFO: count ==1595 [2025-02-13 21:47:18] Production.ERROR: pbx CDR StartTime 2025-02-13 18:47:05 - End Time 2025-02-13 21:47:05 [2025-02-13 21:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469250', 'tblTempUsageDetail_20' ) start [2025-02-13 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469250', 'tblTempUsageDetail_20' ) end [2025-02-13 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469250', 'tblTempVendorCDR_20' ) start [2025-02-13 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469250', 'tblTempVendorCDR_20' ) end [2025-02-13 21:47:18] Production.INFO: ProcessCDR(1,14469250,1,1,2) [2025-02-13 21:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469250', 'tblTempUsageDetail_20' ) start [2025-02-13 21:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469250', 'tblTempUsageDetail_20' ) end [2025-02-13 21:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 21:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 21:47:21] Production.INFO: ==12415== Releasing lock... [2025-02-13 21:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 21:47:21] Production.INFO: 39.75 MB #Memory Used# [2025-02-13 21:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 18:48:06 [end_date_ymd] => 2025-02-13 21:48:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 18:48:06' and `end` < '2025-02-13 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-02-13 21:48:19] Production.INFO: count ==1585 [2025-02-13 21:48:19] Production.ERROR: pbx CDR StartTime 2025-02-13 18:48:06 - End Time 2025-02-13 21:48:06 [2025-02-13 21:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469255', 'tblTempUsageDetail_20' ) start [2025-02-13 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469255', 'tblTempUsageDetail_20' ) end [2025-02-13 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469255', 'tblTempVendorCDR_20' ) start [2025-02-13 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469255', 'tblTempVendorCDR_20' ) end [2025-02-13 21:48:19] Production.INFO: ProcessCDR(1,14469255,1,1,2) [2025-02-13 21:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469255', 'tblTempUsageDetail_20' ) start [2025-02-13 21:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469255', 'tblTempUsageDetail_20' ) end [2025-02-13 21:48:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 21:48:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 21:48:24] Production.INFO: ==12493== Releasing lock... [2025-02-13 21:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 21:48:24] Production.INFO: 39.75 MB #Memory Used# [2025-02-13 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 18:49:05 [end_date_ymd] => 2025-02-13 21:49:05 [RateCDR] => 1 ) [2025-02-13 21: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-02-13 18:49:05' and `end` < '2025-02-13 21: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-02-13 21:49:18] Production.INFO: count ==1585 [2025-02-13 21:49:18] Production.ERROR: pbx CDR StartTime 2025-02-13 18:49:05 - End Time 2025-02-13 21:49:05 [2025-02-13 21:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469260', 'tblTempUsageDetail_20' ) start [2025-02-13 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469260', 'tblTempUsageDetail_20' ) end [2025-02-13 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469260', 'tblTempVendorCDR_20' ) start [2025-02-13 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469260', 'tblTempVendorCDR_20' ) end [2025-02-13 21:49:18] Production.INFO: ProcessCDR(1,14469260,1,1,2) [2025-02-13 21:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469260', 'tblTempUsageDetail_20' ) start [2025-02-13 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469260', 'tblTempUsageDetail_20' ) end [2025-02-13 21:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 21:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 21:49:22] Production.INFO: ==12572== Releasing lock... [2025-02-13 21:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 21:49:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-13 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 18:50:06 [end_date_ymd] => 2025-02-13 21:50:06 [RateCDR] => 1 ) [2025-02-13 21: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-02-13 18:50:06' and `end` < '2025-02-13 21: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-02-13 21:50:20] Production.INFO: count ==1585 [2025-02-13 21:50:20] Production.ERROR: pbx CDR StartTime 2025-02-13 18:50:06 - End Time 2025-02-13 21:50:06 [2025-02-13 21:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469265', 'tblTempUsageDetail_20' ) start [2025-02-13 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469265', 'tblTempUsageDetail_20' ) end [2025-02-13 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469265', 'tblTempVendorCDR_20' ) start [2025-02-13 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469265', 'tblTempVendorCDR_20' ) end [2025-02-13 21:50:20] Production.INFO: ProcessCDR(1,14469265,1,1,2) [2025-02-13 21:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469265', 'tblTempUsageDetail_20' ) start [2025-02-13 21:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469265', 'tblTempUsageDetail_20' ) end [2025-02-13 21:50:25] Production.ERROR: pbx prc_insertCDR start [2025-02-13 21:50:25] Production.ERROR: pbx prc_insertCDR end [2025-02-13 21:50:25] Production.INFO: ==12658== Releasing lock... [2025-02-13 21:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 21:50:25] Production.INFO: 39.75 MB #Memory Used# [2025-02-13 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 18:51:05 [end_date_ymd] => 2025-02-13 21:51:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 18:51:05' and `end` < '2025-02-13 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-02-13 21:51:24] Production.INFO: count ==1560 [2025-02-13 21:51:24] Production.ERROR: pbx CDR StartTime 2025-02-13 18:51:05 - End Time 2025-02-13 21:51:05 [2025-02-13 21:51:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 21:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469271', 'tblTempUsageDetail_20' ) start [2025-02-13 21:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469271', 'tblTempUsageDetail_20' ) end [2025-02-13 21:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469271', 'tblTempVendorCDR_20' ) start [2025-02-13 21:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469271', 'tblTempVendorCDR_20' ) end [2025-02-13 21:51:24] Production.INFO: ProcessCDR(1,14469271,1,1,2) [2025-02-13 21:51:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469271', 'tblTempUsageDetail_20' ) start [2025-02-13 21:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469271', 'tblTempUsageDetail_20' ) end [2025-02-13 21:51:28] Production.ERROR: pbx prc_insertCDR start [2025-02-13 21:51:28] Production.ERROR: pbx prc_insertCDR end [2025-02-13 21:51:28] Production.INFO: ==12734== Releasing lock... [2025-02-13 21:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 21:51:28] Production.INFO: 39.5 MB #Memory Used# [2025-02-13 21:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 18:52:06 [end_date_ymd] => 2025-02-13 21:52:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 18:52:06' and `end` < '2025-02-13 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-02-13 21:52:21] Production.INFO: count ==1567 [2025-02-13 21:52:22] Production.ERROR: pbx CDR StartTime 2025-02-13 18:52:06 - End Time 2025-02-13 21:52:06 [2025-02-13 21:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 21:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469276', 'tblTempUsageDetail_20' ) start [2025-02-13 21:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469276', 'tblTempUsageDetail_20' ) end [2025-02-13 21:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469276', 'tblTempVendorCDR_20' ) start [2025-02-13 21:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469276', 'tblTempVendorCDR_20' ) end [2025-02-13 21:52:22] Production.INFO: ProcessCDR(1,14469276,1,1,2) [2025-02-13 21:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469276', 'tblTempUsageDetail_20' ) start [2025-02-13 21:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469276', 'tblTempUsageDetail_20' ) end [2025-02-13 21:52:27] Production.ERROR: pbx prc_insertCDR start [2025-02-13 21:52:27] Production.ERROR: pbx prc_insertCDR end [2025-02-13 21:52:27] Production.INFO: ==12814== Releasing lock... [2025-02-13 21:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 21:52:27] Production.INFO: 39.5 MB #Memory Used# [2025-02-13 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 18:53:05 [end_date_ymd] => 2025-02-13 21:53:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 18:53:05' and `end` < '2025-02-13 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-02-13 21:53:19] Production.INFO: count ==1566 [2025-02-13 21:53:19] Production.ERROR: pbx CDR StartTime 2025-02-13 18:53:05 - End Time 2025-02-13 21:53:05 [2025-02-13 21:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469281', 'tblTempUsageDetail_20' ) start [2025-02-13 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469281', 'tblTempUsageDetail_20' ) end [2025-02-13 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469281', 'tblTempVendorCDR_20' ) start [2025-02-13 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469281', 'tblTempVendorCDR_20' ) end [2025-02-13 21:53:19] Production.INFO: ProcessCDR(1,14469281,1,1,2) [2025-02-13 21:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469281', 'tblTempUsageDetail_20' ) start [2025-02-13 21:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469281', 'tblTempUsageDetail_20' ) end [2025-02-13 21:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 21:53:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 21:53:24] Production.INFO: ==12893== Releasing lock... [2025-02-13 21:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 21:53:24] Production.INFO: 39.75 MB #Memory Used# [2025-02-13 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 18:54:05 [end_date_ymd] => 2025-02-13 21:54:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 18:54:05' and `end` < '2025-02-13 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-02-13 21:54:19] Production.INFO: count ==1561 [2025-02-13 21:54:19] Production.ERROR: pbx CDR StartTime 2025-02-13 18:54:05 - End Time 2025-02-13 21:54:05 [2025-02-13 21:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469286', 'tblTempUsageDetail_20' ) start [2025-02-13 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469286', 'tblTempUsageDetail_20' ) end [2025-02-13 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469286', 'tblTempVendorCDR_20' ) start [2025-02-13 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469286', 'tblTempVendorCDR_20' ) end [2025-02-13 21:54:19] Production.INFO: ProcessCDR(1,14469286,1,1,2) [2025-02-13 21:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469286', 'tblTempUsageDetail_20' ) start [2025-02-13 21:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469286', 'tblTempUsageDetail_20' ) end [2025-02-13 21:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 21:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 21:54:23] Production.INFO: ==12970== Releasing lock... [2025-02-13 21:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 21:54:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-13 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 18:55:05 [end_date_ymd] => 2025-02-13 21:55:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 18:55:05' and `end` < '2025-02-13 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-02-13 21:55:18] Production.INFO: count ==1558 [2025-02-13 21:55:18] Production.ERROR: pbx CDR StartTime 2025-02-13 18:55:05 - End Time 2025-02-13 21:55:05 [2025-02-13 21:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469291', 'tblTempUsageDetail_20' ) start [2025-02-13 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469291', 'tblTempUsageDetail_20' ) end [2025-02-13 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469291', 'tblTempVendorCDR_20' ) start [2025-02-13 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469291', 'tblTempVendorCDR_20' ) end [2025-02-13 21:55:19] Production.INFO: ProcessCDR(1,14469291,1,1,2) [2025-02-13 21:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469291', 'tblTempUsageDetail_20' ) start [2025-02-13 21:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469291', 'tblTempUsageDetail_20' ) end [2025-02-13 21:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 21:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 21:55:23] Production.INFO: ==13045== Releasing lock... [2025-02-13 21:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 21:55:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-13 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 18:56:05 [end_date_ymd] => 2025-02-13 21:56:05 [RateCDR] => 1 ) [2025-02-13 21: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-02-13 18:56:05' and `end` < '2025-02-13 21: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-02-13 21:56:18] Production.INFO: count ==1544 [2025-02-13 21:56:18] Production.ERROR: pbx CDR StartTime 2025-02-13 18:56:05 - End Time 2025-02-13 21:56:05 [2025-02-13 21:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469296', 'tblTempUsageDetail_20' ) start [2025-02-13 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469296', 'tblTempUsageDetail_20' ) end [2025-02-13 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469296', 'tblTempVendorCDR_20' ) start [2025-02-13 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469296', 'tblTempVendorCDR_20' ) end [2025-02-13 21:56:18] Production.INFO: ProcessCDR(1,14469296,1,1,2) [2025-02-13 21:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469296', 'tblTempUsageDetail_20' ) start [2025-02-13 21:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469296', 'tblTempUsageDetail_20' ) end [2025-02-13 21:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 21:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 21:56:23] Production.INFO: ==13123== Releasing lock... [2025-02-13 21:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 21:56:23] Production.INFO: 39.25 MB #Memory Used# [2025-02-13 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 18:57:05 [end_date_ymd] => 2025-02-13 21:57:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 18:57:05' and `end` < '2025-02-13 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-02-13 21:57:18] Production.INFO: count ==1544 [2025-02-13 21:57:18] Production.ERROR: pbx CDR StartTime 2025-02-13 18:57:05 - End Time 2025-02-13 21:57:05 [2025-02-13 21:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469301', 'tblTempUsageDetail_20' ) start [2025-02-13 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469301', 'tblTempUsageDetail_20' ) end [2025-02-13 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469301', 'tblTempVendorCDR_20' ) start [2025-02-13 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469301', 'tblTempVendorCDR_20' ) end [2025-02-13 21:57:18] Production.INFO: ProcessCDR(1,14469301,1,1,2) [2025-02-13 21:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469301', 'tblTempUsageDetail_20' ) start [2025-02-13 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469301', 'tblTempUsageDetail_20' ) end [2025-02-13 21:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 21:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 21:57:22] Production.INFO: ==13215== Releasing lock... [2025-02-13 21:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 21:57:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-13 21:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 18:58:06 [end_date_ymd] => 2025-02-13 21:58:06 [RateCDR] => 1 ) [2025-02-13 21: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-02-13 18:58:06' and `end` < '2025-02-13 21: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-02-13 21:58:19] Production.INFO: count ==1541 [2025-02-13 21:58:19] Production.ERROR: pbx CDR StartTime 2025-02-13 18:58:06 - End Time 2025-02-13 21:58:06 [2025-02-13 21:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469306', 'tblTempUsageDetail_20' ) start [2025-02-13 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469306', 'tblTempUsageDetail_20' ) end [2025-02-13 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469306', 'tblTempVendorCDR_20' ) start [2025-02-13 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469306', 'tblTempVendorCDR_20' ) end [2025-02-13 21:58:19] Production.INFO: ProcessCDR(1,14469306,1,1,2) [2025-02-13 21:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469306', 'tblTempUsageDetail_20' ) start [2025-02-13 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469306', 'tblTempUsageDetail_20' ) end [2025-02-13 21:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 21:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 21:58:22] Production.INFO: ==13293== Releasing lock... [2025-02-13 21:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 21:58:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-13 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 18:59:05 [end_date_ymd] => 2025-02-13 21:59:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 18:59:05' and `end` < '2025-02-13 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-02-13 21:59:18] Production.INFO: count ==1534 [2025-02-13 21:59:18] Production.ERROR: pbx CDR StartTime 2025-02-13 18:59:05 - End Time 2025-02-13 21:59:05 [2025-02-13 21:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469311', 'tblTempUsageDetail_20' ) start [2025-02-13 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469311', 'tblTempUsageDetail_20' ) end [2025-02-13 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469311', 'tblTempVendorCDR_20' ) start [2025-02-13 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469311', 'tblTempVendorCDR_20' ) end [2025-02-13 21:59:19] Production.INFO: ProcessCDR(1,14469311,1,1,2) [2025-02-13 21:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 21:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469311', 'tblTempUsageDetail_20' ) start [2025-02-13 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469311', 'tblTempUsageDetail_20' ) end [2025-02-13 21:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 21:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 21:59:22] Production.INFO: ==13404== Releasing lock... [2025-02-13 21:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 21:59:22] Production.INFO: 39 MB #Memory Used# [2025-02-13 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 19:00:06 [end_date_ymd] => 2025-02-13 22:00:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 19:00:06' and `end` < '2025-02-13 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-02-13 22:00:19] Production.INFO: count ==1539 [2025-02-13 22:00:20] Production.ERROR: pbx CDR StartTime 2025-02-13 19:00:06 - End Time 2025-02-13 22:00:06 [2025-02-13 22:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469317', 'tblTempUsageDetail_20' ) start [2025-02-13 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469317', 'tblTempUsageDetail_20' ) end [2025-02-13 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469317', 'tblTempVendorCDR_20' ) start [2025-02-13 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469317', 'tblTempVendorCDR_20' ) end [2025-02-13 22:00:20] Production.INFO: ProcessCDR(1,14469317,1,1,2) [2025-02-13 22:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469317', 'tblTempUsageDetail_20' ) start [2025-02-13 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469317', 'tblTempUsageDetail_20' ) end [2025-02-13 22:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 22:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 22:00:24] Production.INFO: ==13488== Releasing lock... [2025-02-13 22:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 22:00:24] Production.INFO: 39.25 MB #Memory Used# [2025-02-13 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 19:01:05 [end_date_ymd] => 2025-02-13 22:01:05 [RateCDR] => 1 ) [2025-02-13 22: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-02-13 19:01:05' and `end` < '2025-02-13 22: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-02-13 22:01:19] Production.INFO: count ==1506 [2025-02-13 22:01:19] Production.ERROR: pbx CDR StartTime 2025-02-13 19:01:05 - End Time 2025-02-13 22:01:05 [2025-02-13 22:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469322', 'tblTempUsageDetail_20' ) start [2025-02-13 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469322', 'tblTempUsageDetail_20' ) end [2025-02-13 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469322', 'tblTempVendorCDR_20' ) start [2025-02-13 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469322', 'tblTempVendorCDR_20' ) end [2025-02-13 22:01:19] Production.INFO: ProcessCDR(1,14469322,1,1,2) [2025-02-13 22:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469322', 'tblTempUsageDetail_20' ) start [2025-02-13 22:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469322', 'tblTempUsageDetail_20' ) end [2025-02-13 22:01:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 22:01:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 22:01:24] Production.INFO: ==13578== Releasing lock... [2025-02-13 22:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 22:01:24] Production.INFO: 39 MB #Memory Used# [2025-02-13 22:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 19:02:06 [end_date_ymd] => 2025-02-13 22:02:06 [RateCDR] => 1 ) [2025-02-13 22: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-02-13 19:02:06' and `end` < '2025-02-13 22: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-02-13 22:02:19] Production.INFO: count ==1494 [2025-02-13 22:02:19] Production.ERROR: pbx CDR StartTime 2025-02-13 19:02:06 - End Time 2025-02-13 22:02:06 [2025-02-13 22:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469327', 'tblTempUsageDetail_20' ) start [2025-02-13 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469327', 'tblTempUsageDetail_20' ) end [2025-02-13 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469327', 'tblTempVendorCDR_20' ) start [2025-02-13 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469327', 'tblTempVendorCDR_20' ) end [2025-02-13 22:02:19] Production.INFO: ProcessCDR(1,14469327,1,1,2) [2025-02-13 22:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469327', 'tblTempUsageDetail_20' ) start [2025-02-13 22:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469327', 'tblTempUsageDetail_20' ) end [2025-02-13 22:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 22:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 22:02:23] Production.INFO: ==13658== Releasing lock... [2025-02-13 22:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 22:02:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-13 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 19:03:05 [end_date_ymd] => 2025-02-13 22:03:05 [RateCDR] => 1 ) [2025-02-13 22: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-02-13 19:03:05' and `end` < '2025-02-13 22: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-02-13 22:03:19] Production.INFO: count ==1490 [2025-02-13 22:03:19] Production.ERROR: pbx CDR StartTime 2025-02-13 19:03:05 - End Time 2025-02-13 22:03:05 [2025-02-13 22:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469332', 'tblTempUsageDetail_20' ) start [2025-02-13 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469332', 'tblTempUsageDetail_20' ) end [2025-02-13 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469332', 'tblTempVendorCDR_20' ) start [2025-02-13 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469332', 'tblTempVendorCDR_20' ) end [2025-02-13 22:03:19] Production.INFO: ProcessCDR(1,14469332,1,1,2) [2025-02-13 22:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469332', 'tblTempUsageDetail_20' ) start [2025-02-13 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469332', 'tblTempUsageDetail_20' ) end [2025-02-13 22:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 22:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 22:03:22] Production.INFO: ==13735== Releasing lock... [2025-02-13 22:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 22:03:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-13 22:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 19:04:06 [end_date_ymd] => 2025-02-13 22:04:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 19:04:06' and `end` < '2025-02-13 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-02-13 22:04:19] Production.INFO: count ==1489 [2025-02-13 22:04:19] Production.ERROR: pbx CDR StartTime 2025-02-13 19:04:06 - End Time 2025-02-13 22:04:06 [2025-02-13 22:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469337', 'tblTempUsageDetail_20' ) start [2025-02-13 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469337', 'tblTempUsageDetail_20' ) end [2025-02-13 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469337', 'tblTempVendorCDR_20' ) start [2025-02-13 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469337', 'tblTempVendorCDR_20' ) end [2025-02-13 22:04:19] Production.INFO: ProcessCDR(1,14469337,1,1,2) [2025-02-13 22:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469337', 'tblTempUsageDetail_20' ) start [2025-02-13 22:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469337', 'tblTempUsageDetail_20' ) end [2025-02-13 22:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 22:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 22:04:23] Production.INFO: ==13810== Releasing lock... [2025-02-13 22:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 22:04:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-13 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 19:05:05 [end_date_ymd] => 2025-02-13 22:05:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 19:05:05' and `end` < '2025-02-13 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-02-13 22:05:18] Production.INFO: count ==1488 [2025-02-13 22:05:18] Production.ERROR: pbx CDR StartTime 2025-02-13 19:05:05 - End Time 2025-02-13 22:05:05 [2025-02-13 22:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469342', 'tblTempUsageDetail_20' ) start [2025-02-13 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469342', 'tblTempUsageDetail_20' ) end [2025-02-13 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469342', 'tblTempVendorCDR_20' ) start [2025-02-13 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469342', 'tblTempVendorCDR_20' ) end [2025-02-13 22:05:18] Production.INFO: ProcessCDR(1,14469342,1,1,2) [2025-02-13 22:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469342', 'tblTempUsageDetail_20' ) start [2025-02-13 22:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469342', 'tblTempUsageDetail_20' ) end [2025-02-13 22:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 22:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 22:05:21] Production.INFO: ==13892== Releasing lock... [2025-02-13 22:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 22:05:21] Production.INFO: 38.75 MB #Memory Used# [2025-02-13 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 19:06:05 [end_date_ymd] => 2025-02-13 22:06:05 [RateCDR] => 1 ) [2025-02-13 22: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-02-13 19:06:05' and `end` < '2025-02-13 22: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-02-13 22:06:19] Production.INFO: count ==1482 [2025-02-13 22:06:19] Production.ERROR: pbx CDR StartTime 2025-02-13 19:06:05 - End Time 2025-02-13 22:06:05 [2025-02-13 22:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469347', 'tblTempUsageDetail_20' ) start [2025-02-13 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469347', 'tblTempUsageDetail_20' ) end [2025-02-13 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469347', 'tblTempVendorCDR_20' ) start [2025-02-13 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469347', 'tblTempVendorCDR_20' ) end [2025-02-13 22:06:19] Production.INFO: ProcessCDR(1,14469347,1,1,2) [2025-02-13 22:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469347', 'tblTempUsageDetail_20' ) start [2025-02-13 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469347', 'tblTempUsageDetail_20' ) end [2025-02-13 22:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 22:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 22:06:22] Production.INFO: ==14001== Releasing lock... [2025-02-13 22:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 22:06:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-13 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 19:07:05 [end_date_ymd] => 2025-02-13 22:07:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 19:07:05' and `end` < '2025-02-13 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-02-13 22:07:18] Production.INFO: count ==1480 [2025-02-13 22:07:19] Production.ERROR: pbx CDR StartTime 2025-02-13 19:07:05 - End Time 2025-02-13 22:07:05 [2025-02-13 22:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469352', 'tblTempUsageDetail_20' ) start [2025-02-13 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469352', 'tblTempUsageDetail_20' ) end [2025-02-13 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469352', 'tblTempVendorCDR_20' ) start [2025-02-13 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469352', 'tblTempVendorCDR_20' ) end [2025-02-13 22:07:19] Production.INFO: ProcessCDR(1,14469352,1,1,2) [2025-02-13 22:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469352', 'tblTempUsageDetail_20' ) start [2025-02-13 22:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469352', 'tblTempUsageDetail_20' ) end [2025-02-13 22:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 22:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 22:07:23] Production.INFO: ==14108== Releasing lock... [2025-02-13 22:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 22:07:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-13 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 19:08:05 [end_date_ymd] => 2025-02-13 22:08:05 [RateCDR] => 1 ) [2025-02-13 22: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-02-13 19:08:05' and `end` < '2025-02-13 22: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-02-13 22:08:19] Production.INFO: count ==1480 [2025-02-13 22:08:20] Production.ERROR: pbx CDR StartTime 2025-02-13 19:08:05 - End Time 2025-02-13 22:08:05 [2025-02-13 22:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 22:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469357', 'tblTempUsageDetail_20' ) start [2025-02-13 22:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469357', 'tblTempUsageDetail_20' ) end [2025-02-13 22:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469357', 'tblTempVendorCDR_20' ) start [2025-02-13 22:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469357', 'tblTempVendorCDR_20' ) end [2025-02-13 22:08:20] Production.INFO: ProcessCDR(1,14469357,1,1,2) [2025-02-13 22:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469357', 'tblTempUsageDetail_20' ) start [2025-02-13 22:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469357', 'tblTempUsageDetail_20' ) end [2025-02-13 22:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 22:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 22:08:23] Production.INFO: ==14218== Releasing lock... [2025-02-13 22:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 22:08:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-13 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 19:09:05 [end_date_ymd] => 2025-02-13 22:09:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 19:09:05' and `end` < '2025-02-13 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-02-13 22:09:18] Production.INFO: count ==1479 [2025-02-13 22:09:18] Production.ERROR: pbx CDR StartTime 2025-02-13 19:09:05 - End Time 2025-02-13 22:09:05 [2025-02-13 22:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469362', 'tblTempUsageDetail_20' ) start [2025-02-13 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469362', 'tblTempUsageDetail_20' ) end [2025-02-13 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469362', 'tblTempVendorCDR_20' ) start [2025-02-13 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469362', 'tblTempVendorCDR_20' ) end [2025-02-13 22:09:18] Production.INFO: ProcessCDR(1,14469362,1,1,2) [2025-02-13 22:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469362', 'tblTempUsageDetail_20' ) start [2025-02-13 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469362', 'tblTempUsageDetail_20' ) end [2025-02-13 22:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 22:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 22:09:22] Production.INFO: ==14330== Releasing lock... [2025-02-13 22:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 22:09:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-13 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 19:10:06 [end_date_ymd] => 2025-02-13 22:10:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 19:10:06' and `end` < '2025-02-13 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-02-13 22:10:19] Production.INFO: count ==1471 [2025-02-13 22:10:19] Production.ERROR: pbx CDR StartTime 2025-02-13 19:10:06 - End Time 2025-02-13 22:10:06 [2025-02-13 22:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469368', 'tblTempUsageDetail_20' ) start [2025-02-13 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469368', 'tblTempUsageDetail_20' ) end [2025-02-13 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469368', 'tblTempVendorCDR_20' ) start [2025-02-13 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469368', 'tblTempVendorCDR_20' ) end [2025-02-13 22:10:19] Production.INFO: ProcessCDR(1,14469368,1,1,2) [2025-02-13 22:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469368', 'tblTempUsageDetail_20' ) start [2025-02-13 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469368', 'tblTempUsageDetail_20' ) end [2025-02-13 22:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 22:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 22:10:22] Production.INFO: ==14433== Releasing lock... [2025-02-13 22:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 22:10:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-13 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 19:11:05 [end_date_ymd] => 2025-02-13 22:11:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 19:11:05' and `end` < '2025-02-13 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-02-13 22:11:18] Production.INFO: count ==1445 [2025-02-13 22:11:18] Production.ERROR: pbx CDR StartTime 2025-02-13 19:11:05 - End Time 2025-02-13 22:11:05 [2025-02-13 22:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469373', 'tblTempUsageDetail_20' ) start [2025-02-13 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469373', 'tblTempUsageDetail_20' ) end [2025-02-13 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469373', 'tblTempVendorCDR_20' ) start [2025-02-13 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469373', 'tblTempVendorCDR_20' ) end [2025-02-13 22:11:18] Production.INFO: ProcessCDR(1,14469373,1,1,2) [2025-02-13 22:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469373', 'tblTempUsageDetail_20' ) start [2025-02-13 22:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469373', 'tblTempUsageDetail_20' ) end [2025-02-13 22:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 22:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 22:11:23] Production.INFO: ==14543== Releasing lock... [2025-02-13 22:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 22:11:23] Production.INFO: 38.5 MB #Memory Used# [2025-02-13 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 19:12:05 [end_date_ymd] => 2025-02-13 22:12:05 [RateCDR] => 1 ) [2025-02-13 22: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-02-13 19:12:05' and `end` < '2025-02-13 22: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-02-13 22:12:19] Production.INFO: count ==1444 [2025-02-13 22:12:19] Production.ERROR: pbx CDR StartTime 2025-02-13 19:12:05 - End Time 2025-02-13 22:12:05 [2025-02-13 22:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469378', 'tblTempUsageDetail_20' ) start [2025-02-13 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469378', 'tblTempUsageDetail_20' ) end [2025-02-13 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469378', 'tblTempVendorCDR_20' ) start [2025-02-13 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469378', 'tblTempVendorCDR_20' ) end [2025-02-13 22:12:19] Production.INFO: ProcessCDR(1,14469378,1,1,2) [2025-02-13 22:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469378', 'tblTempUsageDetail_20' ) start [2025-02-13 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469378', 'tblTempUsageDetail_20' ) end [2025-02-13 22:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 22:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 22:12:22] Production.INFO: ==14650== Releasing lock... [2025-02-13 22:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 22:12:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-13 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 19:13:05 [end_date_ymd] => 2025-02-13 22:13:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 19:13:05' and `end` < '2025-02-13 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-02-13 22:13:19] Production.INFO: count ==1440 [2025-02-13 22:13:19] Production.ERROR: pbx CDR StartTime 2025-02-13 19:13:05 - End Time 2025-02-13 22:13:05 [2025-02-13 22:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469383', 'tblTempUsageDetail_20' ) start [2025-02-13 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469383', 'tblTempUsageDetail_20' ) end [2025-02-13 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469383', 'tblTempVendorCDR_20' ) start [2025-02-13 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469383', 'tblTempVendorCDR_20' ) end [2025-02-13 22:13:19] Production.INFO: ProcessCDR(1,14469383,1,1,2) [2025-02-13 22:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469383', 'tblTempUsageDetail_20' ) start [2025-02-13 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469383', 'tblTempUsageDetail_20' ) end [2025-02-13 22:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 22:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 22:13:22] Production.INFO: ==14750== Releasing lock... [2025-02-13 22:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 22:13:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-13 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 19:14:05 [end_date_ymd] => 2025-02-13 22:14:05 [RateCDR] => 1 ) [2025-02-13 22: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-02-13 19:14:05' and `end` < '2025-02-13 22: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-02-13 22:14:19] Production.INFO: count ==1439 [2025-02-13 22:14:19] Production.ERROR: pbx CDR StartTime 2025-02-13 19:14:05 - End Time 2025-02-13 22:14:05 [2025-02-13 22:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469388', 'tblTempUsageDetail_20' ) start [2025-02-13 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469388', 'tblTempUsageDetail_20' ) end [2025-02-13 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469388', 'tblTempVendorCDR_20' ) start [2025-02-13 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469388', 'tblTempVendorCDR_20' ) end [2025-02-13 22:14:19] Production.INFO: ProcessCDR(1,14469388,1,1,2) [2025-02-13 22:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469388', 'tblTempUsageDetail_20' ) start [2025-02-13 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469388', 'tblTempUsageDetail_20' ) end [2025-02-13 22:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 22:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 22:14:22] Production.INFO: ==14857== Releasing lock... [2025-02-13 22:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 22:14:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-13 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 19:15:05 [end_date_ymd] => 2025-02-13 22:15:05 [RateCDR] => 1 ) [2025-02-13 22: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-02-13 19:15:05' and `end` < '2025-02-13 22: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-02-13 22:15:19] Production.INFO: count ==1438 [2025-02-13 22:15:19] Production.ERROR: pbx CDR StartTime 2025-02-13 19:15:05 - End Time 2025-02-13 22:15:05 [2025-02-13 22:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469393', 'tblTempUsageDetail_20' ) start [2025-02-13 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469393', 'tblTempUsageDetail_20' ) end [2025-02-13 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469393', 'tblTempVendorCDR_20' ) start [2025-02-13 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469393', 'tblTempVendorCDR_20' ) end [2025-02-13 22:15:19] Production.INFO: ProcessCDR(1,14469393,1,1,2) [2025-02-13 22:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469393', 'tblTempUsageDetail_20' ) start [2025-02-13 22:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469393', 'tblTempUsageDetail_20' ) end [2025-02-13 22:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 22:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 22:15:22] Production.INFO: ==15001== Releasing lock... [2025-02-13 22:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 22:15:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-13 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 19:16:05 [end_date_ymd] => 2025-02-13 22:16:05 [RateCDR] => 1 ) [2025-02-13 22: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-02-13 19:16:05' and `end` < '2025-02-13 22: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-02-13 22:16:19] Production.INFO: count ==1435 [2025-02-13 22:16:19] Production.ERROR: pbx CDR StartTime 2025-02-13 19:16:05 - End Time 2025-02-13 22:16:05 [2025-02-13 22:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469398', 'tblTempUsageDetail_20' ) start [2025-02-13 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469398', 'tblTempUsageDetail_20' ) end [2025-02-13 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469398', 'tblTempVendorCDR_20' ) start [2025-02-13 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469398', 'tblTempVendorCDR_20' ) end [2025-02-13 22:16:19] Production.INFO: ProcessCDR(1,14469398,1,1,2) [2025-02-13 22:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469398', 'tblTempUsageDetail_20' ) start [2025-02-13 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469398', 'tblTempUsageDetail_20' ) end [2025-02-13 22:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 22:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 22:16:22] Production.INFO: ==15103== Releasing lock... [2025-02-13 22:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 22:16:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-13 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 19:17:05 [end_date_ymd] => 2025-02-13 22:17:05 [RateCDR] => 1 ) [2025-02-13 22: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-02-13 19:17:05' and `end` < '2025-02-13 22: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-02-13 22:17:18] Production.INFO: count ==1424 [2025-02-13 22:17:18] Production.ERROR: pbx CDR StartTime 2025-02-13 19:17:05 - End Time 2025-02-13 22:17:05 [2025-02-13 22:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469403', 'tblTempUsageDetail_20' ) start [2025-02-13 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469403', 'tblTempUsageDetail_20' ) end [2025-02-13 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469403', 'tblTempVendorCDR_20' ) start [2025-02-13 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469403', 'tblTempVendorCDR_20' ) end [2025-02-13 22:17:18] Production.INFO: ProcessCDR(1,14469403,1,1,2) [2025-02-13 22:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469403', 'tblTempUsageDetail_20' ) start [2025-02-13 22:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469403', 'tblTempUsageDetail_20' ) end [2025-02-13 22:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 22:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 22:17:23] Production.INFO: ==15227== Releasing lock... [2025-02-13 22:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 22:17:23] Production.INFO: 38.25 MB #Memory Used# [2025-02-13 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 19:18:05 [end_date_ymd] => 2025-02-13 22:18:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 19:18:05' and `end` < '2025-02-13 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-02-13 22:18:18] Production.INFO: count ==1424 [2025-02-13 22:18:18] Production.ERROR: pbx CDR StartTime 2025-02-13 19:18:05 - End Time 2025-02-13 22:18:05 [2025-02-13 22:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469408', 'tblTempUsageDetail_20' ) start [2025-02-13 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469408', 'tblTempUsageDetail_20' ) end [2025-02-13 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469408', 'tblTempVendorCDR_20' ) start [2025-02-13 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469408', 'tblTempVendorCDR_20' ) end [2025-02-13 22:18:18] Production.INFO: ProcessCDR(1,14469408,1,1,2) [2025-02-13 22:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469408', 'tblTempUsageDetail_20' ) start [2025-02-13 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469408', 'tblTempUsageDetail_20' ) end [2025-02-13 22:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 22:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 22:18:21] Production.INFO: ==15337== Releasing lock... [2025-02-13 22:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 22:18:21] Production.INFO: 38.25 MB #Memory Used# [2025-02-13 22:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 19:19:06 [end_date_ymd] => 2025-02-13 22:19:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 19:19:06' and `end` < '2025-02-13 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-02-13 22:19:19] Production.INFO: count ==1419 [2025-02-13 22:19:19] Production.ERROR: pbx CDR StartTime 2025-02-13 19:19:06 - End Time 2025-02-13 22:19:06 [2025-02-13 22:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469413', 'tblTempUsageDetail_20' ) start [2025-02-13 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469413', 'tblTempUsageDetail_20' ) end [2025-02-13 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469413', 'tblTempVendorCDR_20' ) start [2025-02-13 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469413', 'tblTempVendorCDR_20' ) end [2025-02-13 22:19:19] Production.INFO: ProcessCDR(1,14469413,1,1,2) [2025-02-13 22:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469413', 'tblTempUsageDetail_20' ) start [2025-02-13 22:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469413', 'tblTempUsageDetail_20' ) end [2025-02-13 22:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 22:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 22:19:23] Production.INFO: ==15447== Releasing lock... [2025-02-13 22:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 22:19:23] Production.INFO: 38.25 MB #Memory Used# [2025-02-13 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 19:20:06 [end_date_ymd] => 2025-02-13 22:20:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 19:20:06' and `end` < '2025-02-13 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-02-13 22:20:19] Production.INFO: count ==1412 [2025-02-13 22:20:19] Production.ERROR: pbx CDR StartTime 2025-02-13 19:20:06 - End Time 2025-02-13 22:20:06 [2025-02-13 22:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469418', 'tblTempUsageDetail_20' ) start [2025-02-13 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469418', 'tblTempUsageDetail_20' ) end [2025-02-13 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469418', 'tblTempVendorCDR_20' ) start [2025-02-13 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469418', 'tblTempVendorCDR_20' ) end [2025-02-13 22:20:19] Production.INFO: ProcessCDR(1,14469418,1,1,2) [2025-02-13 22:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469418', 'tblTempUsageDetail_20' ) start [2025-02-13 22:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469418', 'tblTempUsageDetail_20' ) end [2025-02-13 22:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 22:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 22:20:23] Production.INFO: ==15553== Releasing lock... [2025-02-13 22:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 22:20:23] Production.INFO: 38.25 MB #Memory Used# [2025-02-13 22:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 19:21:06 [end_date_ymd] => 2025-02-13 22:21:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 19:21:06' and `end` < '2025-02-13 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-02-13 22:21:19] Production.INFO: count ==1346 [2025-02-13 22:21:19] Production.ERROR: pbx CDR StartTime 2025-02-13 19:21:06 - End Time 2025-02-13 22:21:06 [2025-02-13 22:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469424', 'tblTempUsageDetail_20' ) start [2025-02-13 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469424', 'tblTempUsageDetail_20' ) end [2025-02-13 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469424', 'tblTempVendorCDR_20' ) start [2025-02-13 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469424', 'tblTempVendorCDR_20' ) end [2025-02-13 22:21:19] Production.INFO: ProcessCDR(1,14469424,1,1,2) [2025-02-13 22:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469424', 'tblTempUsageDetail_20' ) start [2025-02-13 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469424', 'tblTempUsageDetail_20' ) end [2025-02-13 22:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 22:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 22:21:22] Production.INFO: ==15664== Releasing lock... [2025-02-13 22:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 22:21:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-13 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 19:22:05 [end_date_ymd] => 2025-02-13 22:22:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 19:22:05' and `end` < '2025-02-13 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-02-13 22:22:18] Production.INFO: count ==1343 [2025-02-13 22:22:18] Production.ERROR: pbx CDR StartTime 2025-02-13 19:22:05 - End Time 2025-02-13 22:22:05 [2025-02-13 22:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469429', 'tblTempUsageDetail_20' ) start [2025-02-13 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469429', 'tblTempUsageDetail_20' ) end [2025-02-13 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469429', 'tblTempVendorCDR_20' ) start [2025-02-13 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469429', 'tblTempVendorCDR_20' ) end [2025-02-13 22:22:19] Production.INFO: ProcessCDR(1,14469429,1,1,2) [2025-02-13 22:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469429', 'tblTempUsageDetail_20' ) start [2025-02-13 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469429', 'tblTempUsageDetail_20' ) end [2025-02-13 22:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 22:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 22:22:22] Production.INFO: ==15755== Releasing lock... [2025-02-13 22:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 22:22:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-13 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 19:23:05 [end_date_ymd] => 2025-02-13 22:23:05 [RateCDR] => 1 ) [2025-02-13 22: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-02-13 19:23:05' and `end` < '2025-02-13 22: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-02-13 22:23:18] Production.INFO: count ==1342 [2025-02-13 22:23:19] Production.ERROR: pbx CDR StartTime 2025-02-13 19:23:05 - End Time 2025-02-13 22:23:05 [2025-02-13 22:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469434', 'tblTempUsageDetail_20' ) start [2025-02-13 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469434', 'tblTempUsageDetail_20' ) end [2025-02-13 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469434', 'tblTempVendorCDR_20' ) start [2025-02-13 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469434', 'tblTempVendorCDR_20' ) end [2025-02-13 22:23:19] Production.INFO: ProcessCDR(1,14469434,1,1,2) [2025-02-13 22:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469434', 'tblTempUsageDetail_20' ) start [2025-02-13 22:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469434', 'tblTempUsageDetail_20' ) end [2025-02-13 22:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 22:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 22:23:23] Production.INFO: ==15831== Releasing lock... [2025-02-13 22:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 22:23:23] Production.INFO: 37.75 MB #Memory Used# [2025-02-13 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 19:24:05 [end_date_ymd] => 2025-02-13 22:24:05 [RateCDR] => 1 ) [2025-02-13 22: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-02-13 19:24:05' and `end` < '2025-02-13 22: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-02-13 22:24:18] Production.INFO: count ==1341 [2025-02-13 22:24:18] Production.ERROR: pbx CDR StartTime 2025-02-13 19:24:05 - End Time 2025-02-13 22:24:05 [2025-02-13 22:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469439', 'tblTempUsageDetail_20' ) start [2025-02-13 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469439', 'tblTempUsageDetail_20' ) end [2025-02-13 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469439', 'tblTempVendorCDR_20' ) start [2025-02-13 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469439', 'tblTempVendorCDR_20' ) end [2025-02-13 22:24:18] Production.INFO: ProcessCDR(1,14469439,1,1,2) [2025-02-13 22:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469439', 'tblTempUsageDetail_20' ) start [2025-02-13 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469439', 'tblTempUsageDetail_20' ) end [2025-02-13 22:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 22:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 22:24:22] Production.INFO: ==15909== Releasing lock... [2025-02-13 22:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 22:24:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-13 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 19:25:05 [end_date_ymd] => 2025-02-13 22:25:05 [RateCDR] => 1 ) [2025-02-13 22:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-13 19:25:05' and `end` < '2025-02-13 22:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-13 22:25:18] Production.INFO: count ==1340 [2025-02-13 22:25:18] Production.ERROR: pbx CDR StartTime 2025-02-13 19:25:05 - End Time 2025-02-13 22:25:05 [2025-02-13 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469444', 'tblTempUsageDetail_20' ) start [2025-02-13 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469444', 'tblTempUsageDetail_20' ) end [2025-02-13 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469444', 'tblTempVendorCDR_20' ) start [2025-02-13 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469444', 'tblTempVendorCDR_20' ) end [2025-02-13 22:25:18] Production.INFO: ProcessCDR(1,14469444,1,1,2) [2025-02-13 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469444', 'tblTempUsageDetail_20' ) start [2025-02-13 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469444', 'tblTempUsageDetail_20' ) end [2025-02-13 22:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 22:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 22:25:22] Production.INFO: ==15980== Releasing lock... [2025-02-13 22:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 22:25:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-13 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 19:26:05 [end_date_ymd] => 2025-02-13 22:26:05 [RateCDR] => 1 ) [2025-02-13 22: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-02-13 19:26:05' and `end` < '2025-02-13 22: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-02-13 22:26:18] Production.INFO: count ==1336 [2025-02-13 22:26:18] Production.ERROR: pbx CDR StartTime 2025-02-13 19:26:05 - End Time 2025-02-13 22:26:05 [2025-02-13 22:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469449', 'tblTempUsageDetail_20' ) start [2025-02-13 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469449', 'tblTempUsageDetail_20' ) end [2025-02-13 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469449', 'tblTempVendorCDR_20' ) start [2025-02-13 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469449', 'tblTempVendorCDR_20' ) end [2025-02-13 22:26:18] Production.INFO: ProcessCDR(1,14469449,1,1,2) [2025-02-13 22:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469449', 'tblTempUsageDetail_20' ) start [2025-02-13 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469449', 'tblTempUsageDetail_20' ) end [2025-02-13 22:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 22:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 22:26:21] Production.INFO: ==16052== Releasing lock... [2025-02-13 22:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 22:26:21] Production.INFO: 37.5 MB #Memory Used# [2025-02-13 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 19:27:05 [end_date_ymd] => 2025-02-13 22:27:05 [RateCDR] => 1 ) [2025-02-13 22: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-02-13 19:27:05' and `end` < '2025-02-13 22: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-02-13 22:27:19] Production.INFO: count ==1336 [2025-02-13 22:27:19] Production.ERROR: pbx CDR StartTime 2025-02-13 19:27:05 - End Time 2025-02-13 22:27:05 [2025-02-13 22:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469454', 'tblTempUsageDetail_20' ) start [2025-02-13 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469454', 'tblTempUsageDetail_20' ) end [2025-02-13 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469454', 'tblTempVendorCDR_20' ) start [2025-02-13 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469454', 'tblTempVendorCDR_20' ) end [2025-02-13 22:27:19] Production.INFO: ProcessCDR(1,14469454,1,1,2) [2025-02-13 22:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469454', 'tblTempUsageDetail_20' ) start [2025-02-13 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469454', 'tblTempUsageDetail_20' ) end [2025-02-13 22:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 22:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 22:27:22] Production.INFO: ==16131== Releasing lock... [2025-02-13 22:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 22:27:22] Production.INFO: 37.5 MB #Memory Used# [2025-02-13 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 19:28:05 [end_date_ymd] => 2025-02-13 22:28:05 [RateCDR] => 1 ) [2025-02-13 22: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-02-13 19:28:05' and `end` < '2025-02-13 22: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-02-13 22:28:18] Production.INFO: count ==1336 [2025-02-13 22:28:18] Production.ERROR: pbx CDR StartTime 2025-02-13 19:28:05 - End Time 2025-02-13 22:28:05 [2025-02-13 22:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469459', 'tblTempUsageDetail_20' ) start [2025-02-13 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469459', 'tblTempUsageDetail_20' ) end [2025-02-13 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469459', 'tblTempVendorCDR_20' ) start [2025-02-13 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469459', 'tblTempVendorCDR_20' ) end [2025-02-13 22:28:19] Production.INFO: ProcessCDR(1,14469459,1,1,2) [2025-02-13 22:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469459', 'tblTempUsageDetail_20' ) start [2025-02-13 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469459', 'tblTempUsageDetail_20' ) end [2025-02-13 22:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 22:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 22:28:22] Production.INFO: ==16207== Releasing lock... [2025-02-13 22:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 22:28:22] Production.INFO: 37.5 MB #Memory Used# [2025-02-13 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 19:29:05 [end_date_ymd] => 2025-02-13 22:29:05 [RateCDR] => 1 ) [2025-02-13 22: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-02-13 19:29:05' and `end` < '2025-02-13 22: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-02-13 22:29:18] Production.INFO: count ==1332 [2025-02-13 22:29:19] Production.ERROR: pbx CDR StartTime 2025-02-13 19:29:05 - End Time 2025-02-13 22:29:05 [2025-02-13 22:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469464', 'tblTempUsageDetail_20' ) start [2025-02-13 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469464', 'tblTempUsageDetail_20' ) end [2025-02-13 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469464', 'tblTempVendorCDR_20' ) start [2025-02-13 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469464', 'tblTempVendorCDR_20' ) end [2025-02-13 22:29:19] Production.INFO: ProcessCDR(1,14469464,1,1,2) [2025-02-13 22:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469464', 'tblTempUsageDetail_20' ) start [2025-02-13 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469464', 'tblTempUsageDetail_20' ) end [2025-02-13 22:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 22:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 22:29:22] Production.INFO: ==16283== Releasing lock... [2025-02-13 22:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 22:29:22] Production.INFO: 37.5 MB #Memory Used# [2025-02-13 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 19:30:06 [end_date_ymd] => 2025-02-13 22:30:06 [RateCDR] => 1 ) [2025-02-13 22: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-02-13 19:30:06' and `end` < '2025-02-13 22: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-02-13 22:30:20] Production.INFO: count ==1328 [2025-02-13 22:30:20] Production.ERROR: pbx CDR StartTime 2025-02-13 19:30:06 - End Time 2025-02-13 22:30:06 [2025-02-13 22:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469470', 'tblTempUsageDetail_20' ) start [2025-02-13 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469470', 'tblTempUsageDetail_20' ) end [2025-02-13 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469470', 'tblTempVendorCDR_20' ) start [2025-02-13 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469470', 'tblTempVendorCDR_20' ) end [2025-02-13 22:30:20] Production.INFO: ProcessCDR(1,14469470,1,1,2) [2025-02-13 22:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469470', 'tblTempUsageDetail_20' ) start [2025-02-13 22:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469470', 'tblTempUsageDetail_20' ) end [2025-02-13 22:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 22:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 22:30:23] Production.INFO: ==16399== Releasing lock... [2025-02-13 22:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 22:30:23] Production.INFO: 37.5 MB #Memory Used# [2025-02-13 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 19:31:05 [end_date_ymd] => 2025-02-13 22:31:05 [RateCDR] => 1 ) [2025-02-13 22: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-02-13 19:31:05' and `end` < '2025-02-13 22: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-02-13 22:31:19] Production.INFO: count ==1293 [2025-02-13 22:31:19] Production.ERROR: pbx CDR StartTime 2025-02-13 19:31:05 - End Time 2025-02-13 22:31:05 [2025-02-13 22:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469475', 'tblTempUsageDetail_20' ) start [2025-02-13 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469475', 'tblTempUsageDetail_20' ) end [2025-02-13 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469475', 'tblTempVendorCDR_20' ) start [2025-02-13 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469475', 'tblTempVendorCDR_20' ) end [2025-02-13 22:31:19] Production.INFO: ProcessCDR(1,14469475,1,1,2) [2025-02-13 22:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469475', 'tblTempUsageDetail_20' ) start [2025-02-13 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469475', 'tblTempUsageDetail_20' ) end [2025-02-13 22:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 22:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 22:31:22] Production.INFO: ==16472== Releasing lock... [2025-02-13 22:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 22:31:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-13 22:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 19:32:06 [end_date_ymd] => 2025-02-13 22:32:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 19:32:06' and `end` < '2025-02-13 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-02-13 22:32:19] Production.INFO: count ==1289 [2025-02-13 22:32:19] Production.ERROR: pbx CDR StartTime 2025-02-13 19:32:06 - End Time 2025-02-13 22:32:06 [2025-02-13 22:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469480', 'tblTempUsageDetail_20' ) start [2025-02-13 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469480', 'tblTempUsageDetail_20' ) end [2025-02-13 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469480', 'tblTempVendorCDR_20' ) start [2025-02-13 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469480', 'tblTempVendorCDR_20' ) end [2025-02-13 22:32:19] Production.INFO: ProcessCDR(1,14469480,1,1,2) [2025-02-13 22:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469480', 'tblTempUsageDetail_20' ) start [2025-02-13 22:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469480', 'tblTempUsageDetail_20' ) end [2025-02-13 22:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 22:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 22:32:23] Production.INFO: ==16545== Releasing lock... [2025-02-13 22:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 22:32:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-13 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 19:33:05 [end_date_ymd] => 2025-02-13 22:33:05 [RateCDR] => 1 ) [2025-02-13 22: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-02-13 19:33:05' and `end` < '2025-02-13 22: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-02-13 22:33:18] Production.INFO: count ==1277 [2025-02-13 22:33:19] Production.ERROR: pbx CDR StartTime 2025-02-13 19:33:05 - End Time 2025-02-13 22:33:05 [2025-02-13 22:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469485', 'tblTempUsageDetail_20' ) start [2025-02-13 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469485', 'tblTempUsageDetail_20' ) end [2025-02-13 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469485', 'tblTempVendorCDR_20' ) start [2025-02-13 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469485', 'tblTempVendorCDR_20' ) end [2025-02-13 22:33:19] Production.INFO: ProcessCDR(1,14469485,1,1,2) [2025-02-13 22:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469485', 'tblTempUsageDetail_20' ) start [2025-02-13 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469485', 'tblTempUsageDetail_20' ) end [2025-02-13 22:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 22:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 22:33:22] Production.INFO: ==16615== Releasing lock... [2025-02-13 22:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 22:33:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-13 22:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 19:34:06 [end_date_ymd] => 2025-02-13 22:34:06 [RateCDR] => 1 ) [2025-02-13 22: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-02-13 19:34:06' and `end` < '2025-02-13 22: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-02-13 22:34:19] Production.INFO: count ==1276 [2025-02-13 22:34:19] Production.ERROR: pbx CDR StartTime 2025-02-13 19:34:06 - End Time 2025-02-13 22:34:06 [2025-02-13 22:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469490', 'tblTempUsageDetail_20' ) start [2025-02-13 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469490', 'tblTempUsageDetail_20' ) end [2025-02-13 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469490', 'tblTempVendorCDR_20' ) start [2025-02-13 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469490', 'tblTempVendorCDR_20' ) end [2025-02-13 22:34:19] Production.INFO: ProcessCDR(1,14469490,1,1,2) [2025-02-13 22:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469490', 'tblTempUsageDetail_20' ) start [2025-02-13 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469490', 'tblTempUsageDetail_20' ) end [2025-02-13 22:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 22:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 22:34:22] Production.INFO: ==16694== Releasing lock... [2025-02-13 22:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 22:34:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-13 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 19:35:05 [end_date_ymd] => 2025-02-13 22:35:05 [RateCDR] => 1 ) [2025-02-13 22: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-02-13 19:35:05' and `end` < '2025-02-13 22: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-02-13 22:35:18] Production.INFO: count ==1275 [2025-02-13 22:35:18] Production.ERROR: pbx CDR StartTime 2025-02-13 19:35:05 - End Time 2025-02-13 22:35:05 [2025-02-13 22:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469495', 'tblTempUsageDetail_20' ) start [2025-02-13 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469495', 'tblTempUsageDetail_20' ) end [2025-02-13 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469495', 'tblTempVendorCDR_20' ) start [2025-02-13 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469495', 'tblTempVendorCDR_20' ) end [2025-02-13 22:35:18] Production.INFO: ProcessCDR(1,14469495,1,1,2) [2025-02-13 22:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469495', 'tblTempUsageDetail_20' ) start [2025-02-13 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469495', 'tblTempUsageDetail_20' ) end [2025-02-13 22:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 22:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 22:35:22] Production.INFO: ==16769== Releasing lock... [2025-02-13 22:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 22:35:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-13 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 19:36:05 [end_date_ymd] => 2025-02-13 22:36:05 [RateCDR] => 1 ) [2025-02-13 22: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-02-13 19:36:05' and `end` < '2025-02-13 22: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-02-13 22:36:19] Production.INFO: count ==1277 [2025-02-13 22:36:19] Production.ERROR: pbx CDR StartTime 2025-02-13 19:36:05 - End Time 2025-02-13 22:36:05 [2025-02-13 22:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469500', 'tblTempUsageDetail_20' ) start [2025-02-13 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469500', 'tblTempUsageDetail_20' ) end [2025-02-13 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469500', 'tblTempVendorCDR_20' ) start [2025-02-13 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469500', 'tblTempVendorCDR_20' ) end [2025-02-13 22:36:19] Production.INFO: ProcessCDR(1,14469500,1,1,2) [2025-02-13 22:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469500', 'tblTempUsageDetail_20' ) start [2025-02-13 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469500', 'tblTempUsageDetail_20' ) end [2025-02-13 22:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 22:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 22:36:22] Production.INFO: ==16844== Releasing lock... [2025-02-13 22:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 22:36:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-13 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 19:37:05 [end_date_ymd] => 2025-02-13 22:37:05 [RateCDR] => 1 ) [2025-02-13 22: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-02-13 19:37:05' and `end` < '2025-02-13 22: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-02-13 22:37:18] Production.INFO: count ==1276 [2025-02-13 22:37:18] Production.ERROR: pbx CDR StartTime 2025-02-13 19:37:05 - End Time 2025-02-13 22:37:05 [2025-02-13 22:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469505', 'tblTempUsageDetail_20' ) start [2025-02-13 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469505', 'tblTempUsageDetail_20' ) end [2025-02-13 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469505', 'tblTempVendorCDR_20' ) start [2025-02-13 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469505', 'tblTempVendorCDR_20' ) end [2025-02-13 22:37:18] Production.INFO: ProcessCDR(1,14469505,1,1,2) [2025-02-13 22:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469505', 'tblTempUsageDetail_20' ) start [2025-02-13 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469505', 'tblTempUsageDetail_20' ) end [2025-02-13 22:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 22:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 22:37:21] Production.INFO: ==16916== Releasing lock... [2025-02-13 22:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 22:37:21] Production.INFO: 37.25 MB #Memory Used# [2025-02-13 22:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 19:38:06 [end_date_ymd] => 2025-02-13 22:38:06 [RateCDR] => 1 ) [2025-02-13 22: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-02-13 19:38:06' and `end` < '2025-02-13 22: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-02-13 22:38:19] Production.INFO: count ==1272 [2025-02-13 22:38:19] Production.ERROR: pbx CDR StartTime 2025-02-13 19:38:06 - End Time 2025-02-13 22:38:06 [2025-02-13 22:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469510', 'tblTempUsageDetail_20' ) start [2025-02-13 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469510', 'tblTempUsageDetail_20' ) end [2025-02-13 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469510', 'tblTempVendorCDR_20' ) start [2025-02-13 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469510', 'tblTempVendorCDR_20' ) end [2025-02-13 22:38:19] Production.INFO: ProcessCDR(1,14469510,1,1,2) [2025-02-13 22:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469510', 'tblTempUsageDetail_20' ) start [2025-02-13 22:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469510', 'tblTempUsageDetail_20' ) end [2025-02-13 22:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 22:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 22:38:22] Production.INFO: ==16992== Releasing lock... [2025-02-13 22:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 22:38:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-13 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 19:39:05 [end_date_ymd] => 2025-02-13 22:39:05 [RateCDR] => 1 ) [2025-02-13 22: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-02-13 19:39:05' and `end` < '2025-02-13 22: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-02-13 22:39:18] Production.INFO: count ==1267 [2025-02-13 22:39:18] Production.ERROR: pbx CDR StartTime 2025-02-13 19:39:05 - End Time 2025-02-13 22:39:05 [2025-02-13 22:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469515', 'tblTempUsageDetail_20' ) start [2025-02-13 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469515', 'tblTempUsageDetail_20' ) end [2025-02-13 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469515', 'tblTempVendorCDR_20' ) start [2025-02-13 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469515', 'tblTempVendorCDR_20' ) end [2025-02-13 22:39:18] Production.INFO: ProcessCDR(1,14469515,1,1,2) [2025-02-13 22:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469515', 'tblTempUsageDetail_20' ) start [2025-02-13 22:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469515', 'tblTempUsageDetail_20' ) end [2025-02-13 22:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 22:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 22:39:22] Production.INFO: ==17064== Releasing lock... [2025-02-13 22:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 22:39:22] Production.INFO: 37 MB #Memory Used# [2025-02-13 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 19:40:06 [end_date_ymd] => 2025-02-13 22:40:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 19:40:06' and `end` < '2025-02-13 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-02-13 22:40:19] Production.INFO: count ==1264 [2025-02-13 22:40:20] Production.ERROR: pbx CDR StartTime 2025-02-13 19:40:06 - End Time 2025-02-13 22:40:06 [2025-02-13 22:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469521', 'tblTempUsageDetail_20' ) start [2025-02-13 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469521', 'tblTempUsageDetail_20' ) end [2025-02-13 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469521', 'tblTempVendorCDR_20' ) start [2025-02-13 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469521', 'tblTempVendorCDR_20' ) end [2025-02-13 22:40:20] Production.INFO: ProcessCDR(1,14469521,1,1,2) [2025-02-13 22:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469521', 'tblTempUsageDetail_20' ) start [2025-02-13 22:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469521', 'tblTempUsageDetail_20' ) end [2025-02-13 22:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 22:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 22:40:23] Production.INFO: ==17138== Releasing lock... [2025-02-13 22:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 22:40:23] Production.INFO: 37 MB #Memory Used# [2025-02-13 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 19:41:05 [end_date_ymd] => 2025-02-13 22:41:05 [RateCDR] => 1 ) [2025-02-13 22: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-02-13 19:41:05' and `end` < '2025-02-13 22: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-02-13 22:41:18] Production.INFO: count ==1227 [2025-02-13 22:41:19] Production.ERROR: pbx CDR StartTime 2025-02-13 19:41:05 - End Time 2025-02-13 22:41:05 [2025-02-13 22:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469526', 'tblTempUsageDetail_20' ) start [2025-02-13 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469526', 'tblTempUsageDetail_20' ) end [2025-02-13 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469526', 'tblTempVendorCDR_20' ) start [2025-02-13 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469526', 'tblTempVendorCDR_20' ) end [2025-02-13 22:41:19] Production.INFO: ProcessCDR(1,14469526,1,1,2) [2025-02-13 22:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469526', 'tblTempUsageDetail_20' ) start [2025-02-13 22:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469526', 'tblTempUsageDetail_20' ) end [2025-02-13 22:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 22:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 22:41:22] Production.INFO: ==17219== Releasing lock... [2025-02-13 22:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 22:41:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-13 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 19:42:05 [end_date_ymd] => 2025-02-13 22:42:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 19:42:05' and `end` < '2025-02-13 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-02-13 22:42:19] Production.INFO: count ==1222 [2025-02-13 22:42:19] Production.ERROR: pbx CDR StartTime 2025-02-13 19:42:05 - End Time 2025-02-13 22:42:05 [2025-02-13 22:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469531', 'tblTempUsageDetail_20' ) start [2025-02-13 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469531', 'tblTempUsageDetail_20' ) end [2025-02-13 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469531', 'tblTempVendorCDR_20' ) start [2025-02-13 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469531', 'tblTempVendorCDR_20' ) end [2025-02-13 22:42:19] Production.INFO: ProcessCDR(1,14469531,1,1,2) [2025-02-13 22:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469531', 'tblTempUsageDetail_20' ) start [2025-02-13 22:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469531', 'tblTempUsageDetail_20' ) end [2025-02-13 22:42:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 22:42:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 22:42:24] Production.INFO: ==17293== Releasing lock... [2025-02-13 22:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 22:42:24] Production.INFO: 36.75 MB #Memory Used# [2025-02-13 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 19:43:05 [end_date_ymd] => 2025-02-13 22:43:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 19:43:05' and `end` < '2025-02-13 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-02-13 22:43:19] Production.INFO: count ==1221 [2025-02-13 22:43:19] Production.ERROR: pbx CDR StartTime 2025-02-13 19:43:05 - End Time 2025-02-13 22:43:05 [2025-02-13 22:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469536', 'tblTempUsageDetail_20' ) start [2025-02-13 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469536', 'tblTempUsageDetail_20' ) end [2025-02-13 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469536', 'tblTempVendorCDR_20' ) start [2025-02-13 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469536', 'tblTempVendorCDR_20' ) end [2025-02-13 22:43:19] Production.INFO: ProcessCDR(1,14469536,1,1,2) [2025-02-13 22:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469536', 'tblTempUsageDetail_20' ) start [2025-02-13 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469536', 'tblTempUsageDetail_20' ) end [2025-02-13 22:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 22:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 22:43:22] Production.INFO: ==17373== Releasing lock... [2025-02-13 22:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 22:43:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-13 22:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 19:44:06 [end_date_ymd] => 2025-02-13 22:44:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 19:44:06' and `end` < '2025-02-13 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-02-13 22:44:19] Production.INFO: count ==1211 [2025-02-13 22:44:20] Production.ERROR: pbx CDR StartTime 2025-02-13 19:44:06 - End Time 2025-02-13 22:44:06 [2025-02-13 22:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 22:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469541', 'tblTempUsageDetail_20' ) start [2025-02-13 22:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469541', 'tblTempUsageDetail_20' ) end [2025-02-13 22:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469541', 'tblTempVendorCDR_20' ) start [2025-02-13 22:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469541', 'tblTempVendorCDR_20' ) end [2025-02-13 22:44:20] Production.INFO: ProcessCDR(1,14469541,1,1,2) [2025-02-13 22:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469541', 'tblTempUsageDetail_20' ) start [2025-02-13 22:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469541', 'tblTempUsageDetail_20' ) end [2025-02-13 22:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 22:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 22:44:23] Production.INFO: ==17444== Releasing lock... [2025-02-13 22:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 22:44:23] Production.INFO: 36.75 MB #Memory Used# [2025-02-13 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 19:45:05 [end_date_ymd] => 2025-02-13 22:45:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 19:45:05' and `end` < '2025-02-13 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-02-13 22:45:19] Production.INFO: count ==1208 [2025-02-13 22:45:19] Production.ERROR: pbx CDR StartTime 2025-02-13 19:45:05 - End Time 2025-02-13 22:45:05 [2025-02-13 22:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469546', 'tblTempUsageDetail_20' ) start [2025-02-13 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469546', 'tblTempUsageDetail_20' ) end [2025-02-13 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469546', 'tblTempVendorCDR_20' ) start [2025-02-13 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469546', 'tblTempVendorCDR_20' ) end [2025-02-13 22:45:19] Production.INFO: ProcessCDR(1,14469546,1,1,2) [2025-02-13 22:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469546', 'tblTempUsageDetail_20' ) start [2025-02-13 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469546', 'tblTempUsageDetail_20' ) end [2025-02-13 22:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 22:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 22:45:22] Production.INFO: ==17557== Releasing lock... [2025-02-13 22:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 22:45:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-13 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 19:46:05 [end_date_ymd] => 2025-02-13 22:46:05 [RateCDR] => 1 ) [2025-02-13 22: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-02-13 19:46:05' and `end` < '2025-02-13 22: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-02-13 22:46:19] Production.INFO: count ==1197 [2025-02-13 22:46:19] Production.ERROR: pbx CDR StartTime 2025-02-13 19:46:05 - End Time 2025-02-13 22:46:05 [2025-02-13 22:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469551', 'tblTempUsageDetail_20' ) start [2025-02-13 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469551', 'tblTempUsageDetail_20' ) end [2025-02-13 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469551', 'tblTempVendorCDR_20' ) start [2025-02-13 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469551', 'tblTempVendorCDR_20' ) end [2025-02-13 22:46:19] Production.INFO: ProcessCDR(1,14469551,1,1,2) [2025-02-13 22:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469551', 'tblTempUsageDetail_20' ) start [2025-02-13 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469551', 'tblTempUsageDetail_20' ) end [2025-02-13 22:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 22:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 22:46:22] Production.INFO: ==17630== Releasing lock... [2025-02-13 22:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 22:46:22] Production.INFO: 36.5 MB #Memory Used# [2025-02-13 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 19:47:05 [end_date_ymd] => 2025-02-13 22:47:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 19:47:05' and `end` < '2025-02-13 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-02-13 22:47:18] Production.INFO: count ==1193 [2025-02-13 22:47:18] Production.ERROR: pbx CDR StartTime 2025-02-13 19:47:05 - End Time 2025-02-13 22:47:05 [2025-02-13 22:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469556', 'tblTempUsageDetail_20' ) start [2025-02-13 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469556', 'tblTempUsageDetail_20' ) end [2025-02-13 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469556', 'tblTempVendorCDR_20' ) start [2025-02-13 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469556', 'tblTempVendorCDR_20' ) end [2025-02-13 22:47:18] Production.INFO: ProcessCDR(1,14469556,1,1,2) [2025-02-13 22:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469556', 'tblTempUsageDetail_20' ) start [2025-02-13 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469556', 'tblTempUsageDetail_20' ) end [2025-02-13 22:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 22:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 22:47:22] Production.INFO: ==17703== Releasing lock... [2025-02-13 22:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 22:47:22] Production.INFO: 36.5 MB #Memory Used# [2025-02-13 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 19:48:05 [end_date_ymd] => 2025-02-13 22:48:05 [RateCDR] => 1 ) [2025-02-13 22: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-02-13 19:48:05' and `end` < '2025-02-13 22: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-02-13 22:48:18] Production.INFO: count ==1193 [2025-02-13 22:48:18] Production.ERROR: pbx CDR StartTime 2025-02-13 19:48:05 - End Time 2025-02-13 22:48:05 [2025-02-13 22:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469561', 'tblTempUsageDetail_20' ) start [2025-02-13 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469561', 'tblTempUsageDetail_20' ) end [2025-02-13 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469561', 'tblTempVendorCDR_20' ) start [2025-02-13 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469561', 'tblTempVendorCDR_20' ) end [2025-02-13 22:48:18] Production.INFO: ProcessCDR(1,14469561,1,1,2) [2025-02-13 22:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469561', 'tblTempUsageDetail_20' ) start [2025-02-13 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469561', 'tblTempUsageDetail_20' ) end [2025-02-13 22:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 22:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 22:48:22] Production.INFO: ==17784== Releasing lock... [2025-02-13 22:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 22:48:22] Production.INFO: 36.5 MB #Memory Used# [2025-02-13 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 19:49:05 [end_date_ymd] => 2025-02-13 22:49:05 [RateCDR] => 1 ) [2025-02-13 22: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-02-13 19:49:05' and `end` < '2025-02-13 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-02-13 22:49:18] Production.INFO: count ==1190 [2025-02-13 22:49:18] Production.ERROR: pbx CDR StartTime 2025-02-13 19:49:05 - End Time 2025-02-13 22:49:05 [2025-02-13 22:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469566', 'tblTempUsageDetail_20' ) start [2025-02-13 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469566', 'tblTempUsageDetail_20' ) end [2025-02-13 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469566', 'tblTempVendorCDR_20' ) start [2025-02-13 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469566', 'tblTempVendorCDR_20' ) end [2025-02-13 22:49:18] Production.INFO: ProcessCDR(1,14469566,1,1,2) [2025-02-13 22:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469566', 'tblTempUsageDetail_20' ) start [2025-02-13 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469566', 'tblTempUsageDetail_20' ) end [2025-02-13 22:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 22:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 22:49:21] Production.INFO: ==17856== Releasing lock... [2025-02-13 22:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 22:49:21] Production.INFO: 36.5 MB #Memory Used# [2025-02-13 22:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 19:50:07 [end_date_ymd] => 2025-02-13 22:50:07 [RateCDR] => 1 ) [2025-02-13 22: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-02-13 19:50:07' and `end` < '2025-02-13 22: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-02-13 22:50:20] Production.INFO: count ==1188 [2025-02-13 22:50:20] Production.ERROR: pbx CDR StartTime 2025-02-13 19:50:07 - End Time 2025-02-13 22:50:07 [2025-02-13 22:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 22:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469572', 'tblTempUsageDetail_20' ) start [2025-02-13 22:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469572', 'tblTempUsageDetail_20' ) end [2025-02-13 22:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469572', 'tblTempVendorCDR_20' ) start [2025-02-13 22:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469572', 'tblTempVendorCDR_20' ) end [2025-02-13 22:50:20] Production.INFO: ProcessCDR(1,14469572,1,1,2) [2025-02-13 22:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469572', 'tblTempUsageDetail_20' ) start [2025-02-13 22:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469572', 'tblTempUsageDetail_20' ) end [2025-02-13 22:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 22:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 22:50:23] Production.INFO: ==17928== Releasing lock... [2025-02-13 22:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 22:50:23] Production.INFO: 36.5 MB #Memory Used# [2025-02-13 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 19:51:05 [end_date_ymd] => 2025-02-13 22:51:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 19:51:05' and `end` < '2025-02-13 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-02-13 22:51:18] Production.INFO: count ==1133 [2025-02-13 22:51:18] Production.ERROR: pbx CDR StartTime 2025-02-13 19:51:05 - End Time 2025-02-13 22:51:05 [2025-02-13 22:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469577', 'tblTempUsageDetail_20' ) start [2025-02-13 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469577', 'tblTempUsageDetail_20' ) end [2025-02-13 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469577', 'tblTempVendorCDR_20' ) start [2025-02-13 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469577', 'tblTempVendorCDR_20' ) end [2025-02-13 22:51:18] Production.INFO: ProcessCDR(1,14469577,1,1,2) [2025-02-13 22:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469577', 'tblTempUsageDetail_20' ) start [2025-02-13 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469577', 'tblTempUsageDetail_20' ) end [2025-02-13 22:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 22:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 22:51:22] Production.INFO: ==18005== Releasing lock... [2025-02-13 22:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 22:51:22] Production.INFO: 36 MB #Memory Used# [2025-02-13 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 19:52:05 [end_date_ymd] => 2025-02-13 22:52:05 [RateCDR] => 1 ) [2025-02-13 22: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-02-13 19:52:05' and `end` < '2025-02-13 22: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-02-13 22:52:18] Production.INFO: count ==1131 [2025-02-13 22:52:18] Production.ERROR: pbx CDR StartTime 2025-02-13 19:52:05 - End Time 2025-02-13 22:52:05 [2025-02-13 22:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469582', 'tblTempUsageDetail_20' ) start [2025-02-13 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469582', 'tblTempUsageDetail_20' ) end [2025-02-13 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469582', 'tblTempVendorCDR_20' ) start [2025-02-13 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469582', 'tblTempVendorCDR_20' ) end [2025-02-13 22:52:19] Production.INFO: ProcessCDR(1,14469582,1,1,2) [2025-02-13 22:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469582', 'tblTempUsageDetail_20' ) start [2025-02-13 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469582', 'tblTempUsageDetail_20' ) end [2025-02-13 22:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 22:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 22:52:22] Production.INFO: ==18078== Releasing lock... [2025-02-13 22:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 22:52:22] Production.INFO: 36 MB #Memory Used# [2025-02-13 22:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 19:53:04 [end_date_ymd] => 2025-02-13 22:53:04 [RateCDR] => 1 ) [2025-02-13 22: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-02-13 19:53:04' and `end` < '2025-02-13 22: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-02-13 22:53:18] Production.INFO: count ==1131 [2025-02-13 22:53:18] Production.ERROR: pbx CDR StartTime 2025-02-13 19:53:04 - End Time 2025-02-13 22:53:04 [2025-02-13 22:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469587', 'tblTempUsageDetail_20' ) start [2025-02-13 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469587', 'tblTempUsageDetail_20' ) end [2025-02-13 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469587', 'tblTempVendorCDR_20' ) start [2025-02-13 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469587', 'tblTempVendorCDR_20' ) end [2025-02-13 22:53:18] Production.INFO: ProcessCDR(1,14469587,1,1,2) [2025-02-13 22:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469587', 'tblTempUsageDetail_20' ) start [2025-02-13 22:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469587', 'tblTempUsageDetail_20' ) end [2025-02-13 22:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 22:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 22:53:21] Production.INFO: ==18149== Releasing lock... [2025-02-13 22:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 22:53:21] Production.INFO: 36 MB #Memory Used# [2025-02-13 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 19:54:05 [end_date_ymd] => 2025-02-13 22:54:05 [RateCDR] => 1 ) [2025-02-13 22: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-02-13 19:54:05' and `end` < '2025-02-13 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-02-13 22:54:18] Production.INFO: count ==1133 [2025-02-13 22:54:18] Production.ERROR: pbx CDR StartTime 2025-02-13 19:54:05 - End Time 2025-02-13 22:54:05 [2025-02-13 22:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469592', 'tblTempUsageDetail_20' ) start [2025-02-13 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469592', 'tblTempUsageDetail_20' ) end [2025-02-13 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469592', 'tblTempVendorCDR_20' ) start [2025-02-13 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469592', 'tblTempVendorCDR_20' ) end [2025-02-13 22:54:18] Production.INFO: ProcessCDR(1,14469592,1,1,2) [2025-02-13 22:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469592', 'tblTempUsageDetail_20' ) start [2025-02-13 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469592', 'tblTempUsageDetail_20' ) end [2025-02-13 22:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 22:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 22:54:22] Production.INFO: ==18227== Releasing lock... [2025-02-13 22:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 22:54:22] Production.INFO: 36 MB #Memory Used# [2025-02-13 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 19:55:05 [end_date_ymd] => 2025-02-13 22:55:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 19:55:05' and `end` < '2025-02-13 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-02-13 22:55:19] Production.INFO: count ==1131 [2025-02-13 22:55:19] Production.ERROR: pbx CDR StartTime 2025-02-13 19:55:05 - End Time 2025-02-13 22:55:05 [2025-02-13 22:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469593', 'tblTempUsageDetail_20' ) start [2025-02-13 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469593', 'tblTempUsageDetail_20' ) end [2025-02-13 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469593', 'tblTempVendorCDR_20' ) start [2025-02-13 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469593', 'tblTempVendorCDR_20' ) end [2025-02-13 22:55:19] Production.INFO: ProcessCDR(1,14469593,1,1,2) [2025-02-13 22:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469593', 'tblTempUsageDetail_20' ) start [2025-02-13 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469593', 'tblTempUsageDetail_20' ) end [2025-02-13 22:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 22:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 22:55:22] Production.INFO: ==18298== Releasing lock... [2025-02-13 22:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 22:55:22] Production.INFO: 36 MB #Memory Used# [2025-02-13 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 19:56:05 [end_date_ymd] => 2025-02-13 22:56:05 [RateCDR] => 1 ) [2025-02-13 22: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-02-13 19:56:05' and `end` < '2025-02-13 22: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-02-13 22:56:19] Production.INFO: count ==1127 [2025-02-13 22:56:19] Production.ERROR: pbx CDR StartTime 2025-02-13 19:56:05 - End Time 2025-02-13 22:56:05 [2025-02-13 22:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469602', 'tblTempUsageDetail_20' ) start [2025-02-13 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469602', 'tblTempUsageDetail_20' ) end [2025-02-13 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469602', 'tblTempVendorCDR_20' ) start [2025-02-13 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469602', 'tblTempVendorCDR_20' ) end [2025-02-13 22:56:19] Production.INFO: ProcessCDR(1,14469602,1,1,2) [2025-02-13 22:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469602', 'tblTempUsageDetail_20' ) start [2025-02-13 22:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469602', 'tblTempUsageDetail_20' ) end [2025-02-13 22:56:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 22:56:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 22:56:24] Production.INFO: ==18371== Releasing lock... [2025-02-13 22:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 22:56:24] Production.INFO: 36 MB #Memory Used# [2025-02-13 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 19:57:05 [end_date_ymd] => 2025-02-13 22:57:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 19:57:05' and `end` < '2025-02-13 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-02-13 22:57:19] Production.INFO: count ==1127 [2025-02-13 22:57:19] Production.ERROR: pbx CDR StartTime 2025-02-13 19:57:05 - End Time 2025-02-13 22:57:05 [2025-02-13 22:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469607', 'tblTempUsageDetail_20' ) start [2025-02-13 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469607', 'tblTempUsageDetail_20' ) end [2025-02-13 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469607', 'tblTempVendorCDR_20' ) start [2025-02-13 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469607', 'tblTempVendorCDR_20' ) end [2025-02-13 22:57:19] Production.INFO: ProcessCDR(1,14469607,1,1,2) [2025-02-13 22:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469607', 'tblTempUsageDetail_20' ) start [2025-02-13 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469607', 'tblTempUsageDetail_20' ) end [2025-02-13 22:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 22:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 22:57:22] Production.INFO: ==18442== Releasing lock... [2025-02-13 22:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 22:57:22] Production.INFO: 36 MB #Memory Used# [2025-02-13 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 19:58:05 [end_date_ymd] => 2025-02-13 22:58:05 [RateCDR] => 1 ) [2025-02-13 22: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-02-13 19:58:05' and `end` < '2025-02-13 22: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-02-13 22:58:18] Production.INFO: count ==1121 [2025-02-13 22:58:18] Production.ERROR: pbx CDR StartTime 2025-02-13 19:58:05 - End Time 2025-02-13 22:58:05 [2025-02-13 22:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469612', 'tblTempUsageDetail_20' ) start [2025-02-13 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469612', 'tblTempUsageDetail_20' ) end [2025-02-13 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469612', 'tblTempVendorCDR_20' ) start [2025-02-13 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469612', 'tblTempVendorCDR_20' ) end [2025-02-13 22:58:18] Production.INFO: ProcessCDR(1,14469612,1,1,2) [2025-02-13 22:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469612', 'tblTempUsageDetail_20' ) start [2025-02-13 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469612', 'tblTempUsageDetail_20' ) end [2025-02-13 22:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 22:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 22:58:21] Production.INFO: ==18512== Releasing lock... [2025-02-13 22:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 22:58:21] Production.INFO: 36 MB #Memory Used# [2025-02-13 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 19:59:05 [end_date_ymd] => 2025-02-13 22:59:05 [RateCDR] => 1 ) [2025-02-13 22: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-02-13 19:59:05' and `end` < '2025-02-13 22: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-02-13 22:59:18] Production.INFO: count ==1108 [2025-02-13 22:59:19] Production.ERROR: pbx CDR StartTime 2025-02-13 19:59:05 - End Time 2025-02-13 22:59:05 [2025-02-13 22:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469617', 'tblTempUsageDetail_20' ) start [2025-02-13 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469617', 'tblTempUsageDetail_20' ) end [2025-02-13 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469617', 'tblTempVendorCDR_20' ) start [2025-02-13 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469617', 'tblTempVendorCDR_20' ) end [2025-02-13 22:59:19] Production.INFO: ProcessCDR(1,14469617,1,1,2) [2025-02-13 22:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 22:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469617', 'tblTempUsageDetail_20' ) start [2025-02-13 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469617', 'tblTempUsageDetail_20' ) end [2025-02-13 22:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 22:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 22:59:22] Production.INFO: ==18584== Releasing lock... [2025-02-13 22:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 22:59:22] Production.INFO: 36 MB #Memory Used# [2025-02-13 23:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 20:00:05 [end_date_ymd] => 2025-02-13 23:00:05 [RateCDR] => 1 ) [2025-02-13 23: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-02-13 20:00:05' and `end` < '2025-02-13 23: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-02-13 23:00:19] Production.INFO: count ==1102 [2025-02-13 23:00:19] Production.ERROR: pbx CDR StartTime 2025-02-13 20:00:05 - End Time 2025-02-13 23:00:05 [2025-02-13 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469621', 'tblTempUsageDetail_20' ) start [2025-02-13 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469621', 'tblTempUsageDetail_20' ) end [2025-02-13 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469621', 'tblTempVendorCDR_20' ) start [2025-02-13 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469621', 'tblTempVendorCDR_20' ) end [2025-02-13 23:00:19] Production.INFO: ProcessCDR(1,14469621,1,1,2) [2025-02-13 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469621', 'tblTempUsageDetail_20' ) start [2025-02-13 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469621', 'tblTempUsageDetail_20' ) end [2025-02-13 23:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 23:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 23:00:22] Production.INFO: ==18657== Releasing lock... [2025-02-13 23:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 23:00:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-13 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 20:01:05 [end_date_ymd] => 2025-02-13 23:01:05 [RateCDR] => 1 ) [2025-02-13 23: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-02-13 20:01:05' and `end` < '2025-02-13 23: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-02-13 23:01:19] Production.INFO: count ==1052 [2025-02-13 23:01:19] Production.ERROR: pbx CDR StartTime 2025-02-13 20:01:05 - End Time 2025-02-13 23:01:05 [2025-02-13 23:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469628', 'tblTempUsageDetail_20' ) start [2025-02-13 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469628', 'tblTempUsageDetail_20' ) end [2025-02-13 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469628', 'tblTempVendorCDR_20' ) start [2025-02-13 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469628', 'tblTempVendorCDR_20' ) end [2025-02-13 23:01:19] Production.INFO: ProcessCDR(1,14469628,1,1,2) [2025-02-13 23:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469628', 'tblTempUsageDetail_20' ) start [2025-02-13 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469628', 'tblTempUsageDetail_20' ) end [2025-02-13 23:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 23:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 23:01:22] Production.INFO: ==18785== Releasing lock... [2025-02-13 23:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 23:01:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-13 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 20:02:05 [end_date_ymd] => 2025-02-13 23:02:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 20:02:05' and `end` < '2025-02-13 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-02-13 23:02:18] Production.INFO: count ==1043 [2025-02-13 23:02:18] Production.ERROR: pbx CDR StartTime 2025-02-13 20:02:05 - End Time 2025-02-13 23:02:05 [2025-02-13 23:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469633', 'tblTempUsageDetail_20' ) start [2025-02-13 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469633', 'tblTempUsageDetail_20' ) end [2025-02-13 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469633', 'tblTempVendorCDR_20' ) start [2025-02-13 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469633', 'tblTempVendorCDR_20' ) end [2025-02-13 23:02:18] Production.INFO: ProcessCDR(1,14469633,1,1,2) [2025-02-13 23:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469633', 'tblTempUsageDetail_20' ) start [2025-02-13 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469633', 'tblTempUsageDetail_20' ) end [2025-02-13 23:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 23:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 23:02:21] Production.INFO: ==18933== Releasing lock... [2025-02-13 23:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 23:02:21] Production.INFO: 35.5 MB #Memory Used# [2025-02-13 23:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 20:03:06 [end_date_ymd] => 2025-02-13 23:03:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 20:03:06' and `end` < '2025-02-13 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-02-13 23:03:19] Production.INFO: count ==1036 [2025-02-13 23:03:19] Production.ERROR: pbx CDR StartTime 2025-02-13 20:03:06 - End Time 2025-02-13 23:03:06 [2025-02-13 23:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469638', 'tblTempUsageDetail_20' ) start [2025-02-13 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469638', 'tblTempUsageDetail_20' ) end [2025-02-13 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469638', 'tblTempVendorCDR_20' ) start [2025-02-13 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469638', 'tblTempVendorCDR_20' ) end [2025-02-13 23:03:19] Production.INFO: ProcessCDR(1,14469638,1,1,2) [2025-02-13 23:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469638', 'tblTempUsageDetail_20' ) start [2025-02-13 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469638', 'tblTempUsageDetail_20' ) end [2025-02-13 23:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 23:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 23:03:22] Production.INFO: ==19005== Releasing lock... [2025-02-13 23:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 23:03:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-13 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 20:04:05 [end_date_ymd] => 2025-02-13 23:04:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 20:04:05' and `end` < '2025-02-13 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-02-13 23:04:18] Production.INFO: count ==1039 [2025-02-13 23:04:18] Production.ERROR: pbx CDR StartTime 2025-02-13 20:04:05 - End Time 2025-02-13 23:04:05 [2025-02-13 23:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469643', 'tblTempUsageDetail_20' ) start [2025-02-13 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469643', 'tblTempUsageDetail_20' ) end [2025-02-13 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469643', 'tblTempVendorCDR_20' ) start [2025-02-13 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469643', 'tblTempVendorCDR_20' ) end [2025-02-13 23:04:18] Production.INFO: ProcessCDR(1,14469643,1,1,2) [2025-02-13 23:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469643', 'tblTempUsageDetail_20' ) start [2025-02-13 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469643', 'tblTempUsageDetail_20' ) end [2025-02-13 23:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 23:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 23:04:21] Production.INFO: ==19077== Releasing lock... [2025-02-13 23:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 23:04:21] Production.INFO: 35.5 MB #Memory Used# [2025-02-13 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 20:05:05 [end_date_ymd] => 2025-02-13 23:05:05 [RateCDR] => 1 ) [2025-02-13 23: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-02-13 20:05:05' and `end` < '2025-02-13 23: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-02-13 23:05:19] Production.INFO: count ==1041 [2025-02-13 23:05:19] Production.ERROR: pbx CDR StartTime 2025-02-13 20:05:05 - End Time 2025-02-13 23:05:05 [2025-02-13 23:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469648', 'tblTempUsageDetail_20' ) start [2025-02-13 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469648', 'tblTempUsageDetail_20' ) end [2025-02-13 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469648', 'tblTempVendorCDR_20' ) start [2025-02-13 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469648', 'tblTempVendorCDR_20' ) end [2025-02-13 23:05:19] Production.INFO: ProcessCDR(1,14469648,1,1,2) [2025-02-13 23:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469648', 'tblTempUsageDetail_20' ) start [2025-02-13 23:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469648', 'tblTempUsageDetail_20' ) end [2025-02-13 23:05:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 23:05:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 23:05:24] Production.INFO: ==19231== Releasing lock... [2025-02-13 23:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 23:05:24] Production.INFO: 35.5 MB #Memory Used# [2025-02-13 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 20:06:05 [end_date_ymd] => 2025-02-13 23:06:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 20:06:05' and `end` < '2025-02-13 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-02-13 23:06:18] Production.INFO: count ==1038 [2025-02-13 23:06:18] Production.ERROR: pbx CDR StartTime 2025-02-13 20:06:05 - End Time 2025-02-13 23:06:05 [2025-02-13 23:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469653', 'tblTempUsageDetail_20' ) start [2025-02-13 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469653', 'tblTempUsageDetail_20' ) end [2025-02-13 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469653', 'tblTempVendorCDR_20' ) start [2025-02-13 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469653', 'tblTempVendorCDR_20' ) end [2025-02-13 23:06:18] Production.INFO: ProcessCDR(1,14469653,1,1,2) [2025-02-13 23:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469653', 'tblTempUsageDetail_20' ) start [2025-02-13 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469653', 'tblTempUsageDetail_20' ) end [2025-02-13 23:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 23:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 23:06:21] Production.INFO: ==19302== Releasing lock... [2025-02-13 23:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 23:06:21] Production.INFO: 35.5 MB #Memory Used# [2025-02-13 23:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 20:07:06 [end_date_ymd] => 2025-02-13 23:07:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 20:07:06' and `end` < '2025-02-13 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-02-13 23:07:19] Production.INFO: count ==1037 [2025-02-13 23:07:20] Production.ERROR: pbx CDR StartTime 2025-02-13 20:07:06 - End Time 2025-02-13 23:07:06 [2025-02-13 23:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 23:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469658', 'tblTempUsageDetail_20' ) start [2025-02-13 23:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469658', 'tblTempUsageDetail_20' ) end [2025-02-13 23:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469658', 'tblTempVendorCDR_20' ) start [2025-02-13 23:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469658', 'tblTempVendorCDR_20' ) end [2025-02-13 23:07:20] Production.INFO: ProcessCDR(1,14469658,1,1,2) [2025-02-13 23:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469658', 'tblTempUsageDetail_20' ) start [2025-02-13 23:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469658', 'tblTempUsageDetail_20' ) end [2025-02-13 23:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 23:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 23:07:23] Production.INFO: ==19378== Releasing lock... [2025-02-13 23:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 23:07:23] Production.INFO: 35.25 MB #Memory Used# [2025-02-13 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 20:08:05 [end_date_ymd] => 2025-02-13 23:08:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 20:08:05' and `end` < '2025-02-13 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-02-13 23:08:19] Production.INFO: count ==1037 [2025-02-13 23:08:19] Production.ERROR: pbx CDR StartTime 2025-02-13 20:08:05 - End Time 2025-02-13 23:08:05 [2025-02-13 23:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469663', 'tblTempUsageDetail_20' ) start [2025-02-13 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469663', 'tblTempUsageDetail_20' ) end [2025-02-13 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469663', 'tblTempVendorCDR_20' ) start [2025-02-13 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469663', 'tblTempVendorCDR_20' ) end [2025-02-13 23:08:19] Production.INFO: ProcessCDR(1,14469663,1,1,2) [2025-02-13 23:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469663', 'tblTempUsageDetail_20' ) start [2025-02-13 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469663', 'tblTempUsageDetail_20' ) end [2025-02-13 23:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 23:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 23:08:22] Production.INFO: ==19528== Releasing lock... [2025-02-13 23:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 23:08:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-13 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 20:09:05 [end_date_ymd] => 2025-02-13 23:09:05 [RateCDR] => 1 ) [2025-02-13 23: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-02-13 20:09:05' and `end` < '2025-02-13 23: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-02-13 23:09:18] Production.INFO: count ==1036 [2025-02-13 23:09:18] Production.ERROR: pbx CDR StartTime 2025-02-13 20:09:05 - End Time 2025-02-13 23:09:05 [2025-02-13 23:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469668', 'tblTempUsageDetail_20' ) start [2025-02-13 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469668', 'tblTempUsageDetail_20' ) end [2025-02-13 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469668', 'tblTempVendorCDR_20' ) start [2025-02-13 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469668', 'tblTempVendorCDR_20' ) end [2025-02-13 23:09:18] Production.INFO: ProcessCDR(1,14469668,1,1,2) [2025-02-13 23:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469668', 'tblTempUsageDetail_20' ) start [2025-02-13 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469668', 'tblTempUsageDetail_20' ) end [2025-02-13 23:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 23:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 23:09:21] Production.INFO: ==19600== Releasing lock... [2025-02-13 23:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 23:09:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-13 23:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 20:10:05 [end_date_ymd] => 2025-02-13 23:10:05 [RateCDR] => 1 ) [2025-02-13 23: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-02-13 20:10:05' and `end` < '2025-02-13 23: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-02-13 23:10:19] Production.INFO: count ==1020 [2025-02-13 23:10:19] Production.ERROR: pbx CDR StartTime 2025-02-13 20:10:05 - End Time 2025-02-13 23:10:05 [2025-02-13 23:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469674', 'tblTempUsageDetail_20' ) start [2025-02-13 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469674', 'tblTempUsageDetail_20' ) end [2025-02-13 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469674', 'tblTempVendorCDR_20' ) start [2025-02-13 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469674', 'tblTempVendorCDR_20' ) end [2025-02-13 23:10:19] Production.INFO: ProcessCDR(1,14469674,1,1,2) [2025-02-13 23:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469674', 'tblTempUsageDetail_20' ) start [2025-02-13 23:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469674', 'tblTempUsageDetail_20' ) end [2025-02-13 23:10:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 23:10:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 23:10:24] Production.INFO: ==19672== Releasing lock... [2025-02-13 23:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 23:10:24] Production.INFO: 35.25 MB #Memory Used# [2025-02-13 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 20:11:05 [end_date_ymd] => 2025-02-13 23:11:05 [RateCDR] => 1 ) [2025-02-13 23: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-02-13 20:11:05' and `end` < '2025-02-13 23: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-02-13 23:11:18] Production.INFO: count ==1025 [2025-02-13 23:11:18] Production.ERROR: pbx CDR StartTime 2025-02-13 20:11:05 - End Time 2025-02-13 23:11:05 [2025-02-13 23:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469679', 'tblTempUsageDetail_20' ) start [2025-02-13 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469679', 'tblTempUsageDetail_20' ) end [2025-02-13 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469679', 'tblTempVendorCDR_20' ) start [2025-02-13 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469679', 'tblTempVendorCDR_20' ) end [2025-02-13 23:11:18] Production.INFO: ProcessCDR(1,14469679,1,1,2) [2025-02-13 23:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469679', 'tblTempUsageDetail_20' ) start [2025-02-13 23:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469679', 'tblTempUsageDetail_20' ) end [2025-02-13 23:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 23:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 23:11:23] Production.INFO: ==19747== Releasing lock... [2025-02-13 23:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 23:11:23] Production.INFO: 35.25 MB #Memory Used# [2025-02-13 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 20:12:05 [end_date_ymd] => 2025-02-13 23:12:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 20:12:05' and `end` < '2025-02-13 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-02-13 23:12:20] Production.INFO: count ==1025 [2025-02-13 23:12:20] Production.ERROR: pbx CDR StartTime 2025-02-13 20:12:05 - End Time 2025-02-13 23:12:05 [2025-02-13 23:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 23:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469684', 'tblTempUsageDetail_20' ) start [2025-02-13 23:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469684', 'tblTempUsageDetail_20' ) end [2025-02-13 23:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469684', 'tblTempVendorCDR_20' ) start [2025-02-13 23:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469684', 'tblTempVendorCDR_20' ) end [2025-02-13 23:12:20] Production.INFO: ProcessCDR(1,14469684,1,1,2) [2025-02-13 23:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469684', 'tblTempUsageDetail_20' ) start [2025-02-13 23:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469684', 'tblTempUsageDetail_20' ) end [2025-02-13 23:12:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 23:12:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 23:12:25] Production.INFO: ==19896== Releasing lock... [2025-02-13 23:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 23:12:25] Production.INFO: 35.25 MB #Memory Used# [2025-02-13 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 20:13:05 [end_date_ymd] => 2025-02-13 23:13:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 20:13:05' and `end` < '2025-02-13 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-02-13 23:13:18] Production.INFO: count ==1025 [2025-02-13 23:13:18] Production.ERROR: pbx CDR StartTime 2025-02-13 20:13:05 - End Time 2025-02-13 23:13:05 [2025-02-13 23:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469689', 'tblTempUsageDetail_20' ) start [2025-02-13 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469689', 'tblTempUsageDetail_20' ) end [2025-02-13 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469689', 'tblTempVendorCDR_20' ) start [2025-02-13 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469689', 'tblTempVendorCDR_20' ) end [2025-02-13 23:13:18] Production.INFO: ProcessCDR(1,14469689,1,1,2) [2025-02-13 23:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469689', 'tblTempUsageDetail_20' ) start [2025-02-13 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469689', 'tblTempUsageDetail_20' ) end [2025-02-13 23:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 23:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 23:13:21] Production.INFO: ==19965== Releasing lock... [2025-02-13 23:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 23:13:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-13 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 20:14:05 [end_date_ymd] => 2025-02-13 23:14:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 20:14:05' and `end` < '2025-02-13 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-02-13 23:14:18] Production.INFO: count ==1026 [2025-02-13 23:14:18] Production.ERROR: pbx CDR StartTime 2025-02-13 20:14:05 - End Time 2025-02-13 23:14:05 [2025-02-13 23:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469694', 'tblTempUsageDetail_20' ) start [2025-02-13 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469694', 'tblTempUsageDetail_20' ) end [2025-02-13 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469694', 'tblTempVendorCDR_20' ) start [2025-02-13 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469694', 'tblTempVendorCDR_20' ) end [2025-02-13 23:14:18] Production.INFO: ProcessCDR(1,14469694,1,1,2) [2025-02-13 23:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469694', 'tblTempUsageDetail_20' ) start [2025-02-13 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469694', 'tblTempUsageDetail_20' ) end [2025-02-13 23:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 23:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 23:14:22] Production.INFO: ==20039== Releasing lock... [2025-02-13 23:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 23:14:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-13 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 20:15:05 [end_date_ymd] => 2025-02-13 23:15:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 20:15:05' and `end` < '2025-02-13 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-02-13 23:15:18] Production.INFO: count ==1029 [2025-02-13 23:15:18] Production.ERROR: pbx CDR StartTime 2025-02-13 20:15:05 - End Time 2025-02-13 23:15:05 [2025-02-13 23:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469699', 'tblTempUsageDetail_20' ) start [2025-02-13 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469699', 'tblTempUsageDetail_20' ) end [2025-02-13 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469699', 'tblTempVendorCDR_20' ) start [2025-02-13 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469699', 'tblTempVendorCDR_20' ) end [2025-02-13 23:15:18] Production.INFO: ProcessCDR(1,14469699,1,1,2) [2025-02-13 23:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469699', 'tblTempUsageDetail_20' ) start [2025-02-13 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469699', 'tblTempUsageDetail_20' ) end [2025-02-13 23:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 23:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 23:15:21] Production.INFO: ==20189== Releasing lock... [2025-02-13 23:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 23:15:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-13 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 20:16:05 [end_date_ymd] => 2025-02-13 23:16:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 20:16:05' and `end` < '2025-02-13 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-02-13 23:16:19] Production.INFO: count ==1028 [2025-02-13 23:16:19] Production.ERROR: pbx CDR StartTime 2025-02-13 20:16:05 - End Time 2025-02-13 23:16:05 [2025-02-13 23:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469704', 'tblTempUsageDetail_20' ) start [2025-02-13 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469704', 'tblTempUsageDetail_20' ) end [2025-02-13 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469704', 'tblTempVendorCDR_20' ) start [2025-02-13 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469704', 'tblTempVendorCDR_20' ) end [2025-02-13 23:16:19] Production.INFO: ProcessCDR(1,14469704,1,1,2) [2025-02-13 23:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469704', 'tblTempUsageDetail_20' ) start [2025-02-13 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469704', 'tblTempUsageDetail_20' ) end [2025-02-13 23:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 23:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 23:16:22] Production.INFO: ==20300== Releasing lock... [2025-02-13 23:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 23:16:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-13 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 20:17:05 [end_date_ymd] => 2025-02-13 23:17:05 [RateCDR] => 1 ) [2025-02-13 23: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-02-13 20:17:05' and `end` < '2025-02-13 23: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-02-13 23:17:18] Production.INFO: count ==1028 [2025-02-13 23:17:18] Production.ERROR: pbx CDR StartTime 2025-02-13 20:17:05 - End Time 2025-02-13 23:17:05 [2025-02-13 23:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469709', 'tblTempUsageDetail_20' ) start [2025-02-13 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469709', 'tblTempUsageDetail_20' ) end [2025-02-13 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469709', 'tblTempVendorCDR_20' ) start [2025-02-13 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469709', 'tblTempVendorCDR_20' ) end [2025-02-13 23:17:18] Production.INFO: ProcessCDR(1,14469709,1,1,2) [2025-02-13 23:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469709', 'tblTempUsageDetail_20' ) start [2025-02-13 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469709', 'tblTempUsageDetail_20' ) end [2025-02-13 23:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 23:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 23:17:21] Production.INFO: ==20371== Releasing lock... [2025-02-13 23:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 23:17:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-13 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 20:18:05 [end_date_ymd] => 2025-02-13 23:18:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 20:18:05' and `end` < '2025-02-13 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-02-13 23:18:19] Production.INFO: count ==1026 [2025-02-13 23:18:19] Production.ERROR: pbx CDR StartTime 2025-02-13 20:18:05 - End Time 2025-02-13 23:18:05 [2025-02-13 23:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469714', 'tblTempUsageDetail_20' ) start [2025-02-13 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469714', 'tblTempUsageDetail_20' ) end [2025-02-13 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469714', 'tblTempVendorCDR_20' ) start [2025-02-13 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469714', 'tblTempVendorCDR_20' ) end [2025-02-13 23:18:19] Production.INFO: ProcessCDR(1,14469714,1,1,2) [2025-02-13 23:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469714', 'tblTempUsageDetail_20' ) start [2025-02-13 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469714', 'tblTempUsageDetail_20' ) end [2025-02-13 23:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 23:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 23:18:22] Production.INFO: ==20443== Releasing lock... [2025-02-13 23:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 23:18:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-13 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 20:19:05 [end_date_ymd] => 2025-02-13 23:19:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 20:19:05' and `end` < '2025-02-13 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-02-13 23:19:19] Production.INFO: count ==1021 [2025-02-13 23:19:19] Production.ERROR: pbx CDR StartTime 2025-02-13 20:19:05 - End Time 2025-02-13 23:19:05 [2025-02-13 23:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469719', 'tblTempUsageDetail_20' ) start [2025-02-13 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469719', 'tblTempUsageDetail_20' ) end [2025-02-13 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469719', 'tblTempVendorCDR_20' ) start [2025-02-13 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469719', 'tblTempVendorCDR_20' ) end [2025-02-13 23:19:19] Production.INFO: ProcessCDR(1,14469719,1,1,2) [2025-02-13 23:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469719', 'tblTempUsageDetail_20' ) start [2025-02-13 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469719', 'tblTempUsageDetail_20' ) end [2025-02-13 23:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 23:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 23:19:22] Production.INFO: ==20520== Releasing lock... [2025-02-13 23:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 23:19:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-13 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 20:20:06 [end_date_ymd] => 2025-02-13 23:20:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 20:20:06' and `end` < '2025-02-13 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-02-13 23:20:20] Production.INFO: count ==1021 [2025-02-13 23:20:20] Production.ERROR: pbx CDR StartTime 2025-02-13 20:20:06 - End Time 2025-02-13 23:20:06 [2025-02-13 23:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 23:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469725', 'tblTempUsageDetail_20' ) start [2025-02-13 23:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469725', 'tblTempUsageDetail_20' ) end [2025-02-13 23:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469725', 'tblTempVendorCDR_20' ) start [2025-02-13 23:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469725', 'tblTempVendorCDR_20' ) end [2025-02-13 23:20:20] Production.INFO: ProcessCDR(1,14469725,1,1,2) [2025-02-13 23:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469725', 'tblTempUsageDetail_20' ) start [2025-02-13 23:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469725', 'tblTempUsageDetail_20' ) end [2025-02-13 23:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 23:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 23:20:23] Production.INFO: ==20593== Releasing lock... [2025-02-13 23:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 23:20:23] Production.INFO: 35.5 MB #Memory Used# [2025-02-13 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 20:21:05 [end_date_ymd] => 2025-02-13 23:21:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 20:21:05' and `end` < '2025-02-13 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-02-13 23:21:19] Production.INFO: count ==982 [2025-02-13 23:21:19] Production.ERROR: pbx CDR StartTime 2025-02-13 20:21:05 - End Time 2025-02-13 23:21:05 [2025-02-13 23:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469730', 'tblTempUsageDetail_20' ) start [2025-02-13 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469730', 'tblTempUsageDetail_20' ) end [2025-02-13 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469730', 'tblTempVendorCDR_20' ) start [2025-02-13 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469730', 'tblTempVendorCDR_20' ) end [2025-02-13 23:21:19] Production.INFO: ProcessCDR(1,14469730,1,1,2) [2025-02-13 23:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469730', 'tblTempUsageDetail_20' ) start [2025-02-13 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469730', 'tblTempUsageDetail_20' ) end [2025-02-13 23:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 23:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 23:21:22] Production.INFO: ==20666== Releasing lock... [2025-02-13 23:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 23:21:22] Production.INFO: 35 MB #Memory Used# [2025-02-13 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 20:22:05 [end_date_ymd] => 2025-02-13 23:22:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 20:22:05' and `end` < '2025-02-13 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-02-13 23:22:18] Production.INFO: count ==978 [2025-02-13 23:22:18] Production.ERROR: pbx CDR StartTime 2025-02-13 20:22:05 - End Time 2025-02-13 23:22:05 [2025-02-13 23:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469735', 'tblTempUsageDetail_20' ) start [2025-02-13 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469735', 'tblTempUsageDetail_20' ) end [2025-02-13 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469735', 'tblTempVendorCDR_20' ) start [2025-02-13 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469735', 'tblTempVendorCDR_20' ) end [2025-02-13 23:22:18] Production.INFO: ProcessCDR(1,14469735,1,1,2) [2025-02-13 23:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469735', 'tblTempUsageDetail_20' ) start [2025-02-13 23:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469735', 'tblTempUsageDetail_20' ) end [2025-02-13 23:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 23:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 23:22:22] Production.INFO: ==20736== Releasing lock... [2025-02-13 23:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 23:22:22] Production.INFO: 35 MB #Memory Used# [2025-02-13 23:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 20:23:06 [end_date_ymd] => 2025-02-13 23:23:06 [RateCDR] => 1 ) [2025-02-13 23: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-02-13 20:23:06' and `end` < '2025-02-13 23: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-02-13 23:23:19] Production.INFO: count ==978 [2025-02-13 23:23:19] Production.ERROR: pbx CDR StartTime 2025-02-13 20:23:06 - End Time 2025-02-13 23:23:06 [2025-02-13 23:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469740', 'tblTempUsageDetail_20' ) start [2025-02-13 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469740', 'tblTempUsageDetail_20' ) end [2025-02-13 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469740', 'tblTempVendorCDR_20' ) start [2025-02-13 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469740', 'tblTempVendorCDR_20' ) end [2025-02-13 23:23:19] Production.INFO: ProcessCDR(1,14469740,1,1,2) [2025-02-13 23:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469740', 'tblTempUsageDetail_20' ) start [2025-02-13 23:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469740', 'tblTempUsageDetail_20' ) end [2025-02-13 23:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 23:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 23:23:22] Production.INFO: ==20810== Releasing lock... [2025-02-13 23:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 23:23:22] Production.INFO: 35 MB #Memory Used# [2025-02-13 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 20:24:05 [end_date_ymd] => 2025-02-13 23:24:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 20:24:05' and `end` < '2025-02-13 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-02-13 23:24:18] Production.INFO: count ==986 [2025-02-13 23:24:18] Production.ERROR: pbx CDR StartTime 2025-02-13 20:24:05 - End Time 2025-02-13 23:24:05 [2025-02-13 23:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469745', 'tblTempUsageDetail_20' ) start [2025-02-13 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469745', 'tblTempUsageDetail_20' ) end [2025-02-13 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469745', 'tblTempVendorCDR_20' ) start [2025-02-13 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469745', 'tblTempVendorCDR_20' ) end [2025-02-13 23:24:18] Production.INFO: ProcessCDR(1,14469745,1,1,2) [2025-02-13 23:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469745', 'tblTempUsageDetail_20' ) start [2025-02-13 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469745', 'tblTempUsageDetail_20' ) end [2025-02-13 23:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 23:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 23:24:22] Production.INFO: ==20883== Releasing lock... [2025-02-13 23:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 23:24:22] Production.INFO: 35 MB #Memory Used# [2025-02-13 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 20:25:05 [end_date_ymd] => 2025-02-13 23:25:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 20:25:05' and `end` < '2025-02-13 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-02-13 23:25:18] Production.INFO: count ==986 [2025-02-13 23:25:19] Production.ERROR: pbx CDR StartTime 2025-02-13 20:25:05 - End Time 2025-02-13 23:25:05 [2025-02-13 23:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469750', 'tblTempUsageDetail_20' ) start [2025-02-13 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469750', 'tblTempUsageDetail_20' ) end [2025-02-13 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469750', 'tblTempVendorCDR_20' ) start [2025-02-13 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469750', 'tblTempVendorCDR_20' ) end [2025-02-13 23:25:19] Production.INFO: ProcessCDR(1,14469750,1,1,2) [2025-02-13 23:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469750', 'tblTempUsageDetail_20' ) start [2025-02-13 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469750', 'tblTempUsageDetail_20' ) end [2025-02-13 23:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 23:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 23:25:22] Production.INFO: ==20953== Releasing lock... [2025-02-13 23:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 23:25:22] Production.INFO: 35 MB #Memory Used# [2025-02-13 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 20:26:05 [end_date_ymd] => 2025-02-13 23:26:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 20:26:05' and `end` < '2025-02-13 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-02-13 23:26:19] Production.INFO: count ==981 [2025-02-13 23:26:19] Production.ERROR: pbx CDR StartTime 2025-02-13 20:26:05 - End Time 2025-02-13 23:26:05 [2025-02-13 23:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469755', 'tblTempUsageDetail_20' ) start [2025-02-13 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469755', 'tblTempUsageDetail_20' ) end [2025-02-13 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469755', 'tblTempVendorCDR_20' ) start [2025-02-13 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469755', 'tblTempVendorCDR_20' ) end [2025-02-13 23:26:19] Production.INFO: ProcessCDR(1,14469755,1,1,2) [2025-02-13 23:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469755', 'tblTempUsageDetail_20' ) start [2025-02-13 23:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469755', 'tblTempUsageDetail_20' ) end [2025-02-13 23:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 23:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 23:26:22] Production.INFO: ==21032== Releasing lock... [2025-02-13 23:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 23:26:22] Production.INFO: 35 MB #Memory Used# [2025-02-13 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 20:27:05 [end_date_ymd] => 2025-02-13 23:27:05 [RateCDR] => 1 ) [2025-02-13 23: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-02-13 20:27:05' and `end` < '2025-02-13 23: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-02-13 23:27:18] Production.INFO: count ==980 [2025-02-13 23:27:18] Production.ERROR: pbx CDR StartTime 2025-02-13 20:27:05 - End Time 2025-02-13 23:27:05 [2025-02-13 23:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469760', 'tblTempUsageDetail_20' ) start [2025-02-13 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469760', 'tblTempUsageDetail_20' ) end [2025-02-13 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469760', 'tblTempVendorCDR_20' ) start [2025-02-13 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469760', 'tblTempVendorCDR_20' ) end [2025-02-13 23:27:18] Production.INFO: ProcessCDR(1,14469760,1,1,2) [2025-02-13 23:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469760', 'tblTempUsageDetail_20' ) start [2025-02-13 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469760', 'tblTempUsageDetail_20' ) end [2025-02-13 23:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 23:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 23:27:22] Production.INFO: ==21102== Releasing lock... [2025-02-13 23:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 23:27:22] Production.INFO: 35 MB #Memory Used# [2025-02-13 23:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 20:28:04 [end_date_ymd] => 2025-02-13 23:28:04 [RateCDR] => 1 ) [2025-02-13 23: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-02-13 20:28:04' and `end` < '2025-02-13 23: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-02-13 23:28:18] Production.INFO: count ==981 [2025-02-13 23:28:18] Production.ERROR: pbx CDR StartTime 2025-02-13 20:28:04 - End Time 2025-02-13 23:28:04 [2025-02-13 23:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469765', 'tblTempUsageDetail_20' ) start [2025-02-13 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469765', 'tblTempUsageDetail_20' ) end [2025-02-13 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469765', 'tblTempVendorCDR_20' ) start [2025-02-13 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469765', 'tblTempVendorCDR_20' ) end [2025-02-13 23:28:18] Production.INFO: ProcessCDR(1,14469765,1,1,2) [2025-02-13 23:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469765', 'tblTempUsageDetail_20' ) start [2025-02-13 23:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469765', 'tblTempUsageDetail_20' ) end [2025-02-13 23:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 23:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 23:28:23] Production.INFO: ==21172== Releasing lock... [2025-02-13 23:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 23:28:23] Production.INFO: 35 MB #Memory Used# [2025-02-13 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 20:29:05 [end_date_ymd] => 2025-02-13 23:29:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 20:29:05' and `end` < '2025-02-13 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-02-13 23:29:19] Production.INFO: count ==975 [2025-02-13 23:29:19] Production.ERROR: pbx CDR StartTime 2025-02-13 20:29:05 - End Time 2025-02-13 23:29:05 [2025-02-13 23:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469770', 'tblTempUsageDetail_20' ) start [2025-02-13 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469770', 'tblTempUsageDetail_20' ) end [2025-02-13 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469770', 'tblTempVendorCDR_20' ) start [2025-02-13 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469770', 'tblTempVendorCDR_20' ) end [2025-02-13 23:29:19] Production.INFO: ProcessCDR(1,14469770,1,1,2) [2025-02-13 23:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469770', 'tblTempUsageDetail_20' ) start [2025-02-13 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469770', 'tblTempUsageDetail_20' ) end [2025-02-13 23:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 23:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 23:29:22] Production.INFO: ==21242== Releasing lock... [2025-02-13 23:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 23:29:22] Production.INFO: 35 MB #Memory Used# [2025-02-13 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 20:30:06 [end_date_ymd] => 2025-02-13 23:30:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 20:30:06' and `end` < '2025-02-13 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-02-13 23:30:19] Production.INFO: count ==974 [2025-02-13 23:30:19] Production.ERROR: pbx CDR StartTime 2025-02-13 20:30:06 - End Time 2025-02-13 23:30:06 [2025-02-13 23:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469776', 'tblTempUsageDetail_20' ) start [2025-02-13 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469776', 'tblTempUsageDetail_20' ) end [2025-02-13 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469776', 'tblTempVendorCDR_20' ) start [2025-02-13 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469776', 'tblTempVendorCDR_20' ) end [2025-02-13 23:30:19] Production.INFO: ProcessCDR(1,14469776,1,1,2) [2025-02-13 23:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469776', 'tblTempUsageDetail_20' ) start [2025-02-13 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469776', 'tblTempUsageDetail_20' ) end [2025-02-13 23:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 23:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 23:30:23] Production.INFO: ==21318== Releasing lock... [2025-02-13 23:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 23:30:23] Production.INFO: 34.75 MB #Memory Used# [2025-02-13 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 20:31:05 [end_date_ymd] => 2025-02-13 23:31:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 20:31:05' and `end` < '2025-02-13 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-02-13 23:31:18] Production.INFO: count ==959 [2025-02-13 23:31:18] Production.ERROR: pbx CDR StartTime 2025-02-13 20:31:05 - End Time 2025-02-13 23:31:05 [2025-02-13 23:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469781', 'tblTempUsageDetail_20' ) start [2025-02-13 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469781', 'tblTempUsageDetail_20' ) end [2025-02-13 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469781', 'tblTempVendorCDR_20' ) start [2025-02-13 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469781', 'tblTempVendorCDR_20' ) end [2025-02-13 23:31:18] Production.INFO: ProcessCDR(1,14469781,1,1,2) [2025-02-13 23:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469781', 'tblTempUsageDetail_20' ) start [2025-02-13 23:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469781', 'tblTempUsageDetail_20' ) end [2025-02-13 23:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 23:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 23:31:22] Production.INFO: ==21391== Releasing lock... [2025-02-13 23:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 23:31:22] Production.INFO: 35 MB #Memory Used# [2025-02-13 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 20:32:05 [end_date_ymd] => 2025-02-13 23:32:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 20:32:05' and `end` < '2025-02-13 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-02-13 23:32:18] Production.INFO: count ==953 [2025-02-13 23:32:19] Production.ERROR: pbx CDR StartTime 2025-02-13 20:32:05 - End Time 2025-02-13 23:32:05 [2025-02-13 23:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469786', 'tblTempUsageDetail_20' ) start [2025-02-13 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469786', 'tblTempUsageDetail_20' ) end [2025-02-13 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469786', 'tblTempVendorCDR_20' ) start [2025-02-13 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469786', 'tblTempVendorCDR_20' ) end [2025-02-13 23:32:19] Production.INFO: ProcessCDR(1,14469786,1,1,2) [2025-02-13 23:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469786', 'tblTempUsageDetail_20' ) start [2025-02-13 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469786', 'tblTempUsageDetail_20' ) end [2025-02-13 23:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 23:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 23:32:22] Production.INFO: ==21501== Releasing lock... [2025-02-13 23:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 23:32:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-13 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 20:33:05 [end_date_ymd] => 2025-02-13 23:33:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 20:33:05' and `end` < '2025-02-13 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-02-13 23:33:18] Production.INFO: count ==954 [2025-02-13 23:33:18] Production.ERROR: pbx CDR StartTime 2025-02-13 20:33:05 - End Time 2025-02-13 23:33:05 [2025-02-13 23:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469791', 'tblTempUsageDetail_20' ) start [2025-02-13 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469791', 'tblTempUsageDetail_20' ) end [2025-02-13 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469791', 'tblTempVendorCDR_20' ) start [2025-02-13 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469791', 'tblTempVendorCDR_20' ) end [2025-02-13 23:33:18] Production.INFO: ProcessCDR(1,14469791,1,1,2) [2025-02-13 23:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469791', 'tblTempUsageDetail_20' ) start [2025-02-13 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469791', 'tblTempUsageDetail_20' ) end [2025-02-13 23:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 23:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 23:33:23] Production.INFO: ==21570== Releasing lock... [2025-02-13 23:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 23:33:23] Production.INFO: 34.75 MB #Memory Used# [2025-02-13 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 20:34:05 [end_date_ymd] => 2025-02-13 23:34:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 20:34:05' and `end` < '2025-02-13 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-02-13 23:34:18] Production.INFO: count ==952 [2025-02-13 23:34:18] Production.ERROR: pbx CDR StartTime 2025-02-13 20:34:05 - End Time 2025-02-13 23:34:05 [2025-02-13 23:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469796', 'tblTempUsageDetail_20' ) start [2025-02-13 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469796', 'tblTempUsageDetail_20' ) end [2025-02-13 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469796', 'tblTempVendorCDR_20' ) start [2025-02-13 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469796', 'tblTempVendorCDR_20' ) end [2025-02-13 23:34:18] Production.INFO: ProcessCDR(1,14469796,1,1,2) [2025-02-13 23:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469796', 'tblTempUsageDetail_20' ) start [2025-02-13 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469796', 'tblTempUsageDetail_20' ) end [2025-02-13 23:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 23:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 23:34:22] Production.INFO: ==21643== Releasing lock... [2025-02-13 23:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 23:34:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-13 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 20:35:05 [end_date_ymd] => 2025-02-13 23:35:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 20:35:05' and `end` < '2025-02-13 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-02-13 23:35:18] Production.INFO: count ==954 [2025-02-13 23:35:18] Production.ERROR: pbx CDR StartTime 2025-02-13 20:35:05 - End Time 2025-02-13 23:35:05 [2025-02-13 23:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469801', 'tblTempUsageDetail_20' ) start [2025-02-13 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469801', 'tblTempUsageDetail_20' ) end [2025-02-13 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469801', 'tblTempVendorCDR_20' ) start [2025-02-13 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469801', 'tblTempVendorCDR_20' ) end [2025-02-13 23:35:18] Production.INFO: ProcessCDR(1,14469801,1,1,2) [2025-02-13 23:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469801', 'tblTempUsageDetail_20' ) start [2025-02-13 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469801', 'tblTempUsageDetail_20' ) end [2025-02-13 23:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 23:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 23:35:21] Production.INFO: ==21714== Releasing lock... [2025-02-13 23:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 23:35:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-13 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 20:36:05 [end_date_ymd] => 2025-02-13 23:36:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 20:36:05' and `end` < '2025-02-13 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-02-13 23:36:18] Production.INFO: count ==953 [2025-02-13 23:36:18] Production.ERROR: pbx CDR StartTime 2025-02-13 20:36:05 - End Time 2025-02-13 23:36:05 [2025-02-13 23:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469806', 'tblTempUsageDetail_20' ) start [2025-02-13 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469806', 'tblTempUsageDetail_20' ) end [2025-02-13 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469806', 'tblTempVendorCDR_20' ) start [2025-02-13 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469806', 'tblTempVendorCDR_20' ) end [2025-02-13 23:36:18] Production.INFO: ProcessCDR(1,14469806,1,1,2) [2025-02-13 23:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469806', 'tblTempUsageDetail_20' ) start [2025-02-13 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469806', 'tblTempUsageDetail_20' ) end [2025-02-13 23:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 23:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 23:36:21] Production.INFO: ==21787== Releasing lock... [2025-02-13 23:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 23:36:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-13 23:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 20:37:04 [end_date_ymd] => 2025-02-13 23:37:04 [RateCDR] => 1 ) [2025-02-13 23:37: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-02-13 20:37:04' and `end` < '2025-02-13 23:37: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-02-13 23:37:17] Production.INFO: count ==953 [2025-02-13 23:37:17] Production.ERROR: pbx CDR StartTime 2025-02-13 20:37:04 - End Time 2025-02-13 23:37:04 [2025-02-13 23:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469811', 'tblTempUsageDetail_20' ) start [2025-02-13 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469811', 'tblTempUsageDetail_20' ) end [2025-02-13 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469811', 'tblTempVendorCDR_20' ) start [2025-02-13 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469811', 'tblTempVendorCDR_20' ) end [2025-02-13 23:37:17] Production.INFO: ProcessCDR(1,14469811,1,1,2) [2025-02-13 23:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469811', 'tblTempUsageDetail_20' ) start [2025-02-13 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469811', 'tblTempUsageDetail_20' ) end [2025-02-13 23:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 23:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 23:37:21] Production.INFO: ==21862== Releasing lock... [2025-02-13 23:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 23:37:21] Production.INFO: 35 MB #Memory Used# [2025-02-13 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 20:38:05 [end_date_ymd] => 2025-02-13 23:38:05 [RateCDR] => 1 ) [2025-02-13 23: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-02-13 20:38:05' and `end` < '2025-02-13 23: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-02-13 23:38:19] Production.INFO: count ==949 [2025-02-13 23:38:19] Production.ERROR: pbx CDR StartTime 2025-02-13 20:38:05 - End Time 2025-02-13 23:38:05 [2025-02-13 23:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469816', 'tblTempUsageDetail_20' ) start [2025-02-13 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469816', 'tblTempUsageDetail_20' ) end [2025-02-13 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469816', 'tblTempVendorCDR_20' ) start [2025-02-13 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469816', 'tblTempVendorCDR_20' ) end [2025-02-13 23:38:19] Production.INFO: ProcessCDR(1,14469816,1,1,2) [2025-02-13 23:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469816', 'tblTempUsageDetail_20' ) start [2025-02-13 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469816', 'tblTempUsageDetail_20' ) end [2025-02-13 23:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 23:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 23:38:22] Production.INFO: ==21933== Releasing lock... [2025-02-13 23:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 23:38:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-13 23:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 20:39:06 [end_date_ymd] => 2025-02-13 23:39:06 [RateCDR] => 1 ) [2025-02-13 23: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-02-13 20:39:06' and `end` < '2025-02-13 23: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-02-13 23:39:19] Production.INFO: count ==949 [2025-02-13 23:39:19] Production.ERROR: pbx CDR StartTime 2025-02-13 20:39:06 - End Time 2025-02-13 23:39:06 [2025-02-13 23:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469821', 'tblTempUsageDetail_20' ) start [2025-02-13 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469821', 'tblTempUsageDetail_20' ) end [2025-02-13 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469821', 'tblTempVendorCDR_20' ) start [2025-02-13 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469821', 'tblTempVendorCDR_20' ) end [2025-02-13 23:39:19] Production.INFO: ProcessCDR(1,14469821,1,1,2) [2025-02-13 23:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469821', 'tblTempUsageDetail_20' ) start [2025-02-13 23:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469821', 'tblTempUsageDetail_20' ) end [2025-02-13 23:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 23:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 23:39:22] Production.INFO: ==22012== Releasing lock... [2025-02-13 23:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 23:39:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-13 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 20:40:06 [end_date_ymd] => 2025-02-13 23:40:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 20:40:06' and `end` < '2025-02-13 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-02-13 23:40:19] Production.INFO: count ==947 [2025-02-13 23:40:19] Production.ERROR: pbx CDR StartTime 2025-02-13 20:40:06 - End Time 2025-02-13 23:40:06 [2025-02-13 23:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469827', 'tblTempUsageDetail_20' ) start [2025-02-13 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469827', 'tblTempUsageDetail_20' ) end [2025-02-13 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469827', 'tblTempVendorCDR_20' ) start [2025-02-13 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469827', 'tblTempVendorCDR_20' ) end [2025-02-13 23:40:19] Production.INFO: ProcessCDR(1,14469827,1,1,2) [2025-02-13 23:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469827', 'tblTempUsageDetail_20' ) start [2025-02-13 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469827', 'tblTempUsageDetail_20' ) end [2025-02-13 23:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 23:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 23:40:22] Production.INFO: ==22100== Releasing lock... [2025-02-13 23:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 23:40:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-13 23:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 20:41:04 [end_date_ymd] => 2025-02-13 23:41:04 [RateCDR] => 1 ) [2025-02-13 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-02-13 20:41:04' and `end` < '2025-02-13 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-02-13 23:41:18] Production.INFO: count ==885 [2025-02-13 23:41:18] Production.ERROR: pbx CDR StartTime 2025-02-13 20:41:04 - End Time 2025-02-13 23:41:04 [2025-02-13 23:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469832', 'tblTempUsageDetail_20' ) start [2025-02-13 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469832', 'tblTempUsageDetail_20' ) end [2025-02-13 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469832', 'tblTempVendorCDR_20' ) start [2025-02-13 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469832', 'tblTempVendorCDR_20' ) end [2025-02-13 23:41:18] Production.INFO: ProcessCDR(1,14469832,1,1,2) [2025-02-13 23:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469832', 'tblTempUsageDetail_20' ) start [2025-02-13 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469832', 'tblTempUsageDetail_20' ) end [2025-02-13 23:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 23:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 23:41:21] Production.INFO: ==22206== Releasing lock... [2025-02-13 23:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 23:41:21] Production.INFO: 33.75 MB #Memory Used# [2025-02-13 23:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 20:42:06 [end_date_ymd] => 2025-02-13 23:42:06 [RateCDR] => 1 ) [2025-02-13 23: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-02-13 20:42:06' and `end` < '2025-02-13 23: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-02-13 23:42:19] Production.INFO: count ==883 [2025-02-13 23:42:19] Production.ERROR: pbx CDR StartTime 2025-02-13 20:42:06 - End Time 2025-02-13 23:42:06 [2025-02-13 23:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469837', 'tblTempUsageDetail_20' ) start [2025-02-13 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469837', 'tblTempUsageDetail_20' ) end [2025-02-13 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469837', 'tblTempVendorCDR_20' ) start [2025-02-13 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469837', 'tblTempVendorCDR_20' ) end [2025-02-13 23:42:19] Production.INFO: ProcessCDR(1,14469837,1,1,2) [2025-02-13 23:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469837', 'tblTempUsageDetail_20' ) start [2025-02-13 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469837', 'tblTempUsageDetail_20' ) end [2025-02-13 23:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 23:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 23:42:22] Production.INFO: ==22279== Releasing lock... [2025-02-13 23:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 23:42:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-13 23:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 20:43:04 [end_date_ymd] => 2025-02-13 23:43:04 [RateCDR] => 1 ) [2025-02-13 23: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-02-13 20:43:04' and `end` < '2025-02-13 23: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-02-13 23:43:17] Production.INFO: count ==891 [2025-02-13 23:43:18] Production.ERROR: pbx CDR StartTime 2025-02-13 20:43:04 - End Time 2025-02-13 23:43:04 [2025-02-13 23:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469842', 'tblTempUsageDetail_20' ) start [2025-02-13 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469842', 'tblTempUsageDetail_20' ) end [2025-02-13 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469842', 'tblTempVendorCDR_20' ) start [2025-02-13 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469842', 'tblTempVendorCDR_20' ) end [2025-02-13 23:43:18] Production.INFO: ProcessCDR(1,14469842,1,1,2) [2025-02-13 23:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469842', 'tblTempUsageDetail_20' ) start [2025-02-13 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469842', 'tblTempUsageDetail_20' ) end [2025-02-13 23:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 23:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 23:43:21] Production.INFO: ==22350== Releasing lock... [2025-02-13 23:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 23:43:21] Production.INFO: 34 MB #Memory Used# [2025-02-13 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 20:44:05 [end_date_ymd] => 2025-02-13 23:44:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 20:44:05' and `end` < '2025-02-13 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-02-13 23:44:19] Production.INFO: count ==892 [2025-02-13 23:44:19] Production.ERROR: pbx CDR StartTime 2025-02-13 20:44:05 - End Time 2025-02-13 23:44:05 [2025-02-13 23:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469847', 'tblTempUsageDetail_20' ) start [2025-02-13 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469847', 'tblTempUsageDetail_20' ) end [2025-02-13 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469847', 'tblTempVendorCDR_20' ) start [2025-02-13 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469847', 'tblTempVendorCDR_20' ) end [2025-02-13 23:44:19] Production.INFO: ProcessCDR(1,14469847,1,1,2) [2025-02-13 23:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469847', 'tblTempUsageDetail_20' ) start [2025-02-13 23:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469847', 'tblTempUsageDetail_20' ) end [2025-02-13 23:44:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 23:44:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 23:44:24] Production.INFO: ==22421== Releasing lock... [2025-02-13 23:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 23:44:24] Production.INFO: 34 MB #Memory Used# [2025-02-13 23:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 20:45:04 [end_date_ymd] => 2025-02-13 23:45:04 [RateCDR] => 1 ) [2025-02-13 23: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-02-13 20:45:04' and `end` < '2025-02-13 23: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-02-13 23:45:18] Production.INFO: count ==891 [2025-02-13 23:45:18] Production.ERROR: pbx CDR StartTime 2025-02-13 20:45:04 - End Time 2025-02-13 23:45:04 [2025-02-13 23:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469852', 'tblTempUsageDetail_20' ) start [2025-02-13 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469852', 'tblTempUsageDetail_20' ) end [2025-02-13 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469852', 'tblTempVendorCDR_20' ) start [2025-02-13 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469852', 'tblTempVendorCDR_20' ) end [2025-02-13 23:45:18] Production.INFO: ProcessCDR(1,14469852,1,1,2) [2025-02-13 23:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469852', 'tblTempUsageDetail_20' ) start [2025-02-13 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469852', 'tblTempUsageDetail_20' ) end [2025-02-13 23:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 23:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 23:45:21] Production.INFO: ==22492== Releasing lock... [2025-02-13 23:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 23:45:21] Production.INFO: 34 MB #Memory Used# [2025-02-13 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 20:46:05 [end_date_ymd] => 2025-02-13 23:46:05 [RateCDR] => 1 ) [2025-02-13 23: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-02-13 20:46:05' and `end` < '2025-02-13 23: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-02-13 23:46:18] Production.INFO: count ==891 [2025-02-13 23:46:19] Production.ERROR: pbx CDR StartTime 2025-02-13 20:46:05 - End Time 2025-02-13 23:46:05 [2025-02-13 23:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469857', 'tblTempUsageDetail_20' ) start [2025-02-13 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469857', 'tblTempUsageDetail_20' ) end [2025-02-13 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469857', 'tblTempVendorCDR_20' ) start [2025-02-13 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469857', 'tblTempVendorCDR_20' ) end [2025-02-13 23:46:19] Production.INFO: ProcessCDR(1,14469857,1,1,2) [2025-02-13 23:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469857', 'tblTempUsageDetail_20' ) start [2025-02-13 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469857', 'tblTempUsageDetail_20' ) end [2025-02-13 23:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 23:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 23:46:22] Production.INFO: ==22567== Releasing lock... [2025-02-13 23:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 23:46:22] Production.INFO: 34 MB #Memory Used# [2025-02-13 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 20:47:05 [end_date_ymd] => 2025-02-13 23:47:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 20:47:05' and `end` < '2025-02-13 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-02-13 23:47:18] Production.INFO: count ==890 [2025-02-13 23:47:18] Production.ERROR: pbx CDR StartTime 2025-02-13 20:47:05 - End Time 2025-02-13 23:47:05 [2025-02-13 23:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469862', 'tblTempUsageDetail_20' ) start [2025-02-13 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469862', 'tblTempUsageDetail_20' ) end [2025-02-13 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469862', 'tblTempVendorCDR_20' ) start [2025-02-13 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469862', 'tblTempVendorCDR_20' ) end [2025-02-13 23:47:18] Production.INFO: ProcessCDR(1,14469862,1,1,2) [2025-02-13 23:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469862', 'tblTempUsageDetail_20' ) start [2025-02-13 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469862', 'tblTempUsageDetail_20' ) end [2025-02-13 23:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 23:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 23:47:21] Production.INFO: ==22676== Releasing lock... [2025-02-13 23:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 23:47:21] Production.INFO: 34 MB #Memory Used# [2025-02-13 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 20:48:05 [end_date_ymd] => 2025-02-13 23:48:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 20:48:05' and `end` < '2025-02-13 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-02-13 23:48:19] Production.INFO: count ==891 [2025-02-13 23:48:19] Production.ERROR: pbx CDR StartTime 2025-02-13 20:48:05 - End Time 2025-02-13 23:48:05 [2025-02-13 23:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469867', 'tblTempUsageDetail_20' ) start [2025-02-13 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469867', 'tblTempUsageDetail_20' ) end [2025-02-13 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469867', 'tblTempVendorCDR_20' ) start [2025-02-13 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469867', 'tblTempVendorCDR_20' ) end [2025-02-13 23:48:19] Production.INFO: ProcessCDR(1,14469867,1,1,2) [2025-02-13 23:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469867', 'tblTempUsageDetail_20' ) start [2025-02-13 23:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469867', 'tblTempUsageDetail_20' ) end [2025-02-13 23:48:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 23:48:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 23:48:24] Production.INFO: ==22747== Releasing lock... [2025-02-13 23:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 23:48:24] Production.INFO: 34 MB #Memory Used# [2025-02-13 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 20:49:05 [end_date_ymd] => 2025-02-13 23:49:05 [RateCDR] => 1 ) [2025-02-13 23: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-02-13 20:49:05' and `end` < '2025-02-13 23: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-02-13 23:49:18] Production.INFO: count ==888 [2025-02-13 23:49:19] Production.ERROR: pbx CDR StartTime 2025-02-13 20:49:05 - End Time 2025-02-13 23:49:05 [2025-02-13 23:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469872', 'tblTempUsageDetail_20' ) start [2025-02-13 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469872', 'tblTempUsageDetail_20' ) end [2025-02-13 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469872', 'tblTempVendorCDR_20' ) start [2025-02-13 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469872', 'tblTempVendorCDR_20' ) end [2025-02-13 23:49:19] Production.INFO: ProcessCDR(1,14469872,1,1,2) [2025-02-13 23:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469872', 'tblTempUsageDetail_20' ) start [2025-02-13 23:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469872', 'tblTempUsageDetail_20' ) end [2025-02-13 23:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 23:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 23:49:23] Production.INFO: ==22819== Releasing lock... [2025-02-13 23:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 23:49:23] Production.INFO: 34.25 MB #Memory Used# [2025-02-13 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 20:50:06 [end_date_ymd] => 2025-02-13 23:50:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 20:50:06' and `end` < '2025-02-13 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-02-13 23:50:19] Production.INFO: count ==889 [2025-02-13 23:50:19] Production.ERROR: pbx CDR StartTime 2025-02-13 20:50:06 - End Time 2025-02-13 23:50:06 [2025-02-13 23:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469878', 'tblTempUsageDetail_20' ) start [2025-02-13 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469878', 'tblTempUsageDetail_20' ) end [2025-02-13 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469878', 'tblTempVendorCDR_20' ) start [2025-02-13 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469878', 'tblTempVendorCDR_20' ) end [2025-02-13 23:50:19] Production.INFO: ProcessCDR(1,14469878,1,1,2) [2025-02-13 23:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469878', 'tblTempUsageDetail_20' ) start [2025-02-13 23:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469878', 'tblTempUsageDetail_20' ) end [2025-02-13 23:50:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 23:50:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 23:50:24] Production.INFO: ==22894== Releasing lock... [2025-02-13 23:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 23:50:24] Production.INFO: 33.75 MB #Memory Used# [2025-02-13 23:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 20:51:06 [end_date_ymd] => 2025-02-13 23:51:06 [RateCDR] => 1 ) [2025-02-13 23: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-02-13 20:51:06' and `end` < '2025-02-13 23: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-02-13 23:51:19] Production.INFO: count ==884 [2025-02-13 23:51:19] Production.ERROR: pbx CDR StartTime 2025-02-13 20:51:06 - End Time 2025-02-13 23:51:06 [2025-02-13 23:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469883', 'tblTempUsageDetail_20' ) start [2025-02-13 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469883', 'tblTempUsageDetail_20' ) end [2025-02-13 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469883', 'tblTempVendorCDR_20' ) start [2025-02-13 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469883', 'tblTempVendorCDR_20' ) end [2025-02-13 23:51:19] Production.INFO: ProcessCDR(1,14469883,1,1,2) [2025-02-13 23:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469883', 'tblTempUsageDetail_20' ) start [2025-02-13 23:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469883', 'tblTempUsageDetail_20' ) end [2025-02-13 23:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 23:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 23:51:22] Production.INFO: ==22966== Releasing lock... [2025-02-13 23:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 23:51:22] Production.INFO: 34 MB #Memory Used# [2025-02-13 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 20:52:05 [end_date_ymd] => 2025-02-13 23:52:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 20:52:05' and `end` < '2025-02-13 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-02-13 23:52:18] Production.INFO: count ==878 [2025-02-13 23:52:18] Production.ERROR: pbx CDR StartTime 2025-02-13 20:52:05 - End Time 2025-02-13 23:52:05 [2025-02-13 23:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469888', 'tblTempUsageDetail_20' ) start [2025-02-13 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469888', 'tblTempUsageDetail_20' ) end [2025-02-13 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469888', 'tblTempVendorCDR_20' ) start [2025-02-13 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469888', 'tblTempVendorCDR_20' ) end [2025-02-13 23:52:18] Production.INFO: ProcessCDR(1,14469888,1,1,2) [2025-02-13 23:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469888', 'tblTempUsageDetail_20' ) start [2025-02-13 23:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469888', 'tblTempUsageDetail_20' ) end [2025-02-13 23:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 23:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 23:52:23] Production.INFO: ==23037== Releasing lock... [2025-02-13 23:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 23:52:23] Production.INFO: 33.75 MB #Memory Used# [2025-02-13 23:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 20:53:06 [end_date_ymd] => 2025-02-13 23:53:06 [RateCDR] => 1 ) [2025-02-13 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-02-13 20:53:06' and `end` < '2025-02-13 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-02-13 23:53:19] Production.INFO: count ==873 [2025-02-13 23:53:19] Production.ERROR: pbx CDR StartTime 2025-02-13 20:53:06 - End Time 2025-02-13 23:53:06 [2025-02-13 23:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469893', 'tblTempUsageDetail_20' ) start [2025-02-13 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469893', 'tblTempUsageDetail_20' ) end [2025-02-13 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469893', 'tblTempVendorCDR_20' ) start [2025-02-13 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469893', 'tblTempVendorCDR_20' ) end [2025-02-13 23:53:19] Production.INFO: ProcessCDR(1,14469893,1,1,2) [2025-02-13 23:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469893', 'tblTempUsageDetail_20' ) start [2025-02-13 23:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469893', 'tblTempUsageDetail_20' ) end [2025-02-13 23:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 23:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 23:53:23] Production.INFO: ==23111== Releasing lock... [2025-02-13 23:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 23:53:23] Production.INFO: 33.75 MB #Memory Used# [2025-02-13 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 20:54:05 [end_date_ymd] => 2025-02-13 23:54:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 20:54:05' and `end` < '2025-02-13 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-02-13 23:54:18] Production.INFO: count ==874 [2025-02-13 23:54:18] Production.ERROR: pbx CDR StartTime 2025-02-13 20:54:05 - End Time 2025-02-13 23:54:05 [2025-02-13 23:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469898', 'tblTempUsageDetail_20' ) start [2025-02-13 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469898', 'tblTempUsageDetail_20' ) end [2025-02-13 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469898', 'tblTempVendorCDR_20' ) start [2025-02-13 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469898', 'tblTempVendorCDR_20' ) end [2025-02-13 23:54:18] Production.INFO: ProcessCDR(1,14469898,1,1,2) [2025-02-13 23:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469898', 'tblTempUsageDetail_20' ) start [2025-02-13 23:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469898', 'tblTempUsageDetail_20' ) end [2025-02-13 23:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-13 23:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-13 23:54:23] Production.INFO: ==23182== Releasing lock... [2025-02-13 23:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 23:54:23] Production.INFO: 34 MB #Memory Used# [2025-02-13 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 20:55:05 [end_date_ymd] => 2025-02-13 23:55:05 [RateCDR] => 1 ) [2025-02-13 23: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-02-13 20:55:05' and `end` < '2025-02-13 23: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-02-13 23:55:18] Production.INFO: count ==869 [2025-02-13 23:55:19] Production.ERROR: pbx CDR StartTime 2025-02-13 20:55:05 - End Time 2025-02-13 23:55:05 [2025-02-13 23:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469903', 'tblTempUsageDetail_20' ) start [2025-02-13 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469903', 'tblTempUsageDetail_20' ) end [2025-02-13 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469903', 'tblTempVendorCDR_20' ) start [2025-02-13 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469903', 'tblTempVendorCDR_20' ) end [2025-02-13 23:55:19] Production.INFO: ProcessCDR(1,14469903,1,1,2) [2025-02-13 23:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469903', 'tblTempUsageDetail_20' ) start [2025-02-13 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469903', 'tblTempUsageDetail_20' ) end [2025-02-13 23:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 23:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 23:55:22] Production.INFO: ==23251== Releasing lock... [2025-02-13 23:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 23:55:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-13 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 20:56:05 [end_date_ymd] => 2025-02-13 23:56:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 20:56:05' and `end` < '2025-02-13 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-02-13 23:56:18] Production.INFO: count ==869 [2025-02-13 23:56:18] Production.ERROR: pbx CDR StartTime 2025-02-13 20:56:05 - End Time 2025-02-13 23:56:05 [2025-02-13 23:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469908', 'tblTempUsageDetail_20' ) start [2025-02-13 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469908', 'tblTempUsageDetail_20' ) end [2025-02-13 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469908', 'tblTempVendorCDR_20' ) start [2025-02-13 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469908', 'tblTempVendorCDR_20' ) end [2025-02-13 23:56:18] Production.INFO: ProcessCDR(1,14469908,1,1,2) [2025-02-13 23:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469908', 'tblTempUsageDetail_20' ) start [2025-02-13 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469908', 'tblTempUsageDetail_20' ) end [2025-02-13 23:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-13 23:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-13 23:56:22] Production.INFO: ==23325== Releasing lock... [2025-02-13 23:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 23:56:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-13 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 20:57:05 [end_date_ymd] => 2025-02-13 23:57:05 [RateCDR] => 1 ) [2025-02-13 23: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-02-13 20:57:05' and `end` < '2025-02-13 23: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-02-13 23:57:18] Production.INFO: count ==866 [2025-02-13 23:57:18] Production.ERROR: pbx CDR StartTime 2025-02-13 20:57:05 - End Time 2025-02-13 23:57:05 [2025-02-13 23:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469913', 'tblTempUsageDetail_20' ) start [2025-02-13 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469913', 'tblTempUsageDetail_20' ) end [2025-02-13 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469913', 'tblTempVendorCDR_20' ) start [2025-02-13 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469913', 'tblTempVendorCDR_20' ) end [2025-02-13 23:57:18] Production.INFO: ProcessCDR(1,14469913,1,1,2) [2025-02-13 23:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469913', 'tblTempUsageDetail_20' ) start [2025-02-13 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469913', 'tblTempUsageDetail_20' ) end [2025-02-13 23:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 23:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 23:57:21] Production.INFO: ==23400== Releasing lock... [2025-02-13 23:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 23:57:21] Production.INFO: 33.75 MB #Memory Used# [2025-02-13 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 20:58:05 [end_date_ymd] => 2025-02-13 23:58:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 20:58:05' and `end` < '2025-02-13 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-02-13 23:58:19] Production.INFO: count ==857 [2025-02-13 23:58:19] Production.ERROR: pbx CDR StartTime 2025-02-13 20:58:05 - End Time 2025-02-13 23:58:05 [2025-02-13 23:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469918', 'tblTempUsageDetail_20' ) start [2025-02-13 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469918', 'tblTempUsageDetail_20' ) end [2025-02-13 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469918', 'tblTempVendorCDR_20' ) start [2025-02-13 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469918', 'tblTempVendorCDR_20' ) end [2025-02-13 23:58:19] Production.INFO: ProcessCDR(1,14469918,1,1,2) [2025-02-13 23:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469918', 'tblTempUsageDetail_20' ) start [2025-02-13 23:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469918', 'tblTempUsageDetail_20' ) end [2025-02-13 23:58:24] Production.ERROR: pbx prc_insertCDR start [2025-02-13 23:58:24] Production.ERROR: pbx prc_insertCDR end [2025-02-13 23:58:24] Production.INFO: ==23475== Releasing lock... [2025-02-13 23:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 23:58:24] Production.INFO: 33.5 MB #Memory Used# [2025-02-13 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-13 20:59:05 [end_date_ymd] => 2025-02-13 23:59:05 [RateCDR] => 1 ) [2025-02-13 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-02-13 20:59:05' and `end` < '2025-02-13 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-02-13 23:59:18] Production.INFO: count ==853 [2025-02-13 23:59:18] Production.ERROR: pbx CDR StartTime 2025-02-13 20:59:05 - End Time 2025-02-13 23:59:05 [2025-02-13 23:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-13 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469923', 'tblTempUsageDetail_20' ) start [2025-02-13 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14469923', 'tblTempUsageDetail_20' ) end [2025-02-13 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469923', 'tblTempVendorCDR_20' ) start [2025-02-13 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14469923', 'tblTempVendorCDR_20' ) end [2025-02-13 23:59:18] Production.INFO: ProcessCDR(1,14469923,1,1,2) [2025-02-13 23:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14469923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14469923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-13 23:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14469923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14469923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-13 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469923', 'tblTempUsageDetail_20' ) start [2025-02-13 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14469923', 'tblTempUsageDetail_20' ) end [2025-02-13 23:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-13 23:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-13 23:59:21] Production.INFO: ==23545== Releasing lock... [2025-02-13 23:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-13 23:59:21] Production.INFO: 33.5 MB #Memory Used#