[2025-04-26 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 21:00:06 [end_date_ymd] => 2025-04-26 00:00:06 [RateCDR] => 1 ) [2025-04-26 00:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 21:00:06' and `end` < '2025-04-26 00:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 00:00:19] Production.INFO: count ==1463 [2025-04-26 00:00:19] Production.ERROR: pbx CDR StartTime 2025-04-25 21:00:06 - End Time 2025-04-26 00:00:06 [2025-04-26 00:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990462', 'tblTempUsageDetail_20' ) start [2025-04-26 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990462', 'tblTempUsageDetail_20' ) end [2025-04-26 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990462', 'tblTempVendorCDR_20' ) start [2025-04-26 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990462', 'tblTempVendorCDR_20' ) end [2025-04-26 00:00:19] Production.INFO: ProcessCDR(1,14990462,1,1,2) [2025-04-26 00:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990462', 'tblTempUsageDetail_20' ) start [2025-04-26 00:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990462', 'tblTempUsageDetail_20' ) end [2025-04-26 00:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 00:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 00:00:25] Production.INFO: ==18898== Releasing lock... [2025-04-26 00:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 00:00:25] Production.INFO: 41 MB #Memory Used# [2025-04-26 00:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 21:01:06 [end_date_ymd] => 2025-04-26 00:01:06 [RateCDR] => 1 ) [2025-04-26 00:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 21:01:06' and `end` < '2025-04-26 00:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 00:01:30] Production.INFO: count ==1414 [2025-04-26 00:01:30] Production.ERROR: pbx CDR StartTime 2025-04-25 21:01:06 - End Time 2025-04-26 00:01:06 [2025-04-26 00:01:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 00:01:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990467', 'tblTempUsageDetail_20' ) start [2025-04-26 00:01:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990467', 'tblTempUsageDetail_20' ) end [2025-04-26 00:01:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990467', 'tblTempVendorCDR_20' ) start [2025-04-26 00:01:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990467', 'tblTempVendorCDR_20' ) end [2025-04-26 00:01:31] Production.INFO: ProcessCDR(1,14990467,1,1,2) [2025-04-26 00:01:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:01:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:01:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:01:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:01:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990467', 'tblTempUsageDetail_20' ) start [2025-04-26 00:01:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990467', 'tblTempUsageDetail_20' ) end [2025-04-26 00:01:34] Production.ERROR: pbx prc_insertCDR start [2025-04-26 00:01:34] Production.ERROR: pbx prc_insertCDR end [2025-04-26 00:01:34] Production.INFO: ==18986== Releasing lock... [2025-04-26 00:01:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 00:01:34] Production.INFO: 39 MB #Memory Used# [2025-04-26 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 21:02:05 [end_date_ymd] => 2025-04-26 00:02:05 [RateCDR] => 1 ) [2025-04-26 00:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 21:02:05' and `end` < '2025-04-26 00:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 00:02:19] Production.INFO: count ==725 [2025-04-26 00:02:19] Production.ERROR: pbx CDR StartTime 2025-04-25 21:02:05 - End Time 2025-04-26 00:02:05 [2025-04-26 00:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990472', 'tblTempUsageDetail_20' ) start [2025-04-26 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990472', 'tblTempUsageDetail_20' ) end [2025-04-26 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990472', 'tblTempVendorCDR_20' ) start [2025-04-26 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990472', 'tblTempVendorCDR_20' ) end [2025-04-26 00:02:19] Production.INFO: ProcessCDR(1,14990472,1,1,2) [2025-04-26 00:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990472', 'tblTempUsageDetail_20' ) start [2025-04-26 00:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990472', 'tblTempUsageDetail_20' ) end [2025-04-26 00:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 00:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 00:02:23] Production.INFO: ==19062== Releasing lock... [2025-04-26 00:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 00:02:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-26 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 21:03:05 [end_date_ymd] => 2025-04-26 00:03:05 [RateCDR] => 1 ) [2025-04-26 00:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 21:03:05' and `end` < '2025-04-26 00:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 00:03:18] Production.INFO: count ==719 [2025-04-26 00:03:18] Production.ERROR: pbx CDR StartTime 2025-04-25 21:03:05 - End Time 2025-04-26 00:03:05 [2025-04-26 00:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990477', 'tblTempUsageDetail_20' ) start [2025-04-26 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990477', 'tblTempUsageDetail_20' ) end [2025-04-26 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990477', 'tblTempVendorCDR_20' ) start [2025-04-26 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990477', 'tblTempVendorCDR_20' ) end [2025-04-26 00:03:18] Production.INFO: ProcessCDR(1,14990477,1,1,2) [2025-04-26 00:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990477', 'tblTempUsageDetail_20' ) start [2025-04-26 00:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990477', 'tblTempUsageDetail_20' ) end [2025-04-26 00:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 00:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 00:03:22] Production.INFO: ==19139== Releasing lock... [2025-04-26 00:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 00:03:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-26 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 21:04:05 [end_date_ymd] => 2025-04-26 00:04:05 [RateCDR] => 1 ) [2025-04-26 00:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 21:04:05' and `end` < '2025-04-26 00:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 00:04:17] Production.INFO: count ==713 [2025-04-26 00:04:18] Production.ERROR: pbx CDR StartTime 2025-04-25 21:04:05 - End Time 2025-04-26 00:04:05 [2025-04-26 00:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990482', 'tblTempUsageDetail_20' ) start [2025-04-26 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990482', 'tblTempUsageDetail_20' ) end [2025-04-26 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990482', 'tblTempVendorCDR_20' ) start [2025-04-26 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990482', 'tblTempVendorCDR_20' ) end [2025-04-26 00:04:18] Production.INFO: ProcessCDR(1,14990482,1,1,2) [2025-04-26 00:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990482', 'tblTempUsageDetail_20' ) start [2025-04-26 00:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990482', 'tblTempUsageDetail_20' ) end [2025-04-26 00:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 00:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 00:04:21] Production.INFO: ==19210== Releasing lock... [2025-04-26 00:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 00:04:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-26 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 21:05:05 [end_date_ymd] => 2025-04-26 00:05:05 [RateCDR] => 1 ) [2025-04-26 00:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 21:05:05' and `end` < '2025-04-26 00:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 00:05:27] Production.INFO: count ==712 [2025-04-26 00:05:27] Production.ERROR: pbx CDR StartTime 2025-04-25 21:05:05 - End Time 2025-04-26 00:05:05 [2025-04-26 00:05:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 00:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990487', 'tblTempUsageDetail_20' ) start [2025-04-26 00:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990487', 'tblTempUsageDetail_20' ) end [2025-04-26 00:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990487', 'tblTempVendorCDR_20' ) start [2025-04-26 00:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990487', 'tblTempVendorCDR_20' ) end [2025-04-26 00:05:27] Production.INFO: ProcessCDR(1,14990487,1,1,2) [2025-04-26 00:05:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:05:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:05:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:05:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990487', 'tblTempUsageDetail_20' ) start [2025-04-26 00:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990487', 'tblTempUsageDetail_20' ) end [2025-04-26 00:05:31] Production.ERROR: pbx prc_insertCDR start [2025-04-26 00:05:31] Production.ERROR: pbx prc_insertCDR end [2025-04-26 00:05:31] Production.INFO: ==19289== Releasing lock... [2025-04-26 00:05:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 00:05:31] Production.INFO: 34 MB #Memory Used# [2025-04-26 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 21:06:04 [end_date_ymd] => 2025-04-26 00:06:04 [RateCDR] => 1 ) [2025-04-26 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-04-25 21:06:04' and `end` < '2025-04-26 00:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 00:06:35] Production.INFO: count ==711 [2025-04-26 00:06:35] Production.ERROR: pbx CDR StartTime 2025-04-25 21:06:04 - End Time 2025-04-26 00:06:04 [2025-04-26 00:06:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 00:06:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990492', 'tblTempUsageDetail_20' ) start [2025-04-26 00:06:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990492', 'tblTempUsageDetail_20' ) end [2025-04-26 00:06:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990492', 'tblTempVendorCDR_20' ) start [2025-04-26 00:06:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990492', 'tblTempVendorCDR_20' ) end [2025-04-26 00:06:35] Production.INFO: ProcessCDR(1,14990492,1,1,2) [2025-04-26 00:06:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:06:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:06:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:06:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:06:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990492', 'tblTempUsageDetail_20' ) start [2025-04-26 00:06:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990492', 'tblTempUsageDetail_20' ) end [2025-04-26 00:06:39] Production.ERROR: pbx prc_insertCDR start [2025-04-26 00:06:39] Production.ERROR: pbx prc_insertCDR end [2025-04-26 00:06:39] Production.INFO: ==19362== Releasing lock... [2025-04-26 00:06:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 00:06:39] Production.INFO: 34 MB #Memory Used# [2025-04-26 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 21:07:05 [end_date_ymd] => 2025-04-26 00:07:05 [RateCDR] => 1 ) [2025-04-26 00:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 21:07:05' and `end` < '2025-04-26 00:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 00:07:28] Production.INFO: count ==706 [2025-04-26 00:07:28] Production.ERROR: pbx CDR StartTime 2025-04-25 21:07:05 - End Time 2025-04-26 00:07:05 [2025-04-26 00:07:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 00:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990497', 'tblTempUsageDetail_20' ) start [2025-04-26 00:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990497', 'tblTempUsageDetail_20' ) end [2025-04-26 00:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990497', 'tblTempVendorCDR_20' ) start [2025-04-26 00:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990497', 'tblTempVendorCDR_20' ) end [2025-04-26 00:07:28] Production.INFO: ProcessCDR(1,14990497,1,1,2) [2025-04-26 00:07:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:07:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:07:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:07:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:07:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990497', 'tblTempUsageDetail_20' ) start [2025-04-26 00:07:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990497', 'tblTempUsageDetail_20' ) end [2025-04-26 00:07:32] Production.ERROR: pbx prc_insertCDR start [2025-04-26 00:07:32] Production.ERROR: pbx prc_insertCDR end [2025-04-26 00:07:32] Production.INFO: ==19433== Releasing lock... [2025-04-26 00:07:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 00:07:32] Production.INFO: 34.25 MB #Memory Used# [2025-04-26 00:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 21:08:06 [end_date_ymd] => 2025-04-26 00:08:06 [RateCDR] => 1 ) [2025-04-26 00:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 21:08:06' and `end` < '2025-04-26 00:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 00:08:29] Production.INFO: count ==706 [2025-04-26 00:08:29] Production.ERROR: pbx CDR StartTime 2025-04-25 21:08:06 - End Time 2025-04-26 00:08:06 [2025-04-26 00:08:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 00:08:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990502', 'tblTempUsageDetail_20' ) start [2025-04-26 00:08:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990502', 'tblTempUsageDetail_20' ) end [2025-04-26 00:08:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990502', 'tblTempVendorCDR_20' ) start [2025-04-26 00:08:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990502', 'tblTempVendorCDR_20' ) end [2025-04-26 00:08:29] Production.INFO: ProcessCDR(1,14990502,1,1,2) [2025-04-26 00:08:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:08:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:08:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:08:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:08:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990502', 'tblTempUsageDetail_20' ) start [2025-04-26 00:08:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990502', 'tblTempUsageDetail_20' ) end [2025-04-26 00:08:33] Production.ERROR: pbx prc_insertCDR start [2025-04-26 00:08:33] Production.ERROR: pbx prc_insertCDR end [2025-04-26 00:08:33] Production.INFO: ==19508== Releasing lock... [2025-04-26 00:08:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 00:08:33] Production.INFO: 34.25 MB #Memory Used# [2025-04-26 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 21:09:05 [end_date_ymd] => 2025-04-26 00:09:05 [RateCDR] => 1 ) [2025-04-26 00:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 21:09:05' and `end` < '2025-04-26 00:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 00:09:27] Production.INFO: count ==705 [2025-04-26 00:09:27] Production.ERROR: pbx CDR StartTime 2025-04-25 21:09:05 - End Time 2025-04-26 00:09:05 [2025-04-26 00:09:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 00:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990507', 'tblTempUsageDetail_20' ) start [2025-04-26 00:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990507', 'tblTempUsageDetail_20' ) end [2025-04-26 00:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990507', 'tblTempVendorCDR_20' ) start [2025-04-26 00:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990507', 'tblTempVendorCDR_20' ) end [2025-04-26 00:09:27] Production.INFO: ProcessCDR(1,14990507,1,1,2) [2025-04-26 00:09:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:09:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:09:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:09:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990507', 'tblTempUsageDetail_20' ) start [2025-04-26 00:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990507', 'tblTempUsageDetail_20' ) end [2025-04-26 00:09:31] Production.ERROR: pbx prc_insertCDR start [2025-04-26 00:09:31] Production.ERROR: pbx prc_insertCDR end [2025-04-26 00:09:31] Production.INFO: ==19578== Releasing lock... [2025-04-26 00:09:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 00:09:31] Production.INFO: 34.25 MB #Memory Used# [2025-04-26 00:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 21:10:06 [end_date_ymd] => 2025-04-26 00:10:06 [RateCDR] => 1 ) [2025-04-26 00:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 21:10:06' and `end` < '2025-04-26 00:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 00:10:30] Production.INFO: count ==715 [2025-04-26 00:10:30] Production.ERROR: pbx CDR StartTime 2025-04-25 21:10:06 - End Time 2025-04-26 00:10:06 [2025-04-26 00:10:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 00:10:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990513', 'tblTempUsageDetail_20' ) start [2025-04-26 00:10:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990513', 'tblTempUsageDetail_20' ) end [2025-04-26 00:10:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990513', 'tblTempVendorCDR_20' ) start [2025-04-26 00:10:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990513', 'tblTempVendorCDR_20' ) end [2025-04-26 00:10:30] Production.INFO: ProcessCDR(1,14990513,1,1,2) [2025-04-26 00:10:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:10:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:10:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:10:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990513', 'tblTempUsageDetail_20' ) start [2025-04-26 00:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990513', 'tblTempUsageDetail_20' ) end [2025-04-26 00:10:33] Production.ERROR: pbx prc_insertCDR start [2025-04-26 00:10:33] Production.ERROR: pbx prc_insertCDR end [2025-04-26 00:10:33] Production.INFO: ==19693== Releasing lock... [2025-04-26 00:10:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 00:10:33] Production.INFO: 34.25 MB #Memory Used# [2025-04-26 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 21:11:05 [end_date_ymd] => 2025-04-26 00:11:05 [RateCDR] => 1 ) [2025-04-26 00:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 21:11:05' and `end` < '2025-04-26 00:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 00:11:18] Production.INFO: count ==727 [2025-04-26 00:11:18] Production.ERROR: pbx CDR StartTime 2025-04-25 21:11:05 - End Time 2025-04-26 00:11:05 [2025-04-26 00:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990518', 'tblTempUsageDetail_20' ) start [2025-04-26 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990518', 'tblTempUsageDetail_20' ) end [2025-04-26 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990518', 'tblTempVendorCDR_20' ) start [2025-04-26 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990518', 'tblTempVendorCDR_20' ) end [2025-04-26 00:11:18] Production.INFO: ProcessCDR(1,14990518,1,1,2) [2025-04-26 00:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990518', 'tblTempUsageDetail_20' ) start [2025-04-26 00:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990518', 'tblTempUsageDetail_20' ) end [2025-04-26 00:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 00:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 00:11:22] Production.INFO: ==19789== Releasing lock... [2025-04-26 00:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 00:11:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-26 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 21:12:05 [end_date_ymd] => 2025-04-26 00:12:05 [RateCDR] => 1 ) [2025-04-26 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-04-25 21:12:05' and `end` < '2025-04-26 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-04-26 00:12:18] Production.INFO: count ==723 [2025-04-26 00:12:18] Production.ERROR: pbx CDR StartTime 2025-04-25 21:12:05 - End Time 2025-04-26 00:12:05 [2025-04-26 00:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990523', 'tblTempUsageDetail_20' ) start [2025-04-26 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990523', 'tblTempUsageDetail_20' ) end [2025-04-26 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990523', 'tblTempVendorCDR_20' ) start [2025-04-26 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990523', 'tblTempVendorCDR_20' ) end [2025-04-26 00:12:18] Production.INFO: ProcessCDR(1,14990523,1,1,2) [2025-04-26 00:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990523', 'tblTempUsageDetail_20' ) start [2025-04-26 00:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990523', 'tblTempUsageDetail_20' ) end [2025-04-26 00:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 00:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 00:12:22] Production.INFO: ==19862== Releasing lock... [2025-04-26 00:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 00:12:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-26 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 21:13:05 [end_date_ymd] => 2025-04-26 00:13:05 [RateCDR] => 1 ) [2025-04-26 00:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 21:13:05' and `end` < '2025-04-26 00:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 00:13:18] Production.INFO: count ==722 [2025-04-26 00:13:18] Production.ERROR: pbx CDR StartTime 2025-04-25 21:13:05 - End Time 2025-04-26 00:13:05 [2025-04-26 00:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990528', 'tblTempUsageDetail_20' ) start [2025-04-26 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990528', 'tblTempUsageDetail_20' ) end [2025-04-26 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990528', 'tblTempVendorCDR_20' ) start [2025-04-26 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990528', 'tblTempVendorCDR_20' ) end [2025-04-26 00:13:18] Production.INFO: ProcessCDR(1,14990528,1,1,2) [2025-04-26 00:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990528', 'tblTempUsageDetail_20' ) start [2025-04-26 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990528', 'tblTempUsageDetail_20' ) end [2025-04-26 00:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 00:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 00:13:21] Production.INFO: ==19946== Releasing lock... [2025-04-26 00:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 00:13:21] Production.INFO: 34.25 MB #Memory Used# [2025-04-26 00:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 21:14:06 [end_date_ymd] => 2025-04-26 00:14:06 [RateCDR] => 1 ) [2025-04-26 00:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 21:14:06' and `end` < '2025-04-26 00:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 00:14:18] Production.INFO: count ==720 [2025-04-26 00:14:18] Production.ERROR: pbx CDR StartTime 2025-04-25 21:14:06 - End Time 2025-04-26 00:14:06 [2025-04-26 00:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990533', 'tblTempUsageDetail_20' ) start [2025-04-26 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990533', 'tblTempUsageDetail_20' ) end [2025-04-26 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990533', 'tblTempVendorCDR_20' ) start [2025-04-26 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990533', 'tblTempVendorCDR_20' ) end [2025-04-26 00:14:19] Production.INFO: ProcessCDR(1,14990533,1,1,2) [2025-04-26 00:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990533', 'tblTempUsageDetail_20' ) start [2025-04-26 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990533', 'tblTempUsageDetail_20' ) end [2025-04-26 00:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 00:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 00:14:22] Production.INFO: ==20020== Releasing lock... [2025-04-26 00:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 00:14:22] Production.INFO: 34 MB #Memory Used# [2025-04-26 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 21:15:05 [end_date_ymd] => 2025-04-26 00:15:05 [RateCDR] => 1 ) [2025-04-26 00:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 21:15:05' and `end` < '2025-04-26 00:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 00:15:18] Production.INFO: count ==718 [2025-04-26 00:15:18] Production.ERROR: pbx CDR StartTime 2025-04-25 21:15:05 - End Time 2025-04-26 00:15:05 [2025-04-26 00:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990538', 'tblTempUsageDetail_20' ) start [2025-04-26 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990538', 'tblTempUsageDetail_20' ) end [2025-04-26 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990538', 'tblTempVendorCDR_20' ) start [2025-04-26 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990538', 'tblTempVendorCDR_20' ) end [2025-04-26 00:15:18] Production.INFO: ProcessCDR(1,14990538,1,1,2) [2025-04-26 00:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990538', 'tblTempUsageDetail_20' ) start [2025-04-26 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990538', 'tblTempUsageDetail_20' ) end [2025-04-26 00:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 00:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 00:15:21] Production.INFO: ==20091== Releasing lock... [2025-04-26 00:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 00:15:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-26 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 21:16:05 [end_date_ymd] => 2025-04-26 00:16:05 [RateCDR] => 1 ) [2025-04-26 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-04-25 21:16:05' and `end` < '2025-04-26 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-04-26 00:16:18] Production.INFO: count ==716 [2025-04-26 00:16:19] Production.ERROR: pbx CDR StartTime 2025-04-25 21:16:05 - End Time 2025-04-26 00:16:05 [2025-04-26 00:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990543', 'tblTempUsageDetail_20' ) start [2025-04-26 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990543', 'tblTempUsageDetail_20' ) end [2025-04-26 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990543', 'tblTempVendorCDR_20' ) start [2025-04-26 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990543', 'tblTempVendorCDR_20' ) end [2025-04-26 00:16:19] Production.INFO: ProcessCDR(1,14990543,1,1,2) [2025-04-26 00:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990543', 'tblTempUsageDetail_20' ) start [2025-04-26 00:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990543', 'tblTempUsageDetail_20' ) end [2025-04-26 00:16:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 00:16:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 00:16:24] Production.INFO: ==20164== Releasing lock... [2025-04-26 00:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 00:16:24] Production.INFO: 34.25 MB #Memory Used# [2025-04-26 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 21:17:05 [end_date_ymd] => 2025-04-26 00:17:05 [RateCDR] => 1 ) [2025-04-26 00:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 21:17:05' and `end` < '2025-04-26 00:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 00:17:18] Production.INFO: count ==707 [2025-04-26 00:17:18] Production.ERROR: pbx CDR StartTime 2025-04-25 21:17:05 - End Time 2025-04-26 00:17:05 [2025-04-26 00:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990548', 'tblTempUsageDetail_20' ) start [2025-04-26 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990548', 'tblTempUsageDetail_20' ) end [2025-04-26 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990548', 'tblTempVendorCDR_20' ) start [2025-04-26 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990548', 'tblTempVendorCDR_20' ) end [2025-04-26 00:17:18] Production.INFO: ProcessCDR(1,14990548,1,1,2) [2025-04-26 00:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990548', 'tblTempUsageDetail_20' ) start [2025-04-26 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990548', 'tblTempUsageDetail_20' ) end [2025-04-26 00:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 00:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 00:17:21] Production.INFO: ==20236== Releasing lock... [2025-04-26 00:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 00:17:21] Production.INFO: 34.25 MB #Memory Used# [2025-04-26 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 21:18:05 [end_date_ymd] => 2025-04-26 00:18:05 [RateCDR] => 1 ) [2025-04-26 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-04-25 21:18:05' and `end` < '2025-04-26 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-04-26 00:18:18] Production.INFO: count ==707 [2025-04-26 00:18:18] Production.ERROR: pbx CDR StartTime 2025-04-25 21:18:05 - End Time 2025-04-26 00:18:05 [2025-04-26 00:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990553', 'tblTempUsageDetail_20' ) start [2025-04-26 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990553', 'tblTempUsageDetail_20' ) end [2025-04-26 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990553', 'tblTempVendorCDR_20' ) start [2025-04-26 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990553', 'tblTempVendorCDR_20' ) end [2025-04-26 00:18:18] Production.INFO: ProcessCDR(1,14990553,1,1,2) [2025-04-26 00:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990553', 'tblTempUsageDetail_20' ) start [2025-04-26 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990553', 'tblTempUsageDetail_20' ) end [2025-04-26 00:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 00:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 00:18:22] Production.INFO: ==20311== Releasing lock... [2025-04-26 00:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 00:18:22] Production.INFO: 34 MB #Memory Used# [2025-04-26 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 21:19:05 [end_date_ymd] => 2025-04-26 00:19:05 [RateCDR] => 1 ) [2025-04-26 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-04-25 21:19:05' and `end` < '2025-04-26 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-04-26 00:19:18] Production.INFO: count ==704 [2025-04-26 00:19:18] Production.ERROR: pbx CDR StartTime 2025-04-25 21:19:05 - End Time 2025-04-26 00:19:05 [2025-04-26 00:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990558', 'tblTempUsageDetail_20' ) start [2025-04-26 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990558', 'tblTempUsageDetail_20' ) end [2025-04-26 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990558', 'tblTempVendorCDR_20' ) start [2025-04-26 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990558', 'tblTempVendorCDR_20' ) end [2025-04-26 00:19:18] Production.INFO: ProcessCDR(1,14990558,1,1,2) [2025-04-26 00:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990558', 'tblTempUsageDetail_20' ) start [2025-04-26 00:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990558', 'tblTempUsageDetail_20' ) end [2025-04-26 00:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 00:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 00:19:22] Production.INFO: ==20388== Releasing lock... [2025-04-26 00:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 00:19:22] Production.INFO: 34 MB #Memory Used# [2025-04-26 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 21:20:06 [end_date_ymd] => 2025-04-26 00:20:06 [RateCDR] => 1 ) [2025-04-26 00:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 21:20:06' and `end` < '2025-04-26 00:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 00:20:18] Production.INFO: count ==714 [2025-04-26 00:20:18] Production.ERROR: pbx CDR StartTime 2025-04-25 21:20:06 - End Time 2025-04-26 00:20:06 [2025-04-26 00:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990564', 'tblTempUsageDetail_20' ) start [2025-04-26 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990564', 'tblTempUsageDetail_20' ) end [2025-04-26 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990564', 'tblTempVendorCDR_20' ) start [2025-04-26 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990564', 'tblTempVendorCDR_20' ) end [2025-04-26 00:20:18] Production.INFO: ProcessCDR(1,14990564,1,1,2) [2025-04-26 00:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990564', 'tblTempUsageDetail_20' ) start [2025-04-26 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990564', 'tblTempUsageDetail_20' ) end [2025-04-26 00:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 00:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 00:20:22] Production.INFO: ==20463== Releasing lock... [2025-04-26 00:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 00:20:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-26 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 21:21:05 [end_date_ymd] => 2025-04-26 00:21:05 [RateCDR] => 1 ) [2025-04-26 00:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 21:21:05' and `end` < '2025-04-26 00:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 00:21:18] Production.INFO: count ==706 [2025-04-26 00:21:18] Production.ERROR: pbx CDR StartTime 2025-04-25 21:21:05 - End Time 2025-04-26 00:21:05 [2025-04-26 00:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990569', 'tblTempUsageDetail_20' ) start [2025-04-26 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990569', 'tblTempUsageDetail_20' ) end [2025-04-26 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990569', 'tblTempVendorCDR_20' ) start [2025-04-26 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990569', 'tblTempVendorCDR_20' ) end [2025-04-26 00:21:18] Production.INFO: ProcessCDR(1,14990569,1,1,2) [2025-04-26 00:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990569', 'tblTempUsageDetail_20' ) start [2025-04-26 00:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990569', 'tblTempUsageDetail_20' ) end [2025-04-26 00:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 00:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 00:21:22] Production.INFO: ==20540== Releasing lock... [2025-04-26 00:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 00:21:22] Production.INFO: 34 MB #Memory Used# [2025-04-26 00:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 21:22:04 [end_date_ymd] => 2025-04-26 00:22:04 [RateCDR] => 1 ) [2025-04-26 00: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-04-25 21:22:04' and `end` < '2025-04-26 00: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-04-26 00:22:17] Production.INFO: count ==703 [2025-04-26 00:22:17] Production.ERROR: pbx CDR StartTime 2025-04-25 21:22:04 - End Time 2025-04-26 00:22:04 [2025-04-26 00:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990574', 'tblTempUsageDetail_20' ) start [2025-04-26 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990574', 'tblTempUsageDetail_20' ) end [2025-04-26 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990574', 'tblTempVendorCDR_20' ) start [2025-04-26 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990574', 'tblTempVendorCDR_20' ) end [2025-04-26 00:22:17] Production.INFO: ProcessCDR(1,14990574,1,1,2) [2025-04-26 00:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990574', 'tblTempUsageDetail_20' ) start [2025-04-26 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990574', 'tblTempUsageDetail_20' ) end [2025-04-26 00:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 00:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 00:22:21] Production.INFO: ==20610== Releasing lock... [2025-04-26 00:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 00:22:21] Production.INFO: 34.25 MB #Memory Used# [2025-04-26 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 21:23:05 [end_date_ymd] => 2025-04-26 00:23:05 [RateCDR] => 1 ) [2025-04-26 00:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 21:23:05' and `end` < '2025-04-26 00:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 00:23:18] Production.INFO: count ==701 [2025-04-26 00:23:18] Production.ERROR: pbx CDR StartTime 2025-04-25 21:23:05 - End Time 2025-04-26 00:23:05 [2025-04-26 00:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990579', 'tblTempUsageDetail_20' ) start [2025-04-26 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990579', 'tblTempUsageDetail_20' ) end [2025-04-26 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990579', 'tblTempVendorCDR_20' ) start [2025-04-26 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990579', 'tblTempVendorCDR_20' ) end [2025-04-26 00:23:18] Production.INFO: ProcessCDR(1,14990579,1,1,2) [2025-04-26 00:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990579', 'tblTempUsageDetail_20' ) start [2025-04-26 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990579', 'tblTempUsageDetail_20' ) end [2025-04-26 00:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 00:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 00:23:21] Production.INFO: ==20683== Releasing lock... [2025-04-26 00:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 00:23:21] Production.INFO: 34 MB #Memory Used# [2025-04-26 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 21:24:05 [end_date_ymd] => 2025-04-26 00:24:05 [RateCDR] => 1 ) [2025-04-26 00:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 21:24:05' and `end` < '2025-04-26 00:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 00:24:17] Production.INFO: count ==696 [2025-04-26 00:24:18] Production.ERROR: pbx CDR StartTime 2025-04-25 21:24:05 - End Time 2025-04-26 00:24:05 [2025-04-26 00:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990584', 'tblTempUsageDetail_20' ) start [2025-04-26 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990584', 'tblTempUsageDetail_20' ) end [2025-04-26 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990584', 'tblTempVendorCDR_20' ) start [2025-04-26 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990584', 'tblTempVendorCDR_20' ) end [2025-04-26 00:24:18] Production.INFO: ProcessCDR(1,14990584,1,1,2) [2025-04-26 00:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990584', 'tblTempUsageDetail_20' ) start [2025-04-26 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990584', 'tblTempUsageDetail_20' ) end [2025-04-26 00:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 00:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 00:24:21] Production.INFO: ==20758== Releasing lock... [2025-04-26 00:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 00:24:21] Production.INFO: 34 MB #Memory Used# [2025-04-26 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 21:25:05 [end_date_ymd] => 2025-04-26 00:25:05 [RateCDR] => 1 ) [2025-04-26 00:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 21:25:05' and `end` < '2025-04-26 00:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 00:25:17] Production.INFO: count ==692 [2025-04-26 00:25:18] Production.ERROR: pbx CDR StartTime 2025-04-25 21:25:05 - End Time 2025-04-26 00:25:05 [2025-04-26 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990589', 'tblTempUsageDetail_20' ) start [2025-04-26 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990589', 'tblTempUsageDetail_20' ) end [2025-04-26 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990589', 'tblTempVendorCDR_20' ) start [2025-04-26 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990589', 'tblTempVendorCDR_20' ) end [2025-04-26 00:25:18] Production.INFO: ProcessCDR(1,14990589,1,1,2) [2025-04-26 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990589', 'tblTempUsageDetail_20' ) start [2025-04-26 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990589', 'tblTempUsageDetail_20' ) end [2025-04-26 00:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 00:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 00:25:21] Production.INFO: ==20830== Releasing lock... [2025-04-26 00:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 00:25:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-26 00:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 21:26:06 [end_date_ymd] => 2025-04-26 00:26:06 [RateCDR] => 1 ) [2025-04-26 00:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 21:26:06' and `end` < '2025-04-26 00:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 00:26:19] Production.INFO: count ==688 [2025-04-26 00:26:19] Production.ERROR: pbx CDR StartTime 2025-04-25 21:26:06 - End Time 2025-04-26 00:26:06 [2025-04-26 00:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 00:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990594', 'tblTempUsageDetail_20' ) start [2025-04-26 00:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990594', 'tblTempUsageDetail_20' ) end [2025-04-26 00:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990594', 'tblTempVendorCDR_20' ) start [2025-04-26 00:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990594', 'tblTempVendorCDR_20' ) end [2025-04-26 00:26:19] Production.INFO: ProcessCDR(1,14990594,1,1,2) [2025-04-26 00:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990594', 'tblTempUsageDetail_20' ) start [2025-04-26 00:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990594', 'tblTempUsageDetail_20' ) end [2025-04-26 00:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 00:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 00:26:22] Production.INFO: ==20947== Releasing lock... [2025-04-26 00:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 00:26:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-26 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 21:27:05 [end_date_ymd] => 2025-04-26 00:27:05 [RateCDR] => 1 ) [2025-04-26 00:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 21:27:05' and `end` < '2025-04-26 00:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 00:27:18] Production.INFO: count ==687 [2025-04-26 00:27:18] Production.ERROR: pbx CDR StartTime 2025-04-25 21:27:05 - End Time 2025-04-26 00:27:05 [2025-04-26 00:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990599', 'tblTempUsageDetail_20' ) start [2025-04-26 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990599', 'tblTempUsageDetail_20' ) end [2025-04-26 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990599', 'tblTempVendorCDR_20' ) start [2025-04-26 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990599', 'tblTempVendorCDR_20' ) end [2025-04-26 00:27:18] Production.INFO: ProcessCDR(1,14990599,1,1,2) [2025-04-26 00:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990599', 'tblTempUsageDetail_20' ) start [2025-04-26 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990599', 'tblTempUsageDetail_20' ) end [2025-04-26 00:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 00:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 00:27:22] Production.INFO: ==21023== Releasing lock... [2025-04-26 00:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 00:27:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-26 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 21:28:05 [end_date_ymd] => 2025-04-26 00:28:05 [RateCDR] => 1 ) [2025-04-26 00:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 21:28:05' and `end` < '2025-04-26 00:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 00:28:18] Production.INFO: count ==678 [2025-04-26 00:28:18] Production.ERROR: pbx CDR StartTime 2025-04-25 21:28:05 - End Time 2025-04-26 00:28:05 [2025-04-26 00:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990604', 'tblTempUsageDetail_20' ) start [2025-04-26 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990604', 'tblTempUsageDetail_20' ) end [2025-04-26 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990604', 'tblTempVendorCDR_20' ) start [2025-04-26 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990604', 'tblTempVendorCDR_20' ) end [2025-04-26 00:28:18] Production.INFO: ProcessCDR(1,14990604,1,1,2) [2025-04-26 00:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990604', 'tblTempUsageDetail_20' ) start [2025-04-26 00:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990604', 'tblTempUsageDetail_20' ) end [2025-04-26 00:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 00:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 00:28:22] Production.INFO: ==21095== Releasing lock... [2025-04-26 00:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 00:28:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-26 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 21:29:05 [end_date_ymd] => 2025-04-26 00:29:05 [RateCDR] => 1 ) [2025-04-26 00:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 21:29:05' and `end` < '2025-04-26 00:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 00:29:18] Production.INFO: count ==677 [2025-04-26 00:29:18] Production.ERROR: pbx CDR StartTime 2025-04-25 21:29:05 - End Time 2025-04-26 00:29:05 [2025-04-26 00:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990609', 'tblTempUsageDetail_20' ) start [2025-04-26 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990609', 'tblTempUsageDetail_20' ) end [2025-04-26 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990609', 'tblTempVendorCDR_20' ) start [2025-04-26 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990609', 'tblTempVendorCDR_20' ) end [2025-04-26 00:29:18] Production.INFO: ProcessCDR(1,14990609,1,1,2) [2025-04-26 00:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990609', 'tblTempUsageDetail_20' ) start [2025-04-26 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990609', 'tblTempUsageDetail_20' ) end [2025-04-26 00:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 00:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 00:29:21] Production.INFO: ==21170== Releasing lock... [2025-04-26 00:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 00:29:21] Production.INFO: 34 MB #Memory Used# [2025-04-26 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 21:30:06 [end_date_ymd] => 2025-04-26 00:30:06 [RateCDR] => 1 ) [2025-04-26 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-04-25 21:30:06' and `end` < '2025-04-26 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-04-26 00:30:18] Production.INFO: count ==681 [2025-04-26 00:30:19] Production.ERROR: pbx CDR StartTime 2025-04-25 21:30:06 - End Time 2025-04-26 00:30:06 [2025-04-26 00:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990615', 'tblTempUsageDetail_20' ) start [2025-04-26 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990615', 'tblTempUsageDetail_20' ) end [2025-04-26 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990615', 'tblTempVendorCDR_20' ) start [2025-04-26 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990615', 'tblTempVendorCDR_20' ) end [2025-04-26 00:30:19] Production.INFO: ProcessCDR(1,14990615,1,1,2) [2025-04-26 00:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990615', 'tblTempUsageDetail_20' ) start [2025-04-26 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990615', 'tblTempUsageDetail_20' ) end [2025-04-26 00:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 00:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 00:30:22] Production.INFO: ==21255== Releasing lock... [2025-04-26 00:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 00:30:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-26 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 21:31:05 [end_date_ymd] => 2025-04-26 00:31:05 [RateCDR] => 1 ) [2025-04-26 00:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 21:31:05' and `end` < '2025-04-26 00:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 00:31:17] Production.INFO: count ==700 [2025-04-26 00:31:18] Production.ERROR: pbx CDR StartTime 2025-04-25 21:31:05 - End Time 2025-04-26 00:31:05 [2025-04-26 00:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990620', 'tblTempUsageDetail_20' ) start [2025-04-26 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990620', 'tblTempUsageDetail_20' ) end [2025-04-26 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990620', 'tblTempVendorCDR_20' ) start [2025-04-26 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990620', 'tblTempVendorCDR_20' ) end [2025-04-26 00:31:18] Production.INFO: ProcessCDR(1,14990620,1,1,2) [2025-04-26 00:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990620', 'tblTempUsageDetail_20' ) start [2025-04-26 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990620', 'tblTempUsageDetail_20' ) end [2025-04-26 00:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 00:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 00:31:21] Production.INFO: ==21330== Releasing lock... [2025-04-26 00:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 00:31:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-26 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 21:32:05 [end_date_ymd] => 2025-04-26 00:32:05 [RateCDR] => 1 ) [2025-04-26 00:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 21:32:05' and `end` < '2025-04-26 00:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 00:32:18] Production.INFO: count ==677 [2025-04-26 00:32:18] Production.ERROR: pbx CDR StartTime 2025-04-25 21:32:05 - End Time 2025-04-26 00:32:05 [2025-04-26 00:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990625', 'tblTempUsageDetail_20' ) start [2025-04-26 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990625', 'tblTempUsageDetail_20' ) end [2025-04-26 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990625', 'tblTempVendorCDR_20' ) start [2025-04-26 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990625', 'tblTempVendorCDR_20' ) end [2025-04-26 00:32:18] Production.INFO: ProcessCDR(1,14990625,1,1,2) [2025-04-26 00:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990625', 'tblTempUsageDetail_20' ) start [2025-04-26 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990625', 'tblTempUsageDetail_20' ) end [2025-04-26 00:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 00:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 00:32:21] Production.INFO: ==21405== Releasing lock... [2025-04-26 00:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 00:32:21] Production.INFO: 34.25 MB #Memory Used# [2025-04-26 00:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 21:33:04 [end_date_ymd] => 2025-04-26 00:33:04 [RateCDR] => 1 ) [2025-04-26 00: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-04-25 21:33:04' and `end` < '2025-04-26 00: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-04-26 00:33:17] Production.INFO: count ==672 [2025-04-26 00:33:17] Production.ERROR: pbx CDR StartTime 2025-04-25 21:33:04 - End Time 2025-04-26 00:33:04 [2025-04-26 00:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990630', 'tblTempUsageDetail_20' ) start [2025-04-26 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990630', 'tblTempUsageDetail_20' ) end [2025-04-26 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990630', 'tblTempVendorCDR_20' ) start [2025-04-26 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990630', 'tblTempVendorCDR_20' ) end [2025-04-26 00:33:17] Production.INFO: ProcessCDR(1,14990630,1,1,2) [2025-04-26 00:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990630', 'tblTempUsageDetail_20' ) start [2025-04-26 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990630', 'tblTempUsageDetail_20' ) end [2025-04-26 00:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 00:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 00:33:21] Production.INFO: ==21478== Releasing lock... [2025-04-26 00:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 00:33:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-26 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 21:34:05 [end_date_ymd] => 2025-04-26 00:34:05 [RateCDR] => 1 ) [2025-04-26 00:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 21:34:05' and `end` < '2025-04-26 00:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 00:34:18] Production.INFO: count ==669 [2025-04-26 00:34:18] Production.ERROR: pbx CDR StartTime 2025-04-25 21:34:05 - End Time 2025-04-26 00:34:05 [2025-04-26 00:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990635', 'tblTempUsageDetail_20' ) start [2025-04-26 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990635', 'tblTempUsageDetail_20' ) end [2025-04-26 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990635', 'tblTempVendorCDR_20' ) start [2025-04-26 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990635', 'tblTempVendorCDR_20' ) end [2025-04-26 00:34:18] Production.INFO: ProcessCDR(1,14990635,1,1,2) [2025-04-26 00:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990635', 'tblTempUsageDetail_20' ) start [2025-04-26 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990635', 'tblTempUsageDetail_20' ) end [2025-04-26 00:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 00:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 00:34:21] Production.INFO: ==21553== Releasing lock... [2025-04-26 00:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 00:34:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-26 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 21:35:05 [end_date_ymd] => 2025-04-26 00:35:05 [RateCDR] => 1 ) [2025-04-26 00:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 21:35:05' and `end` < '2025-04-26 00:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 00:35:18] Production.INFO: count ==665 [2025-04-26 00:35:18] Production.ERROR: pbx CDR StartTime 2025-04-25 21:35:05 - End Time 2025-04-26 00:35:05 [2025-04-26 00:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990640', 'tblTempUsageDetail_20' ) start [2025-04-26 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990640', 'tblTempUsageDetail_20' ) end [2025-04-26 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990640', 'tblTempVendorCDR_20' ) start [2025-04-26 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990640', 'tblTempVendorCDR_20' ) end [2025-04-26 00:35:18] Production.INFO: ProcessCDR(1,14990640,1,1,2) [2025-04-26 00:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990640', 'tblTempUsageDetail_20' ) start [2025-04-26 00:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990640', 'tblTempUsageDetail_20' ) end [2025-04-26 00:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 00:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 00:35:22] Production.INFO: ==21623== Releasing lock... [2025-04-26 00:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 00:35:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-26 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 21:36:05 [end_date_ymd] => 2025-04-26 00:36:05 [RateCDR] => 1 ) [2025-04-26 00:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 21:36:05' and `end` < '2025-04-26 00:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 00:36:18] Production.INFO: count ==659 [2025-04-26 00:36:18] Production.ERROR: pbx CDR StartTime 2025-04-25 21:36:05 - End Time 2025-04-26 00:36:05 [2025-04-26 00:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990645', 'tblTempUsageDetail_20' ) start [2025-04-26 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990645', 'tblTempUsageDetail_20' ) end [2025-04-26 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990645', 'tblTempVendorCDR_20' ) start [2025-04-26 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990645', 'tblTempVendorCDR_20' ) end [2025-04-26 00:36:18] Production.INFO: ProcessCDR(1,14990645,1,1,2) [2025-04-26 00:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990645', 'tblTempUsageDetail_20' ) start [2025-04-26 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990645', 'tblTempUsageDetail_20' ) end [2025-04-26 00:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 00:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 00:36:21] Production.INFO: ==21692== Releasing lock... [2025-04-26 00:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 00:36:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-26 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 21:37:05 [end_date_ymd] => 2025-04-26 00:37:05 [RateCDR] => 1 ) [2025-04-26 00:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 21:37:05' and `end` < '2025-04-26 00:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 00:37:18] Production.INFO: count ==653 [2025-04-26 00:37:18] Production.ERROR: pbx CDR StartTime 2025-04-25 21:37:05 - End Time 2025-04-26 00:37:05 [2025-04-26 00:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990650', 'tblTempUsageDetail_20' ) start [2025-04-26 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990650', 'tblTempUsageDetail_20' ) end [2025-04-26 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990650', 'tblTempVendorCDR_20' ) start [2025-04-26 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990650', 'tblTempVendorCDR_20' ) end [2025-04-26 00:37:18] Production.INFO: ProcessCDR(1,14990650,1,1,2) [2025-04-26 00:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990650', 'tblTempUsageDetail_20' ) start [2025-04-26 00:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990650', 'tblTempUsageDetail_20' ) end [2025-04-26 00:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 00:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 00:37:22] Production.INFO: ==21764== Releasing lock... [2025-04-26 00:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 00:37:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-26 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 21:38:05 [end_date_ymd] => 2025-04-26 00:38:05 [RateCDR] => 1 ) [2025-04-26 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-04-25 21:38:05' and `end` < '2025-04-26 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-04-26 00:38:17] Production.INFO: count ==655 [2025-04-26 00:38:18] Production.ERROR: pbx CDR StartTime 2025-04-25 21:38:05 - End Time 2025-04-26 00:38:05 [2025-04-26 00:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990655', 'tblTempUsageDetail_20' ) start [2025-04-26 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990655', 'tblTempUsageDetail_20' ) end [2025-04-26 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990655', 'tblTempVendorCDR_20' ) start [2025-04-26 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990655', 'tblTempVendorCDR_20' ) end [2025-04-26 00:38:18] Production.INFO: ProcessCDR(1,14990655,1,1,2) [2025-04-26 00:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990655', 'tblTempUsageDetail_20' ) start [2025-04-26 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990655', 'tblTempUsageDetail_20' ) end [2025-04-26 00:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 00:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 00:38:21] Production.INFO: ==21841== Releasing lock... [2025-04-26 00:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 00:38:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-26 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 21:39:05 [end_date_ymd] => 2025-04-26 00:39:05 [RateCDR] => 1 ) [2025-04-26 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-04-25 21:39:05' and `end` < '2025-04-26 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-04-26 00:39:18] Production.INFO: count ==647 [2025-04-26 00:39:18] Production.ERROR: pbx CDR StartTime 2025-04-25 21:39:05 - End Time 2025-04-26 00:39:05 [2025-04-26 00:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990660', 'tblTempUsageDetail_20' ) start [2025-04-26 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990660', 'tblTempUsageDetail_20' ) end [2025-04-26 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990660', 'tblTempVendorCDR_20' ) start [2025-04-26 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990660', 'tblTempVendorCDR_20' ) end [2025-04-26 00:39:18] Production.INFO: ProcessCDR(1,14990660,1,1,2) [2025-04-26 00:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990660', 'tblTempUsageDetail_20' ) start [2025-04-26 00:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990660', 'tblTempUsageDetail_20' ) end [2025-04-26 00:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 00:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 00:39:22] Production.INFO: ==21914== Releasing lock... [2025-04-26 00:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 00:39:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-26 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 21:40:06 [end_date_ymd] => 2025-04-26 00:40:06 [RateCDR] => 1 ) [2025-04-26 00:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 21:40:06' and `end` < '2025-04-26 00:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 00:40:19] Production.INFO: count ==654 [2025-04-26 00:40:19] Production.ERROR: pbx CDR StartTime 2025-04-25 21:40:06 - End Time 2025-04-26 00:40:06 [2025-04-26 00:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990666', 'tblTempUsageDetail_20' ) start [2025-04-26 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990666', 'tblTempUsageDetail_20' ) end [2025-04-26 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990666', 'tblTempVendorCDR_20' ) start [2025-04-26 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990666', 'tblTempVendorCDR_20' ) end [2025-04-26 00:40:19] Production.INFO: ProcessCDR(1,14990666,1,1,2) [2025-04-26 00:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990666', 'tblTempUsageDetail_20' ) start [2025-04-26 00:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990666', 'tblTempUsageDetail_20' ) end [2025-04-26 00:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 00:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 00:40:23] Production.INFO: ==21991== Releasing lock... [2025-04-26 00:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 00:40:23] Production.INFO: 33.25 MB #Memory Used# [2025-04-26 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 21:41:05 [end_date_ymd] => 2025-04-26 00:41:05 [RateCDR] => 1 ) [2025-04-26 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-04-25 21:41:05' and `end` < '2025-04-26 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-04-26 00:41:18] Production.INFO: count ==652 [2025-04-26 00:41:18] Production.ERROR: pbx CDR StartTime 2025-04-25 21:41:05 - End Time 2025-04-26 00:41:05 [2025-04-26 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990671', 'tblTempUsageDetail_20' ) start [2025-04-26 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990671', 'tblTempUsageDetail_20' ) end [2025-04-26 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990671', 'tblTempVendorCDR_20' ) start [2025-04-26 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990671', 'tblTempVendorCDR_20' ) end [2025-04-26 00:41:18] Production.INFO: ProcessCDR(1,14990671,1,1,2) [2025-04-26 00:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990671', 'tblTempUsageDetail_20' ) start [2025-04-26 00:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990671', 'tblTempUsageDetail_20' ) end [2025-04-26 00:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 00:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 00:41:22] Production.INFO: ==22101== Releasing lock... [2025-04-26 00:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 00:41:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-26 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 21:42:05 [end_date_ymd] => 2025-04-26 00:42:05 [RateCDR] => 1 ) [2025-04-26 00:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 21:42:05' and `end` < '2025-04-26 00:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 00:42:17] Production.INFO: count ==648 [2025-04-26 00:42:17] Production.ERROR: pbx CDR StartTime 2025-04-25 21:42:05 - End Time 2025-04-26 00:42:05 [2025-04-26 00:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990676', 'tblTempUsageDetail_20' ) start [2025-04-26 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990676', 'tblTempUsageDetail_20' ) end [2025-04-26 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990676', 'tblTempVendorCDR_20' ) start [2025-04-26 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990676', 'tblTempVendorCDR_20' ) end [2025-04-26 00:42:17] Production.INFO: ProcessCDR(1,14990676,1,1,2) [2025-04-26 00:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990676', 'tblTempUsageDetail_20' ) start [2025-04-26 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990676', 'tblTempUsageDetail_20' ) end [2025-04-26 00:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 00:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 00:42:21] Production.INFO: ==22172== Releasing lock... [2025-04-26 00:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 00:42:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-26 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 21:43:05 [end_date_ymd] => 2025-04-26 00:43:05 [RateCDR] => 1 ) [2025-04-26 00:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 21:43:05' and `end` < '2025-04-26 00:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 00:43:18] Production.INFO: count ==643 [2025-04-26 00:43:18] Production.ERROR: pbx CDR StartTime 2025-04-25 21:43:05 - End Time 2025-04-26 00:43:05 [2025-04-26 00:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990681', 'tblTempUsageDetail_20' ) start [2025-04-26 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990681', 'tblTempUsageDetail_20' ) end [2025-04-26 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990681', 'tblTempVendorCDR_20' ) start [2025-04-26 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990681', 'tblTempVendorCDR_20' ) end [2025-04-26 00:43:18] Production.INFO: ProcessCDR(1,14990681,1,1,2) [2025-04-26 00:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990681', 'tblTempUsageDetail_20' ) start [2025-04-26 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990681', 'tblTempUsageDetail_20' ) end [2025-04-26 00:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 00:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 00:43:22] Production.INFO: ==22253== Releasing lock... [2025-04-26 00:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 00:43:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-26 00:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 21:44:06 [end_date_ymd] => 2025-04-26 00:44:06 [RateCDR] => 1 ) [2025-04-26 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-04-25 21:44:06' and `end` < '2025-04-26 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-04-26 00:44:18] Production.INFO: count ==637 [2025-04-26 00:44:19] Production.ERROR: pbx CDR StartTime 2025-04-25 21:44:06 - End Time 2025-04-26 00:44:06 [2025-04-26 00:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 00:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990686', 'tblTempUsageDetail_20' ) start [2025-04-26 00:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990686', 'tblTempUsageDetail_20' ) end [2025-04-26 00:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990686', 'tblTempVendorCDR_20' ) start [2025-04-26 00:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990686', 'tblTempVendorCDR_20' ) end [2025-04-26 00:44:19] Production.INFO: ProcessCDR(1,14990686,1,1,2) [2025-04-26 00:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990686', 'tblTempUsageDetail_20' ) start [2025-04-26 00:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990686', 'tblTempUsageDetail_20' ) end [2025-04-26 00:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 00:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 00:44:22] Production.INFO: ==22330== Releasing lock... [2025-04-26 00:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 00:44:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-26 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 21:45:05 [end_date_ymd] => 2025-04-26 00:45:05 [RateCDR] => 1 ) [2025-04-26 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-04-25 21:45:05' and `end` < '2025-04-26 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-04-26 00:45:18] Production.INFO: count ==637 [2025-04-26 00:45:18] Production.ERROR: pbx CDR StartTime 2025-04-25 21:45:05 - End Time 2025-04-26 00:45:05 [2025-04-26 00:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990691', 'tblTempUsageDetail_20' ) start [2025-04-26 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990691', 'tblTempUsageDetail_20' ) end [2025-04-26 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990691', 'tblTempVendorCDR_20' ) start [2025-04-26 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990691', 'tblTempVendorCDR_20' ) end [2025-04-26 00:45:18] Production.INFO: ProcessCDR(1,14990691,1,1,2) [2025-04-26 00:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990691', 'tblTempUsageDetail_20' ) start [2025-04-26 00:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990691', 'tblTempUsageDetail_20' ) end [2025-04-26 00:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 00:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 00:45:22] Production.INFO: ==22402== Releasing lock... [2025-04-26 00:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 00:45:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-26 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 21:46:05 [end_date_ymd] => 2025-04-26 00:46:05 [RateCDR] => 1 ) [2025-04-26 00:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 21:46:05' and `end` < '2025-04-26 00:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 00:46:18] Production.INFO: count ==642 [2025-04-26 00:46:18] Production.ERROR: pbx CDR StartTime 2025-04-25 21:46:05 - End Time 2025-04-26 00:46:05 [2025-04-26 00:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990696', 'tblTempUsageDetail_20' ) start [2025-04-26 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990696', 'tblTempUsageDetail_20' ) end [2025-04-26 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990696', 'tblTempVendorCDR_20' ) start [2025-04-26 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990696', 'tblTempVendorCDR_20' ) end [2025-04-26 00:46:18] Production.INFO: ProcessCDR(1,14990696,1,1,2) [2025-04-26 00:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990696', 'tblTempUsageDetail_20' ) start [2025-04-26 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990696', 'tblTempUsageDetail_20' ) end [2025-04-26 00:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 00:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 00:46:21] Production.INFO: ==22474== Releasing lock... [2025-04-26 00:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 00:46:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-26 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 21:47:05 [end_date_ymd] => 2025-04-26 00:47:05 [RateCDR] => 1 ) [2025-04-26 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-04-25 21:47:05' and `end` < '2025-04-26 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-04-26 00:47:17] Production.INFO: count ==641 [2025-04-26 00:47:18] Production.ERROR: pbx CDR StartTime 2025-04-25 21:47:05 - End Time 2025-04-26 00:47:05 [2025-04-26 00:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990701', 'tblTempUsageDetail_20' ) start [2025-04-26 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990701', 'tblTempUsageDetail_20' ) end [2025-04-26 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990701', 'tblTempVendorCDR_20' ) start [2025-04-26 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990701', 'tblTempVendorCDR_20' ) end [2025-04-26 00:47:18] Production.INFO: ProcessCDR(1,14990701,1,1,2) [2025-04-26 00:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990701', 'tblTempUsageDetail_20' ) start [2025-04-26 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990701', 'tblTempUsageDetail_20' ) end [2025-04-26 00:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 00:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 00:47:22] Production.INFO: ==22547== Releasing lock... [2025-04-26 00:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 00:47:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-26 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 21:48:05 [end_date_ymd] => 2025-04-26 00:48:05 [RateCDR] => 1 ) [2025-04-26 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-04-25 21:48:05' and `end` < '2025-04-26 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-04-26 00:48:18] Production.INFO: count ==637 [2025-04-26 00:48:18] Production.ERROR: pbx CDR StartTime 2025-04-25 21:48:05 - End Time 2025-04-26 00:48:05 [2025-04-26 00:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990706', 'tblTempUsageDetail_20' ) start [2025-04-26 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990706', 'tblTempUsageDetail_20' ) end [2025-04-26 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990706', 'tblTempVendorCDR_20' ) start [2025-04-26 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990706', 'tblTempVendorCDR_20' ) end [2025-04-26 00:48:18] Production.INFO: ProcessCDR(1,14990706,1,1,2) [2025-04-26 00:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990706', 'tblTempUsageDetail_20' ) start [2025-04-26 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990706', 'tblTempUsageDetail_20' ) end [2025-04-26 00:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 00:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 00:48:22] Production.INFO: ==22621== Releasing lock... [2025-04-26 00:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 00:48:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-26 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 21:49:05 [end_date_ymd] => 2025-04-26 00:49:05 [RateCDR] => 1 ) [2025-04-26 00:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 21:49:05' and `end` < '2025-04-26 00:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 00:49:18] Production.INFO: count ==637 [2025-04-26 00:49:18] Production.ERROR: pbx CDR StartTime 2025-04-25 21:49:05 - End Time 2025-04-26 00:49:05 [2025-04-26 00:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990711', 'tblTempUsageDetail_20' ) start [2025-04-26 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990711', 'tblTempUsageDetail_20' ) end [2025-04-26 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990711', 'tblTempVendorCDR_20' ) start [2025-04-26 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990711', 'tblTempVendorCDR_20' ) end [2025-04-26 00:49:18] Production.INFO: ProcessCDR(1,14990711,1,1,2) [2025-04-26 00:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990711', 'tblTempUsageDetail_20' ) start [2025-04-26 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990711', 'tblTempUsageDetail_20' ) end [2025-04-26 00:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 00:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 00:49:21] Production.INFO: ==22694== Releasing lock... [2025-04-26 00:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 00:49:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-26 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 21:50:06 [end_date_ymd] => 2025-04-26 00:50:06 [RateCDR] => 1 ) [2025-04-26 00:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 21:50:06' and `end` < '2025-04-26 00:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 00:50:19] Production.INFO: count ==650 [2025-04-26 00:50:20] Production.ERROR: pbx CDR StartTime 2025-04-25 21:50:06 - End Time 2025-04-26 00:50:06 [2025-04-26 00:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 00:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990717', 'tblTempUsageDetail_20' ) start [2025-04-26 00:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990717', 'tblTempUsageDetail_20' ) end [2025-04-26 00:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990717', 'tblTempVendorCDR_20' ) start [2025-04-26 00:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990717', 'tblTempVendorCDR_20' ) end [2025-04-26 00:50:20] Production.INFO: ProcessCDR(1,14990717,1,1,2) [2025-04-26 00:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990717', 'tblTempUsageDetail_20' ) start [2025-04-26 00:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990717', 'tblTempUsageDetail_20' ) end [2025-04-26 00:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 00:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 00:50:23] Production.INFO: ==22770== Releasing lock... [2025-04-26 00:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 00:50:23] Production.INFO: 33.25 MB #Memory Used# [2025-04-26 00:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 21:51:04 [end_date_ymd] => 2025-04-26 00:51:04 [RateCDR] => 1 ) [2025-04-26 00:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 21:51:04' and `end` < '2025-04-26 00:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 00:51:17] Production.INFO: count ==682 [2025-04-26 00:51:17] Production.ERROR: pbx CDR StartTime 2025-04-25 21:51:04 - End Time 2025-04-26 00:51:04 [2025-04-26 00:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990718', 'tblTempUsageDetail_20' ) start [2025-04-26 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990718', 'tblTempUsageDetail_20' ) end [2025-04-26 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990718', 'tblTempVendorCDR_20' ) start [2025-04-26 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990718', 'tblTempVendorCDR_20' ) end [2025-04-26 00:51:17] Production.INFO: ProcessCDR(1,14990718,1,1,2) [2025-04-26 00:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990718', 'tblTempUsageDetail_20' ) start [2025-04-26 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990718', 'tblTempUsageDetail_20' ) end [2025-04-26 00:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 00:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 00:51:21] Production.INFO: ==22844== Releasing lock... [2025-04-26 00:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 00:51:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-26 00:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 21:52:06 [end_date_ymd] => 2025-04-26 00:52:06 [RateCDR] => 1 ) [2025-04-26 00:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 21:52:06' and `end` < '2025-04-26 00:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 00:52:19] Production.INFO: count ==680 [2025-04-26 00:52:19] Production.ERROR: pbx CDR StartTime 2025-04-25 21:52:06 - End Time 2025-04-26 00:52:06 [2025-04-26 00:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990727', 'tblTempUsageDetail_20' ) start [2025-04-26 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990727', 'tblTempUsageDetail_20' ) end [2025-04-26 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990727', 'tblTempVendorCDR_20' ) start [2025-04-26 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990727', 'tblTempVendorCDR_20' ) end [2025-04-26 00:52:19] Production.INFO: ProcessCDR(1,14990727,1,1,2) [2025-04-26 00:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990727', 'tblTempUsageDetail_20' ) start [2025-04-26 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990727', 'tblTempUsageDetail_20' ) end [2025-04-26 00:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 00:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 00:52:22] Production.INFO: ==22917== Releasing lock... [2025-04-26 00:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 00:52:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-26 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 21:53:05 [end_date_ymd] => 2025-04-26 00:53:05 [RateCDR] => 1 ) [2025-04-26 00:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 21:53:05' and `end` < '2025-04-26 00:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 00:53:18] Production.INFO: count ==680 [2025-04-26 00:53:18] Production.ERROR: pbx CDR StartTime 2025-04-25 21:53:05 - End Time 2025-04-26 00:53:05 [2025-04-26 00:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990732', 'tblTempUsageDetail_20' ) start [2025-04-26 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990732', 'tblTempUsageDetail_20' ) end [2025-04-26 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990732', 'tblTempVendorCDR_20' ) start [2025-04-26 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990732', 'tblTempVendorCDR_20' ) end [2025-04-26 00:53:18] Production.INFO: ProcessCDR(1,14990732,1,1,2) [2025-04-26 00:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990732', 'tblTempUsageDetail_20' ) start [2025-04-26 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990732', 'tblTempUsageDetail_20' ) end [2025-04-26 00:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 00:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 00:53:22] Production.INFO: ==22992== Releasing lock... [2025-04-26 00:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 00:53:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-26 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 21:54:05 [end_date_ymd] => 2025-04-26 00:54:05 [RateCDR] => 1 ) [2025-04-26 00:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 21:54:05' and `end` < '2025-04-26 00:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 00:54:18] Production.INFO: count ==683 [2025-04-26 00:54:18] Production.ERROR: pbx CDR StartTime 2025-04-25 21:54:05 - End Time 2025-04-26 00:54:05 [2025-04-26 00:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990737', 'tblTempUsageDetail_20' ) start [2025-04-26 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990737', 'tblTempUsageDetail_20' ) end [2025-04-26 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990737', 'tblTempVendorCDR_20' ) start [2025-04-26 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990737', 'tblTempVendorCDR_20' ) end [2025-04-26 00:54:18] Production.INFO: ProcessCDR(1,14990737,1,1,2) [2025-04-26 00:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990737', 'tblTempUsageDetail_20' ) start [2025-04-26 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990737', 'tblTempUsageDetail_20' ) end [2025-04-26 00:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 00:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 00:54:21] Production.INFO: ==23070== Releasing lock... [2025-04-26 00:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 00:54:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-26 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 21:55:05 [end_date_ymd] => 2025-04-26 00:55:05 [RateCDR] => 1 ) [2025-04-26 00:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 21:55:05' and `end` < '2025-04-26 00:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 00:55:17] Production.INFO: count ==680 [2025-04-26 00:55:18] Production.ERROR: pbx CDR StartTime 2025-04-25 21:55:05 - End Time 2025-04-26 00:55:05 [2025-04-26 00:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990742', 'tblTempUsageDetail_20' ) start [2025-04-26 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990742', 'tblTempUsageDetail_20' ) end [2025-04-26 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990742', 'tblTempVendorCDR_20' ) start [2025-04-26 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990742', 'tblTempVendorCDR_20' ) end [2025-04-26 00:55:18] Production.INFO: ProcessCDR(1,14990742,1,1,2) [2025-04-26 00:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990742', 'tblTempUsageDetail_20' ) start [2025-04-26 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990742', 'tblTempUsageDetail_20' ) end [2025-04-26 00:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 00:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 00:55:21] Production.INFO: ==23142== Releasing lock... [2025-04-26 00:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 00:55:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-26 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 21:56:05 [end_date_ymd] => 2025-04-26 00:56:05 [RateCDR] => 1 ) [2025-04-26 00:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 21:56:05' and `end` < '2025-04-26 00:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 00:56:18] Production.INFO: count ==677 [2025-04-26 00:56:18] Production.ERROR: pbx CDR StartTime 2025-04-25 21:56:05 - End Time 2025-04-26 00:56:05 [2025-04-26 00:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990747', 'tblTempUsageDetail_20' ) start [2025-04-26 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990747', 'tblTempUsageDetail_20' ) end [2025-04-26 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990747', 'tblTempVendorCDR_20' ) start [2025-04-26 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990747', 'tblTempVendorCDR_20' ) end [2025-04-26 00:56:18] Production.INFO: ProcessCDR(1,14990747,1,1,2) [2025-04-26 00:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990747', 'tblTempUsageDetail_20' ) start [2025-04-26 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990747', 'tblTempUsageDetail_20' ) end [2025-04-26 00:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 00:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 00:56:21] Production.INFO: ==23252== Releasing lock... [2025-04-26 00:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 00:56:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-26 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 21:57:05 [end_date_ymd] => 2025-04-26 00:57:05 [RateCDR] => 1 ) [2025-04-26 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-04-25 21:57:05' and `end` < '2025-04-26 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-04-26 00:57:17] Production.INFO: count ==676 [2025-04-26 00:57:18] Production.ERROR: pbx CDR StartTime 2025-04-25 21:57:05 - End Time 2025-04-26 00:57:05 [2025-04-26 00:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990752', 'tblTempUsageDetail_20' ) start [2025-04-26 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990752', 'tblTempUsageDetail_20' ) end [2025-04-26 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990752', 'tblTempVendorCDR_20' ) start [2025-04-26 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990752', 'tblTempVendorCDR_20' ) end [2025-04-26 00:57:18] Production.INFO: ProcessCDR(1,14990752,1,1,2) [2025-04-26 00:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990752', 'tblTempUsageDetail_20' ) start [2025-04-26 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990752', 'tblTempUsageDetail_20' ) end [2025-04-26 00:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 00:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 00:57:21] Production.INFO: ==23326== Releasing lock... [2025-04-26 00:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 00:57:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-26 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 21:58:05 [end_date_ymd] => 2025-04-26 00:58:05 [RateCDR] => 1 ) [2025-04-26 00:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 21:58:05' and `end` < '2025-04-26 00:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 00:58:18] Production.INFO: count ==675 [2025-04-26 00:58:18] Production.ERROR: pbx CDR StartTime 2025-04-25 21:58:05 - End Time 2025-04-26 00:58:05 [2025-04-26 00:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990757', 'tblTempUsageDetail_20' ) start [2025-04-26 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990757', 'tblTempUsageDetail_20' ) end [2025-04-26 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990757', 'tblTempVendorCDR_20' ) start [2025-04-26 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990757', 'tblTempVendorCDR_20' ) end [2025-04-26 00:58:18] Production.INFO: ProcessCDR(1,14990757,1,1,2) [2025-04-26 00:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990757', 'tblTempUsageDetail_20' ) start [2025-04-26 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990757', 'tblTempUsageDetail_20' ) end [2025-04-26 00:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 00:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 00:58:21] Production.INFO: ==23405== Releasing lock... [2025-04-26 00:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 00:58:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-26 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 21:59:05 [end_date_ymd] => 2025-04-26 00:59:05 [RateCDR] => 1 ) [2025-04-26 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-04-25 21:59:05' and `end` < '2025-04-26 00:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 00:59:18] Production.INFO: count ==670 [2025-04-26 00:59:18] Production.ERROR: pbx CDR StartTime 2025-04-25 21:59:05 - End Time 2025-04-26 00:59:05 [2025-04-26 00:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990762', 'tblTempUsageDetail_20' ) start [2025-04-26 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990762', 'tblTempUsageDetail_20' ) end [2025-04-26 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990762', 'tblTempVendorCDR_20' ) start [2025-04-26 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990762', 'tblTempVendorCDR_20' ) end [2025-04-26 00:59:18] Production.INFO: ProcessCDR(1,14990762,1,1,2) [2025-04-26 00:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 00:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990762', 'tblTempUsageDetail_20' ) start [2025-04-26 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990762', 'tblTempUsageDetail_20' ) end [2025-04-26 00:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 00:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 00:59:21] Production.INFO: ==23478== Releasing lock... [2025-04-26 00:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 00:59:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-26 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 22:00:06 [end_date_ymd] => 2025-04-26 01:00:06 [RateCDR] => 1 ) [2025-04-26 01:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 22:00:06' and `end` < '2025-04-26 01:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 01:00:19] Production.INFO: count ==676 [2025-04-26 01:00:19] Production.ERROR: pbx CDR StartTime 2025-04-25 22:00:06 - End Time 2025-04-26 01:00:06 [2025-04-26 01:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990767', 'tblTempUsageDetail_20' ) start [2025-04-26 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990767', 'tblTempUsageDetail_20' ) end [2025-04-26 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990767', 'tblTempVendorCDR_20' ) start [2025-04-26 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990767', 'tblTempVendorCDR_20' ) end [2025-04-26 01:00:19] Production.INFO: ProcessCDR(1,14990767,1,1,2) [2025-04-26 01:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990767', 'tblTempUsageDetail_20' ) start [2025-04-26 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990767', 'tblTempUsageDetail_20' ) end [2025-04-26 01:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 01:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 01:00:22] Production.INFO: ==23551== Releasing lock... [2025-04-26 01:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 01:00:22] Production.INFO: 33 MB #Memory Used# [2025-04-26 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 22:01:05 [end_date_ymd] => 2025-04-26 01:01:05 [RateCDR] => 1 ) [2025-04-26 01:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 22:01:05' and `end` < '2025-04-26 01:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 01:01:17] Production.INFO: count ==692 [2025-04-26 01:01:18] Production.ERROR: pbx CDR StartTime 2025-04-25 22:01:05 - End Time 2025-04-26 01:01:05 [2025-04-26 01:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990773', 'tblTempUsageDetail_20' ) start [2025-04-26 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990773', 'tblTempUsageDetail_20' ) end [2025-04-26 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990773', 'tblTempVendorCDR_20' ) start [2025-04-26 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990773', 'tblTempVendorCDR_20' ) end [2025-04-26 01:01:18] Production.INFO: ProcessCDR(1,14990773,1,1,2) [2025-04-26 01:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990773', 'tblTempUsageDetail_20' ) start [2025-04-26 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990773', 'tblTempUsageDetail_20' ) end [2025-04-26 01:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 01:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 01:01:21] Production.INFO: ==23638== Releasing lock... [2025-04-26 01:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 01:01:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-26 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 22:02:05 [end_date_ymd] => 2025-04-26 01:02:05 [RateCDR] => 1 ) [2025-04-26 01:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 22:02:05' and `end` < '2025-04-26 01:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 01:02:18] Production.INFO: count ==745 [2025-04-26 01:02:18] Production.ERROR: pbx CDR StartTime 2025-04-25 22:02:05 - End Time 2025-04-26 01:02:05 [2025-04-26 01:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990778', 'tblTempUsageDetail_20' ) start [2025-04-26 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990778', 'tblTempUsageDetail_20' ) end [2025-04-26 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990778', 'tblTempVendorCDR_20' ) start [2025-04-26 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990778', 'tblTempVendorCDR_20' ) end [2025-04-26 01:02:18] Production.INFO: ProcessCDR(1,14990778,1,1,2) [2025-04-26 01:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990778', 'tblTempUsageDetail_20' ) start [2025-04-26 01:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990778', 'tblTempUsageDetail_20' ) end [2025-04-26 01:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 01:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 01:02:23] Production.INFO: ==23711== Releasing lock... [2025-04-26 01:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 01:02:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-26 01:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 22:03:06 [end_date_ymd] => 2025-04-26 01:03:06 [RateCDR] => 1 ) [2025-04-26 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-04-25 22:03:06' and `end` < '2025-04-26 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-04-26 01:03:19] Production.INFO: count ==744 [2025-04-26 01:03:19] Production.ERROR: pbx CDR StartTime 2025-04-25 22:03:06 - End Time 2025-04-26 01:03:06 [2025-04-26 01:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990783', 'tblTempUsageDetail_20' ) start [2025-04-26 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990783', 'tblTempUsageDetail_20' ) end [2025-04-26 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990783', 'tblTempVendorCDR_20' ) start [2025-04-26 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990783', 'tblTempVendorCDR_20' ) end [2025-04-26 01:03:19] Production.INFO: ProcessCDR(1,14990783,1,1,2) [2025-04-26 01:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990783', 'tblTempUsageDetail_20' ) start [2025-04-26 01:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990783', 'tblTempUsageDetail_20' ) end [2025-04-26 01:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 01:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 01:03:22] Production.INFO: ==23788== Releasing lock... [2025-04-26 01:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 01:03:22] Production.INFO: 34 MB #Memory Used# [2025-04-26 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 22:04:05 [end_date_ymd] => 2025-04-26 01:04:05 [RateCDR] => 1 ) [2025-04-26 01:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 22:04:05' and `end` < '2025-04-26 01:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 01:04:18] Production.INFO: count ==744 [2025-04-26 01:04:18] Production.ERROR: pbx CDR StartTime 2025-04-25 22:04:05 - End Time 2025-04-26 01:04:05 [2025-04-26 01:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990788', 'tblTempUsageDetail_20' ) start [2025-04-26 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990788', 'tblTempUsageDetail_20' ) end [2025-04-26 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990788', 'tblTempVendorCDR_20' ) start [2025-04-26 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990788', 'tblTempVendorCDR_20' ) end [2025-04-26 01:04:18] Production.INFO: ProcessCDR(1,14990788,1,1,2) [2025-04-26 01:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990788', 'tblTempUsageDetail_20' ) start [2025-04-26 01:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990788', 'tblTempUsageDetail_20' ) end [2025-04-26 01:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 01:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 01:04:23] Production.INFO: ==23862== Releasing lock... [2025-04-26 01:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 01:04:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-26 01:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 22:05:06 [end_date_ymd] => 2025-04-26 01:05:06 [RateCDR] => 1 ) [2025-04-26 01:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 22:05:06' and `end` < '2025-04-26 01:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 01:05:18] Production.INFO: count ==742 [2025-04-26 01:05:19] Production.ERROR: pbx CDR StartTime 2025-04-25 22:05:06 - End Time 2025-04-26 01:05:06 [2025-04-26 01:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 01:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990793', 'tblTempUsageDetail_20' ) start [2025-04-26 01:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990793', 'tblTempUsageDetail_20' ) end [2025-04-26 01:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990793', 'tblTempVendorCDR_20' ) start [2025-04-26 01:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990793', 'tblTempVendorCDR_20' ) end [2025-04-26 01:05:19] Production.INFO: ProcessCDR(1,14990793,1,1,2) [2025-04-26 01:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990793', 'tblTempUsageDetail_20' ) start [2025-04-26 01:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990793', 'tblTempUsageDetail_20' ) end [2025-04-26 01:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 01:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 01:05:22] Production.INFO: ==23932== Releasing lock... [2025-04-26 01:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 01:05:22] Production.INFO: 34 MB #Memory Used# [2025-04-26 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 22:06:05 [end_date_ymd] => 2025-04-26 01:06:05 [RateCDR] => 1 ) [2025-04-26 01:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 22:06:05' and `end` < '2025-04-26 01:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 01:06:18] Production.INFO: count ==737 [2025-04-26 01:06:18] Production.ERROR: pbx CDR StartTime 2025-04-25 22:06:05 - End Time 2025-04-26 01:06:05 [2025-04-26 01:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990798', 'tblTempUsageDetail_20' ) start [2025-04-26 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990798', 'tblTempUsageDetail_20' ) end [2025-04-26 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990798', 'tblTempVendorCDR_20' ) start [2025-04-26 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990798', 'tblTempVendorCDR_20' ) end [2025-04-26 01:06:18] Production.INFO: ProcessCDR(1,14990798,1,1,2) [2025-04-26 01:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990798', 'tblTempUsageDetail_20' ) start [2025-04-26 01:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990798', 'tblTempUsageDetail_20' ) end [2025-04-26 01:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 01:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 01:06:23] Production.INFO: ==24007== Releasing lock... [2025-04-26 01:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 01:06:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-26 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 22:07:05 [end_date_ymd] => 2025-04-26 01:07:05 [RateCDR] => 1 ) [2025-04-26 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-04-25 22:07:05' and `end` < '2025-04-26 01:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 01:07:18] Production.INFO: count ==735 [2025-04-26 01:07:18] Production.ERROR: pbx CDR StartTime 2025-04-25 22:07:05 - End Time 2025-04-26 01:07:05 [2025-04-26 01:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990803', 'tblTempUsageDetail_20' ) start [2025-04-26 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990803', 'tblTempUsageDetail_20' ) end [2025-04-26 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990803', 'tblTempVendorCDR_20' ) start [2025-04-26 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990803', 'tblTempVendorCDR_20' ) end [2025-04-26 01:07:18] Production.INFO: ProcessCDR(1,14990803,1,1,2) [2025-04-26 01:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990803', 'tblTempUsageDetail_20' ) start [2025-04-26 01:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990803', 'tblTempUsageDetail_20' ) end [2025-04-26 01:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 01:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 01:07:23] Production.INFO: ==24083== Releasing lock... [2025-04-26 01:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 01:07:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-26 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 22:08:05 [end_date_ymd] => 2025-04-26 01:08:05 [RateCDR] => 1 ) [2025-04-26 01:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 22:08:05' and `end` < '2025-04-26 01:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 01:08:17] Production.INFO: count ==735 [2025-04-26 01:08:18] Production.ERROR: pbx CDR StartTime 2025-04-25 22:08:05 - End Time 2025-04-26 01:08:05 [2025-04-26 01:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990808', 'tblTempUsageDetail_20' ) start [2025-04-26 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990808', 'tblTempUsageDetail_20' ) end [2025-04-26 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990808', 'tblTempVendorCDR_20' ) start [2025-04-26 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990808', 'tblTempVendorCDR_20' ) end [2025-04-26 01:08:18] Production.INFO: ProcessCDR(1,14990808,1,1,2) [2025-04-26 01:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990808', 'tblTempUsageDetail_20' ) start [2025-04-26 01:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990808', 'tblTempUsageDetail_20' ) end [2025-04-26 01:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 01:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 01:08:22] Production.INFO: ==24162== Releasing lock... [2025-04-26 01:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 01:08:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-26 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 22:09:05 [end_date_ymd] => 2025-04-26 01:09:05 [RateCDR] => 1 ) [2025-04-26 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-04-25 22:09:05' and `end` < '2025-04-26 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-04-26 01:09:18] Production.INFO: count ==734 [2025-04-26 01:09:18] Production.ERROR: pbx CDR StartTime 2025-04-25 22:09:05 - End Time 2025-04-26 01:09:05 [2025-04-26 01:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990813', 'tblTempUsageDetail_20' ) start [2025-04-26 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990813', 'tblTempUsageDetail_20' ) end [2025-04-26 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990813', 'tblTempVendorCDR_20' ) start [2025-04-26 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990813', 'tblTempVendorCDR_20' ) end [2025-04-26 01:09:18] Production.INFO: ProcessCDR(1,14990813,1,1,2) [2025-04-26 01:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990813', 'tblTempUsageDetail_20' ) start [2025-04-26 01:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990813', 'tblTempUsageDetail_20' ) end [2025-04-26 01:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 01:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 01:09:22] Production.INFO: ==24232== Releasing lock... [2025-04-26 01:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 01:09:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-26 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 22:10:06 [end_date_ymd] => 2025-04-26 01:10:06 [RateCDR] => 1 ) [2025-04-26 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-04-25 22:10:06' and `end` < '2025-04-26 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-04-26 01:10:19] Production.INFO: count ==738 [2025-04-26 01:10:19] Production.ERROR: pbx CDR StartTime 2025-04-25 22:10:06 - End Time 2025-04-26 01:10:06 [2025-04-26 01:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990819', 'tblTempUsageDetail_20' ) start [2025-04-26 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990819', 'tblTempUsageDetail_20' ) end [2025-04-26 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990819', 'tblTempVendorCDR_20' ) start [2025-04-26 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990819', 'tblTempVendorCDR_20' ) end [2025-04-26 01:10:19] Production.INFO: ProcessCDR(1,14990819,1,1,2) [2025-04-26 01:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990819', 'tblTempUsageDetail_20' ) start [2025-04-26 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990819', 'tblTempUsageDetail_20' ) end [2025-04-26 01:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 01:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 01:10:22] Production.INFO: ==24310== Releasing lock... [2025-04-26 01:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 01:10:22] Production.INFO: 34 MB #Memory Used# [2025-04-26 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 22:11:05 [end_date_ymd] => 2025-04-26 01:11:05 [RateCDR] => 1 ) [2025-04-26 01:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 22:11:05' and `end` < '2025-04-26 01:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 01:11:18] Production.INFO: count ==744 [2025-04-26 01:11:18] Production.ERROR: pbx CDR StartTime 2025-04-25 22:11:05 - End Time 2025-04-26 01:11:05 [2025-04-26 01:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990824', 'tblTempUsageDetail_20' ) start [2025-04-26 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990824', 'tblTempUsageDetail_20' ) end [2025-04-26 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990824', 'tblTempVendorCDR_20' ) start [2025-04-26 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990824', 'tblTempVendorCDR_20' ) end [2025-04-26 01:11:18] Production.INFO: ProcessCDR(1,14990824,1,1,2) [2025-04-26 01:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990824', 'tblTempUsageDetail_20' ) start [2025-04-26 01:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990824', 'tblTempUsageDetail_20' ) end [2025-04-26 01:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 01:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 01:11:23] Production.INFO: ==24384== Releasing lock... [2025-04-26 01:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 01:11:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-26 01:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 22:12:06 [end_date_ymd] => 2025-04-26 01:12:06 [RateCDR] => 1 ) [2025-04-26 01:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 22:12:06' and `end` < '2025-04-26 01:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 01:12:19] Production.INFO: count ==733 [2025-04-26 01:12:19] Production.ERROR: pbx CDR StartTime 2025-04-25 22:12:06 - End Time 2025-04-26 01:12:06 [2025-04-26 01:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990829', 'tblTempUsageDetail_20' ) start [2025-04-26 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990829', 'tblTempUsageDetail_20' ) end [2025-04-26 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990829', 'tblTempVendorCDR_20' ) start [2025-04-26 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990829', 'tblTempVendorCDR_20' ) end [2025-04-26 01:12:19] Production.INFO: ProcessCDR(1,14990829,1,1,2) [2025-04-26 01:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990829', 'tblTempUsageDetail_20' ) start [2025-04-26 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990829', 'tblTempUsageDetail_20' ) end [2025-04-26 01:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 01:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 01:12:22] Production.INFO: ==24499== Releasing lock... [2025-04-26 01:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 01:12:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-26 01:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 22:13:04 [end_date_ymd] => 2025-04-26 01:13:04 [RateCDR] => 1 ) [2025-04-26 01:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 22:13:04' and `end` < '2025-04-26 01:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 01:13:17] Production.INFO: count ==731 [2025-04-26 01:13:17] Production.ERROR: pbx CDR StartTime 2025-04-25 22:13:04 - End Time 2025-04-26 01:13:04 [2025-04-26 01:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990834', 'tblTempUsageDetail_20' ) start [2025-04-26 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990834', 'tblTempUsageDetail_20' ) end [2025-04-26 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990834', 'tblTempVendorCDR_20' ) start [2025-04-26 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990834', 'tblTempVendorCDR_20' ) end [2025-04-26 01:13:17] Production.INFO: ProcessCDR(1,14990834,1,1,2) [2025-04-26 01:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990834', 'tblTempUsageDetail_20' ) start [2025-04-26 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990834', 'tblTempUsageDetail_20' ) end [2025-04-26 01:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 01:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 01:13:21] Production.INFO: ==24573== Releasing lock... [2025-04-26 01:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 01:13:21] Production.INFO: 34.25 MB #Memory Used# [2025-04-26 01:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 22:14:06 [end_date_ymd] => 2025-04-26 01:14:06 [RateCDR] => 1 ) [2025-04-26 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-04-25 22:14:06' and `end` < '2025-04-26 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-04-26 01:14:18] Production.INFO: count ==727 [2025-04-26 01:14:18] Production.ERROR: pbx CDR StartTime 2025-04-25 22:14:06 - End Time 2025-04-26 01:14:06 [2025-04-26 01:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990839', 'tblTempUsageDetail_20' ) start [2025-04-26 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990839', 'tblTempUsageDetail_20' ) end [2025-04-26 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990839', 'tblTempVendorCDR_20' ) start [2025-04-26 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990839', 'tblTempVendorCDR_20' ) end [2025-04-26 01:14:18] Production.INFO: ProcessCDR(1,14990839,1,1,2) [2025-04-26 01:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990839', 'tblTempUsageDetail_20' ) start [2025-04-26 01:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990839', 'tblTempUsageDetail_20' ) end [2025-04-26 01:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 01:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 01:14:22] Production.INFO: ==24651== Releasing lock... [2025-04-26 01:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 01:14:22] Production.INFO: 34 MB #Memory Used# [2025-04-26 01:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 22:15:04 [end_date_ymd] => 2025-04-26 01:15:04 [RateCDR] => 1 ) [2025-04-26 01:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 22:15:04' and `end` < '2025-04-26 01:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 01:15:17] Production.INFO: count ==726 [2025-04-26 01:15:17] Production.ERROR: pbx CDR StartTime 2025-04-25 22:15:04 - End Time 2025-04-26 01:15:04 [2025-04-26 01:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990844', 'tblTempUsageDetail_20' ) start [2025-04-26 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990844', 'tblTempUsageDetail_20' ) end [2025-04-26 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990844', 'tblTempVendorCDR_20' ) start [2025-04-26 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990844', 'tblTempVendorCDR_20' ) end [2025-04-26 01:15:17] Production.INFO: ProcessCDR(1,14990844,1,1,2) [2025-04-26 01:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990844', 'tblTempUsageDetail_20' ) start [2025-04-26 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990844', 'tblTempUsageDetail_20' ) end [2025-04-26 01:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 01:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 01:15:21] Production.INFO: ==24721== Releasing lock... [2025-04-26 01:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 01:15:21] Production.INFO: 34 MB #Memory Used# [2025-04-26 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 22:16:05 [end_date_ymd] => 2025-04-26 01:16:05 [RateCDR] => 1 ) [2025-04-26 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-04-25 22:16:05' and `end` < '2025-04-26 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-04-26 01:16:18] Production.INFO: count ==722 [2025-04-26 01:16:18] Production.ERROR: pbx CDR StartTime 2025-04-25 22:16:05 - End Time 2025-04-26 01:16:05 [2025-04-26 01:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990849', 'tblTempUsageDetail_20' ) start [2025-04-26 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990849', 'tblTempUsageDetail_20' ) end [2025-04-26 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990849', 'tblTempVendorCDR_20' ) start [2025-04-26 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990849', 'tblTempVendorCDR_20' ) end [2025-04-26 01:16:18] Production.INFO: ProcessCDR(1,14990849,1,1,2) [2025-04-26 01:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990849', 'tblTempUsageDetail_20' ) start [2025-04-26 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990849', 'tblTempUsageDetail_20' ) end [2025-04-26 01:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 01:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 01:16:22] Production.INFO: ==24800== Releasing lock... [2025-04-26 01:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 01:16:22] Production.INFO: 34 MB #Memory Used# [2025-04-26 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 22:17:05 [end_date_ymd] => 2025-04-26 01:17:05 [RateCDR] => 1 ) [2025-04-26 01:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 22:17:05' and `end` < '2025-04-26 01:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 01:17:17] Production.INFO: count ==721 [2025-04-26 01:17:17] Production.ERROR: pbx CDR StartTime 2025-04-25 22:17:05 - End Time 2025-04-26 01:17:05 [2025-04-26 01:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990854', 'tblTempUsageDetail_20' ) start [2025-04-26 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990854', 'tblTempUsageDetail_20' ) end [2025-04-26 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990854', 'tblTempVendorCDR_20' ) start [2025-04-26 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990854', 'tblTempVendorCDR_20' ) end [2025-04-26 01:17:18] Production.INFO: ProcessCDR(1,14990854,1,1,2) [2025-04-26 01:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990854', 'tblTempUsageDetail_20' ) start [2025-04-26 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990854', 'tblTempUsageDetail_20' ) end [2025-04-26 01:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 01:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 01:17:21] Production.INFO: ==24870== Releasing lock... [2025-04-26 01:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 01:17:21] Production.INFO: 34 MB #Memory Used# [2025-04-26 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 22:18:05 [end_date_ymd] => 2025-04-26 01:18:05 [RateCDR] => 1 ) [2025-04-26 01:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 22:18:05' and `end` < '2025-04-26 01:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 01:18:18] Production.INFO: count ==719 [2025-04-26 01:18:18] Production.ERROR: pbx CDR StartTime 2025-04-25 22:18:05 - End Time 2025-04-26 01:18:05 [2025-04-26 01:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990859', 'tblTempUsageDetail_20' ) start [2025-04-26 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990859', 'tblTempUsageDetail_20' ) end [2025-04-26 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990859', 'tblTempVendorCDR_20' ) start [2025-04-26 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990859', 'tblTempVendorCDR_20' ) end [2025-04-26 01:18:18] Production.INFO: ProcessCDR(1,14990859,1,1,2) [2025-04-26 01:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990859', 'tblTempUsageDetail_20' ) start [2025-04-26 01:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990859', 'tblTempUsageDetail_20' ) end [2025-04-26 01:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 01:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 01:18:22] Production.INFO: ==24959== Releasing lock... [2025-04-26 01:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 01:18:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-26 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 22:19:05 [end_date_ymd] => 2025-04-26 01:19:05 [RateCDR] => 1 ) [2025-04-26 01:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 22:19:05' and `end` < '2025-04-26 01:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 01:19:18] Production.INFO: count ==719 [2025-04-26 01:19:18] Production.ERROR: pbx CDR StartTime 2025-04-25 22:19:05 - End Time 2025-04-26 01:19:05 [2025-04-26 01:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990864', 'tblTempUsageDetail_20' ) start [2025-04-26 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990864', 'tblTempUsageDetail_20' ) end [2025-04-26 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990864', 'tblTempVendorCDR_20' ) start [2025-04-26 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990864', 'tblTempVendorCDR_20' ) end [2025-04-26 01:19:18] Production.INFO: ProcessCDR(1,14990864,1,1,2) [2025-04-26 01:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990864', 'tblTempUsageDetail_20' ) start [2025-04-26 01:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990864', 'tblTempUsageDetail_20' ) end [2025-04-26 01:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 01:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 01:19:22] Production.INFO: ==25032== Releasing lock... [2025-04-26 01:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 01:19:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-26 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 22:20:06 [end_date_ymd] => 2025-04-26 01:20:06 [RateCDR] => 1 ) [2025-04-26 01:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 22:20:06' and `end` < '2025-04-26 01:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 01:20:18] Production.INFO: count ==728 [2025-04-26 01:20:19] Production.ERROR: pbx CDR StartTime 2025-04-25 22:20:06 - End Time 2025-04-26 01:20:06 [2025-04-26 01:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990870', 'tblTempUsageDetail_20' ) start [2025-04-26 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990870', 'tblTempUsageDetail_20' ) end [2025-04-26 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990870', 'tblTempVendorCDR_20' ) start [2025-04-26 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990870', 'tblTempVendorCDR_20' ) end [2025-04-26 01:20:19] Production.INFO: ProcessCDR(1,14990870,1,1,2) [2025-04-26 01:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990870', 'tblTempUsageDetail_20' ) start [2025-04-26 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990870', 'tblTempUsageDetail_20' ) end [2025-04-26 01:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 01:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 01:20:22] Production.INFO: ==25108== Releasing lock... [2025-04-26 01:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 01:20:22] Production.INFO: 34 MB #Memory Used# [2025-04-26 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 22:21:05 [end_date_ymd] => 2025-04-26 01:21:05 [RateCDR] => 1 ) [2025-04-26 01:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 22:21:05' and `end` < '2025-04-26 01:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 01:21:18] Production.INFO: count ==732 [2025-04-26 01:21:18] Production.ERROR: pbx CDR StartTime 2025-04-25 22:21:05 - End Time 2025-04-26 01:21:05 [2025-04-26 01:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990875', 'tblTempUsageDetail_20' ) start [2025-04-26 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990875', 'tblTempUsageDetail_20' ) end [2025-04-26 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990875', 'tblTempVendorCDR_20' ) start [2025-04-26 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990875', 'tblTempVendorCDR_20' ) end [2025-04-26 01:21:18] Production.INFO: ProcessCDR(1,14990875,1,1,2) [2025-04-26 01:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990875', 'tblTempUsageDetail_20' ) start [2025-04-26 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990875', 'tblTempUsageDetail_20' ) end [2025-04-26 01:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 01:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 01:21:21] Production.INFO: ==25191== Releasing lock... [2025-04-26 01:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 01:21:21] Production.INFO: 34 MB #Memory Used# [2025-04-26 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 22:22:05 [end_date_ymd] => 2025-04-26 01:22:05 [RateCDR] => 1 ) [2025-04-26 01:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 22:22:05' and `end` < '2025-04-26 01:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 01:22:17] Production.INFO: count ==731 [2025-04-26 01:22:18] Production.ERROR: pbx CDR StartTime 2025-04-25 22:22:05 - End Time 2025-04-26 01:22:05 [2025-04-26 01:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990880', 'tblTempUsageDetail_20' ) start [2025-04-26 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990880', 'tblTempUsageDetail_20' ) end [2025-04-26 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990880', 'tblTempVendorCDR_20' ) start [2025-04-26 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990880', 'tblTempVendorCDR_20' ) end [2025-04-26 01:22:18] Production.INFO: ProcessCDR(1,14990880,1,1,2) [2025-04-26 01:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990880', 'tblTempUsageDetail_20' ) start [2025-04-26 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990880', 'tblTempUsageDetail_20' ) end [2025-04-26 01:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 01:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 01:22:21] Production.INFO: ==25267== Releasing lock... [2025-04-26 01:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 01:22:21] Production.INFO: 34 MB #Memory Used# [2025-04-26 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 22:23:05 [end_date_ymd] => 2025-04-26 01:23:05 [RateCDR] => 1 ) [2025-04-26 01:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 22:23:05' and `end` < '2025-04-26 01:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 01:23:17] Production.INFO: count ==725 [2025-04-26 01:23:18] Production.ERROR: pbx CDR StartTime 2025-04-25 22:23:05 - End Time 2025-04-26 01:23:05 [2025-04-26 01:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990885', 'tblTempUsageDetail_20' ) start [2025-04-26 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990885', 'tblTempUsageDetail_20' ) end [2025-04-26 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990885', 'tblTempVendorCDR_20' ) start [2025-04-26 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990885', 'tblTempVendorCDR_20' ) end [2025-04-26 01:23:18] Production.INFO: ProcessCDR(1,14990885,1,1,2) [2025-04-26 01:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990885', 'tblTempUsageDetail_20' ) start [2025-04-26 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990885', 'tblTempUsageDetail_20' ) end [2025-04-26 01:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 01:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 01:23:21] Production.INFO: ==25340== Releasing lock... [2025-04-26 01:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 01:23:21] Production.INFO: 34 MB #Memory Used# [2025-04-26 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 22:24:05 [end_date_ymd] => 2025-04-26 01:24:05 [RateCDR] => 1 ) [2025-04-26 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-04-25 22:24:05' and `end` < '2025-04-26 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-04-26 01:24:17] Production.INFO: count ==723 [2025-04-26 01:24:18] Production.ERROR: pbx CDR StartTime 2025-04-25 22:24:05 - End Time 2025-04-26 01:24:05 [2025-04-26 01:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990890', 'tblTempUsageDetail_20' ) start [2025-04-26 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990890', 'tblTempUsageDetail_20' ) end [2025-04-26 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990890', 'tblTempVendorCDR_20' ) start [2025-04-26 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990890', 'tblTempVendorCDR_20' ) end [2025-04-26 01:24:18] Production.INFO: ProcessCDR(1,14990890,1,1,2) [2025-04-26 01:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990890', 'tblTempUsageDetail_20' ) start [2025-04-26 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990890', 'tblTempUsageDetail_20' ) end [2025-04-26 01:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 01:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 01:24:22] Production.INFO: ==25413== Releasing lock... [2025-04-26 01:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 01:24:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-26 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 22:25:05 [end_date_ymd] => 2025-04-26 01:25:05 [RateCDR] => 1 ) [2025-04-26 01:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 22:25:05' and `end` < '2025-04-26 01:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 01:25:18] Production.INFO: count ==720 [2025-04-26 01:25:18] Production.ERROR: pbx CDR StartTime 2025-04-25 22:25:05 - End Time 2025-04-26 01:25:05 [2025-04-26 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990895', 'tblTempUsageDetail_20' ) start [2025-04-26 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990895', 'tblTempUsageDetail_20' ) end [2025-04-26 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990895', 'tblTempVendorCDR_20' ) start [2025-04-26 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990895', 'tblTempVendorCDR_20' ) end [2025-04-26 01:25:18] Production.INFO: ProcessCDR(1,14990895,1,1,2) [2025-04-26 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990895', 'tblTempUsageDetail_20' ) start [2025-04-26 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990895', 'tblTempUsageDetail_20' ) end [2025-04-26 01:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 01:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 01:25:21] Production.INFO: ==25485== Releasing lock... [2025-04-26 01:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 01:25:21] Production.INFO: 34 MB #Memory Used# [2025-04-26 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 22:26:05 [end_date_ymd] => 2025-04-26 01:26:05 [RateCDR] => 1 ) [2025-04-26 01:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 22:26:05' and `end` < '2025-04-26 01:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 01:26:17] Production.INFO: count ==717 [2025-04-26 01:26:18] Production.ERROR: pbx CDR StartTime 2025-04-25 22:26:05 - End Time 2025-04-26 01:26:05 [2025-04-26 01:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990900', 'tblTempUsageDetail_20' ) start [2025-04-26 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990900', 'tblTempUsageDetail_20' ) end [2025-04-26 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990900', 'tblTempVendorCDR_20' ) start [2025-04-26 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990900', 'tblTempVendorCDR_20' ) end [2025-04-26 01:26:18] Production.INFO: ProcessCDR(1,14990900,1,1,2) [2025-04-26 01:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990900', 'tblTempUsageDetail_20' ) start [2025-04-26 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990900', 'tblTempUsageDetail_20' ) end [2025-04-26 01:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 01:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 01:26:21] Production.INFO: ==25558== Releasing lock... [2025-04-26 01:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 01:26:21] Production.INFO: 34 MB #Memory Used# [2025-04-26 01:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 22:27:04 [end_date_ymd] => 2025-04-26 01:27:04 [RateCDR] => 1 ) [2025-04-26 01: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-04-25 22:27:04' and `end` < '2025-04-26 01: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-04-26 01:27:17] Production.INFO: count ==713 [2025-04-26 01:27:17] Production.ERROR: pbx CDR StartTime 2025-04-25 22:27:04 - End Time 2025-04-26 01:27:04 [2025-04-26 01:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990905', 'tblTempUsageDetail_20' ) start [2025-04-26 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990905', 'tblTempUsageDetail_20' ) end [2025-04-26 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990905', 'tblTempVendorCDR_20' ) start [2025-04-26 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990905', 'tblTempVendorCDR_20' ) end [2025-04-26 01:27:17] Production.INFO: ProcessCDR(1,14990905,1,1,2) [2025-04-26 01:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990905', 'tblTempUsageDetail_20' ) start [2025-04-26 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990905', 'tblTempUsageDetail_20' ) end [2025-04-26 01:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 01:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 01:27:21] Production.INFO: ==25670== Releasing lock... [2025-04-26 01:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 01:27:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-26 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 22:28:05 [end_date_ymd] => 2025-04-26 01:28:05 [RateCDR] => 1 ) [2025-04-26 01:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 22:28:05' and `end` < '2025-04-26 01:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 01:28:18] Production.INFO: count ==713 [2025-04-26 01:28:18] Production.ERROR: pbx CDR StartTime 2025-04-25 22:28:05 - End Time 2025-04-26 01:28:05 [2025-04-26 01:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990910', 'tblTempUsageDetail_20' ) start [2025-04-26 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990910', 'tblTempUsageDetail_20' ) end [2025-04-26 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990910', 'tblTempVendorCDR_20' ) start [2025-04-26 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990910', 'tblTempVendorCDR_20' ) end [2025-04-26 01:28:18] Production.INFO: ProcessCDR(1,14990910,1,1,2) [2025-04-26 01:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990910', 'tblTempUsageDetail_20' ) start [2025-04-26 01:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990910', 'tblTempUsageDetail_20' ) end [2025-04-26 01:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 01:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 01:28:22] Production.INFO: ==25745== Releasing lock... [2025-04-26 01:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 01:28:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-26 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 22:29:05 [end_date_ymd] => 2025-04-26 01:29:05 [RateCDR] => 1 ) [2025-04-26 01:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 22:29:05' and `end` < '2025-04-26 01:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 01:29:17] Production.INFO: count ==711 [2025-04-26 01:29:18] Production.ERROR: pbx CDR StartTime 2025-04-25 22:29:05 - End Time 2025-04-26 01:29:05 [2025-04-26 01:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990915', 'tblTempUsageDetail_20' ) start [2025-04-26 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990915', 'tblTempUsageDetail_20' ) end [2025-04-26 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990915', 'tblTempVendorCDR_20' ) start [2025-04-26 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990915', 'tblTempVendorCDR_20' ) end [2025-04-26 01:29:18] Production.INFO: ProcessCDR(1,14990915,1,1,2) [2025-04-26 01:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990915', 'tblTempUsageDetail_20' ) start [2025-04-26 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990915', 'tblTempUsageDetail_20' ) end [2025-04-26 01:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 01:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 01:29:21] Production.INFO: ==25821== Releasing lock... [2025-04-26 01:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 01:29:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-26 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 22:30:06 [end_date_ymd] => 2025-04-26 01:30:06 [RateCDR] => 1 ) [2025-04-26 01:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 22:30:06' and `end` < '2025-04-26 01:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 01:30:19] Production.INFO: count ==720 [2025-04-26 01:30:19] Production.ERROR: pbx CDR StartTime 2025-04-25 22:30:06 - End Time 2025-04-26 01:30:06 [2025-04-26 01:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990921', 'tblTempUsageDetail_20' ) start [2025-04-26 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990921', 'tblTempUsageDetail_20' ) end [2025-04-26 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990921', 'tblTempVendorCDR_20' ) start [2025-04-26 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990921', 'tblTempVendorCDR_20' ) end [2025-04-26 01:30:19] Production.INFO: ProcessCDR(1,14990921,1,1,2) [2025-04-26 01:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990921', 'tblTempUsageDetail_20' ) start [2025-04-26 01:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990921', 'tblTempUsageDetail_20' ) end [2025-04-26 01:30:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 01:30:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 01:30:24] Production.INFO: ==25897== Releasing lock... [2025-04-26 01:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 01:30:24] Production.INFO: 34 MB #Memory Used# [2025-04-26 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 22:31:05 [end_date_ymd] => 2025-04-26 01:31:05 [RateCDR] => 1 ) [2025-04-26 01:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 22:31:05' and `end` < '2025-04-26 01:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 01:31:18] Production.INFO: count ==730 [2025-04-26 01:31:18] Production.ERROR: pbx CDR StartTime 2025-04-25 22:31:05 - End Time 2025-04-26 01:31:05 [2025-04-26 01:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990926', 'tblTempUsageDetail_20' ) start [2025-04-26 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990926', 'tblTempUsageDetail_20' ) end [2025-04-26 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990926', 'tblTempVendorCDR_20' ) start [2025-04-26 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990926', 'tblTempVendorCDR_20' ) end [2025-04-26 01:31:18] Production.INFO: ProcessCDR(1,14990926,1,1,2) [2025-04-26 01:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990926', 'tblTempUsageDetail_20' ) start [2025-04-26 01:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990926', 'tblTempUsageDetail_20' ) end [2025-04-26 01:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 01:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 01:31:23] Production.INFO: ==25973== Releasing lock... [2025-04-26 01:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 01:31:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-26 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 22:32:05 [end_date_ymd] => 2025-04-26 01:32:05 [RateCDR] => 1 ) [2025-04-26 01:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 22:32:05' and `end` < '2025-04-26 01:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 01:32:17] Production.INFO: count ==729 [2025-04-26 01:32:18] Production.ERROR: pbx CDR StartTime 2025-04-25 22:32:05 - End Time 2025-04-26 01:32:05 [2025-04-26 01:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990931', 'tblTempUsageDetail_20' ) start [2025-04-26 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990931', 'tblTempUsageDetail_20' ) end [2025-04-26 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990931', 'tblTempVendorCDR_20' ) start [2025-04-26 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990931', 'tblTempVendorCDR_20' ) end [2025-04-26 01:32:18] Production.INFO: ProcessCDR(1,14990931,1,1,2) [2025-04-26 01:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990931', 'tblTempUsageDetail_20' ) start [2025-04-26 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990931', 'tblTempUsageDetail_20' ) end [2025-04-26 01:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 01:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 01:32:21] Production.INFO: ==26052== Releasing lock... [2025-04-26 01:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 01:32:21] Production.INFO: 34 MB #Memory Used# [2025-04-26 01:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 22:33:06 [end_date_ymd] => 2025-04-26 01:33:06 [RateCDR] => 1 ) [2025-04-26 01:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 22:33:06' and `end` < '2025-04-26 01:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 01:33:18] Production.INFO: count ==728 [2025-04-26 01:33:18] Production.ERROR: pbx CDR StartTime 2025-04-25 22:33:06 - End Time 2025-04-26 01:33:06 [2025-04-26 01:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990936', 'tblTempUsageDetail_20' ) start [2025-04-26 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990936', 'tblTempUsageDetail_20' ) end [2025-04-26 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990936', 'tblTempVendorCDR_20' ) start [2025-04-26 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990936', 'tblTempVendorCDR_20' ) end [2025-04-26 01:33:19] Production.INFO: ProcessCDR(1,14990936,1,1,2) [2025-04-26 01:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990936', 'tblTempUsageDetail_20' ) start [2025-04-26 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990936', 'tblTempUsageDetail_20' ) end [2025-04-26 01:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 01:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 01:33:22] Production.INFO: ==26132== Releasing lock... [2025-04-26 01:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 01:33:22] Production.INFO: 34 MB #Memory Used# [2025-04-26 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 22:34:05 [end_date_ymd] => 2025-04-26 01:34:05 [RateCDR] => 1 ) [2025-04-26 01:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 22:34:05' and `end` < '2025-04-26 01:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 01:34:18] Production.INFO: count ==726 [2025-04-26 01:34:18] Production.ERROR: pbx CDR StartTime 2025-04-25 22:34:05 - End Time 2025-04-26 01:34:05 [2025-04-26 01:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990941', 'tblTempUsageDetail_20' ) start [2025-04-26 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990941', 'tblTempUsageDetail_20' ) end [2025-04-26 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990941', 'tblTempVendorCDR_20' ) start [2025-04-26 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990941', 'tblTempVendorCDR_20' ) end [2025-04-26 01:34:18] Production.INFO: ProcessCDR(1,14990941,1,1,2) [2025-04-26 01:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990941', 'tblTempUsageDetail_20' ) start [2025-04-26 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990941', 'tblTempUsageDetail_20' ) end [2025-04-26 01:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 01:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 01:34:21] Production.INFO: ==26206== Releasing lock... [2025-04-26 01:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 01:34:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-26 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 22:35:05 [end_date_ymd] => 2025-04-26 01:35:05 [RateCDR] => 1 ) [2025-04-26 01:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 22:35:05' and `end` < '2025-04-26 01:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 01:35:18] Production.INFO: count ==723 [2025-04-26 01:35:18] Production.ERROR: pbx CDR StartTime 2025-04-25 22:35:05 - End Time 2025-04-26 01:35:05 [2025-04-26 01:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990946', 'tblTempUsageDetail_20' ) start [2025-04-26 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990946', 'tblTempUsageDetail_20' ) end [2025-04-26 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990946', 'tblTempVendorCDR_20' ) start [2025-04-26 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990946', 'tblTempVendorCDR_20' ) end [2025-04-26 01:35:18] Production.INFO: ProcessCDR(1,14990946,1,1,2) [2025-04-26 01:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990946', 'tblTempUsageDetail_20' ) start [2025-04-26 01:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990946', 'tblTempUsageDetail_20' ) end [2025-04-26 01:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 01:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 01:35:22] Production.INFO: ==26284== Releasing lock... [2025-04-26 01:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 01:35:22] Production.INFO: 34 MB #Memory Used# [2025-04-26 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 22:36:05 [end_date_ymd] => 2025-04-26 01:36:05 [RateCDR] => 1 ) [2025-04-26 01:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 22:36:05' and `end` < '2025-04-26 01:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 01:36:17] Production.INFO: count ==723 [2025-04-26 01:36:18] Production.ERROR: pbx CDR StartTime 2025-04-25 22:36:05 - End Time 2025-04-26 01:36:05 [2025-04-26 01:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990951', 'tblTempUsageDetail_20' ) start [2025-04-26 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990951', 'tblTempUsageDetail_20' ) end [2025-04-26 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990951', 'tblTempVendorCDR_20' ) start [2025-04-26 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990951', 'tblTempVendorCDR_20' ) end [2025-04-26 01:36:18] Production.INFO: ProcessCDR(1,14990951,1,1,2) [2025-04-26 01:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990951', 'tblTempUsageDetail_20' ) start [2025-04-26 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990951', 'tblTempUsageDetail_20' ) end [2025-04-26 01:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 01:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 01:36:21] Production.INFO: ==26354== Releasing lock... [2025-04-26 01:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 01:36:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-26 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 22:37:05 [end_date_ymd] => 2025-04-26 01:37:05 [RateCDR] => 1 ) [2025-04-26 01:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 22:37:05' and `end` < '2025-04-26 01:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 01:37:18] Production.INFO: count ==718 [2025-04-26 01:37:18] Production.ERROR: pbx CDR StartTime 2025-04-25 22:37:05 - End Time 2025-04-26 01:37:05 [2025-04-26 01:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990956', 'tblTempUsageDetail_20' ) start [2025-04-26 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990956', 'tblTempUsageDetail_20' ) end [2025-04-26 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990956', 'tblTempVendorCDR_20' ) start [2025-04-26 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990956', 'tblTempVendorCDR_20' ) end [2025-04-26 01:37:18] Production.INFO: ProcessCDR(1,14990956,1,1,2) [2025-04-26 01:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990956', 'tblTempUsageDetail_20' ) start [2025-04-26 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990956', 'tblTempUsageDetail_20' ) end [2025-04-26 01:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 01:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 01:37:21] Production.INFO: ==26432== Releasing lock... [2025-04-26 01:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 01:37:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-26 01:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 22:38:06 [end_date_ymd] => 2025-04-26 01:38:06 [RateCDR] => 1 ) [2025-04-26 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-04-25 22:38:06' and `end` < '2025-04-26 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-04-26 01:38:18] Production.INFO: count ==719 [2025-04-26 01:38:18] Production.ERROR: pbx CDR StartTime 2025-04-25 22:38:06 - End Time 2025-04-26 01:38:06 [2025-04-26 01:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990961', 'tblTempUsageDetail_20' ) start [2025-04-26 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990961', 'tblTempUsageDetail_20' ) end [2025-04-26 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990961', 'tblTempVendorCDR_20' ) start [2025-04-26 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990961', 'tblTempVendorCDR_20' ) end [2025-04-26 01:38:18] Production.INFO: ProcessCDR(1,14990961,1,1,2) [2025-04-26 01:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990961', 'tblTempUsageDetail_20' ) start [2025-04-26 01:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990961', 'tblTempUsageDetail_20' ) end [2025-04-26 01:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 01:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 01:38:23] Production.INFO: ==26507== Releasing lock... [2025-04-26 01:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 01:38:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-26 01:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 22:39:04 [end_date_ymd] => 2025-04-26 01:39:04 [RateCDR] => 1 ) [2025-04-26 01:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 22:39:04' and `end` < '2025-04-26 01:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 01:39:17] Production.INFO: count ==721 [2025-04-26 01:39:17] Production.ERROR: pbx CDR StartTime 2025-04-25 22:39:04 - End Time 2025-04-26 01:39:04 [2025-04-26 01:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990966', 'tblTempUsageDetail_20' ) start [2025-04-26 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990966', 'tblTempUsageDetail_20' ) end [2025-04-26 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990966', 'tblTempVendorCDR_20' ) start [2025-04-26 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990966', 'tblTempVendorCDR_20' ) end [2025-04-26 01:39:17] Production.INFO: ProcessCDR(1,14990966,1,1,2) [2025-04-26 01:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990966', 'tblTempUsageDetail_20' ) start [2025-04-26 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990966', 'tblTempUsageDetail_20' ) end [2025-04-26 01:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 01:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 01:39:21] Production.INFO: ==26584== Releasing lock... [2025-04-26 01:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 01:39:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-26 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 22:40:06 [end_date_ymd] => 2025-04-26 01:40:06 [RateCDR] => 1 ) [2025-04-26 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-04-25 22:40:06' and `end` < '2025-04-26 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-04-26 01:40:18] Production.INFO: count ==730 [2025-04-26 01:40:19] Production.ERROR: pbx CDR StartTime 2025-04-25 22:40:06 - End Time 2025-04-26 01:40:06 [2025-04-26 01:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990971', 'tblTempUsageDetail_20' ) start [2025-04-26 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990971', 'tblTempUsageDetail_20' ) end [2025-04-26 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990971', 'tblTempVendorCDR_20' ) start [2025-04-26 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990971', 'tblTempVendorCDR_20' ) end [2025-04-26 01:40:19] Production.INFO: ProcessCDR(1,14990971,1,1,2) [2025-04-26 01:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990971', 'tblTempUsageDetail_20' ) start [2025-04-26 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990971', 'tblTempUsageDetail_20' ) end [2025-04-26 01:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 01:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 01:40:22] Production.INFO: ==26659== Releasing lock... [2025-04-26 01:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 01:40:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-26 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 22:41:05 [end_date_ymd] => 2025-04-26 01:41:05 [RateCDR] => 1 ) [2025-04-26 01:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 22:41:05' and `end` < '2025-04-26 01:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 01:41:17] Production.INFO: count ==739 [2025-04-26 01:41:18] Production.ERROR: pbx CDR StartTime 2025-04-25 22:41:05 - End Time 2025-04-26 01:41:05 [2025-04-26 01:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990977', 'tblTempUsageDetail_20' ) start [2025-04-26 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990977', 'tblTempUsageDetail_20' ) end [2025-04-26 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990977', 'tblTempVendorCDR_20' ) start [2025-04-26 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990977', 'tblTempVendorCDR_20' ) end [2025-04-26 01:41:18] Production.INFO: ProcessCDR(1,14990977,1,1,2) [2025-04-26 01:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990977', 'tblTempUsageDetail_20' ) start [2025-04-26 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990977', 'tblTempUsageDetail_20' ) end [2025-04-26 01:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 01:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 01:41:21] Production.INFO: ==26734== Releasing lock... [2025-04-26 01:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 01:41:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-26 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 22:42:05 [end_date_ymd] => 2025-04-26 01:42:05 [RateCDR] => 1 ) [2025-04-26 01:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 22:42:05' and `end` < '2025-04-26 01:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 01:42:18] Production.INFO: count ==735 [2025-04-26 01:42:18] Production.ERROR: pbx CDR StartTime 2025-04-25 22:42:05 - End Time 2025-04-26 01:42:05 [2025-04-26 01:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990982', 'tblTempUsageDetail_20' ) start [2025-04-26 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990982', 'tblTempUsageDetail_20' ) end [2025-04-26 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990982', 'tblTempVendorCDR_20' ) start [2025-04-26 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990982', 'tblTempVendorCDR_20' ) end [2025-04-26 01:42:18] Production.INFO: ProcessCDR(1,14990982,1,1,2) [2025-04-26 01:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990982', 'tblTempUsageDetail_20' ) start [2025-04-26 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990982', 'tblTempUsageDetail_20' ) end [2025-04-26 01:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 01:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 01:42:22] Production.INFO: ==26807== Releasing lock... [2025-04-26 01:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 01:42:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-26 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 22:43:05 [end_date_ymd] => 2025-04-26 01:43:05 [RateCDR] => 1 ) [2025-04-26 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-04-25 22:43:05' and `end` < '2025-04-26 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-04-26 01:43:17] Production.INFO: count ==732 [2025-04-26 01:43:18] Production.ERROR: pbx CDR StartTime 2025-04-25 22:43:05 - End Time 2025-04-26 01:43:05 [2025-04-26 01:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990987', 'tblTempUsageDetail_20' ) start [2025-04-26 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990987', 'tblTempUsageDetail_20' ) end [2025-04-26 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990987', 'tblTempVendorCDR_20' ) start [2025-04-26 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990987', 'tblTempVendorCDR_20' ) end [2025-04-26 01:43:18] Production.INFO: ProcessCDR(1,14990987,1,1,2) [2025-04-26 01:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990987', 'tblTempUsageDetail_20' ) start [2025-04-26 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990987', 'tblTempUsageDetail_20' ) end [2025-04-26 01:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 01:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 01:43:21] Production.INFO: ==26918== Releasing lock... [2025-04-26 01:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 01:43:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-26 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 22:44:05 [end_date_ymd] => 2025-04-26 01:44:05 [RateCDR] => 1 ) [2025-04-26 01:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 22:44:05' and `end` < '2025-04-26 01:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 01:44:18] Production.INFO: count ==729 [2025-04-26 01:44:18] Production.ERROR: pbx CDR StartTime 2025-04-25 22:44:05 - End Time 2025-04-26 01:44:05 [2025-04-26 01:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990992', 'tblTempUsageDetail_20' ) start [2025-04-26 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990992', 'tblTempUsageDetail_20' ) end [2025-04-26 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990992', 'tblTempVendorCDR_20' ) start [2025-04-26 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990992', 'tblTempVendorCDR_20' ) end [2025-04-26 01:44:18] Production.INFO: ProcessCDR(1,14990992,1,1,2) [2025-04-26 01:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990992', 'tblTempUsageDetail_20' ) start [2025-04-26 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990992', 'tblTempUsageDetail_20' ) end [2025-04-26 01:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 01:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 01:44:21] Production.INFO: ==26992== Releasing lock... [2025-04-26 01:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 01:44:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-26 01:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 22:45:06 [end_date_ymd] => 2025-04-26 01:45:06 [RateCDR] => 1 ) [2025-04-26 01:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 22:45:06' and `end` < '2025-04-26 01:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 01:45:18] Production.INFO: count ==728 [2025-04-26 01:45:19] Production.ERROR: pbx CDR StartTime 2025-04-25 22:45:06 - End Time 2025-04-26 01:45:06 [2025-04-26 01:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 01:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990997', 'tblTempUsageDetail_20' ) start [2025-04-26 01:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990997', 'tblTempUsageDetail_20' ) end [2025-04-26 01:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990997', 'tblTempVendorCDR_20' ) start [2025-04-26 01:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990997', 'tblTempVendorCDR_20' ) end [2025-04-26 01:45:19] Production.INFO: ProcessCDR(1,14990997,1,1,2) [2025-04-26 01:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990997', 'tblTempUsageDetail_20' ) start [2025-04-26 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990997', 'tblTempUsageDetail_20' ) end [2025-04-26 01:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 01:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 01:45:22] Production.INFO: ==27067== Releasing lock... [2025-04-26 01:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 01:45:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-26 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 22:46:05 [end_date_ymd] => 2025-04-26 01:46:05 [RateCDR] => 1 ) [2025-04-26 01:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 22:46:05' and `end` < '2025-04-26 01:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 01:46:18] Production.INFO: count ==724 [2025-04-26 01:46:18] Production.ERROR: pbx CDR StartTime 2025-04-25 22:46:05 - End Time 2025-04-26 01:46:05 [2025-04-26 01:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991002', 'tblTempUsageDetail_20' ) start [2025-04-26 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991002', 'tblTempUsageDetail_20' ) end [2025-04-26 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991002', 'tblTempVendorCDR_20' ) start [2025-04-26 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991002', 'tblTempVendorCDR_20' ) end [2025-04-26 01:46:18] Production.INFO: ProcessCDR(1,14991002,1,1,2) [2025-04-26 01:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991002', 'tblTempUsageDetail_20' ) start [2025-04-26 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991002', 'tblTempUsageDetail_20' ) end [2025-04-26 01:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 01:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 01:46:21] Production.INFO: ==27139== Releasing lock... [2025-04-26 01:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 01:46:21] Production.INFO: 34.25 MB #Memory Used# [2025-04-26 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 22:47:05 [end_date_ymd] => 2025-04-26 01:47:05 [RateCDR] => 1 ) [2025-04-26 01:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 22:47:05' and `end` < '2025-04-26 01:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 01:47:18] Production.INFO: count ==725 [2025-04-26 01:47:18] Production.ERROR: pbx CDR StartTime 2025-04-25 22:47:05 - End Time 2025-04-26 01:47:05 [2025-04-26 01:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991007', 'tblTempUsageDetail_20' ) start [2025-04-26 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991007', 'tblTempUsageDetail_20' ) end [2025-04-26 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991007', 'tblTempVendorCDR_20' ) start [2025-04-26 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991007', 'tblTempVendorCDR_20' ) end [2025-04-26 01:47:18] Production.INFO: ProcessCDR(1,14991007,1,1,2) [2025-04-26 01:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991007', 'tblTempUsageDetail_20' ) start [2025-04-26 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991007', 'tblTempUsageDetail_20' ) end [2025-04-26 01:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 01:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 01:47:21] Production.INFO: ==27213== Releasing lock... [2025-04-26 01:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 01:47:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-26 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 22:48:05 [end_date_ymd] => 2025-04-26 01:48:05 [RateCDR] => 1 ) [2025-04-26 01:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 22:48:05' and `end` < '2025-04-26 01:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 01:48:18] Production.INFO: count ==722 [2025-04-26 01:48:18] Production.ERROR: pbx CDR StartTime 2025-04-25 22:48:05 - End Time 2025-04-26 01:48:05 [2025-04-26 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991012', 'tblTempUsageDetail_20' ) start [2025-04-26 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991012', 'tblTempUsageDetail_20' ) end [2025-04-26 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991012', 'tblTempVendorCDR_20' ) start [2025-04-26 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991012', 'tblTempVendorCDR_20' ) end [2025-04-26 01:48:18] Production.INFO: ProcessCDR(1,14991012,1,1,2) [2025-04-26 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991012', 'tblTempUsageDetail_20' ) start [2025-04-26 01:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991012', 'tblTempUsageDetail_20' ) end [2025-04-26 01:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 01:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 01:48:23] Production.INFO: ==27290== Releasing lock... [2025-04-26 01:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 01:48:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-26 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 22:49:05 [end_date_ymd] => 2025-04-26 01:49:05 [RateCDR] => 1 ) [2025-04-26 01:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 22:49:05' and `end` < '2025-04-26 01:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 01:49:18] Production.INFO: count ==720 [2025-04-26 01:49:18] Production.ERROR: pbx CDR StartTime 2025-04-25 22:49:05 - End Time 2025-04-26 01:49:05 [2025-04-26 01:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991017', 'tblTempUsageDetail_20' ) start [2025-04-26 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991017', 'tblTempUsageDetail_20' ) end [2025-04-26 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991017', 'tblTempVendorCDR_20' ) start [2025-04-26 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991017', 'tblTempVendorCDR_20' ) end [2025-04-26 01:49:18] Production.INFO: ProcessCDR(1,14991017,1,1,2) [2025-04-26 01:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991017', 'tblTempUsageDetail_20' ) start [2025-04-26 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991017', 'tblTempUsageDetail_20' ) end [2025-04-26 01:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 01:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 01:49:21] Production.INFO: ==27363== Releasing lock... [2025-04-26 01:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 01:49:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-26 01:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 22:50:05 [end_date_ymd] => 2025-04-26 01:50:05 [RateCDR] => 1 ) [2025-04-26 01:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 22:50:05' and `end` < '2025-04-26 01:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 01:50:18] Production.INFO: count ==725 [2025-04-26 01:50:18] Production.ERROR: pbx CDR StartTime 2025-04-25 22:50:05 - End Time 2025-04-26 01:50:05 [2025-04-26 01:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991023', 'tblTempUsageDetail_20' ) start [2025-04-26 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991023', 'tblTempUsageDetail_20' ) end [2025-04-26 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991023', 'tblTempVendorCDR_20' ) start [2025-04-26 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991023', 'tblTempVendorCDR_20' ) end [2025-04-26 01:50:18] Production.INFO: ProcessCDR(1,14991023,1,1,2) [2025-04-26 01:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991023', 'tblTempUsageDetail_20' ) start [2025-04-26 01:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991023', 'tblTempUsageDetail_20' ) end [2025-04-26 01:50:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 01:50:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 01:50:21] Production.INFO: ==27436== Releasing lock... [2025-04-26 01:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 01:50:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-26 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 22:51:05 [end_date_ymd] => 2025-04-26 01:51:05 [RateCDR] => 1 ) [2025-04-26 01:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 22:51:05' and `end` < '2025-04-26 01:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 01:51:18] Production.INFO: count ==732 [2025-04-26 01:51:18] Production.ERROR: pbx CDR StartTime 2025-04-25 22:51:05 - End Time 2025-04-26 01:51:05 [2025-04-26 01:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991028', 'tblTempUsageDetail_20' ) start [2025-04-26 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991028', 'tblTempUsageDetail_20' ) end [2025-04-26 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991028', 'tblTempVendorCDR_20' ) start [2025-04-26 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991028', 'tblTempVendorCDR_20' ) end [2025-04-26 01:51:18] Production.INFO: ProcessCDR(1,14991028,1,1,2) [2025-04-26 01:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991028', 'tblTempUsageDetail_20' ) start [2025-04-26 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991028', 'tblTempUsageDetail_20' ) end [2025-04-26 01:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 01:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 01:51:21] Production.INFO: ==27511== Releasing lock... [2025-04-26 01:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 01:51:21] Production.INFO: 34 MB #Memory Used# [2025-04-26 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 22:52:05 [end_date_ymd] => 2025-04-26 01:52:05 [RateCDR] => 1 ) [2025-04-26 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-04-25 22:52:05' and `end` < '2025-04-26 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-04-26 01:52:18] Production.INFO: count ==731 [2025-04-26 01:52:18] Production.ERROR: pbx CDR StartTime 2025-04-25 22:52:05 - End Time 2025-04-26 01:52:05 [2025-04-26 01:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991033', 'tblTempUsageDetail_20' ) start [2025-04-26 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991033', 'tblTempUsageDetail_20' ) end [2025-04-26 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991033', 'tblTempVendorCDR_20' ) start [2025-04-26 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991033', 'tblTempVendorCDR_20' ) end [2025-04-26 01:52:18] Production.INFO: ProcessCDR(1,14991033,1,1,2) [2025-04-26 01:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991033', 'tblTempUsageDetail_20' ) start [2025-04-26 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991033', 'tblTempUsageDetail_20' ) end [2025-04-26 01:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 01:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 01:52:21] Production.INFO: ==27585== Releasing lock... [2025-04-26 01:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 01:52:21] Production.INFO: 34 MB #Memory Used# [2025-04-26 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 22:53:05 [end_date_ymd] => 2025-04-26 01:53:05 [RateCDR] => 1 ) [2025-04-26 01:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 22:53:05' and `end` < '2025-04-26 01:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 01:53:17] Production.INFO: count ==728 [2025-04-26 01:53:17] Production.ERROR: pbx CDR StartTime 2025-04-25 22:53:05 - End Time 2025-04-26 01:53:05 [2025-04-26 01:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991038', 'tblTempUsageDetail_20' ) start [2025-04-26 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991038', 'tblTempUsageDetail_20' ) end [2025-04-26 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991038', 'tblTempVendorCDR_20' ) start [2025-04-26 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991038', 'tblTempVendorCDR_20' ) end [2025-04-26 01:53:18] Production.INFO: ProcessCDR(1,14991038,1,1,2) [2025-04-26 01:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991038', 'tblTempUsageDetail_20' ) start [2025-04-26 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991038', 'tblTempUsageDetail_20' ) end [2025-04-26 01:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 01:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 01:53:21] Production.INFO: ==27656== Releasing lock... [2025-04-26 01:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 01:53:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-26 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 22:54:05 [end_date_ymd] => 2025-04-26 01:54:05 [RateCDR] => 1 ) [2025-04-26 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-04-25 22:54:05' and `end` < '2025-04-26 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-04-26 01:54:18] Production.INFO: count ==728 [2025-04-26 01:54:18] Production.ERROR: pbx CDR StartTime 2025-04-25 22:54:05 - End Time 2025-04-26 01:54:05 [2025-04-26 01:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991043', 'tblTempUsageDetail_20' ) start [2025-04-26 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991043', 'tblTempUsageDetail_20' ) end [2025-04-26 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991043', 'tblTempVendorCDR_20' ) start [2025-04-26 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991043', 'tblTempVendorCDR_20' ) end [2025-04-26 01:54:18] Production.INFO: ProcessCDR(1,14991043,1,1,2) [2025-04-26 01:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991043', 'tblTempUsageDetail_20' ) start [2025-04-26 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991043', 'tblTempUsageDetail_20' ) end [2025-04-26 01:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 01:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 01:54:21] Production.INFO: ==27732== Releasing lock... [2025-04-26 01:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 01:54:21] Production.INFO: 34 MB #Memory Used# [2025-04-26 01:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 22:55:06 [end_date_ymd] => 2025-04-26 01:55:06 [RateCDR] => 1 ) [2025-04-26 01:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 22:55:06' and `end` < '2025-04-26 01:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 01:55:18] Production.INFO: count ==729 [2025-04-26 01:55:18] Production.ERROR: pbx CDR StartTime 2025-04-25 22:55:06 - End Time 2025-04-26 01:55:06 [2025-04-26 01:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991048', 'tblTempUsageDetail_20' ) start [2025-04-26 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991048', 'tblTempUsageDetail_20' ) end [2025-04-26 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991048', 'tblTempVendorCDR_20' ) start [2025-04-26 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991048', 'tblTempVendorCDR_20' ) end [2025-04-26 01:55:18] Production.INFO: ProcessCDR(1,14991048,1,1,2) [2025-04-26 01:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991048', 'tblTempUsageDetail_20' ) start [2025-04-26 01:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991048', 'tblTempUsageDetail_20' ) end [2025-04-26 01:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 01:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 01:55:23] Production.INFO: ==27802== Releasing lock... [2025-04-26 01:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 01:55:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-26 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 22:56:05 [end_date_ymd] => 2025-04-26 01:56:05 [RateCDR] => 1 ) [2025-04-26 01:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 22:56:05' and `end` < '2025-04-26 01:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 01:56:17] Production.INFO: count ==723 [2025-04-26 01:56:17] Production.ERROR: pbx CDR StartTime 2025-04-25 22:56:05 - End Time 2025-04-26 01:56:05 [2025-04-26 01:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 01:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991053', 'tblTempUsageDetail_20' ) start [2025-04-26 01:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991053', 'tblTempUsageDetail_20' ) end [2025-04-26 01:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991053', 'tblTempVendorCDR_20' ) start [2025-04-26 01:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991053', 'tblTempVendorCDR_20' ) end [2025-04-26 01:56:17] Production.INFO: ProcessCDR(1,14991053,1,1,2) [2025-04-26 01:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991053', 'tblTempUsageDetail_20' ) start [2025-04-26 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991053', 'tblTempUsageDetail_20' ) end [2025-04-26 01:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 01:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 01:56:21] Production.INFO: ==27875== Releasing lock... [2025-04-26 01:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 01:56:21] Production.INFO: 34 MB #Memory Used# [2025-04-26 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 22:57:05 [end_date_ymd] => 2025-04-26 01:57:05 [RateCDR] => 1 ) [2025-04-26 01:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 22:57:05' and `end` < '2025-04-26 01:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 01:57:18] Production.INFO: count ==725 [2025-04-26 01:57:18] Production.ERROR: pbx CDR StartTime 2025-04-25 22:57:05 - End Time 2025-04-26 01:57:05 [2025-04-26 01:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991058', 'tblTempUsageDetail_20' ) start [2025-04-26 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991058', 'tblTempUsageDetail_20' ) end [2025-04-26 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991058', 'tblTempVendorCDR_20' ) start [2025-04-26 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991058', 'tblTempVendorCDR_20' ) end [2025-04-26 01:57:18] Production.INFO: ProcessCDR(1,14991058,1,1,2) [2025-04-26 01:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991058', 'tblTempUsageDetail_20' ) start [2025-04-26 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991058', 'tblTempUsageDetail_20' ) end [2025-04-26 01:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 01:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 01:57:22] Production.INFO: ==27951== Releasing lock... [2025-04-26 01:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 01:57:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-26 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 22:58:05 [end_date_ymd] => 2025-04-26 01:58:05 [RateCDR] => 1 ) [2025-04-26 01:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 22:58:05' and `end` < '2025-04-26 01:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 01:58:18] Production.INFO: count ==720 [2025-04-26 01:58:18] Production.ERROR: pbx CDR StartTime 2025-04-25 22:58:05 - End Time 2025-04-26 01:58:05 [2025-04-26 01:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991063', 'tblTempUsageDetail_20' ) start [2025-04-26 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991063', 'tblTempUsageDetail_20' ) end [2025-04-26 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991063', 'tblTempVendorCDR_20' ) start [2025-04-26 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991063', 'tblTempVendorCDR_20' ) end [2025-04-26 01:58:18] Production.INFO: ProcessCDR(1,14991063,1,1,2) [2025-04-26 01:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991063', 'tblTempUsageDetail_20' ) start [2025-04-26 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991063', 'tblTempUsageDetail_20' ) end [2025-04-26 01:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 01:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 01:58:21] Production.INFO: ==28062== Releasing lock... [2025-04-26 01:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 01:58:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-26 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 22:59:05 [end_date_ymd] => 2025-04-26 01:59:05 [RateCDR] => 1 ) [2025-04-26 01:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 22:59:05' and `end` < '2025-04-26 01:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 01:59:18] Production.INFO: count ==715 [2025-04-26 01:59:18] Production.ERROR: pbx CDR StartTime 2025-04-25 22:59:05 - End Time 2025-04-26 01:59:05 [2025-04-26 01:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991068', 'tblTempUsageDetail_20' ) start [2025-04-26 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991068', 'tblTempUsageDetail_20' ) end [2025-04-26 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991068', 'tblTempVendorCDR_20' ) start [2025-04-26 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991068', 'tblTempVendorCDR_20' ) end [2025-04-26 01:59:18] Production.INFO: ProcessCDR(1,14991068,1,1,2) [2025-04-26 01:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 01:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 01:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991068', 'tblTempUsageDetail_20' ) start [2025-04-26 01:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991068', 'tblTempUsageDetail_20' ) end [2025-04-26 01:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 01:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 01:59:22] Production.INFO: ==28135== Releasing lock... [2025-04-26 01:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 01:59:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-26 02:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 23:00:05 [end_date_ymd] => 2025-04-26 02:00:05 [RateCDR] => 1 ) [2025-04-26 02:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 23:00:05' and `end` < '2025-04-26 02:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 02:00:18] Production.INFO: count ==721 [2025-04-26 02:00:18] Production.ERROR: pbx CDR StartTime 2025-04-25 23:00:05 - End Time 2025-04-26 02:00:05 [2025-04-26 02:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991073', 'tblTempUsageDetail_20' ) start [2025-04-26 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991073', 'tblTempUsageDetail_20' ) end [2025-04-26 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991073', 'tblTempVendorCDR_20' ) start [2025-04-26 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991073', 'tblTempVendorCDR_20' ) end [2025-04-26 02:00:18] Production.INFO: ProcessCDR(1,14991073,1,1,2) [2025-04-26 02:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991073', 'tblTempUsageDetail_20' ) start [2025-04-26 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991073', 'tblTempUsageDetail_20' ) end [2025-04-26 02:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 02:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 02:00:22] Production.INFO: ==28213== Releasing lock... [2025-04-26 02:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 02:00:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-26 02:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 23:01:05 [end_date_ymd] => 2025-04-26 02:01:05 [RateCDR] => 1 ) [2025-04-26 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-04-25 23:01:05' and `end` < '2025-04-26 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-04-26 02:01:18] Production.INFO: count ==732 [2025-04-26 02:01:18] Production.ERROR: pbx CDR StartTime 2025-04-25 23:01:05 - End Time 2025-04-26 02:01:05 [2025-04-26 02:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991079', 'tblTempUsageDetail_20' ) start [2025-04-26 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991079', 'tblTempUsageDetail_20' ) end [2025-04-26 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991079', 'tblTempVendorCDR_20' ) start [2025-04-26 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991079', 'tblTempVendorCDR_20' ) end [2025-04-26 02:01:18] Production.INFO: ProcessCDR(1,14991079,1,1,2) [2025-04-26 02:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991079', 'tblTempUsageDetail_20' ) start [2025-04-26 02:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991079', 'tblTempUsageDetail_20' ) end [2025-04-26 02:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 02:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 02:01:23] Production.INFO: ==28301== Releasing lock... [2025-04-26 02:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 02:01:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-26 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 23:02:05 [end_date_ymd] => 2025-04-26 02:02:05 [RateCDR] => 1 ) [2025-04-26 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-04-25 23:02:05' and `end` < '2025-04-26 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-04-26 02:02:18] Production.INFO: count ==732 [2025-04-26 02:02:18] Production.ERROR: pbx CDR StartTime 2025-04-25 23:02:05 - End Time 2025-04-26 02:02:05 [2025-04-26 02:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991084', 'tblTempUsageDetail_20' ) start [2025-04-26 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991084', 'tblTempUsageDetail_20' ) end [2025-04-26 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991084', 'tblTempVendorCDR_20' ) start [2025-04-26 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991084', 'tblTempVendorCDR_20' ) end [2025-04-26 02:02:18] Production.INFO: ProcessCDR(1,14991084,1,1,2) [2025-04-26 02:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991084', 'tblTempUsageDetail_20' ) start [2025-04-26 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991084', 'tblTempUsageDetail_20' ) end [2025-04-26 02:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 02:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 02:02:21] Production.INFO: ==28463== Releasing lock... [2025-04-26 02:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 02:02:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-26 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 23:03:05 [end_date_ymd] => 2025-04-26 02:03:05 [RateCDR] => 1 ) [2025-04-26 02:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 23:03:05' and `end` < '2025-04-26 02:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 02:03:18] Production.INFO: count ==733 [2025-04-26 02:03:18] Production.ERROR: pbx CDR StartTime 2025-04-25 23:03:05 - End Time 2025-04-26 02:03:05 [2025-04-26 02:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991089', 'tblTempUsageDetail_20' ) start [2025-04-26 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991089', 'tblTempUsageDetail_20' ) end [2025-04-26 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991089', 'tblTempVendorCDR_20' ) start [2025-04-26 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991089', 'tblTempVendorCDR_20' ) end [2025-04-26 02:03:18] Production.INFO: ProcessCDR(1,14991089,1,1,2) [2025-04-26 02:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991089', 'tblTempUsageDetail_20' ) start [2025-04-26 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991089', 'tblTempUsageDetail_20' ) end [2025-04-26 02:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 02:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 02:03:22] Production.INFO: ==28539== Releasing lock... [2025-04-26 02:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 02:03:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-26 02:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 23:04:05 [end_date_ymd] => 2025-04-26 02:04:05 [RateCDR] => 1 ) [2025-04-26 02:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 23:04:05' and `end` < '2025-04-26 02:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 02:04:18] Production.INFO: count ==732 [2025-04-26 02:04:18] Production.ERROR: pbx CDR StartTime 2025-04-25 23:04:05 - End Time 2025-04-26 02:04:05 [2025-04-26 02:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991094', 'tblTempUsageDetail_20' ) start [2025-04-26 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991094', 'tblTempUsageDetail_20' ) end [2025-04-26 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991094', 'tblTempVendorCDR_20' ) start [2025-04-26 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991094', 'tblTempVendorCDR_20' ) end [2025-04-26 02:04:18] Production.INFO: ProcessCDR(1,14991094,1,1,2) [2025-04-26 02:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991094', 'tblTempUsageDetail_20' ) start [2025-04-26 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991094', 'tblTempUsageDetail_20' ) end [2025-04-26 02:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 02:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 02:04:22] Production.INFO: ==28614== Releasing lock... [2025-04-26 02:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 02:04:22] Production.INFO: 34 MB #Memory Used# [2025-04-26 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 23:05:05 [end_date_ymd] => 2025-04-26 02:05:05 [RateCDR] => 1 ) [2025-04-26 02:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 23:05:05' and `end` < '2025-04-26 02:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 02:05:18] Production.INFO: count ==731 [2025-04-26 02:05:18] Production.ERROR: pbx CDR StartTime 2025-04-25 23:05:05 - End Time 2025-04-26 02:05:05 [2025-04-26 02:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991099', 'tblTempUsageDetail_20' ) start [2025-04-26 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991099', 'tblTempUsageDetail_20' ) end [2025-04-26 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991099', 'tblTempVendorCDR_20' ) start [2025-04-26 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991099', 'tblTempVendorCDR_20' ) end [2025-04-26 02:05:18] Production.INFO: ProcessCDR(1,14991099,1,1,2) [2025-04-26 02:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991099', 'tblTempUsageDetail_20' ) start [2025-04-26 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991099', 'tblTempUsageDetail_20' ) end [2025-04-26 02:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 02:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 02:05:21] Production.INFO: ==28685== Releasing lock... [2025-04-26 02:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 02:05:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-26 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 23:06:05 [end_date_ymd] => 2025-04-26 02:06:05 [RateCDR] => 1 ) [2025-04-26 02:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 23:06:05' and `end` < '2025-04-26 02:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 02:06:17] Production.INFO: count ==728 [2025-04-26 02:06:18] Production.ERROR: pbx CDR StartTime 2025-04-25 23:06:05 - End Time 2025-04-26 02:06:05 [2025-04-26 02:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991104', 'tblTempUsageDetail_20' ) start [2025-04-26 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991104', 'tblTempUsageDetail_20' ) end [2025-04-26 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991104', 'tblTempVendorCDR_20' ) start [2025-04-26 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991104', 'tblTempVendorCDR_20' ) end [2025-04-26 02:06:18] Production.INFO: ProcessCDR(1,14991104,1,1,2) [2025-04-26 02:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991104', 'tblTempUsageDetail_20' ) start [2025-04-26 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991104', 'tblTempUsageDetail_20' ) end [2025-04-26 02:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 02:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 02:06:21] Production.INFO: ==28755== Releasing lock... [2025-04-26 02:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 02:06:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-26 02:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 23:07:04 [end_date_ymd] => 2025-04-26 02:07:04 [RateCDR] => 1 ) [2025-04-26 02:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 23:07:04' and `end` < '2025-04-26 02:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 02:07:17] Production.INFO: count ==729 [2025-04-26 02:07:17] Production.ERROR: pbx CDR StartTime 2025-04-25 23:07:04 - End Time 2025-04-26 02:07:04 [2025-04-26 02:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991109', 'tblTempUsageDetail_20' ) start [2025-04-26 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991109', 'tblTempUsageDetail_20' ) end [2025-04-26 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991109', 'tblTempVendorCDR_20' ) start [2025-04-26 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991109', 'tblTempVendorCDR_20' ) end [2025-04-26 02:07:17] Production.INFO: ProcessCDR(1,14991109,1,1,2) [2025-04-26 02:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991109', 'tblTempUsageDetail_20' ) start [2025-04-26 02:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991109', 'tblTempUsageDetail_20' ) end [2025-04-26 02:07:20] Production.ERROR: pbx prc_insertCDR start [2025-04-26 02:07:20] Production.ERROR: pbx prc_insertCDR end [2025-04-26 02:07:20] Production.INFO: ==28827== Releasing lock... [2025-04-26 02:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 02:07:20] Production.INFO: 34.25 MB #Memory Used# [2025-04-26 02:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 23:08:06 [end_date_ymd] => 2025-04-26 02:08:06 [RateCDR] => 1 ) [2025-04-26 02:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 23:08:06' and `end` < '2025-04-26 02:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 02:08:18] Production.INFO: count ==727 [2025-04-26 02:08:19] Production.ERROR: pbx CDR StartTime 2025-04-25 23:08:06 - End Time 2025-04-26 02:08:06 [2025-04-26 02:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991114', 'tblTempUsageDetail_20' ) start [2025-04-26 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991114', 'tblTempUsageDetail_20' ) end [2025-04-26 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991114', 'tblTempVendorCDR_20' ) start [2025-04-26 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991114', 'tblTempVendorCDR_20' ) end [2025-04-26 02:08:19] Production.INFO: ProcessCDR(1,14991114,1,1,2) [2025-04-26 02:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991114', 'tblTempUsageDetail_20' ) start [2025-04-26 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991114', 'tblTempUsageDetail_20' ) end [2025-04-26 02:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 02:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 02:08:22] Production.INFO: ==28899== Releasing lock... [2025-04-26 02:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 02:08:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-26 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 23:09:05 [end_date_ymd] => 2025-04-26 02:09:05 [RateCDR] => 1 ) [2025-04-26 02:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 23:09:05' and `end` < '2025-04-26 02:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 02:09:18] Production.INFO: count ==720 [2025-04-26 02:09:18] Production.ERROR: pbx CDR StartTime 2025-04-25 23:09:05 - End Time 2025-04-26 02:09:05 [2025-04-26 02:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991119', 'tblTempUsageDetail_20' ) start [2025-04-26 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991119', 'tblTempUsageDetail_20' ) end [2025-04-26 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991119', 'tblTempVendorCDR_20' ) start [2025-04-26 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991119', 'tblTempVendorCDR_20' ) end [2025-04-26 02:09:18] Production.INFO: ProcessCDR(1,14991119,1,1,2) [2025-04-26 02:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991119', 'tblTempUsageDetail_20' ) start [2025-04-26 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991119', 'tblTempUsageDetail_20' ) end [2025-04-26 02:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 02:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 02:09:22] Production.INFO: ==28972== Releasing lock... [2025-04-26 02:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 02:09:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-26 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 23:10:06 [end_date_ymd] => 2025-04-26 02:10:06 [RateCDR] => 1 ) [2025-04-26 02:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 23:10:06' and `end` < '2025-04-26 02:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 02:10:18] Production.INFO: count ==723 [2025-04-26 02:10:19] Production.ERROR: pbx CDR StartTime 2025-04-25 23:10:06 - End Time 2025-04-26 02:10:06 [2025-04-26 02:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991125', 'tblTempUsageDetail_20' ) start [2025-04-26 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991125', 'tblTempUsageDetail_20' ) end [2025-04-26 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991125', 'tblTempVendorCDR_20' ) start [2025-04-26 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991125', 'tblTempVendorCDR_20' ) end [2025-04-26 02:10:19] Production.INFO: ProcessCDR(1,14991125,1,1,2) [2025-04-26 02:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991125', 'tblTempUsageDetail_20' ) start [2025-04-26 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991125', 'tblTempUsageDetail_20' ) end [2025-04-26 02:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 02:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 02:10:22] Production.INFO: ==29045== Releasing lock... [2025-04-26 02:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 02:10:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-26 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 23:11:04 [end_date_ymd] => 2025-04-26 02:11:04 [RateCDR] => 1 ) [2025-04-26 02:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 23:11:04' and `end` < '2025-04-26 02:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 02:11:17] Production.INFO: count ==724 [2025-04-26 02:11:18] Production.ERROR: pbx CDR StartTime 2025-04-25 23:11:04 - End Time 2025-04-26 02:11:04 [2025-04-26 02:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991130', 'tblTempUsageDetail_20' ) start [2025-04-26 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991130', 'tblTempUsageDetail_20' ) end [2025-04-26 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991130', 'tblTempVendorCDR_20' ) start [2025-04-26 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991130', 'tblTempVendorCDR_20' ) end [2025-04-26 02:11:18] Production.INFO: ProcessCDR(1,14991130,1,1,2) [2025-04-26 02:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991130', 'tblTempUsageDetail_20' ) start [2025-04-26 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991130', 'tblTempUsageDetail_20' ) end [2025-04-26 02:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 02:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 02:11:21] Production.INFO: ==29123== Releasing lock... [2025-04-26 02:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 02:11:21] Production.INFO: 34 MB #Memory Used# [2025-04-26 02:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 23:12:05 [end_date_ymd] => 2025-04-26 02:12:05 [RateCDR] => 1 ) [2025-04-26 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-04-25 23:12:05' and `end` < '2025-04-26 02:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 02:12:19] Production.INFO: count ==726 [2025-04-26 02:12:19] Production.ERROR: pbx CDR StartTime 2025-04-25 23:12:05 - End Time 2025-04-26 02:12:05 [2025-04-26 02:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991135', 'tblTempUsageDetail_20' ) start [2025-04-26 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991135', 'tblTempUsageDetail_20' ) end [2025-04-26 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991135', 'tblTempVendorCDR_20' ) start [2025-04-26 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991135', 'tblTempVendorCDR_20' ) end [2025-04-26 02:12:19] Production.INFO: ProcessCDR(1,14991135,1,1,2) [2025-04-26 02:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991135', 'tblTempUsageDetail_20' ) start [2025-04-26 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991135', 'tblTempUsageDetail_20' ) end [2025-04-26 02:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 02:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 02:12:22] Production.INFO: ==29196== Releasing lock... [2025-04-26 02:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 02:12:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-26 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 23:13:05 [end_date_ymd] => 2025-04-26 02:13:05 [RateCDR] => 1 ) [2025-04-26 02:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 23:13:05' and `end` < '2025-04-26 02:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 02:13:18] Production.INFO: count ==723 [2025-04-26 02:13:18] Production.ERROR: pbx CDR StartTime 2025-04-25 23:13:05 - End Time 2025-04-26 02:13:05 [2025-04-26 02:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991140', 'tblTempUsageDetail_20' ) start [2025-04-26 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991140', 'tblTempUsageDetail_20' ) end [2025-04-26 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991140', 'tblTempVendorCDR_20' ) start [2025-04-26 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991140', 'tblTempVendorCDR_20' ) end [2025-04-26 02:13:18] Production.INFO: ProcessCDR(1,14991140,1,1,2) [2025-04-26 02:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991140', 'tblTempUsageDetail_20' ) start [2025-04-26 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991140', 'tblTempUsageDetail_20' ) end [2025-04-26 02:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 02:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 02:13:21] Production.INFO: ==29268== Releasing lock... [2025-04-26 02:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 02:13:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-26 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 23:14:05 [end_date_ymd] => 2025-04-26 02:14:05 [RateCDR] => 1 ) [2025-04-26 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-04-25 23:14:05' and `end` < '2025-04-26 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-04-26 02:14:18] Production.INFO: count ==724 [2025-04-26 02:14:18] Production.ERROR: pbx CDR StartTime 2025-04-25 23:14:05 - End Time 2025-04-26 02:14:05 [2025-04-26 02:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991145', 'tblTempUsageDetail_20' ) start [2025-04-26 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991145', 'tblTempUsageDetail_20' ) end [2025-04-26 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991145', 'tblTempVendorCDR_20' ) start [2025-04-26 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991145', 'tblTempVendorCDR_20' ) end [2025-04-26 02:14:18] Production.INFO: ProcessCDR(1,14991145,1,1,2) [2025-04-26 02:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991145', 'tblTempUsageDetail_20' ) start [2025-04-26 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991145', 'tblTempUsageDetail_20' ) end [2025-04-26 02:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 02:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 02:14:21] Production.INFO: ==29379== Releasing lock... [2025-04-26 02:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 02:14:21] Production.INFO: 34.25 MB #Memory Used# [2025-04-26 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 23:15:05 [end_date_ymd] => 2025-04-26 02:15:05 [RateCDR] => 1 ) [2025-04-26 02:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 23:15:05' and `end` < '2025-04-26 02:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 02:15:18] Production.INFO: count ==726 [2025-04-26 02:15:18] Production.ERROR: pbx CDR StartTime 2025-04-25 23:15:05 - End Time 2025-04-26 02:15:05 [2025-04-26 02:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991150', 'tblTempUsageDetail_20' ) start [2025-04-26 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991150', 'tblTempUsageDetail_20' ) end [2025-04-26 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991150', 'tblTempVendorCDR_20' ) start [2025-04-26 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991150', 'tblTempVendorCDR_20' ) end [2025-04-26 02:15:18] Production.INFO: ProcessCDR(1,14991150,1,1,2) [2025-04-26 02:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991150', 'tblTempUsageDetail_20' ) start [2025-04-26 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991150', 'tblTempUsageDetail_20' ) end [2025-04-26 02:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 02:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 02:15:21] Production.INFO: ==29451== Releasing lock... [2025-04-26 02:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 02:15:21] Production.INFO: 34.25 MB #Memory Used# [2025-04-26 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 23:16:05 [end_date_ymd] => 2025-04-26 02:16:05 [RateCDR] => 1 ) [2025-04-26 02:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 23:16:05' and `end` < '2025-04-26 02:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 02:16:17] Production.INFO: count ==722 [2025-04-26 02:16:17] Production.ERROR: pbx CDR StartTime 2025-04-25 23:16:05 - End Time 2025-04-26 02:16:05 [2025-04-26 02:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991155', 'tblTempUsageDetail_20' ) start [2025-04-26 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991155', 'tblTempUsageDetail_20' ) end [2025-04-26 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991155', 'tblTempVendorCDR_20' ) start [2025-04-26 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991155', 'tblTempVendorCDR_20' ) end [2025-04-26 02:16:17] Production.INFO: ProcessCDR(1,14991155,1,1,2) [2025-04-26 02:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991155', 'tblTempUsageDetail_20' ) start [2025-04-26 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991155', 'tblTempUsageDetail_20' ) end [2025-04-26 02:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 02:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 02:16:21] Production.INFO: ==29531== Releasing lock... [2025-04-26 02:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 02:16:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-26 02:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 23:17:06 [end_date_ymd] => 2025-04-26 02:17:06 [RateCDR] => 1 ) [2025-04-26 02:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 23:17:06' and `end` < '2025-04-26 02:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 02:17:18] Production.INFO: count ==723 [2025-04-26 02:17:19] Production.ERROR: pbx CDR StartTime 2025-04-25 23:17:06 - End Time 2025-04-26 02:17:06 [2025-04-26 02:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991160', 'tblTempUsageDetail_20' ) start [2025-04-26 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991160', 'tblTempUsageDetail_20' ) end [2025-04-26 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991160', 'tblTempVendorCDR_20' ) start [2025-04-26 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991160', 'tblTempVendorCDR_20' ) end [2025-04-26 02:17:19] Production.INFO: ProcessCDR(1,14991160,1,1,2) [2025-04-26 02:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991160', 'tblTempUsageDetail_20' ) start [2025-04-26 02:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991160', 'tblTempUsageDetail_20' ) end [2025-04-26 02:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 02:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 02:17:22] Production.INFO: ==29606== Releasing lock... [2025-04-26 02:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 02:17:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-26 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 23:18:05 [end_date_ymd] => 2025-04-26 02:18:05 [RateCDR] => 1 ) [2025-04-26 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-04-25 23:18:05' and `end` < '2025-04-26 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-04-26 02:18:18] Production.INFO: count ==719 [2025-04-26 02:18:18] Production.ERROR: pbx CDR StartTime 2025-04-25 23:18:05 - End Time 2025-04-26 02:18:05 [2025-04-26 02:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991165', 'tblTempUsageDetail_20' ) start [2025-04-26 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991165', 'tblTempUsageDetail_20' ) end [2025-04-26 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991165', 'tblTempVendorCDR_20' ) start [2025-04-26 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991165', 'tblTempVendorCDR_20' ) end [2025-04-26 02:18:18] Production.INFO: ProcessCDR(1,14991165,1,1,2) [2025-04-26 02:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991165', 'tblTempUsageDetail_20' ) start [2025-04-26 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991165', 'tblTempUsageDetail_20' ) end [2025-04-26 02:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 02:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 02:18:22] Production.INFO: ==29678== Releasing lock... [2025-04-26 02:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 02:18:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-26 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 23:19:05 [end_date_ymd] => 2025-04-26 02:19:05 [RateCDR] => 1 ) [2025-04-26 02:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 23:19:05' and `end` < '2025-04-26 02:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 02:19:18] Production.INFO: count ==717 [2025-04-26 02:19:18] Production.ERROR: pbx CDR StartTime 2025-04-25 23:19:05 - End Time 2025-04-26 02:19:05 [2025-04-26 02:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991170', 'tblTempUsageDetail_20' ) start [2025-04-26 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991170', 'tblTempUsageDetail_20' ) end [2025-04-26 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991170', 'tblTempVendorCDR_20' ) start [2025-04-26 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991170', 'tblTempVendorCDR_20' ) end [2025-04-26 02:19:18] Production.INFO: ProcessCDR(1,14991170,1,1,2) [2025-04-26 02:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991170', 'tblTempUsageDetail_20' ) start [2025-04-26 02:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991170', 'tblTempUsageDetail_20' ) end [2025-04-26 02:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 02:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 02:19:22] Production.INFO: ==29751== Releasing lock... [2025-04-26 02:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 02:19:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-26 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 23:20:06 [end_date_ymd] => 2025-04-26 02:20:06 [RateCDR] => 1 ) [2025-04-26 02:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 23:20:06' and `end` < '2025-04-26 02:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 02:20:18] Production.INFO: count ==728 [2025-04-26 02:20:19] Production.ERROR: pbx CDR StartTime 2025-04-25 23:20:06 - End Time 2025-04-26 02:20:06 [2025-04-26 02:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991176', 'tblTempUsageDetail_20' ) start [2025-04-26 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991176', 'tblTempUsageDetail_20' ) end [2025-04-26 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991176', 'tblTempVendorCDR_20' ) start [2025-04-26 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991176', 'tblTempVendorCDR_20' ) end [2025-04-26 02:20:19] Production.INFO: ProcessCDR(1,14991176,1,1,2) [2025-04-26 02:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991176', 'tblTempUsageDetail_20' ) start [2025-04-26 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991176', 'tblTempUsageDetail_20' ) end [2025-04-26 02:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 02:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 02:20:22] Production.INFO: ==29824== Releasing lock... [2025-04-26 02:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 02:20:22] Production.INFO: 34 MB #Memory Used# [2025-04-26 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 23:21:05 [end_date_ymd] => 2025-04-26 02:21:05 [RateCDR] => 1 ) [2025-04-26 02:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 23:21:05' and `end` < '2025-04-26 02:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 02:21:18] Production.INFO: count ==733 [2025-04-26 02:21:18] Production.ERROR: pbx CDR StartTime 2025-04-25 23:21:05 - End Time 2025-04-26 02:21:05 [2025-04-26 02:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991181', 'tblTempUsageDetail_20' ) start [2025-04-26 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991181', 'tblTempUsageDetail_20' ) end [2025-04-26 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991181', 'tblTempVendorCDR_20' ) start [2025-04-26 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991181', 'tblTempVendorCDR_20' ) end [2025-04-26 02:21:18] Production.INFO: ProcessCDR(1,14991181,1,1,2) [2025-04-26 02:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991181', 'tblTempUsageDetail_20' ) start [2025-04-26 02:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991181', 'tblTempUsageDetail_20' ) end [2025-04-26 02:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 02:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 02:21:22] Production.INFO: ==29900== Releasing lock... [2025-04-26 02:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 02:21:22] Production.INFO: 34 MB #Memory Used# [2025-04-26 02:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 23:22:06 [end_date_ymd] => 2025-04-26 02:22:06 [RateCDR] => 1 ) [2025-04-26 02:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 23:22:06' and `end` < '2025-04-26 02:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 02:22:18] Production.INFO: count ==732 [2025-04-26 02:22:18] Production.ERROR: pbx CDR StartTime 2025-04-25 23:22:06 - End Time 2025-04-26 02:22:06 [2025-04-26 02:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991186', 'tblTempUsageDetail_20' ) start [2025-04-26 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991186', 'tblTempUsageDetail_20' ) end [2025-04-26 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991186', 'tblTempVendorCDR_20' ) start [2025-04-26 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991186', 'tblTempVendorCDR_20' ) end [2025-04-26 02:22:18] Production.INFO: ProcessCDR(1,14991186,1,1,2) [2025-04-26 02:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991186', 'tblTempUsageDetail_20' ) start [2025-04-26 02:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991186', 'tblTempUsageDetail_20' ) end [2025-04-26 02:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 02:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 02:22:22] Production.INFO: ==29974== Releasing lock... [2025-04-26 02:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 02:22:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-26 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 23:23:05 [end_date_ymd] => 2025-04-26 02:23:05 [RateCDR] => 1 ) [2025-04-26 02:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 23:23:05' and `end` < '2025-04-26 02:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 02:23:17] Production.INFO: count ==727 [2025-04-26 02:23:18] Production.ERROR: pbx CDR StartTime 2025-04-25 23:23:05 - End Time 2025-04-26 02:23:05 [2025-04-26 02:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991191', 'tblTempUsageDetail_20' ) start [2025-04-26 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991191', 'tblTempUsageDetail_20' ) end [2025-04-26 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991191', 'tblTempVendorCDR_20' ) start [2025-04-26 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991191', 'tblTempVendorCDR_20' ) end [2025-04-26 02:23:18] Production.INFO: ProcessCDR(1,14991191,1,1,2) [2025-04-26 02:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991191', 'tblTempUsageDetail_20' ) start [2025-04-26 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991191', 'tblTempUsageDetail_20' ) end [2025-04-26 02:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 02:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 02:23:21] Production.INFO: ==30044== Releasing lock... [2025-04-26 02:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 02:23:21] Production.INFO: 34 MB #Memory Used# [2025-04-26 02:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 23:24:06 [end_date_ymd] => 2025-04-26 02:24:06 [RateCDR] => 1 ) [2025-04-26 02:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 23:24:06' and `end` < '2025-04-26 02:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 02:24:18] Production.INFO: count ==722 [2025-04-26 02:24:18] Production.ERROR: pbx CDR StartTime 2025-04-25 23:24:06 - End Time 2025-04-26 02:24:06 [2025-04-26 02:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991196', 'tblTempUsageDetail_20' ) start [2025-04-26 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991196', 'tblTempUsageDetail_20' ) end [2025-04-26 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991196', 'tblTempVendorCDR_20' ) start [2025-04-26 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991196', 'tblTempVendorCDR_20' ) end [2025-04-26 02:24:18] Production.INFO: ProcessCDR(1,14991196,1,1,2) [2025-04-26 02:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991196', 'tblTempUsageDetail_20' ) start [2025-04-26 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991196', 'tblTempUsageDetail_20' ) end [2025-04-26 02:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 02:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 02:24:22] Production.INFO: ==30121== Releasing lock... [2025-04-26 02:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 02:24:22] Production.INFO: 34 MB #Memory Used# [2025-04-26 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 23:25:05 [end_date_ymd] => 2025-04-26 02:25:05 [RateCDR] => 1 ) [2025-04-26 02:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 23:25:05' and `end` < '2025-04-26 02:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 02:25:18] Production.INFO: count ==716 [2025-04-26 02:25:18] Production.ERROR: pbx CDR StartTime 2025-04-25 23:25:05 - End Time 2025-04-26 02:25:05 [2025-04-26 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991201', 'tblTempUsageDetail_20' ) start [2025-04-26 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991201', 'tblTempUsageDetail_20' ) end [2025-04-26 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991201', 'tblTempVendorCDR_20' ) start [2025-04-26 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991201', 'tblTempVendorCDR_20' ) end [2025-04-26 02:25:18] Production.INFO: ProcessCDR(1,14991201,1,1,2) [2025-04-26 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991201', 'tblTempUsageDetail_20' ) start [2025-04-26 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991201', 'tblTempUsageDetail_20' ) end [2025-04-26 02:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 02:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 02:25:21] Production.INFO: ==30192== Releasing lock... [2025-04-26 02:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 02:25:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-26 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 23:26:05 [end_date_ymd] => 2025-04-26 02:26:05 [RateCDR] => 1 ) [2025-04-26 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-04-25 23:26:05' and `end` < '2025-04-26 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-04-26 02:26:18] Production.INFO: count ==712 [2025-04-26 02:26:18] Production.ERROR: pbx CDR StartTime 2025-04-25 23:26:05 - End Time 2025-04-26 02:26:05 [2025-04-26 02:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991206', 'tblTempUsageDetail_20' ) start [2025-04-26 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991206', 'tblTempUsageDetail_20' ) end [2025-04-26 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991206', 'tblTempVendorCDR_20' ) start [2025-04-26 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991206', 'tblTempVendorCDR_20' ) end [2025-04-26 02:26:18] Production.INFO: ProcessCDR(1,14991206,1,1,2) [2025-04-26 02:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991206', 'tblTempUsageDetail_20' ) start [2025-04-26 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991206', 'tblTempUsageDetail_20' ) end [2025-04-26 02:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 02:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 02:26:22] Production.INFO: ==30267== Releasing lock... [2025-04-26 02:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 02:26:22] Production.INFO: 34 MB #Memory Used# [2025-04-26 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 23:27:05 [end_date_ymd] => 2025-04-26 02:27:05 [RateCDR] => 1 ) [2025-04-26 02:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 23:27:05' and `end` < '2025-04-26 02:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 02:27:18] Production.INFO: count ==712 [2025-04-26 02:27:18] Production.ERROR: pbx CDR StartTime 2025-04-25 23:27:05 - End Time 2025-04-26 02:27:05 [2025-04-26 02:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991211', 'tblTempUsageDetail_20' ) start [2025-04-26 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991211', 'tblTempUsageDetail_20' ) end [2025-04-26 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991211', 'tblTempVendorCDR_20' ) start [2025-04-26 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991211', 'tblTempVendorCDR_20' ) end [2025-04-26 02:27:18] Production.INFO: ProcessCDR(1,14991211,1,1,2) [2025-04-26 02:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991211', 'tblTempUsageDetail_20' ) start [2025-04-26 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991211', 'tblTempUsageDetail_20' ) end [2025-04-26 02:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 02:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 02:27:21] Production.INFO: ==30341== Releasing lock... [2025-04-26 02:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 02:27:21] Production.INFO: 34 MB #Memory Used# [2025-04-26 02:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 23:28:06 [end_date_ymd] => 2025-04-26 02:28:06 [RateCDR] => 1 ) [2025-04-26 02:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 23:28:06' and `end` < '2025-04-26 02:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 02:28:18] Production.INFO: count ==710 [2025-04-26 02:28:19] Production.ERROR: pbx CDR StartTime 2025-04-25 23:28:06 - End Time 2025-04-26 02:28:06 [2025-04-26 02:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991216', 'tblTempUsageDetail_20' ) start [2025-04-26 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991216', 'tblTempUsageDetail_20' ) end [2025-04-26 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991216', 'tblTempVendorCDR_20' ) start [2025-04-26 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991216', 'tblTempVendorCDR_20' ) end [2025-04-26 02:28:19] Production.INFO: ProcessCDR(1,14991216,1,1,2) [2025-04-26 02:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991216', 'tblTempUsageDetail_20' ) start [2025-04-26 02:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991216', 'tblTempUsageDetail_20' ) end [2025-04-26 02:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 02:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 02:28:22] Production.INFO: ==30414== Releasing lock... [2025-04-26 02:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 02:28:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-26 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 23:29:05 [end_date_ymd] => 2025-04-26 02:29:05 [RateCDR] => 1 ) [2025-04-26 02:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 23:29:05' and `end` < '2025-04-26 02:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 02:29:17] Production.INFO: count ==707 [2025-04-26 02:29:17] Production.ERROR: pbx CDR StartTime 2025-04-25 23:29:05 - End Time 2025-04-26 02:29:05 [2025-04-26 02:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991221', 'tblTempUsageDetail_20' ) start [2025-04-26 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991221', 'tblTempUsageDetail_20' ) end [2025-04-26 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991221', 'tblTempVendorCDR_20' ) start [2025-04-26 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991221', 'tblTempVendorCDR_20' ) end [2025-04-26 02:29:17] Production.INFO: ProcessCDR(1,14991221,1,1,2) [2025-04-26 02:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991221', 'tblTempUsageDetail_20' ) start [2025-04-26 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991221', 'tblTempUsageDetail_20' ) end [2025-04-26 02:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 02:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 02:29:21] Production.INFO: ==30529== Releasing lock... [2025-04-26 02:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 02:29:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-26 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 23:30:06 [end_date_ymd] => 2025-04-26 02:30:06 [RateCDR] => 1 ) [2025-04-26 02:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 23:30:06' and `end` < '2025-04-26 02:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 02:30:19] Production.INFO: count ==711 [2025-04-26 02:30:19] Production.ERROR: pbx CDR StartTime 2025-04-25 23:30:06 - End Time 2025-04-26 02:30:06 [2025-04-26 02:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991227', 'tblTempUsageDetail_20' ) start [2025-04-26 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991227', 'tblTempUsageDetail_20' ) end [2025-04-26 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991227', 'tblTempVendorCDR_20' ) start [2025-04-26 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991227', 'tblTempVendorCDR_20' ) end [2025-04-26 02:30:19] Production.INFO: ProcessCDR(1,14991227,1,1,2) [2025-04-26 02:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991227', 'tblTempUsageDetail_20' ) start [2025-04-26 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991227', 'tblTempUsageDetail_20' ) end [2025-04-26 02:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 02:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 02:30:22] Production.INFO: ==30606== Releasing lock... [2025-04-26 02:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 02:30:22] Production.INFO: 34 MB #Memory Used# [2025-04-26 02:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 23:31:04 [end_date_ymd] => 2025-04-26 02:31:04 [RateCDR] => 1 ) [2025-04-26 02: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-04-25 23:31:04' and `end` < '2025-04-26 02: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-04-26 02:31:17] Production.INFO: count ==708 [2025-04-26 02:31:17] Production.ERROR: pbx CDR StartTime 2025-04-25 23:31:04 - End Time 2025-04-26 02:31:04 [2025-04-26 02:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991232', 'tblTempUsageDetail_20' ) start [2025-04-26 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991232', 'tblTempUsageDetail_20' ) end [2025-04-26 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991232', 'tblTempVendorCDR_20' ) start [2025-04-26 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991232', 'tblTempVendorCDR_20' ) end [2025-04-26 02:31:17] Production.INFO: ProcessCDR(1,14991232,1,1,2) [2025-04-26 02:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991232', 'tblTempUsageDetail_20' ) start [2025-04-26 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991232', 'tblTempUsageDetail_20' ) end [2025-04-26 02:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 02:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 02:31:21] Production.INFO: ==30680== Releasing lock... [2025-04-26 02:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 02:31:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-26 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 23:32:05 [end_date_ymd] => 2025-04-26 02:32:05 [RateCDR] => 1 ) [2025-04-26 02:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 23:32:05' and `end` < '2025-04-26 02:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 02:32:18] Production.INFO: count ==711 [2025-04-26 02:32:18] Production.ERROR: pbx CDR StartTime 2025-04-25 23:32:05 - End Time 2025-04-26 02:32:05 [2025-04-26 02:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991237', 'tblTempUsageDetail_20' ) start [2025-04-26 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991237', 'tblTempUsageDetail_20' ) end [2025-04-26 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991237', 'tblTempVendorCDR_20' ) start [2025-04-26 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991237', 'tblTempVendorCDR_20' ) end [2025-04-26 02:32:18] Production.INFO: ProcessCDR(1,14991237,1,1,2) [2025-04-26 02:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991237', 'tblTempUsageDetail_20' ) start [2025-04-26 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991237', 'tblTempUsageDetail_20' ) end [2025-04-26 02:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 02:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 02:32:21] Production.INFO: ==30759== Releasing lock... [2025-04-26 02:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 02:32:21] Production.INFO: 34 MB #Memory Used# [2025-04-26 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 23:33:05 [end_date_ymd] => 2025-04-26 02:33:05 [RateCDR] => 1 ) [2025-04-26 02:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 23:33:05' and `end` < '2025-04-26 02:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 02:33:18] Production.INFO: count ==714 [2025-04-26 02:33:19] Production.ERROR: pbx CDR StartTime 2025-04-25 23:33:05 - End Time 2025-04-26 02:33:05 [2025-04-26 02:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991242', 'tblTempUsageDetail_20' ) start [2025-04-26 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991242', 'tblTempUsageDetail_20' ) end [2025-04-26 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991242', 'tblTempVendorCDR_20' ) start [2025-04-26 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991242', 'tblTempVendorCDR_20' ) end [2025-04-26 02:33:19] Production.INFO: ProcessCDR(1,14991242,1,1,2) [2025-04-26 02:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991242', 'tblTempUsageDetail_20' ) start [2025-04-26 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991242', 'tblTempUsageDetail_20' ) end [2025-04-26 02:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 02:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 02:33:22] Production.INFO: ==30835== Releasing lock... [2025-04-26 02:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 02:33:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-26 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 23:34:05 [end_date_ymd] => 2025-04-26 02:34:05 [RateCDR] => 1 ) [2025-04-26 02:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 23:34:05' and `end` < '2025-04-26 02:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 02:34:18] Production.INFO: count ==716 [2025-04-26 02:34:18] Production.ERROR: pbx CDR StartTime 2025-04-25 23:34:05 - End Time 2025-04-26 02:34:05 [2025-04-26 02:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991247', 'tblTempUsageDetail_20' ) start [2025-04-26 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991247', 'tblTempUsageDetail_20' ) end [2025-04-26 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991247', 'tblTempVendorCDR_20' ) start [2025-04-26 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991247', 'tblTempVendorCDR_20' ) end [2025-04-26 02:34:18] Production.INFO: ProcessCDR(1,14991247,1,1,2) [2025-04-26 02:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991247', 'tblTempUsageDetail_20' ) start [2025-04-26 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991247', 'tblTempUsageDetail_20' ) end [2025-04-26 02:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 02:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 02:34:21] Production.INFO: ==30907== Releasing lock... [2025-04-26 02:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 02:34:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-26 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 23:35:05 [end_date_ymd] => 2025-04-26 02:35:05 [RateCDR] => 1 ) [2025-04-26 02:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 23:35:05' and `end` < '2025-04-26 02:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 02:35:18] Production.INFO: count ==713 [2025-04-26 02:35:18] Production.ERROR: pbx CDR StartTime 2025-04-25 23:35:05 - End Time 2025-04-26 02:35:05 [2025-04-26 02:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991252', 'tblTempUsageDetail_20' ) start [2025-04-26 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991252', 'tblTempUsageDetail_20' ) end [2025-04-26 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991252', 'tblTempVendorCDR_20' ) start [2025-04-26 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991252', 'tblTempVendorCDR_20' ) end [2025-04-26 02:35:18] Production.INFO: ProcessCDR(1,14991252,1,1,2) [2025-04-26 02:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991252', 'tblTempUsageDetail_20' ) start [2025-04-26 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991252', 'tblTempUsageDetail_20' ) end [2025-04-26 02:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 02:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 02:35:22] Production.INFO: ==30979== Releasing lock... [2025-04-26 02:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 02:35:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-26 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 23:36:05 [end_date_ymd] => 2025-04-26 02:36:05 [RateCDR] => 1 ) [2025-04-26 02:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 23:36:05' and `end` < '2025-04-26 02:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 02:36:18] Production.INFO: count ==715 [2025-04-26 02:36:18] Production.ERROR: pbx CDR StartTime 2025-04-25 23:36:05 - End Time 2025-04-26 02:36:05 [2025-04-26 02:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991257', 'tblTempUsageDetail_20' ) start [2025-04-26 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991257', 'tblTempUsageDetail_20' ) end [2025-04-26 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991257', 'tblTempVendorCDR_20' ) start [2025-04-26 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991257', 'tblTempVendorCDR_20' ) end [2025-04-26 02:36:18] Production.INFO: ProcessCDR(1,14991257,1,1,2) [2025-04-26 02:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991257', 'tblTempUsageDetail_20' ) start [2025-04-26 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991257', 'tblTempUsageDetail_20' ) end [2025-04-26 02:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 02:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 02:36:21] Production.INFO: ==31053== Releasing lock... [2025-04-26 02:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 02:36:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-26 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 23:37:05 [end_date_ymd] => 2025-04-26 02:37:05 [RateCDR] => 1 ) [2025-04-26 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-04-25 23:37:05' and `end` < '2025-04-26 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-04-26 02:37:17] Production.INFO: count ==719 [2025-04-26 02:37:17] Production.ERROR: pbx CDR StartTime 2025-04-25 23:37:05 - End Time 2025-04-26 02:37:05 [2025-04-26 02:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991262', 'tblTempUsageDetail_20' ) start [2025-04-26 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991262', 'tblTempUsageDetail_20' ) end [2025-04-26 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991262', 'tblTempVendorCDR_20' ) start [2025-04-26 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991262', 'tblTempVendorCDR_20' ) end [2025-04-26 02:37:17] Production.INFO: ProcessCDR(1,14991262,1,1,2) [2025-04-26 02:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991262', 'tblTempUsageDetail_20' ) start [2025-04-26 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991262', 'tblTempUsageDetail_20' ) end [2025-04-26 02:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 02:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 02:37:21] Production.INFO: ==31131== Releasing lock... [2025-04-26 02:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 02:37:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-26 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 23:38:05 [end_date_ymd] => 2025-04-26 02:38:05 [RateCDR] => 1 ) [2025-04-26 02:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 23:38:05' and `end` < '2025-04-26 02:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 02:38:17] Production.INFO: count ==716 [2025-04-26 02:38:17] Production.ERROR: pbx CDR StartTime 2025-04-25 23:38:05 - End Time 2025-04-26 02:38:05 [2025-04-26 02:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991267', 'tblTempUsageDetail_20' ) start [2025-04-26 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991267', 'tblTempUsageDetail_20' ) end [2025-04-26 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991267', 'tblTempVendorCDR_20' ) start [2025-04-26 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991267', 'tblTempVendorCDR_20' ) end [2025-04-26 02:38:18] Production.INFO: ProcessCDR(1,14991267,1,1,2) [2025-04-26 02:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991267', 'tblTempUsageDetail_20' ) start [2025-04-26 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991267', 'tblTempUsageDetail_20' ) end [2025-04-26 02:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 02:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 02:38:21] Production.INFO: ==31202== Releasing lock... [2025-04-26 02:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 02:38:21] Production.INFO: 34.25 MB #Memory Used# [2025-04-26 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 23:39:05 [end_date_ymd] => 2025-04-26 02:39:05 [RateCDR] => 1 ) [2025-04-26 02:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 23:39:05' and `end` < '2025-04-26 02:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 02:39:18] Production.INFO: count ==715 [2025-04-26 02:39:18] Production.ERROR: pbx CDR StartTime 2025-04-25 23:39:05 - End Time 2025-04-26 02:39:05 [2025-04-26 02:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991272', 'tblTempUsageDetail_20' ) start [2025-04-26 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991272', 'tblTempUsageDetail_20' ) end [2025-04-26 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991272', 'tblTempVendorCDR_20' ) start [2025-04-26 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991272', 'tblTempVendorCDR_20' ) end [2025-04-26 02:39:18] Production.INFO: ProcessCDR(1,14991272,1,1,2) [2025-04-26 02:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991272', 'tblTempUsageDetail_20' ) start [2025-04-26 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991272', 'tblTempUsageDetail_20' ) end [2025-04-26 02:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 02:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 02:39:21] Production.INFO: ==31275== Releasing lock... [2025-04-26 02:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 02:39:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-26 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 23:40:06 [end_date_ymd] => 2025-04-26 02:40:06 [RateCDR] => 1 ) [2025-04-26 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-04-25 23:40:06' and `end` < '2025-04-26 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-04-26 02:40:19] Production.INFO: count ==716 [2025-04-26 02:40:19] Production.ERROR: pbx CDR StartTime 2025-04-25 23:40:06 - End Time 2025-04-26 02:40:06 [2025-04-26 02:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991278', 'tblTempUsageDetail_20' ) start [2025-04-26 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991278', 'tblTempUsageDetail_20' ) end [2025-04-26 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991278', 'tblTempVendorCDR_20' ) start [2025-04-26 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991278', 'tblTempVendorCDR_20' ) end [2025-04-26 02:40:19] Production.INFO: ProcessCDR(1,14991278,1,1,2) [2025-04-26 02:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991278', 'tblTempUsageDetail_20' ) start [2025-04-26 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991278', 'tblTempUsageDetail_20' ) end [2025-04-26 02:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 02:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 02:40:22] Production.INFO: ==31347== Releasing lock... [2025-04-26 02:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 02:40:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-26 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 23:41:05 [end_date_ymd] => 2025-04-26 02:41:05 [RateCDR] => 1 ) [2025-04-26 02:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 23:41:05' and `end` < '2025-04-26 02:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 02:41:17] Production.INFO: count ==715 [2025-04-26 02:41:17] Production.ERROR: pbx CDR StartTime 2025-04-25 23:41:05 - End Time 2025-04-26 02:41:05 [2025-04-26 02:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991283', 'tblTempUsageDetail_20' ) start [2025-04-26 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991283', 'tblTempUsageDetail_20' ) end [2025-04-26 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991283', 'tblTempVendorCDR_20' ) start [2025-04-26 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991283', 'tblTempVendorCDR_20' ) end [2025-04-26 02:41:18] Production.INFO: ProcessCDR(1,14991283,1,1,2) [2025-04-26 02:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991283', 'tblTempUsageDetail_20' ) start [2025-04-26 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991283', 'tblTempUsageDetail_20' ) end [2025-04-26 02:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 02:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 02:41:21] Production.INFO: ==31422== Releasing lock... [2025-04-26 02:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 02:41:21] Production.INFO: 34 MB #Memory Used# [2025-04-26 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 23:42:05 [end_date_ymd] => 2025-04-26 02:42:05 [RateCDR] => 1 ) [2025-04-26 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-04-25 23:42:05' and `end` < '2025-04-26 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-04-26 02:42:18] Production.INFO: count ==715 [2025-04-26 02:42:18] Production.ERROR: pbx CDR StartTime 2025-04-25 23:42:05 - End Time 2025-04-26 02:42:05 [2025-04-26 02:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991288', 'tblTempUsageDetail_20' ) start [2025-04-26 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991288', 'tblTempUsageDetail_20' ) end [2025-04-26 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991288', 'tblTempVendorCDR_20' ) start [2025-04-26 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991288', 'tblTempVendorCDR_20' ) end [2025-04-26 02:42:18] Production.INFO: ProcessCDR(1,14991288,1,1,2) [2025-04-26 02:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991288', 'tblTempUsageDetail_20' ) start [2025-04-26 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991288', 'tblTempUsageDetail_20' ) end [2025-04-26 02:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 02:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 02:42:21] Production.INFO: ==31495== Releasing lock... [2025-04-26 02:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 02:42:21] Production.INFO: 34 MB #Memory Used# [2025-04-26 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 23:43:05 [end_date_ymd] => 2025-04-26 02:43:05 [RateCDR] => 1 ) [2025-04-26 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-04-25 23:43:05' and `end` < '2025-04-26 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-04-26 02:43:17] Production.INFO: count ==717 [2025-04-26 02:43:17] Production.ERROR: pbx CDR StartTime 2025-04-25 23:43:05 - End Time 2025-04-26 02:43:05 [2025-04-26 02:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991293', 'tblTempUsageDetail_20' ) start [2025-04-26 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991293', 'tblTempUsageDetail_20' ) end [2025-04-26 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991293', 'tblTempVendorCDR_20' ) start [2025-04-26 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991293', 'tblTempVendorCDR_20' ) end [2025-04-26 02:43:17] Production.INFO: ProcessCDR(1,14991293,1,1,2) [2025-04-26 02:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991293', 'tblTempUsageDetail_20' ) start [2025-04-26 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991293', 'tblTempUsageDetail_20' ) end [2025-04-26 02:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 02:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 02:43:21] Production.INFO: ==31574== Releasing lock... [2025-04-26 02:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 02:43:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-26 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 23:44:05 [end_date_ymd] => 2025-04-26 02:44:05 [RateCDR] => 1 ) [2025-04-26 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-04-25 23:44:05' and `end` < '2025-04-26 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-04-26 02:44:17] Production.INFO: count ==716 [2025-04-26 02:44:17] Production.ERROR: pbx CDR StartTime 2025-04-25 23:44:05 - End Time 2025-04-26 02:44:05 [2025-04-26 02:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991298', 'tblTempUsageDetail_20' ) start [2025-04-26 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991298', 'tblTempUsageDetail_20' ) end [2025-04-26 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991298', 'tblTempVendorCDR_20' ) start [2025-04-26 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991298', 'tblTempVendorCDR_20' ) end [2025-04-26 02:44:18] Production.INFO: ProcessCDR(1,14991298,1,1,2) [2025-04-26 02:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991298', 'tblTempUsageDetail_20' ) start [2025-04-26 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991298', 'tblTempUsageDetail_20' ) end [2025-04-26 02:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 02:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 02:44:21] Production.INFO: ==31650== Releasing lock... [2025-04-26 02:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 02:44:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-26 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 23:45:05 [end_date_ymd] => 2025-04-26 02:45:05 [RateCDR] => 1 ) [2025-04-26 02:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 23:45:05' and `end` < '2025-04-26 02:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 02:45:17] Production.INFO: count ==715 [2025-04-26 02:45:17] Production.ERROR: pbx CDR StartTime 2025-04-25 23:45:05 - End Time 2025-04-26 02:45:05 [2025-04-26 02:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991303', 'tblTempUsageDetail_20' ) start [2025-04-26 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991303', 'tblTempUsageDetail_20' ) end [2025-04-26 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991303', 'tblTempVendorCDR_20' ) start [2025-04-26 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991303', 'tblTempVendorCDR_20' ) end [2025-04-26 02:45:17] Production.INFO: ProcessCDR(1,14991303,1,1,2) [2025-04-26 02:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991303', 'tblTempUsageDetail_20' ) start [2025-04-26 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991303', 'tblTempUsageDetail_20' ) end [2025-04-26 02:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 02:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 02:45:21] Production.INFO: ==31764== Releasing lock... [2025-04-26 02:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 02:45:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-26 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 23:46:05 [end_date_ymd] => 2025-04-26 02:46:05 [RateCDR] => 1 ) [2025-04-26 02:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 23:46:05' and `end` < '2025-04-26 02:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 02:46:17] Production.INFO: count ==713 [2025-04-26 02:46:18] Production.ERROR: pbx CDR StartTime 2025-04-25 23:46:05 - End Time 2025-04-26 02:46:05 [2025-04-26 02:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991308', 'tblTempUsageDetail_20' ) start [2025-04-26 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991308', 'tblTempUsageDetail_20' ) end [2025-04-26 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991308', 'tblTempVendorCDR_20' ) start [2025-04-26 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991308', 'tblTempVendorCDR_20' ) end [2025-04-26 02:46:18] Production.INFO: ProcessCDR(1,14991308,1,1,2) [2025-04-26 02:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991308', 'tblTempUsageDetail_20' ) start [2025-04-26 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991308', 'tblTempUsageDetail_20' ) end [2025-04-26 02:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 02:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 02:46:21] Production.INFO: ==31839== Releasing lock... [2025-04-26 02:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 02:46:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-26 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 23:47:05 [end_date_ymd] => 2025-04-26 02:47:05 [RateCDR] => 1 ) [2025-04-26 02:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 23:47:05' and `end` < '2025-04-26 02:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 02:47:18] Production.INFO: count ==709 [2025-04-26 02:47:18] Production.ERROR: pbx CDR StartTime 2025-04-25 23:47:05 - End Time 2025-04-26 02:47:05 [2025-04-26 02:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991313', 'tblTempUsageDetail_20' ) start [2025-04-26 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991313', 'tblTempUsageDetail_20' ) end [2025-04-26 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991313', 'tblTempVendorCDR_20' ) start [2025-04-26 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991313', 'tblTempVendorCDR_20' ) end [2025-04-26 02:47:18] Production.INFO: ProcessCDR(1,14991313,1,1,2) [2025-04-26 02:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991313', 'tblTempUsageDetail_20' ) start [2025-04-26 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991313', 'tblTempUsageDetail_20' ) end [2025-04-26 02:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 02:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 02:47:22] Production.INFO: ==31914== Releasing lock... [2025-04-26 02:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 02:47:22] Production.INFO: 34 MB #Memory Used# [2025-04-26 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 23:48:05 [end_date_ymd] => 2025-04-26 02:48:05 [RateCDR] => 1 ) [2025-04-26 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-04-25 23:48:05' and `end` < '2025-04-26 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-04-26 02:48:17] Production.INFO: count ==704 [2025-04-26 02:48:17] Production.ERROR: pbx CDR StartTime 2025-04-25 23:48:05 - End Time 2025-04-26 02:48:05 [2025-04-26 02:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991318', 'tblTempUsageDetail_20' ) start [2025-04-26 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991318', 'tblTempUsageDetail_20' ) end [2025-04-26 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991318', 'tblTempVendorCDR_20' ) start [2025-04-26 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991318', 'tblTempVendorCDR_20' ) end [2025-04-26 02:48:17] Production.INFO: ProcessCDR(1,14991318,1,1,2) [2025-04-26 02:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991318', 'tblTempUsageDetail_20' ) start [2025-04-26 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991318', 'tblTempUsageDetail_20' ) end [2025-04-26 02:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 02:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 02:48:21] Production.INFO: ==31985== Releasing lock... [2025-04-26 02:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 02:48:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-26 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 23:49:05 [end_date_ymd] => 2025-04-26 02:49:05 [RateCDR] => 1 ) [2025-04-26 02:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 23:49:05' and `end` < '2025-04-26 02:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 02:49:18] Production.INFO: count ==703 [2025-04-26 02:49:18] Production.ERROR: pbx CDR StartTime 2025-04-25 23:49:05 - End Time 2025-04-26 02:49:05 [2025-04-26 02:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991323', 'tblTempUsageDetail_20' ) start [2025-04-26 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991323', 'tblTempUsageDetail_20' ) end [2025-04-26 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991323', 'tblTempVendorCDR_20' ) start [2025-04-26 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991323', 'tblTempVendorCDR_20' ) end [2025-04-26 02:49:18] Production.INFO: ProcessCDR(1,14991323,1,1,2) [2025-04-26 02:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991323', 'tblTempUsageDetail_20' ) start [2025-04-26 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991323', 'tblTempUsageDetail_20' ) end [2025-04-26 02:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 02:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 02:49:21] Production.INFO: ==32062== Releasing lock... [2025-04-26 02:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 02:49:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-26 02:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 23:50:05 [end_date_ymd] => 2025-04-26 02:50:05 [RateCDR] => 1 ) [2025-04-26 02:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 23:50:05' and `end` < '2025-04-26 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-04-26 02:50:18] Production.INFO: count ==701 [2025-04-26 02:50:18] Production.ERROR: pbx CDR StartTime 2025-04-25 23:50:05 - End Time 2025-04-26 02:50:05 [2025-04-26 02:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991328', 'tblTempUsageDetail_20' ) start [2025-04-26 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991328', 'tblTempUsageDetail_20' ) end [2025-04-26 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991328', 'tblTempVendorCDR_20' ) start [2025-04-26 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991328', 'tblTempVendorCDR_20' ) end [2025-04-26 02:50:18] Production.INFO: ProcessCDR(1,14991328,1,1,2) [2025-04-26 02:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991328', 'tblTempUsageDetail_20' ) start [2025-04-26 02:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991328', 'tblTempUsageDetail_20' ) end [2025-04-26 02:50:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 02:50:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 02:50:21] Production.INFO: ==32135== Releasing lock... [2025-04-26 02:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 02:50:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-26 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 23:51:05 [end_date_ymd] => 2025-04-26 02:51:05 [RateCDR] => 1 ) [2025-04-26 02:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 23:51:05' and `end` < '2025-04-26 02:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 02:51:17] Production.INFO: count ==701 [2025-04-26 02:51:17] Production.ERROR: pbx CDR StartTime 2025-04-25 23:51:05 - End Time 2025-04-26 02:51:05 [2025-04-26 02:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991334', 'tblTempUsageDetail_20' ) start [2025-04-26 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991334', 'tblTempUsageDetail_20' ) end [2025-04-26 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991334', 'tblTempVendorCDR_20' ) start [2025-04-26 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991334', 'tblTempVendorCDR_20' ) end [2025-04-26 02:51:17] Production.INFO: ProcessCDR(1,14991334,1,1,2) [2025-04-26 02:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991334', 'tblTempUsageDetail_20' ) start [2025-04-26 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991334', 'tblTempUsageDetail_20' ) end [2025-04-26 02:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 02:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 02:51:21] Production.INFO: ==32209== Releasing lock... [2025-04-26 02:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 02:51:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-26 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 23:52:05 [end_date_ymd] => 2025-04-26 02:52:05 [RateCDR] => 1 ) [2025-04-26 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-04-25 23:52:05' and `end` < '2025-04-26 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-04-26 02:52:17] Production.INFO: count ==698 [2025-04-26 02:52:17] Production.ERROR: pbx CDR StartTime 2025-04-25 23:52:05 - End Time 2025-04-26 02:52:05 [2025-04-26 02:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991339', 'tblTempUsageDetail_20' ) start [2025-04-26 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991339', 'tblTempUsageDetail_20' ) end [2025-04-26 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991339', 'tblTempVendorCDR_20' ) start [2025-04-26 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991339', 'tblTempVendorCDR_20' ) end [2025-04-26 02:52:17] Production.INFO: ProcessCDR(1,14991339,1,1,2) [2025-04-26 02:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991339', 'tblTempUsageDetail_20' ) start [2025-04-26 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991339', 'tblTempUsageDetail_20' ) end [2025-04-26 02:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 02:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 02:52:21] Production.INFO: ==32282== Releasing lock... [2025-04-26 02:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 02:52:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-26 02:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 23:53:05 [end_date_ymd] => 2025-04-26 02:53:05 [RateCDR] => 1 ) [2025-04-26 02:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 23:53:05' and `end` < '2025-04-26 02:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 02:53:18] Production.INFO: count ==697 [2025-04-26 02:53:18] Production.ERROR: pbx CDR StartTime 2025-04-25 23:53:05 - End Time 2025-04-26 02:53:05 [2025-04-26 02:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991344', 'tblTempUsageDetail_20' ) start [2025-04-26 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991344', 'tblTempUsageDetail_20' ) end [2025-04-26 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991344', 'tblTempVendorCDR_20' ) start [2025-04-26 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991344', 'tblTempVendorCDR_20' ) end [2025-04-26 02:53:18] Production.INFO: ProcessCDR(1,14991344,1,1,2) [2025-04-26 02:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991344', 'tblTempUsageDetail_20' ) start [2025-04-26 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991344', 'tblTempUsageDetail_20' ) end [2025-04-26 02:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 02:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 02:53:21] Production.INFO: ==32361== Releasing lock... [2025-04-26 02:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 02:53:21] Production.INFO: 34 MB #Memory Used# [2025-04-26 02:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 23:54:06 [end_date_ymd] => 2025-04-26 02:54:06 [RateCDR] => 1 ) [2025-04-26 02:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 23:54:06' and `end` < '2025-04-26 02:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 02:54:18] Production.INFO: count ==693 [2025-04-26 02:54:19] Production.ERROR: pbx CDR StartTime 2025-04-25 23:54:06 - End Time 2025-04-26 02:54:06 [2025-04-26 02:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991349', 'tblTempUsageDetail_20' ) start [2025-04-26 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991349', 'tblTempUsageDetail_20' ) end [2025-04-26 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991349', 'tblTempVendorCDR_20' ) start [2025-04-26 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991349', 'tblTempVendorCDR_20' ) end [2025-04-26 02:54:19] Production.INFO: ProcessCDR(1,14991349,1,1,2) [2025-04-26 02:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991349', 'tblTempUsageDetail_20' ) start [2025-04-26 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991349', 'tblTempUsageDetail_20' ) end [2025-04-26 02:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 02:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 02:54:22] Production.INFO: ==32438== Releasing lock... [2025-04-26 02:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 02:54:22] Production.INFO: 34 MB #Memory Used# [2025-04-26 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 23:55:05 [end_date_ymd] => 2025-04-26 02:55:05 [RateCDR] => 1 ) [2025-04-26 02:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 23:55:05' and `end` < '2025-04-26 02:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 02:55:17] Production.INFO: count ==693 [2025-04-26 02:55:17] Production.ERROR: pbx CDR StartTime 2025-04-25 23:55:05 - End Time 2025-04-26 02:55:05 [2025-04-26 02:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991354', 'tblTempUsageDetail_20' ) start [2025-04-26 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991354', 'tblTempUsageDetail_20' ) end [2025-04-26 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991354', 'tblTempVendorCDR_20' ) start [2025-04-26 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991354', 'tblTempVendorCDR_20' ) end [2025-04-26 02:55:17] Production.INFO: ProcessCDR(1,14991354,1,1,2) [2025-04-26 02:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991354', 'tblTempUsageDetail_20' ) start [2025-04-26 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991354', 'tblTempUsageDetail_20' ) end [2025-04-26 02:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 02:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 02:55:21] Production.INFO: ==32515== Releasing lock... [2025-04-26 02:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 02:55:21] Production.INFO: 34.25 MB #Memory Used# [2025-04-26 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 23:56:05 [end_date_ymd] => 2025-04-26 02:56:05 [RateCDR] => 1 ) [2025-04-26 02:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 23:56:05' and `end` < '2025-04-26 02:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 02:56:18] Production.INFO: count ==690 [2025-04-26 02:56:18] Production.ERROR: pbx CDR StartTime 2025-04-25 23:56:05 - End Time 2025-04-26 02:56:05 [2025-04-26 02:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991359', 'tblTempUsageDetail_20' ) start [2025-04-26 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991359', 'tblTempUsageDetail_20' ) end [2025-04-26 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991359', 'tblTempVendorCDR_20' ) start [2025-04-26 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991359', 'tblTempVendorCDR_20' ) end [2025-04-26 02:56:18] Production.INFO: ProcessCDR(1,14991359,1,1,2) [2025-04-26 02:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991359', 'tblTempUsageDetail_20' ) start [2025-04-26 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991359', 'tblTempUsageDetail_20' ) end [2025-04-26 02:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 02:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 02:56:21] Production.INFO: ==32599== Releasing lock... [2025-04-26 02:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 02:56:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-26 02:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 23:57:06 [end_date_ymd] => 2025-04-26 02:57:06 [RateCDR] => 1 ) [2025-04-26 02:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 23:57:06' and `end` < '2025-04-26 02:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 02:57:18] Production.INFO: count ==685 [2025-04-26 02:57:19] Production.ERROR: pbx CDR StartTime 2025-04-25 23:57:06 - End Time 2025-04-26 02:57:06 [2025-04-26 02:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991364', 'tblTempUsageDetail_20' ) start [2025-04-26 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991364', 'tblTempUsageDetail_20' ) end [2025-04-26 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991364', 'tblTempVendorCDR_20' ) start [2025-04-26 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991364', 'tblTempVendorCDR_20' ) end [2025-04-26 02:57:19] Production.INFO: ProcessCDR(1,14991364,1,1,2) [2025-04-26 02:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991364', 'tblTempUsageDetail_20' ) start [2025-04-26 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991364', 'tblTempUsageDetail_20' ) end [2025-04-26 02:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 02:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 02:57:22] Production.INFO: ==32681== Releasing lock... [2025-04-26 02:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 02:57:22] Production.INFO: 34 MB #Memory Used# [2025-04-26 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 23:58:05 [end_date_ymd] => 2025-04-26 02:58:05 [RateCDR] => 1 ) [2025-04-26 02:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 23:58:05' and `end` < '2025-04-26 02:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 02:58:18] Production.INFO: count ==683 [2025-04-26 02:58:18] Production.ERROR: pbx CDR StartTime 2025-04-25 23:58:05 - End Time 2025-04-26 02:58:05 [2025-04-26 02:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991369', 'tblTempUsageDetail_20' ) start [2025-04-26 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991369', 'tblTempUsageDetail_20' ) end [2025-04-26 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991369', 'tblTempVendorCDR_20' ) start [2025-04-26 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991369', 'tblTempVendorCDR_20' ) end [2025-04-26 02:58:18] Production.INFO: ProcessCDR(1,14991369,1,1,2) [2025-04-26 02:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991369', 'tblTempUsageDetail_20' ) start [2025-04-26 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991369', 'tblTempUsageDetail_20' ) end [2025-04-26 02:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 02:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 02:58:21] Production.INFO: ==32755== Releasing lock... [2025-04-26 02:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 02:58:21] Production.INFO: 34 MB #Memory Used# [2025-04-26 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 23:59:05 [end_date_ymd] => 2025-04-26 02:59:05 [RateCDR] => 1 ) [2025-04-26 02:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 23:59:05' and `end` < '2025-04-26 02:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 02:59:18] Production.INFO: count ==682 [2025-04-26 02:59:18] Production.ERROR: pbx CDR StartTime 2025-04-25 23:59:05 - End Time 2025-04-26 02:59:05 [2025-04-26 02:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991374', 'tblTempUsageDetail_20' ) start [2025-04-26 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991374', 'tblTempUsageDetail_20' ) end [2025-04-26 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991374', 'tblTempVendorCDR_20' ) start [2025-04-26 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991374', 'tblTempVendorCDR_20' ) end [2025-04-26 02:59:18] Production.INFO: ProcessCDR(1,14991374,1,1,2) [2025-04-26 02:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 02:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991374', 'tblTempUsageDetail_20' ) start [2025-04-26 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991374', 'tblTempUsageDetail_20' ) end [2025-04-26 02:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 02:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 02:59:22] Production.INFO: ==385== Releasing lock... [2025-04-26 02:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 02:59:22] Production.INFO: 34 MB #Memory Used# [2025-04-26 03:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 00:00:05 [end_date_ymd] => 2025-04-26 03:00:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 00:00:05' and `end` < '2025-04-26 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-04-26 03:00:18] Production.INFO: count ==689 [2025-04-26 03:00:18] Production.ERROR: pbx CDR StartTime 2025-04-26 00:00:05 - End Time 2025-04-26 03:00:05 [2025-04-26 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991379', 'tblTempUsageDetail_20' ) start [2025-04-26 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991379', 'tblTempUsageDetail_20' ) end [2025-04-26 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991379', 'tblTempVendorCDR_20' ) start [2025-04-26 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991379', 'tblTempVendorCDR_20' ) end [2025-04-26 03:00:18] Production.INFO: ProcessCDR(1,14991379,1,1,2) [2025-04-26 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991379', 'tblTempUsageDetail_20' ) start [2025-04-26 03:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991379', 'tblTempUsageDetail_20' ) end [2025-04-26 03:00:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 03:00:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 03:00:21] Production.INFO: ==508== Releasing lock... [2025-04-26 03:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 03:00:21] Production.INFO: 34 MB #Memory Used# [2025-04-26 03:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 00:01:05 [end_date_ymd] => 2025-04-26 03:01:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 00:01:05' and `end` < '2025-04-26 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-04-26 03:01:18] Production.INFO: count ==702 [2025-04-26 03:01:18] Production.ERROR: pbx CDR StartTime 2025-04-26 00:01:05 - End Time 2025-04-26 03:01:05 [2025-04-26 03:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991385', 'tblTempUsageDetail_20' ) start [2025-04-26 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991385', 'tblTempUsageDetail_20' ) end [2025-04-26 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991385', 'tblTempVendorCDR_20' ) start [2025-04-26 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991385', 'tblTempVendorCDR_20' ) end [2025-04-26 03:01:18] Production.INFO: ProcessCDR(1,14991385,1,1,2) [2025-04-26 03:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991385', 'tblTempUsageDetail_20' ) start [2025-04-26 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991385', 'tblTempUsageDetail_20' ) end [2025-04-26 03:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 03:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 03:01:21] Production.INFO: ==610== Releasing lock... [2025-04-26 03:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 03:01:21] Production.INFO: 34 MB #Memory Used# [2025-04-26 03:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 00:02:04 [end_date_ymd] => 2025-04-26 03:02:04 [RateCDR] => 1 ) [2025-04-26 03:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 00:02:04' and `end` < '2025-04-26 03:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 03:02:17] Production.INFO: count ==712 [2025-04-26 03:02:17] Production.ERROR: pbx CDR StartTime 2025-04-26 00:02:04 - End Time 2025-04-26 03:02:04 [2025-04-26 03:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991390', 'tblTempUsageDetail_20' ) start [2025-04-26 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991390', 'tblTempUsageDetail_20' ) end [2025-04-26 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991390', 'tblTempVendorCDR_20' ) start [2025-04-26 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991390', 'tblTempVendorCDR_20' ) end [2025-04-26 03:02:17] Production.INFO: ProcessCDR(1,14991390,1,1,2) [2025-04-26 03:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991390', 'tblTempUsageDetail_20' ) start [2025-04-26 03:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991390', 'tblTempUsageDetail_20' ) end [2025-04-26 03:02:20] Production.ERROR: pbx prc_insertCDR start [2025-04-26 03:02:20] Production.ERROR: pbx prc_insertCDR end [2025-04-26 03:02:20] Production.INFO: ==795== Releasing lock... [2025-04-26 03:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 03:02:20] Production.INFO: 34 MB #Memory Used# [2025-04-26 03:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 00:03:04 [end_date_ymd] => 2025-04-26 03:03:04 [RateCDR] => 1 ) [2025-04-26 03: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-04-26 00:03:04' and `end` < '2025-04-26 03: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-04-26 03:03:17] Production.INFO: count ==710 [2025-04-26 03:03:17] Production.ERROR: pbx CDR StartTime 2025-04-26 00:03:04 - End Time 2025-04-26 03:03:04 [2025-04-26 03:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991395', 'tblTempUsageDetail_20' ) start [2025-04-26 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991395', 'tblTempUsageDetail_20' ) end [2025-04-26 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991395', 'tblTempVendorCDR_20' ) start [2025-04-26 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991395', 'tblTempVendorCDR_20' ) end [2025-04-26 03:03:17] Production.INFO: ProcessCDR(1,14991395,1,1,2) [2025-04-26 03:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991395', 'tblTempUsageDetail_20' ) start [2025-04-26 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991395', 'tblTempUsageDetail_20' ) end [2025-04-26 03:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 03:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 03:03:21] Production.INFO: ==874== Releasing lock... [2025-04-26 03:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 03:03:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-26 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 00:04:05 [end_date_ymd] => 2025-04-26 03:04:05 [RateCDR] => 1 ) [2025-04-26 03:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 00:04:05' and `end` < '2025-04-26 03:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 03:04:18] Production.INFO: count ==708 [2025-04-26 03:04:18] Production.ERROR: pbx CDR StartTime 2025-04-26 00:04:05 - End Time 2025-04-26 03:04:05 [2025-04-26 03:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991400', 'tblTempUsageDetail_20' ) start [2025-04-26 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991400', 'tblTempUsageDetail_20' ) end [2025-04-26 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991400', 'tblTempVendorCDR_20' ) start [2025-04-26 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991400', 'tblTempVendorCDR_20' ) end [2025-04-26 03:04:18] Production.INFO: ProcessCDR(1,14991400,1,1,2) [2025-04-26 03:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991400', 'tblTempUsageDetail_20' ) start [2025-04-26 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991400', 'tblTempUsageDetail_20' ) end [2025-04-26 03:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 03:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 03:04:22] Production.INFO: ==949== Releasing lock... [2025-04-26 03:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 03:04:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-26 03:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 00:05:04 [end_date_ymd] => 2025-04-26 03:05:04 [RateCDR] => 1 ) [2025-04-26 03: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-04-26 00:05:04' and `end` < '2025-04-26 03: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-04-26 03:05:17] Production.INFO: count ==707 [2025-04-26 03:05:17] Production.ERROR: pbx CDR StartTime 2025-04-26 00:05:04 - End Time 2025-04-26 03:05:04 [2025-04-26 03:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991405', 'tblTempUsageDetail_20' ) start [2025-04-26 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991405', 'tblTempUsageDetail_20' ) end [2025-04-26 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991405', 'tblTempVendorCDR_20' ) start [2025-04-26 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991405', 'tblTempVendorCDR_20' ) end [2025-04-26 03:05:17] Production.INFO: ProcessCDR(1,14991405,1,1,2) [2025-04-26 03:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991405', 'tblTempUsageDetail_20' ) start [2025-04-26 03:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991405', 'tblTempUsageDetail_20' ) end [2025-04-26 03:05:20] Production.ERROR: pbx prc_insertCDR start [2025-04-26 03:05:20] Production.ERROR: pbx prc_insertCDR end [2025-04-26 03:05:20] Production.INFO: ==1025== Releasing lock... [2025-04-26 03:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 03:05:20] Production.INFO: 33.75 MB #Memory Used# [2025-04-26 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 00:06:05 [end_date_ymd] => 2025-04-26 03:06:05 [RateCDR] => 1 ) [2025-04-26 03:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 00:06:05' and `end` < '2025-04-26 03:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 03:06:18] Production.INFO: count ==706 [2025-04-26 03:06:18] Production.ERROR: pbx CDR StartTime 2025-04-26 00:06:05 - End Time 2025-04-26 03:06:05 [2025-04-26 03:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991410', 'tblTempUsageDetail_20' ) start [2025-04-26 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991410', 'tblTempUsageDetail_20' ) end [2025-04-26 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991410', 'tblTempVendorCDR_20' ) start [2025-04-26 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991410', 'tblTempVendorCDR_20' ) end [2025-04-26 03:06:18] Production.INFO: ProcessCDR(1,14991410,1,1,2) [2025-04-26 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991410', 'tblTempUsageDetail_20' ) start [2025-04-26 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991410', 'tblTempUsageDetail_20' ) end [2025-04-26 03:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 03:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 03:06:21] Production.INFO: ==1182== Releasing lock... [2025-04-26 03:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 03:06:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-26 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 00:07:05 [end_date_ymd] => 2025-04-26 03:07:05 [RateCDR] => 1 ) [2025-04-26 03:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 00:07:05' and `end` < '2025-04-26 03:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 03:07:17] Production.INFO: count ==705 [2025-04-26 03:07:17] Production.ERROR: pbx CDR StartTime 2025-04-26 00:07:05 - End Time 2025-04-26 03:07:05 [2025-04-26 03:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991415', 'tblTempUsageDetail_20' ) start [2025-04-26 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991415', 'tblTempUsageDetail_20' ) end [2025-04-26 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991415', 'tblTempVendorCDR_20' ) start [2025-04-26 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991415', 'tblTempVendorCDR_20' ) end [2025-04-26 03:07:17] Production.INFO: ProcessCDR(1,14991415,1,1,2) [2025-04-26 03:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991415', 'tblTempUsageDetail_20' ) start [2025-04-26 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991415', 'tblTempUsageDetail_20' ) end [2025-04-26 03:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 03:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 03:07:21] Production.INFO: ==1263== Releasing lock... [2025-04-26 03:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 03:07:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-26 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 00:08:05 [end_date_ymd] => 2025-04-26 03:08:05 [RateCDR] => 1 ) [2025-04-26 03:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 00:08:05' and `end` < '2025-04-26 03:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 03:08:18] Production.INFO: count ==701 [2025-04-26 03:08:18] Production.ERROR: pbx CDR StartTime 2025-04-26 00:08:05 - End Time 2025-04-26 03:08:05 [2025-04-26 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991420', 'tblTempUsageDetail_20' ) start [2025-04-26 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991420', 'tblTempUsageDetail_20' ) end [2025-04-26 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991420', 'tblTempVendorCDR_20' ) start [2025-04-26 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991420', 'tblTempVendorCDR_20' ) end [2025-04-26 03:08:18] Production.INFO: ProcessCDR(1,14991420,1,1,2) [2025-04-26 03:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991420', 'tblTempUsageDetail_20' ) start [2025-04-26 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991420', 'tblTempUsageDetail_20' ) end [2025-04-26 03:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 03:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 03:08:21] Production.INFO: ==1334== Releasing lock... [2025-04-26 03:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 03:08:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-26 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 00:09:05 [end_date_ymd] => 2025-04-26 03:09:05 [RateCDR] => 1 ) [2025-04-26 03:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 00:09:05' and `end` < '2025-04-26 03:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 03:09:18] Production.INFO: count ==695 [2025-04-26 03:09:18] Production.ERROR: pbx CDR StartTime 2025-04-26 00:09:05 - End Time 2025-04-26 03:09:05 [2025-04-26 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991425', 'tblTempUsageDetail_20' ) start [2025-04-26 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991425', 'tblTempUsageDetail_20' ) end [2025-04-26 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991425', 'tblTempVendorCDR_20' ) start [2025-04-26 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991425', 'tblTempVendorCDR_20' ) end [2025-04-26 03:09:18] Production.INFO: ProcessCDR(1,14991425,1,1,2) [2025-04-26 03:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991425', 'tblTempUsageDetail_20' ) start [2025-04-26 03:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991425', 'tblTempUsageDetail_20' ) end [2025-04-26 03:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 03:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 03:09:22] Production.INFO: ==1483== Releasing lock... [2025-04-26 03:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 03:09:22] Production.INFO: 34 MB #Memory Used# [2025-04-26 03:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 00:10:05 [end_date_ymd] => 2025-04-26 03:10:05 [RateCDR] => 1 ) [2025-04-26 03:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 00:10:05' and `end` < '2025-04-26 03:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 03:10:18] Production.INFO: count ==695 [2025-04-26 03:10:18] Production.ERROR: pbx CDR StartTime 2025-04-26 00:10:05 - End Time 2025-04-26 03:10:05 [2025-04-26 03:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991431', 'tblTempUsageDetail_20' ) start [2025-04-26 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991431', 'tblTempUsageDetail_20' ) end [2025-04-26 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991431', 'tblTempVendorCDR_20' ) start [2025-04-26 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991431', 'tblTempVendorCDR_20' ) end [2025-04-26 03:10:18] Production.INFO: ProcessCDR(1,14991431,1,1,2) [2025-04-26 03:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991431', 'tblTempUsageDetail_20' ) start [2025-04-26 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991431', 'tblTempUsageDetail_20' ) end [2025-04-26 03:10:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 03:10:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 03:10:22] Production.INFO: ==1602== Releasing lock... [2025-04-26 03:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 03:10:22] Production.INFO: 34 MB #Memory Used# [2025-04-26 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 00:11:05 [end_date_ymd] => 2025-04-26 03:11:05 [RateCDR] => 1 ) [2025-04-26 03:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 00:11:05' and `end` < '2025-04-26 03:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 03:11:18] Production.INFO: count ==684 [2025-04-26 03:11:18] Production.ERROR: pbx CDR StartTime 2025-04-26 00:11:05 - End Time 2025-04-26 03:11:05 [2025-04-26 03:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991436', 'tblTempUsageDetail_20' ) start [2025-04-26 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991436', 'tblTempUsageDetail_20' ) end [2025-04-26 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991436', 'tblTempVendorCDR_20' ) start [2025-04-26 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991436', 'tblTempVendorCDR_20' ) end [2025-04-26 03:11:18] Production.INFO: ProcessCDR(1,14991436,1,1,2) [2025-04-26 03:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991436', 'tblTempUsageDetail_20' ) start [2025-04-26 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991436', 'tblTempUsageDetail_20' ) end [2025-04-26 03:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 03:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 03:11:21] Production.INFO: ==1675== Releasing lock... [2025-04-26 03:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 03:11:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-26 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 00:12:05 [end_date_ymd] => 2025-04-26 03:12:05 [RateCDR] => 1 ) [2025-04-26 03:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 00:12:05' and `end` < '2025-04-26 03:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 03:12:17] Production.INFO: count ==686 [2025-04-26 03:12:18] Production.ERROR: pbx CDR StartTime 2025-04-26 00:12:05 - End Time 2025-04-26 03:12:05 [2025-04-26 03:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991441', 'tblTempUsageDetail_20' ) start [2025-04-26 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991441', 'tblTempUsageDetail_20' ) end [2025-04-26 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991441', 'tblTempVendorCDR_20' ) start [2025-04-26 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991441', 'tblTempVendorCDR_20' ) end [2025-04-26 03:12:18] Production.INFO: ProcessCDR(1,14991441,1,1,2) [2025-04-26 03:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991441', 'tblTempUsageDetail_20' ) start [2025-04-26 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991441', 'tblTempUsageDetail_20' ) end [2025-04-26 03:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 03:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 03:12:22] Production.INFO: ==1743== Releasing lock... [2025-04-26 03:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 03:12:22] Production.INFO: 34 MB #Memory Used# [2025-04-26 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 00:13:05 [end_date_ymd] => 2025-04-26 03:13:05 [RateCDR] => 1 ) [2025-04-26 03:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 00:13:05' and `end` < '2025-04-26 03:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 03:13:18] Production.INFO: count ==686 [2025-04-26 03:13:18] Production.ERROR: pbx CDR StartTime 2025-04-26 00:13:05 - End Time 2025-04-26 03:13:05 [2025-04-26 03:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991446', 'tblTempUsageDetail_20' ) start [2025-04-26 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991446', 'tblTempUsageDetail_20' ) end [2025-04-26 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991446', 'tblTempVendorCDR_20' ) start [2025-04-26 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991446', 'tblTempVendorCDR_20' ) end [2025-04-26 03:13:18] Production.INFO: ProcessCDR(1,14991446,1,1,2) [2025-04-26 03:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991446', 'tblTempUsageDetail_20' ) start [2025-04-26 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991446', 'tblTempUsageDetail_20' ) end [2025-04-26 03:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 03:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 03:13:21] Production.INFO: ==1895== Releasing lock... [2025-04-26 03:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 03:13:21] Production.INFO: 34 MB #Memory Used# [2025-04-26 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 00:14:05 [end_date_ymd] => 2025-04-26 03:14:05 [RateCDR] => 1 ) [2025-04-26 03:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 00:14:05' and `end` < '2025-04-26 03:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 03:14:18] Production.INFO: count ==684 [2025-04-26 03:14:18] Production.ERROR: pbx CDR StartTime 2025-04-26 00:14:05 - End Time 2025-04-26 03:14:05 [2025-04-26 03:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991451', 'tblTempUsageDetail_20' ) start [2025-04-26 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991451', 'tblTempUsageDetail_20' ) end [2025-04-26 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991451', 'tblTempVendorCDR_20' ) start [2025-04-26 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991451', 'tblTempVendorCDR_20' ) end [2025-04-26 03:14:18] Production.INFO: ProcessCDR(1,14991451,1,1,2) [2025-04-26 03:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991451', 'tblTempUsageDetail_20' ) start [2025-04-26 03:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991451', 'tblTempUsageDetail_20' ) end [2025-04-26 03:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 03:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 03:14:22] Production.INFO: ==1966== Releasing lock... [2025-04-26 03:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 03:14:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-26 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 00:15:05 [end_date_ymd] => 2025-04-26 03:15:05 [RateCDR] => 1 ) [2025-04-26 03:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 00:15:05' and `end` < '2025-04-26 03:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 03:15:18] Production.INFO: count ==684 [2025-04-26 03:15:18] Production.ERROR: pbx CDR StartTime 2025-04-26 00:15:05 - End Time 2025-04-26 03:15:05 [2025-04-26 03:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991456', 'tblTempUsageDetail_20' ) start [2025-04-26 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991456', 'tblTempUsageDetail_20' ) end [2025-04-26 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991456', 'tblTempVendorCDR_20' ) start [2025-04-26 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991456', 'tblTempVendorCDR_20' ) end [2025-04-26 03:15:18] Production.INFO: ProcessCDR(1,14991456,1,1,2) [2025-04-26 03:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991456', 'tblTempUsageDetail_20' ) start [2025-04-26 03:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991456', 'tblTempUsageDetail_20' ) end [2025-04-26 03:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 03:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 03:15:22] Production.INFO: ==2075== Releasing lock... [2025-04-26 03:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 03:15:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-26 03:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 00:16:06 [end_date_ymd] => 2025-04-26 03:16:06 [RateCDR] => 1 ) [2025-04-26 03:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 00:16:06' and `end` < '2025-04-26 03:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 03:16:18] Production.INFO: count ==684 [2025-04-26 03:16:19] Production.ERROR: pbx CDR StartTime 2025-04-26 00:16:06 - End Time 2025-04-26 03:16:06 [2025-04-26 03:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991461', 'tblTempUsageDetail_20' ) start [2025-04-26 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991461', 'tblTempUsageDetail_20' ) end [2025-04-26 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991461', 'tblTempVendorCDR_20' ) start [2025-04-26 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991461', 'tblTempVendorCDR_20' ) end [2025-04-26 03:16:19] Production.INFO: ProcessCDR(1,14991461,1,1,2) [2025-04-26 03:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991461', 'tblTempUsageDetail_20' ) start [2025-04-26 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991461', 'tblTempUsageDetail_20' ) end [2025-04-26 03:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 03:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 03:16:22] Production.INFO: ==2150== Releasing lock... [2025-04-26 03:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 03:16:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-26 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 00:17:05 [end_date_ymd] => 2025-04-26 03:17:05 [RateCDR] => 1 ) [2025-04-26 03:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 00:17:05' and `end` < '2025-04-26 03:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 03:17:17] Production.INFO: count ==683 [2025-04-26 03:17:17] Production.ERROR: pbx CDR StartTime 2025-04-26 00:17:05 - End Time 2025-04-26 03:17:05 [2025-04-26 03:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991466', 'tblTempUsageDetail_20' ) start [2025-04-26 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991466', 'tblTempUsageDetail_20' ) end [2025-04-26 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991466', 'tblTempVendorCDR_20' ) start [2025-04-26 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991466', 'tblTempVendorCDR_20' ) end [2025-04-26 03:17:17] Production.INFO: ProcessCDR(1,14991466,1,1,2) [2025-04-26 03:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991466', 'tblTempUsageDetail_20' ) start [2025-04-26 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991466', 'tblTempUsageDetail_20' ) end [2025-04-26 03:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 03:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 03:17:21] Production.INFO: ==2300== Releasing lock... [2025-04-26 03:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 03:17:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-26 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 00:18:05 [end_date_ymd] => 2025-04-26 03:18:05 [RateCDR] => 1 ) [2025-04-26 03:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 00:18:05' and `end` < '2025-04-26 03:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 03:18:18] Production.INFO: count ==680 [2025-04-26 03:18:18] Production.ERROR: pbx CDR StartTime 2025-04-26 00:18:05 - End Time 2025-04-26 03:18:05 [2025-04-26 03:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991471', 'tblTempUsageDetail_20' ) start [2025-04-26 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991471', 'tblTempUsageDetail_20' ) end [2025-04-26 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991471', 'tblTempVendorCDR_20' ) start [2025-04-26 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991471', 'tblTempVendorCDR_20' ) end [2025-04-26 03:18:18] Production.INFO: ProcessCDR(1,14991471,1,1,2) [2025-04-26 03:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991471', 'tblTempUsageDetail_20' ) start [2025-04-26 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991471', 'tblTempUsageDetail_20' ) end [2025-04-26 03:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 03:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 03:18:22] Production.INFO: ==2370== Releasing lock... [2025-04-26 03:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 03:18:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-26 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 00:19:05 [end_date_ymd] => 2025-04-26 03:19:05 [RateCDR] => 1 ) [2025-04-26 03:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 00:19:05' and `end` < '2025-04-26 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-04-26 03:19:18] Production.INFO: count ==679 [2025-04-26 03:19:18] Production.ERROR: pbx CDR StartTime 2025-04-26 00:19:05 - End Time 2025-04-26 03:19:05 [2025-04-26 03:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991476', 'tblTempUsageDetail_20' ) start [2025-04-26 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991476', 'tblTempUsageDetail_20' ) end [2025-04-26 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991476', 'tblTempVendorCDR_20' ) start [2025-04-26 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991476', 'tblTempVendorCDR_20' ) end [2025-04-26 03:19:18] Production.INFO: ProcessCDR(1,14991476,1,1,2) [2025-04-26 03:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991476', 'tblTempUsageDetail_20' ) start [2025-04-26 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991476', 'tblTempUsageDetail_20' ) end [2025-04-26 03:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 03:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 03:19:21] Production.INFO: ==2439== Releasing lock... [2025-04-26 03:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 03:19:21] Production.INFO: 34 MB #Memory Used# [2025-04-26 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 00:20:06 [end_date_ymd] => 2025-04-26 03:20:06 [RateCDR] => 1 ) [2025-04-26 03:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 00:20:06' and `end` < '2025-04-26 03:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 03:20:18] Production.INFO: count ==679 [2025-04-26 03:20:18] Production.ERROR: pbx CDR StartTime 2025-04-26 00:20:06 - End Time 2025-04-26 03:20:06 [2025-04-26 03:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991481', 'tblTempUsageDetail_20' ) start [2025-04-26 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991481', 'tblTempUsageDetail_20' ) end [2025-04-26 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991481', 'tblTempVendorCDR_20' ) start [2025-04-26 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991481', 'tblTempVendorCDR_20' ) end [2025-04-26 03:20:19] Production.INFO: ProcessCDR(1,14991481,1,1,2) [2025-04-26 03:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991481', 'tblTempUsageDetail_20' ) start [2025-04-26 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991481', 'tblTempUsageDetail_20' ) end [2025-04-26 03:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 03:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 03:20:22] Production.INFO: ==2514== Releasing lock... [2025-04-26 03:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 03:20:22] Production.INFO: 34 MB #Memory Used# [2025-04-26 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 00:21:05 [end_date_ymd] => 2025-04-26 03:21:05 [RateCDR] => 1 ) [2025-04-26 03:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 00:21:05' and `end` < '2025-04-26 03:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 03:21:17] Production.INFO: count ==677 [2025-04-26 03:21:17] Production.ERROR: pbx CDR StartTime 2025-04-26 00:21:05 - End Time 2025-04-26 03:21:05 [2025-04-26 03:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991487', 'tblTempUsageDetail_20' ) start [2025-04-26 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991487', 'tblTempUsageDetail_20' ) end [2025-04-26 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991487', 'tblTempVendorCDR_20' ) start [2025-04-26 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991487', 'tblTempVendorCDR_20' ) end [2025-04-26 03:21:17] Production.INFO: ProcessCDR(1,14991487,1,1,2) [2025-04-26 03:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991487', 'tblTempUsageDetail_20' ) start [2025-04-26 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991487', 'tblTempUsageDetail_20' ) end [2025-04-26 03:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 03:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 03:21:21] Production.INFO: ==2591== Releasing lock... [2025-04-26 03:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 03:21:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-26 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 00:22:05 [end_date_ymd] => 2025-04-26 03:22:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 00:22:05' and `end` < '2025-04-26 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-04-26 03:22:18] Production.INFO: count ==673 [2025-04-26 03:22:18] Production.ERROR: pbx CDR StartTime 2025-04-26 00:22:05 - End Time 2025-04-26 03:22:05 [2025-04-26 03:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991492', 'tblTempUsageDetail_20' ) start [2025-04-26 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991492', 'tblTempUsageDetail_20' ) end [2025-04-26 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991492', 'tblTempVendorCDR_20' ) start [2025-04-26 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991492', 'tblTempVendorCDR_20' ) end [2025-04-26 03:22:18] Production.INFO: ProcessCDR(1,14991492,1,1,2) [2025-04-26 03:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991492', 'tblTempUsageDetail_20' ) start [2025-04-26 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991492', 'tblTempUsageDetail_20' ) end [2025-04-26 03:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 03:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 03:22:21] Production.INFO: ==2663== Releasing lock... [2025-04-26 03:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 03:22:21] Production.INFO: 34 MB #Memory Used# [2025-04-26 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 00:23:05 [end_date_ymd] => 2025-04-26 03:23:05 [RateCDR] => 1 ) [2025-04-26 03:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 00:23:05' and `end` < '2025-04-26 03:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 03:23:18] Production.INFO: count ==675 [2025-04-26 03:23:18] Production.ERROR: pbx CDR StartTime 2025-04-26 00:23:05 - End Time 2025-04-26 03:23:05 [2025-04-26 03:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991497', 'tblTempUsageDetail_20' ) start [2025-04-26 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991497', 'tblTempUsageDetail_20' ) end [2025-04-26 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991497', 'tblTempVendorCDR_20' ) start [2025-04-26 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991497', 'tblTempVendorCDR_20' ) end [2025-04-26 03:23:18] Production.INFO: ProcessCDR(1,14991497,1,1,2) [2025-04-26 03:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991497', 'tblTempUsageDetail_20' ) start [2025-04-26 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991497', 'tblTempUsageDetail_20' ) end [2025-04-26 03:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 03:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 03:23:21] Production.INFO: ==2734== Releasing lock... [2025-04-26 03:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 03:23:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-26 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 00:24:05 [end_date_ymd] => 2025-04-26 03:24:05 [RateCDR] => 1 ) [2025-04-26 03:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 00:24:05' and `end` < '2025-04-26 03:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 03:24:18] Production.INFO: count ==674 [2025-04-26 03:24:18] Production.ERROR: pbx CDR StartTime 2025-04-26 00:24:05 - End Time 2025-04-26 03:24:05 [2025-04-26 03:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991502', 'tblTempUsageDetail_20' ) start [2025-04-26 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991502', 'tblTempUsageDetail_20' ) end [2025-04-26 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991502', 'tblTempVendorCDR_20' ) start [2025-04-26 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991502', 'tblTempVendorCDR_20' ) end [2025-04-26 03:24:18] Production.INFO: ProcessCDR(1,14991502,1,1,2) [2025-04-26 03:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991502', 'tblTempUsageDetail_20' ) start [2025-04-26 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991502', 'tblTempUsageDetail_20' ) end [2025-04-26 03:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 03:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 03:24:21] Production.INFO: ==2824== Releasing lock... [2025-04-26 03:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 03:24:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-26 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 00:25:05 [end_date_ymd] => 2025-04-26 03:25:05 [RateCDR] => 1 ) [2025-04-26 03:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 00:25:05' and `end` < '2025-04-26 03:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 03:25:18] Production.INFO: count ==671 [2025-04-26 03:25:18] Production.ERROR: pbx CDR StartTime 2025-04-26 00:25:05 - End Time 2025-04-26 03:25:05 [2025-04-26 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991507', 'tblTempUsageDetail_20' ) start [2025-04-26 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991507', 'tblTempUsageDetail_20' ) end [2025-04-26 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991507', 'tblTempVendorCDR_20' ) start [2025-04-26 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991507', 'tblTempVendorCDR_20' ) end [2025-04-26 03:25:18] Production.INFO: ProcessCDR(1,14991507,1,1,2) [2025-04-26 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991507', 'tblTempUsageDetail_20' ) start [2025-04-26 03:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991507', 'tblTempUsageDetail_20' ) end [2025-04-26 03:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 03:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 03:25:22] Production.INFO: ==2917== Releasing lock... [2025-04-26 03:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 03:25:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-26 03:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 00:26:04 [end_date_ymd] => 2025-04-26 03:26:04 [RateCDR] => 1 ) [2025-04-26 03:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 00:26:04' and `end` < '2025-04-26 03:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 03:26:17] Production.INFO: count ==666 [2025-04-26 03:26:17] Production.ERROR: pbx CDR StartTime 2025-04-26 00:26:04 - End Time 2025-04-26 03:26:04 [2025-04-26 03:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991512', 'tblTempUsageDetail_20' ) start [2025-04-26 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991512', 'tblTempUsageDetail_20' ) end [2025-04-26 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991512', 'tblTempVendorCDR_20' ) start [2025-04-26 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991512', 'tblTempVendorCDR_20' ) end [2025-04-26 03:26:17] Production.INFO: ProcessCDR(1,14991512,1,1,2) [2025-04-26 03:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991512', 'tblTempUsageDetail_20' ) start [2025-04-26 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991512', 'tblTempUsageDetail_20' ) end [2025-04-26 03:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 03:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 03:26:21] Production.INFO: ==2991== Releasing lock... [2025-04-26 03:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 03:26:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-26 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 00:27:05 [end_date_ymd] => 2025-04-26 03:27:05 [RateCDR] => 1 ) [2025-04-26 03:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 00:27:05' and `end` < '2025-04-26 03:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 03:27:18] Production.INFO: count ==665 [2025-04-26 03:27:18] Production.ERROR: pbx CDR StartTime 2025-04-26 00:27:05 - End Time 2025-04-26 03:27:05 [2025-04-26 03:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991517', 'tblTempUsageDetail_20' ) start [2025-04-26 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991517', 'tblTempUsageDetail_20' ) end [2025-04-26 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991517', 'tblTempVendorCDR_20' ) start [2025-04-26 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991517', 'tblTempVendorCDR_20' ) end [2025-04-26 03:27:18] Production.INFO: ProcessCDR(1,14991517,1,1,2) [2025-04-26 03:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991517', 'tblTempUsageDetail_20' ) start [2025-04-26 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991517', 'tblTempUsageDetail_20' ) end [2025-04-26 03:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 03:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 03:27:22] Production.INFO: ==3063== Releasing lock... [2025-04-26 03:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 03:27:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-26 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 00:28:05 [end_date_ymd] => 2025-04-26 03:28:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 00:28:05' and `end` < '2025-04-26 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-04-26 03:28:17] Production.INFO: count ==663 [2025-04-26 03:28:17] Production.ERROR: pbx CDR StartTime 2025-04-26 00:28:05 - End Time 2025-04-26 03:28:05 [2025-04-26 03:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991522', 'tblTempUsageDetail_20' ) start [2025-04-26 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991522', 'tblTempUsageDetail_20' ) end [2025-04-26 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991522', 'tblTempVendorCDR_20' ) start [2025-04-26 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991522', 'tblTempVendorCDR_20' ) end [2025-04-26 03:28:17] Production.INFO: ProcessCDR(1,14991522,1,1,2) [2025-04-26 03:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991522', 'tblTempUsageDetail_20' ) start [2025-04-26 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991522', 'tblTempUsageDetail_20' ) end [2025-04-26 03:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 03:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 03:28:21] Production.INFO: ==3132== Releasing lock... [2025-04-26 03:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 03:28:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-26 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 00:29:05 [end_date_ymd] => 2025-04-26 03:29:05 [RateCDR] => 1 ) [2025-04-26 03:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 00:29:05' and `end` < '2025-04-26 03:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 03:29:17] Production.INFO: count ==663 [2025-04-26 03:29:18] Production.ERROR: pbx CDR StartTime 2025-04-26 00:29:05 - End Time 2025-04-26 03:29:05 [2025-04-26 03:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991527', 'tblTempUsageDetail_20' ) start [2025-04-26 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991527', 'tblTempUsageDetail_20' ) end [2025-04-26 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991527', 'tblTempVendorCDR_20' ) start [2025-04-26 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991527', 'tblTempVendorCDR_20' ) end [2025-04-26 03:29:18] Production.INFO: ProcessCDR(1,14991527,1,1,2) [2025-04-26 03:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991527', 'tblTempUsageDetail_20' ) start [2025-04-26 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991527', 'tblTempUsageDetail_20' ) end [2025-04-26 03:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 03:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 03:29:21] Production.INFO: ==3204== Releasing lock... [2025-04-26 03:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 03:29:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-26 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 00:30:06 [end_date_ymd] => 2025-04-26 03:30:06 [RateCDR] => 1 ) [2025-04-26 03:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 00:30:06' and `end` < '2025-04-26 03:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 03:30:19] Production.INFO: count ==653 [2025-04-26 03:30:19] Production.ERROR: pbx CDR StartTime 2025-04-26 00:30:06 - End Time 2025-04-26 03:30:06 [2025-04-26 03:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991533', 'tblTempUsageDetail_20' ) start [2025-04-26 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991533', 'tblTempUsageDetail_20' ) end [2025-04-26 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991533', 'tblTempVendorCDR_20' ) start [2025-04-26 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991533', 'tblTempVendorCDR_20' ) end [2025-04-26 03:30:19] Production.INFO: ProcessCDR(1,14991533,1,1,2) [2025-04-26 03:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991533', 'tblTempUsageDetail_20' ) start [2025-04-26 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991533', 'tblTempUsageDetail_20' ) end [2025-04-26 03:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 03:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 03:30:22] Production.INFO: ==3282== Releasing lock... [2025-04-26 03:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 03:30:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-26 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 00:31:05 [end_date_ymd] => 2025-04-26 03:31:05 [RateCDR] => 1 ) [2025-04-26 03:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 00:31:05' and `end` < '2025-04-26 03:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 03:31:18] Production.INFO: count ==627 [2025-04-26 03:31:18] Production.ERROR: pbx CDR StartTime 2025-04-26 00:31:05 - End Time 2025-04-26 03:31:05 [2025-04-26 03:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991538', 'tblTempUsageDetail_20' ) start [2025-04-26 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991538', 'tblTempUsageDetail_20' ) end [2025-04-26 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991538', 'tblTempVendorCDR_20' ) start [2025-04-26 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991538', 'tblTempVendorCDR_20' ) end [2025-04-26 03:31:18] Production.INFO: ProcessCDR(1,14991538,1,1,2) [2025-04-26 03:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991538', 'tblTempUsageDetail_20' ) start [2025-04-26 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991538', 'tblTempUsageDetail_20' ) end [2025-04-26 03:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 03:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 03:31:21] Production.INFO: ==3361== Releasing lock... [2025-04-26 03:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 03:31:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-26 03:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 00:32:05 [end_date_ymd] => 2025-04-26 03:32:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 00:32:05' and `end` < '2025-04-26 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-04-26 03:32:18] Production.INFO: count ==625 [2025-04-26 03:32:18] Production.ERROR: pbx CDR StartTime 2025-04-26 00:32:05 - End Time 2025-04-26 03:32:05 [2025-04-26 03:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991543', 'tblTempUsageDetail_20' ) start [2025-04-26 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991543', 'tblTempUsageDetail_20' ) end [2025-04-26 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991543', 'tblTempVendorCDR_20' ) start [2025-04-26 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991543', 'tblTempVendorCDR_20' ) end [2025-04-26 03:32:18] Production.INFO: ProcessCDR(1,14991543,1,1,2) [2025-04-26 03:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991543', 'tblTempUsageDetail_20' ) start [2025-04-26 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991543', 'tblTempUsageDetail_20' ) end [2025-04-26 03:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 03:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 03:32:22] Production.INFO: ==3475== Releasing lock... [2025-04-26 03:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 03:32:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-26 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 00:33:05 [end_date_ymd] => 2025-04-26 03:33:05 [RateCDR] => 1 ) [2025-04-26 03:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 00:33:05' and `end` < '2025-04-26 03:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 03:33:18] Production.INFO: count ==623 [2025-04-26 03:33:18] Production.ERROR: pbx CDR StartTime 2025-04-26 00:33:05 - End Time 2025-04-26 03:33:05 [2025-04-26 03:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991548', 'tblTempUsageDetail_20' ) start [2025-04-26 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991548', 'tblTempUsageDetail_20' ) end [2025-04-26 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991548', 'tblTempVendorCDR_20' ) start [2025-04-26 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991548', 'tblTempVendorCDR_20' ) end [2025-04-26 03:33:18] Production.INFO: ProcessCDR(1,14991548,1,1,2) [2025-04-26 03:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991548', 'tblTempUsageDetail_20' ) start [2025-04-26 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991548', 'tblTempUsageDetail_20' ) end [2025-04-26 03:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 03:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 03:33:22] Production.INFO: ==3564== Releasing lock... [2025-04-26 03:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 03:33:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-26 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 00:34:05 [end_date_ymd] => 2025-04-26 03:34:05 [RateCDR] => 1 ) [2025-04-26 03:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 00:34:05' and `end` < '2025-04-26 03:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 03:34:18] Production.INFO: count ==622 [2025-04-26 03:34:18] Production.ERROR: pbx CDR StartTime 2025-04-26 00:34:05 - End Time 2025-04-26 03:34:05 [2025-04-26 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991553', 'tblTempUsageDetail_20' ) start [2025-04-26 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991553', 'tblTempUsageDetail_20' ) end [2025-04-26 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991553', 'tblTempVendorCDR_20' ) start [2025-04-26 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991553', 'tblTempVendorCDR_20' ) end [2025-04-26 03:34:18] Production.INFO: ProcessCDR(1,14991553,1,1,2) [2025-04-26 03:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991553', 'tblTempUsageDetail_20' ) start [2025-04-26 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991553', 'tblTempUsageDetail_20' ) end [2025-04-26 03:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 03:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 03:34:22] Production.INFO: ==3639== Releasing lock... [2025-04-26 03:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 03:34:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-26 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 00:35:05 [end_date_ymd] => 2025-04-26 03:35:05 [RateCDR] => 1 ) [2025-04-26 03:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 00:35:05' and `end` < '2025-04-26 03:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 03:35:17] Production.INFO: count ==620 [2025-04-26 03:35:17] Production.ERROR: pbx CDR StartTime 2025-04-26 00:35:05 - End Time 2025-04-26 03:35:05 [2025-04-26 03:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991558', 'tblTempUsageDetail_20' ) start [2025-04-26 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991558', 'tblTempUsageDetail_20' ) end [2025-04-26 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991558', 'tblTempVendorCDR_20' ) start [2025-04-26 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991558', 'tblTempVendorCDR_20' ) end [2025-04-26 03:35:17] Production.INFO: ProcessCDR(1,14991558,1,1,2) [2025-04-26 03:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991558', 'tblTempUsageDetail_20' ) start [2025-04-26 03:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991558', 'tblTempUsageDetail_20' ) end [2025-04-26 03:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 03:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 03:35:21] Production.INFO: ==3709== Releasing lock... [2025-04-26 03:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 03:35:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-26 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 00:36:05 [end_date_ymd] => 2025-04-26 03:36:05 [RateCDR] => 1 ) [2025-04-26 03:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 00:36:05' and `end` < '2025-04-26 03:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 03:36:18] Production.INFO: count ==622 [2025-04-26 03:36:18] Production.ERROR: pbx CDR StartTime 2025-04-26 00:36:05 - End Time 2025-04-26 03:36:05 [2025-04-26 03:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991563', 'tblTempUsageDetail_20' ) start [2025-04-26 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991563', 'tblTempUsageDetail_20' ) end [2025-04-26 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991563', 'tblTempVendorCDR_20' ) start [2025-04-26 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991563', 'tblTempVendorCDR_20' ) end [2025-04-26 03:36:18] Production.INFO: ProcessCDR(1,14991563,1,1,2) [2025-04-26 03:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991563', 'tblTempUsageDetail_20' ) start [2025-04-26 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991563', 'tblTempUsageDetail_20' ) end [2025-04-26 03:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 03:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 03:36:22] Production.INFO: ==3788== Releasing lock... [2025-04-26 03:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 03:36:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-26 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 00:37:05 [end_date_ymd] => 2025-04-26 03:37:05 [RateCDR] => 1 ) [2025-04-26 03:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 00:37:05' and `end` < '2025-04-26 03:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 03:37:18] Production.INFO: count ==622 [2025-04-26 03:37:18] Production.ERROR: pbx CDR StartTime 2025-04-26 00:37:05 - End Time 2025-04-26 03:37:05 [2025-04-26 03:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991568', 'tblTempUsageDetail_20' ) start [2025-04-26 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991568', 'tblTempUsageDetail_20' ) end [2025-04-26 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991568', 'tblTempVendorCDR_20' ) start [2025-04-26 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991568', 'tblTempVendorCDR_20' ) end [2025-04-26 03:37:18] Production.INFO: ProcessCDR(1,14991568,1,1,2) [2025-04-26 03:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991568', 'tblTempUsageDetail_20' ) start [2025-04-26 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991568', 'tblTempUsageDetail_20' ) end [2025-04-26 03:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 03:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 03:37:21] Production.INFO: ==3866== Releasing lock... [2025-04-26 03:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 03:37:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-26 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 00:38:05 [end_date_ymd] => 2025-04-26 03:38:05 [RateCDR] => 1 ) [2025-04-26 03:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 00:38:05' and `end` < '2025-04-26 03:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 03:38:18] Production.INFO: count ==619 [2025-04-26 03:38:18] Production.ERROR: pbx CDR StartTime 2025-04-26 00:38:05 - End Time 2025-04-26 03:38:05 [2025-04-26 03:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991573', 'tblTempUsageDetail_20' ) start [2025-04-26 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991573', 'tblTempUsageDetail_20' ) end [2025-04-26 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991573', 'tblTempVendorCDR_20' ) start [2025-04-26 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991573', 'tblTempVendorCDR_20' ) end [2025-04-26 03:38:18] Production.INFO: ProcessCDR(1,14991573,1,1,2) [2025-04-26 03:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991573', 'tblTempUsageDetail_20' ) start [2025-04-26 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991573', 'tblTempUsageDetail_20' ) end [2025-04-26 03:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 03:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 03:38:21] Production.INFO: ==3938== Releasing lock... [2025-04-26 03:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 03:38:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-26 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 00:39:05 [end_date_ymd] => 2025-04-26 03:39:05 [RateCDR] => 1 ) [2025-04-26 03:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 00:39:05' and `end` < '2025-04-26 03:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 03:39:18] Production.INFO: count ==618 [2025-04-26 03:39:18] Production.ERROR: pbx CDR StartTime 2025-04-26 00:39:05 - End Time 2025-04-26 03:39:05 [2025-04-26 03:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991578', 'tblTempUsageDetail_20' ) start [2025-04-26 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991578', 'tblTempUsageDetail_20' ) end [2025-04-26 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991578', 'tblTempVendorCDR_20' ) start [2025-04-26 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991578', 'tblTempVendorCDR_20' ) end [2025-04-26 03:39:18] Production.INFO: ProcessCDR(1,14991578,1,1,2) [2025-04-26 03:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991578', 'tblTempUsageDetail_20' ) start [2025-04-26 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991578', 'tblTempUsageDetail_20' ) end [2025-04-26 03:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 03:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 03:39:21] Production.INFO: ==4013== Releasing lock... [2025-04-26 03:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 03:39:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-26 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 00:40:06 [end_date_ymd] => 2025-04-26 03:40:06 [RateCDR] => 1 ) [2025-04-26 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-04-26 00:40:06' and `end` < '2025-04-26 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-04-26 03:40:18] Production.INFO: count ==618 [2025-04-26 03:40:19] Production.ERROR: pbx CDR StartTime 2025-04-26 00:40:06 - End Time 2025-04-26 03:40:06 [2025-04-26 03:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991583', 'tblTempUsageDetail_20' ) start [2025-04-26 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991583', 'tblTempUsageDetail_20' ) end [2025-04-26 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991583', 'tblTempVendorCDR_20' ) start [2025-04-26 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991583', 'tblTempVendorCDR_20' ) end [2025-04-26 03:40:19] Production.INFO: ProcessCDR(1,14991583,1,1,2) [2025-04-26 03:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991583', 'tblTempUsageDetail_20' ) start [2025-04-26 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991583', 'tblTempUsageDetail_20' ) end [2025-04-26 03:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 03:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 03:40:22] Production.INFO: ==4089== Releasing lock... [2025-04-26 03:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 03:40:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-26 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 00:41:05 [end_date_ymd] => 2025-04-26 03:41:05 [RateCDR] => 1 ) [2025-04-26 03:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 00:41:05' and `end` < '2025-04-26 03:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 03:41:18] Production.INFO: count ==620 [2025-04-26 03:41:18] Production.ERROR: pbx CDR StartTime 2025-04-26 00:41:05 - End Time 2025-04-26 03:41:05 [2025-04-26 03:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991589', 'tblTempUsageDetail_20' ) start [2025-04-26 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991589', 'tblTempUsageDetail_20' ) end [2025-04-26 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991589', 'tblTempVendorCDR_20' ) start [2025-04-26 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991589', 'tblTempVendorCDR_20' ) end [2025-04-26 03:41:18] Production.INFO: ProcessCDR(1,14991589,1,1,2) [2025-04-26 03:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991589', 'tblTempUsageDetail_20' ) start [2025-04-26 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991589', 'tblTempUsageDetail_20' ) end [2025-04-26 03:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 03:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 03:41:21] Production.INFO: ==4170== Releasing lock... [2025-04-26 03:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 03:41:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-26 03:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 00:42:05 [end_date_ymd] => 2025-04-26 03:42:05 [RateCDR] => 1 ) [2025-04-26 03:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 00:42:05' and `end` < '2025-04-26 03:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 03:42:18] Production.INFO: count ==618 [2025-04-26 03:42:18] Production.ERROR: pbx CDR StartTime 2025-04-26 00:42:05 - End Time 2025-04-26 03:42:05 [2025-04-26 03:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991594', 'tblTempUsageDetail_20' ) start [2025-04-26 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991594', 'tblTempUsageDetail_20' ) end [2025-04-26 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991594', 'tblTempVendorCDR_20' ) start [2025-04-26 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991594', 'tblTempVendorCDR_20' ) end [2025-04-26 03:42:18] Production.INFO: ProcessCDR(1,14991594,1,1,2) [2025-04-26 03:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991594', 'tblTempUsageDetail_20' ) start [2025-04-26 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991594', 'tblTempUsageDetail_20' ) end [2025-04-26 03:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 03:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 03:42:21] Production.INFO: ==4238== Releasing lock... [2025-04-26 03:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 03:42:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-26 03:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 00:43:05 [end_date_ymd] => 2025-04-26 03:43:05 [RateCDR] => 1 ) [2025-04-26 03:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 00:43:05' and `end` < '2025-04-26 03:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 03:43:18] Production.INFO: count ==617 [2025-04-26 03:43:18] Production.ERROR: pbx CDR StartTime 2025-04-26 00:43:05 - End Time 2025-04-26 03:43:05 [2025-04-26 03:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991599', 'tblTempUsageDetail_20' ) start [2025-04-26 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991599', 'tblTempUsageDetail_20' ) end [2025-04-26 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991599', 'tblTempVendorCDR_20' ) start [2025-04-26 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991599', 'tblTempVendorCDR_20' ) end [2025-04-26 03:43:18] Production.INFO: ProcessCDR(1,14991599,1,1,2) [2025-04-26 03:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991599', 'tblTempUsageDetail_20' ) start [2025-04-26 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991599', 'tblTempUsageDetail_20' ) end [2025-04-26 03:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 03:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 03:43:21] Production.INFO: ==4308== Releasing lock... [2025-04-26 03:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 03:43:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-26 03:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 00:44:06 [end_date_ymd] => 2025-04-26 03:44:06 [RateCDR] => 1 ) [2025-04-26 03:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 00:44:06' and `end` < '2025-04-26 03:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 03:44:19] Production.INFO: count ==617 [2025-04-26 03:44:19] Production.ERROR: pbx CDR StartTime 2025-04-26 00:44:06 - End Time 2025-04-26 03:44:06 [2025-04-26 03:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991604', 'tblTempUsageDetail_20' ) start [2025-04-26 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991604', 'tblTempUsageDetail_20' ) end [2025-04-26 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991604', 'tblTempVendorCDR_20' ) start [2025-04-26 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991604', 'tblTempVendorCDR_20' ) end [2025-04-26 03:44:19] Production.INFO: ProcessCDR(1,14991604,1,1,2) [2025-04-26 03:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991604', 'tblTempUsageDetail_20' ) start [2025-04-26 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991604', 'tblTempUsageDetail_20' ) end [2025-04-26 03:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 03:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 03:44:22] Production.INFO: ==4384== Releasing lock... [2025-04-26 03:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 03:44:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-26 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 00:45:05 [end_date_ymd] => 2025-04-26 03:45:05 [RateCDR] => 1 ) [2025-04-26 03:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 00:45:05' and `end` < '2025-04-26 03:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 03:45:18] Production.INFO: count ==616 [2025-04-26 03:45:18] Production.ERROR: pbx CDR StartTime 2025-04-26 00:45:05 - End Time 2025-04-26 03:45:05 [2025-04-26 03:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991609', 'tblTempUsageDetail_20' ) start [2025-04-26 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991609', 'tblTempUsageDetail_20' ) end [2025-04-26 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991609', 'tblTempVendorCDR_20' ) start [2025-04-26 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991609', 'tblTempVendorCDR_20' ) end [2025-04-26 03:45:18] Production.INFO: ProcessCDR(1,14991609,1,1,2) [2025-04-26 03:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991609', 'tblTempUsageDetail_20' ) start [2025-04-26 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991609', 'tblTempUsageDetail_20' ) end [2025-04-26 03:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 03:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 03:45:21] Production.INFO: ==4455== Releasing lock... [2025-04-26 03:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 03:45:21] Production.INFO: 33 MB #Memory Used# [2025-04-26 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 00:46:05 [end_date_ymd] => 2025-04-26 03:46:05 [RateCDR] => 1 ) [2025-04-26 03:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 00:46:05' and `end` < '2025-04-26 03:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 03:46:18] Production.INFO: count ==611 [2025-04-26 03:46:18] Production.ERROR: pbx CDR StartTime 2025-04-26 00:46:05 - End Time 2025-04-26 03:46:05 [2025-04-26 03:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991614', 'tblTempUsageDetail_20' ) start [2025-04-26 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991614', 'tblTempUsageDetail_20' ) end [2025-04-26 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991614', 'tblTempVendorCDR_20' ) start [2025-04-26 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991614', 'tblTempVendorCDR_20' ) end [2025-04-26 03:46:18] Production.INFO: ProcessCDR(1,14991614,1,1,2) [2025-04-26 03:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991614', 'tblTempUsageDetail_20' ) start [2025-04-26 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991614', 'tblTempUsageDetail_20' ) end [2025-04-26 03:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 03:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 03:46:22] Production.INFO: ==4530== Releasing lock... [2025-04-26 03:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 03:46:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-26 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 00:47:05 [end_date_ymd] => 2025-04-26 03:47:05 [RateCDR] => 1 ) [2025-04-26 03:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 00:47:05' and `end` < '2025-04-26 03:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 03:47:18] Production.INFO: count ==608 [2025-04-26 03:47:18] Production.ERROR: pbx CDR StartTime 2025-04-26 00:47:05 - End Time 2025-04-26 03:47:05 [2025-04-26 03:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991619', 'tblTempUsageDetail_20' ) start [2025-04-26 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991619', 'tblTempUsageDetail_20' ) end [2025-04-26 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991619', 'tblTempVendorCDR_20' ) start [2025-04-26 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991619', 'tblTempVendorCDR_20' ) end [2025-04-26 03:47:18] Production.INFO: ProcessCDR(1,14991619,1,1,2) [2025-04-26 03:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991619', 'tblTempUsageDetail_20' ) start [2025-04-26 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991619', 'tblTempUsageDetail_20' ) end [2025-04-26 03:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 03:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 03:47:21] Production.INFO: ==4609== Releasing lock... [2025-04-26 03:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 03:47:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-26 03:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 00:48:06 [end_date_ymd] => 2025-04-26 03:48:06 [RateCDR] => 1 ) [2025-04-26 03:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 00:48:06' and `end` < '2025-04-26 03:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 03:48:18] Production.INFO: count ==605 [2025-04-26 03:48:18] Production.ERROR: pbx CDR StartTime 2025-04-26 00:48:06 - End Time 2025-04-26 03:48:06 [2025-04-26 03:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991624', 'tblTempUsageDetail_20' ) start [2025-04-26 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991624', 'tblTempUsageDetail_20' ) end [2025-04-26 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991624', 'tblTempVendorCDR_20' ) start [2025-04-26 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991624', 'tblTempVendorCDR_20' ) end [2025-04-26 03:48:18] Production.INFO: ProcessCDR(1,14991624,1,1,2) [2025-04-26 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991624', 'tblTempUsageDetail_20' ) start [2025-04-26 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991624', 'tblTempUsageDetail_20' ) end [2025-04-26 03:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 03:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 03:48:22] Production.INFO: ==4724== Releasing lock... [2025-04-26 03:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 03:48:22] Production.INFO: 33 MB #Memory Used# [2025-04-26 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 00:49:05 [end_date_ymd] => 2025-04-26 03:49:05 [RateCDR] => 1 ) [2025-04-26 03:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 00:49:05' and `end` < '2025-04-26 03:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 03:49:18] Production.INFO: count ==603 [2025-04-26 03:49:18] Production.ERROR: pbx CDR StartTime 2025-04-26 00:49:05 - End Time 2025-04-26 03:49:05 [2025-04-26 03:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991629', 'tblTempUsageDetail_20' ) start [2025-04-26 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991629', 'tblTempUsageDetail_20' ) end [2025-04-26 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991629', 'tblTempVendorCDR_20' ) start [2025-04-26 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991629', 'tblTempVendorCDR_20' ) end [2025-04-26 03:49:18] Production.INFO: ProcessCDR(1,14991629,1,1,2) [2025-04-26 03:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991629', 'tblTempUsageDetail_20' ) start [2025-04-26 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991629', 'tblTempUsageDetail_20' ) end [2025-04-26 03:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 03:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 03:49:21] Production.INFO: ==4797== Releasing lock... [2025-04-26 03:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 03:49:21] Production.INFO: 33 MB #Memory Used# [2025-04-26 03:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 00:50:05 [end_date_ymd] => 2025-04-26 03:50:05 [RateCDR] => 1 ) [2025-04-26 03:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 00:50:05' and `end` < '2025-04-26 03:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 03:50:17] Production.INFO: count ==598 [2025-04-26 03:50:18] Production.ERROR: pbx CDR StartTime 2025-04-26 00:50:05 - End Time 2025-04-26 03:50:05 [2025-04-26 03:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991630', 'tblTempUsageDetail_20' ) start [2025-04-26 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991630', 'tblTempUsageDetail_20' ) end [2025-04-26 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991630', 'tblTempVendorCDR_20' ) start [2025-04-26 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991630', 'tblTempVendorCDR_20' ) end [2025-04-26 03:50:18] Production.INFO: ProcessCDR(1,14991630,1,1,2) [2025-04-26 03:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991630', 'tblTempUsageDetail_20' ) start [2025-04-26 03:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991630', 'tblTempUsageDetail_20' ) end [2025-04-26 03:50:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 03:50:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 03:50:21] Production.INFO: ==4871== Releasing lock... [2025-04-26 03:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 03:50:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-26 03:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 00:51:04 [end_date_ymd] => 2025-04-26 03:51:04 [RateCDR] => 1 ) [2025-04-26 03:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 00:51:04' and `end` < '2025-04-26 03:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 03:51:17] Production.INFO: count ==557 [2025-04-26 03:51:17] Production.ERROR: pbx CDR StartTime 2025-04-26 00:51:04 - End Time 2025-04-26 03:51:04 [2025-04-26 03:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991640', 'tblTempUsageDetail_20' ) start [2025-04-26 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991640', 'tblTempUsageDetail_20' ) end [2025-04-26 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991640', 'tblTempVendorCDR_20' ) start [2025-04-26 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991640', 'tblTempVendorCDR_20' ) end [2025-04-26 03:51:17] Production.INFO: ProcessCDR(1,14991640,1,1,2) [2025-04-26 03:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991640', 'tblTempUsageDetail_20' ) start [2025-04-26 03:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991640', 'tblTempUsageDetail_20' ) end [2025-04-26 03:51:20] Production.ERROR: pbx prc_insertCDR start [2025-04-26 03:51:20] Production.ERROR: pbx prc_insertCDR end [2025-04-26 03:51:20] Production.INFO: ==4954== Releasing lock... [2025-04-26 03:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 03:51:20] Production.INFO: 33 MB #Memory Used# [2025-04-26 03:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 00:52:05 [end_date_ymd] => 2025-04-26 03:52:05 [RateCDR] => 1 ) [2025-04-26 03:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 00:52:05' and `end` < '2025-04-26 03:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 03:52:18] Production.INFO: count ==551 [2025-04-26 03:52:18] Production.ERROR: pbx CDR StartTime 2025-04-26 00:52:05 - End Time 2025-04-26 03:52:05 [2025-04-26 03:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991645', 'tblTempUsageDetail_20' ) start [2025-04-26 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991645', 'tblTempUsageDetail_20' ) end [2025-04-26 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991645', 'tblTempVendorCDR_20' ) start [2025-04-26 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991645', 'tblTempVendorCDR_20' ) end [2025-04-26 03:52:18] Production.INFO: ProcessCDR(1,14991645,1,1,2) [2025-04-26 03:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991645', 'tblTempUsageDetail_20' ) start [2025-04-26 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991645', 'tblTempUsageDetail_20' ) end [2025-04-26 03:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 03:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 03:52:22] Production.INFO: ==5028== Releasing lock... [2025-04-26 03:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 03:52:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-26 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 00:53:05 [end_date_ymd] => 2025-04-26 03:53:05 [RateCDR] => 1 ) [2025-04-26 03:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 00:53:05' and `end` < '2025-04-26 03:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 03:53:17] Production.INFO: count ==550 [2025-04-26 03:53:18] Production.ERROR: pbx CDR StartTime 2025-04-26 00:53:05 - End Time 2025-04-26 03:53:05 [2025-04-26 03:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991650', 'tblTempUsageDetail_20' ) start [2025-04-26 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991650', 'tblTempUsageDetail_20' ) end [2025-04-26 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991650', 'tblTempVendorCDR_20' ) start [2025-04-26 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991650', 'tblTempVendorCDR_20' ) end [2025-04-26 03:53:18] Production.INFO: ProcessCDR(1,14991650,1,1,2) [2025-04-26 03:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991650', 'tblTempUsageDetail_20' ) start [2025-04-26 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991650', 'tblTempUsageDetail_20' ) end [2025-04-26 03:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 03:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 03:53:22] Production.INFO: ==5099== Releasing lock... [2025-04-26 03:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 03:53:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-26 03:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 00:54:06 [end_date_ymd] => 2025-04-26 03:54:06 [RateCDR] => 1 ) [2025-04-26 03:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 00:54:06' and `end` < '2025-04-26 03:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 03:54:18] Production.INFO: count ==545 [2025-04-26 03:54:19] Production.ERROR: pbx CDR StartTime 2025-04-26 00:54:06 - End Time 2025-04-26 03:54:06 [2025-04-26 03:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991655', 'tblTempUsageDetail_20' ) start [2025-04-26 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991655', 'tblTempUsageDetail_20' ) end [2025-04-26 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991655', 'tblTempVendorCDR_20' ) start [2025-04-26 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991655', 'tblTempVendorCDR_20' ) end [2025-04-26 03:54:19] Production.INFO: ProcessCDR(1,14991655,1,1,2) [2025-04-26 03:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991655', 'tblTempUsageDetail_20' ) start [2025-04-26 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991655', 'tblTempUsageDetail_20' ) end [2025-04-26 03:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 03:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 03:54:22] Production.INFO: ==5173== Releasing lock... [2025-04-26 03:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 03:54:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-26 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 00:55:05 [end_date_ymd] => 2025-04-26 03:55:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 00:55:05' and `end` < '2025-04-26 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-04-26 03:55:18] Production.INFO: count ==545 [2025-04-26 03:55:18] Production.ERROR: pbx CDR StartTime 2025-04-26 00:55:05 - End Time 2025-04-26 03:55:05 [2025-04-26 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991660', 'tblTempUsageDetail_20' ) start [2025-04-26 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991660', 'tblTempUsageDetail_20' ) end [2025-04-26 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991660', 'tblTempVendorCDR_20' ) start [2025-04-26 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991660', 'tblTempVendorCDR_20' ) end [2025-04-26 03:55:18] Production.INFO: ProcessCDR(1,14991660,1,1,2) [2025-04-26 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991660', 'tblTempUsageDetail_20' ) start [2025-04-26 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991660', 'tblTempUsageDetail_20' ) end [2025-04-26 03:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 03:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 03:55:21] Production.INFO: ==5245== Releasing lock... [2025-04-26 03:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 03:55:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-26 03:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 00:56:05 [end_date_ymd] => 2025-04-26 03:56:05 [RateCDR] => 1 ) [2025-04-26 03:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 00:56:05' and `end` < '2025-04-26 03:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 03:56:18] Production.INFO: count ==546 [2025-04-26 03:56:18] Production.ERROR: pbx CDR StartTime 2025-04-26 00:56:05 - End Time 2025-04-26 03:56:05 [2025-04-26 03:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991665', 'tblTempUsageDetail_20' ) start [2025-04-26 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991665', 'tblTempUsageDetail_20' ) end [2025-04-26 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991665', 'tblTempVendorCDR_20' ) start [2025-04-26 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991665', 'tblTempVendorCDR_20' ) end [2025-04-26 03:56:18] Production.INFO: ProcessCDR(1,14991665,1,1,2) [2025-04-26 03:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991665', 'tblTempUsageDetail_20' ) start [2025-04-26 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991665', 'tblTempUsageDetail_20' ) end [2025-04-26 03:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 03:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 03:56:21] Production.INFO: ==5321== Releasing lock... [2025-04-26 03:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 03:56:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-26 03:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 00:57:04 [end_date_ymd] => 2025-04-26 03:57:04 [RateCDR] => 1 ) [2025-04-26 03:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 00:57:04' and `end` < '2025-04-26 03:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 03:57:17] Production.INFO: count ==544 [2025-04-26 03:57:17] Production.ERROR: pbx CDR StartTime 2025-04-26 00:57:04 - End Time 2025-04-26 03:57:04 [2025-04-26 03:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991670', 'tblTempUsageDetail_20' ) start [2025-04-26 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991670', 'tblTempUsageDetail_20' ) end [2025-04-26 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991670', 'tblTempVendorCDR_20' ) start [2025-04-26 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991670', 'tblTempVendorCDR_20' ) end [2025-04-26 03:57:17] Production.INFO: ProcessCDR(1,14991670,1,1,2) [2025-04-26 03:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991670', 'tblTempUsageDetail_20' ) start [2025-04-26 03:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991670', 'tblTempUsageDetail_20' ) end [2025-04-26 03:57:20] Production.ERROR: pbx prc_insertCDR start [2025-04-26 03:57:20] Production.ERROR: pbx prc_insertCDR end [2025-04-26 03:57:20] Production.INFO: ==5391== Releasing lock... [2025-04-26 03:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 03:57:20] Production.INFO: 32.75 MB #Memory Used# [2025-04-26 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 00:58:05 [end_date_ymd] => 2025-04-26 03:58:05 [RateCDR] => 1 ) [2025-04-26 03:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 00:58:05' and `end` < '2025-04-26 03:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 03:58:18] Production.INFO: count ==543 [2025-04-26 03:58:18] Production.ERROR: pbx CDR StartTime 2025-04-26 00:58:05 - End Time 2025-04-26 03:58:05 [2025-04-26 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991675', 'tblTempUsageDetail_20' ) start [2025-04-26 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991675', 'tblTempUsageDetail_20' ) end [2025-04-26 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991675', 'tblTempVendorCDR_20' ) start [2025-04-26 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991675', 'tblTempVendorCDR_20' ) end [2025-04-26 03:58:18] Production.INFO: ProcessCDR(1,14991675,1,1,2) [2025-04-26 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991675', 'tblTempUsageDetail_20' ) start [2025-04-26 03:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991675', 'tblTempUsageDetail_20' ) end [2025-04-26 03:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 03:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 03:58:23] Production.INFO: ==5462== Releasing lock... [2025-04-26 03:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 03:58:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-26 03:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 00:59:05 [end_date_ymd] => 2025-04-26 03:59:05 [RateCDR] => 1 ) [2025-04-26 03:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 00:59:05' and `end` < '2025-04-26 03:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 03:59:18] Production.INFO: count ==541 [2025-04-26 03:59:18] Production.ERROR: pbx CDR StartTime 2025-04-26 00:59:05 - End Time 2025-04-26 03:59:05 [2025-04-26 03:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991680', 'tblTempUsageDetail_20' ) start [2025-04-26 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991680', 'tblTempUsageDetail_20' ) end [2025-04-26 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991680', 'tblTempVendorCDR_20' ) start [2025-04-26 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991680', 'tblTempVendorCDR_20' ) end [2025-04-26 03:59:18] Production.INFO: ProcessCDR(1,14991680,1,1,2) [2025-04-26 03:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 03:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991680', 'tblTempUsageDetail_20' ) start [2025-04-26 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991680', 'tblTempUsageDetail_20' ) end [2025-04-26 03:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 03:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 03:59:22] Production.INFO: ==5533== Releasing lock... [2025-04-26 03:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 03:59:22] Production.INFO: 33 MB #Memory Used# [2025-04-26 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 01:00:06 [end_date_ymd] => 2025-04-26 04:00:06 [RateCDR] => 1 ) [2025-04-26 04:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 01:00:06' and `end` < '2025-04-26 04:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 04:00:18] Production.INFO: count ==532 [2025-04-26 04:00:18] Production.ERROR: pbx CDR StartTime 2025-04-26 01:00:06 - End Time 2025-04-26 04:00:06 [2025-04-26 04:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991686', 'tblTempUsageDetail_20' ) start [2025-04-26 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991686', 'tblTempUsageDetail_20' ) end [2025-04-26 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991686', 'tblTempVendorCDR_20' ) start [2025-04-26 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991686', 'tblTempVendorCDR_20' ) end [2025-04-26 04:00:18] Production.INFO: ProcessCDR(1,14991686,1,1,2) [2025-04-26 04:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991686', 'tblTempUsageDetail_20' ) start [2025-04-26 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991686', 'tblTempUsageDetail_20' ) end [2025-04-26 04:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 04:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 04:00:22] Production.INFO: ==5607== Releasing lock... [2025-04-26 04:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 04:00:22] Production.INFO: 33 MB #Memory Used# [2025-04-26 04:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 01:01:06 [end_date_ymd] => 2025-04-26 04:01:06 [RateCDR] => 1 ) [2025-04-26 04:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 01:01:06' and `end` < '2025-04-26 04:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 04:01:19] Production.INFO: count ==476 [2025-04-26 04:01:19] Production.ERROR: pbx CDR StartTime 2025-04-26 01:01:06 - End Time 2025-04-26 04:01:06 [2025-04-26 04:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991692', 'tblTempUsageDetail_20' ) start [2025-04-26 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991692', 'tblTempUsageDetail_20' ) end [2025-04-26 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991692', 'tblTempVendorCDR_20' ) start [2025-04-26 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991692', 'tblTempVendorCDR_20' ) end [2025-04-26 04:01:19] Production.INFO: ProcessCDR(1,14991692,1,1,2) [2025-04-26 04:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991692', 'tblTempUsageDetail_20' ) start [2025-04-26 04:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991692', 'tblTempUsageDetail_20' ) end [2025-04-26 04:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 04:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 04:01:23] Production.INFO: ==5702== Releasing lock... [2025-04-26 04:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 04:01:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-26 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 01:02:05 [end_date_ymd] => 2025-04-26 04:02:05 [RateCDR] => 1 ) [2025-04-26 04:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 01:02:05' and `end` < '2025-04-26 04:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 04:02:17] Production.INFO: count ==453 [2025-04-26 04:02:17] Production.ERROR: pbx CDR StartTime 2025-04-26 01:02:05 - End Time 2025-04-26 04:02:05 [2025-04-26 04:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991697', 'tblTempUsageDetail_20' ) start [2025-04-26 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991697', 'tblTempUsageDetail_20' ) end [2025-04-26 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991697', 'tblTempVendorCDR_20' ) start [2025-04-26 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991697', 'tblTempVendorCDR_20' ) end [2025-04-26 04:02:17] Production.INFO: ProcessCDR(1,14991697,1,1,2) [2025-04-26 04:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991697', 'tblTempUsageDetail_20' ) start [2025-04-26 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991697', 'tblTempUsageDetail_20' ) end [2025-04-26 04:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 04:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 04:02:21] Production.INFO: ==5777== Releasing lock... [2025-04-26 04:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 04:02:21] Production.INFO: 32 MB #Memory Used# [2025-04-26 04:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 01:03:06 [end_date_ymd] => 2025-04-26 04:03:06 [RateCDR] => 1 ) [2025-04-26 04:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 01:03:06' and `end` < '2025-04-26 04:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 04:03:18] Production.INFO: count ==452 [2025-04-26 04:03:18] Production.ERROR: pbx CDR StartTime 2025-04-26 01:03:06 - End Time 2025-04-26 04:03:06 [2025-04-26 04:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991702', 'tblTempUsageDetail_20' ) start [2025-04-26 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991702', 'tblTempUsageDetail_20' ) end [2025-04-26 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991702', 'tblTempVendorCDR_20' ) start [2025-04-26 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991702', 'tblTempVendorCDR_20' ) end [2025-04-26 04:03:18] Production.INFO: ProcessCDR(1,14991702,1,1,2) [2025-04-26 04:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991702', 'tblTempUsageDetail_20' ) start [2025-04-26 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991702', 'tblTempUsageDetail_20' ) end [2025-04-26 04:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 04:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 04:03:22] Production.INFO: ==5890== Releasing lock... [2025-04-26 04:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 04:03:22] Production.INFO: 32 MB #Memory Used# [2025-04-26 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 01:04:05 [end_date_ymd] => 2025-04-26 04:04:05 [RateCDR] => 1 ) [2025-04-26 04:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 01:04:05' and `end` < '2025-04-26 04:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 04:04:18] Production.INFO: count ==446 [2025-04-26 04:04:18] Production.ERROR: pbx CDR StartTime 2025-04-26 01:04:05 - End Time 2025-04-26 04:04:05 [2025-04-26 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991707', 'tblTempUsageDetail_20' ) start [2025-04-26 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991707', 'tblTempUsageDetail_20' ) end [2025-04-26 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991707', 'tblTempVendorCDR_20' ) start [2025-04-26 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991707', 'tblTempVendorCDR_20' ) end [2025-04-26 04:04:18] Production.INFO: ProcessCDR(1,14991707,1,1,2) [2025-04-26 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991707', 'tblTempUsageDetail_20' ) start [2025-04-26 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991707', 'tblTempUsageDetail_20' ) end [2025-04-26 04:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 04:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 04:04:21] Production.INFO: ==5963== Releasing lock... [2025-04-26 04:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 04:04:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-26 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 01:05:05 [end_date_ymd] => 2025-04-26 04:05:05 [RateCDR] => 1 ) [2025-04-26 04:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 01:05:05' and `end` < '2025-04-26 04:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 04:05:18] Production.INFO: count ==444 [2025-04-26 04:05:18] Production.ERROR: pbx CDR StartTime 2025-04-26 01:05:05 - End Time 2025-04-26 04:05:05 [2025-04-26 04:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991712', 'tblTempUsageDetail_20' ) start [2025-04-26 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991712', 'tblTempUsageDetail_20' ) end [2025-04-26 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991712', 'tblTempVendorCDR_20' ) start [2025-04-26 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991712', 'tblTempVendorCDR_20' ) end [2025-04-26 04:05:18] Production.INFO: ProcessCDR(1,14991712,1,1,2) [2025-04-26 04:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991712', 'tblTempUsageDetail_20' ) start [2025-04-26 04:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991712', 'tblTempUsageDetail_20' ) end [2025-04-26 04:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 04:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 04:05:22] Production.INFO: ==6037== Releasing lock... [2025-04-26 04:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 04:05:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-26 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 01:06:05 [end_date_ymd] => 2025-04-26 04:06:05 [RateCDR] => 1 ) [2025-04-26 04:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 01:06:05' and `end` < '2025-04-26 04:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 04:06:17] Production.INFO: count ==444 [2025-04-26 04:06:18] Production.ERROR: pbx CDR StartTime 2025-04-26 01:06:05 - End Time 2025-04-26 04:06:05 [2025-04-26 04:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991717', 'tblTempUsageDetail_20' ) start [2025-04-26 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991717', 'tblTempUsageDetail_20' ) end [2025-04-26 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991717', 'tblTempVendorCDR_20' ) start [2025-04-26 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991717', 'tblTempVendorCDR_20' ) end [2025-04-26 04:06:18] Production.INFO: ProcessCDR(1,14991717,1,1,2) [2025-04-26 04:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991717', 'tblTempUsageDetail_20' ) start [2025-04-26 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991717', 'tblTempUsageDetail_20' ) end [2025-04-26 04:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 04:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 04:06:21] Production.INFO: ==6117== Releasing lock... [2025-04-26 04:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 04:06:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-26 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 01:07:05 [end_date_ymd] => 2025-04-26 04:07:05 [RateCDR] => 1 ) [2025-04-26 04:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 01:07:05' and `end` < '2025-04-26 04:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 04:07:18] Production.INFO: count ==441 [2025-04-26 04:07:18] Production.ERROR: pbx CDR StartTime 2025-04-26 01:07:05 - End Time 2025-04-26 04:07:05 [2025-04-26 04:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991722', 'tblTempUsageDetail_20' ) start [2025-04-26 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991722', 'tblTempUsageDetail_20' ) end [2025-04-26 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991722', 'tblTempVendorCDR_20' ) start [2025-04-26 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991722', 'tblTempVendorCDR_20' ) end [2025-04-26 04:07:18] Production.INFO: ProcessCDR(1,14991722,1,1,2) [2025-04-26 04:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991722', 'tblTempUsageDetail_20' ) start [2025-04-26 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991722', 'tblTempUsageDetail_20' ) end [2025-04-26 04:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 04:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 04:07:21] Production.INFO: ==6188== Releasing lock... [2025-04-26 04:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 04:07:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-26 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 01:08:05 [end_date_ymd] => 2025-04-26 04:08:05 [RateCDR] => 1 ) [2025-04-26 04:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 01:08:05' and `end` < '2025-04-26 04:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 04:08:17] Production.INFO: count ==451 [2025-04-26 04:08:17] Production.ERROR: pbx CDR StartTime 2025-04-26 01:08:05 - End Time 2025-04-26 04:08:05 [2025-04-26 04:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991727', 'tblTempUsageDetail_20' ) start [2025-04-26 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991727', 'tblTempUsageDetail_20' ) end [2025-04-26 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991727', 'tblTempVendorCDR_20' ) start [2025-04-26 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991727', 'tblTempVendorCDR_20' ) end [2025-04-26 04:08:17] Production.INFO: ProcessCDR(1,14991727,1,1,2) [2025-04-26 04:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991727', 'tblTempUsageDetail_20' ) start [2025-04-26 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991727', 'tblTempUsageDetail_20' ) end [2025-04-26 04:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 04:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 04:08:21] Production.INFO: ==6261== Releasing lock... [2025-04-26 04:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 04:08:21] Production.INFO: 32 MB #Memory Used# [2025-04-26 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 01:09:05 [end_date_ymd] => 2025-04-26 04:09:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 01:09:05' and `end` < '2025-04-26 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-04-26 04:09:18] Production.INFO: count ==449 [2025-04-26 04:09:18] Production.ERROR: pbx CDR StartTime 2025-04-26 01:09:05 - End Time 2025-04-26 04:09:05 [2025-04-26 04:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991732', 'tblTempUsageDetail_20' ) start [2025-04-26 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991732', 'tblTempUsageDetail_20' ) end [2025-04-26 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991732', 'tblTempVendorCDR_20' ) start [2025-04-26 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991732', 'tblTempVendorCDR_20' ) end [2025-04-26 04:09:18] Production.INFO: ProcessCDR(1,14991732,1,1,2) [2025-04-26 04:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991732', 'tblTempUsageDetail_20' ) start [2025-04-26 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991732', 'tblTempUsageDetail_20' ) end [2025-04-26 04:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 04:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 04:09:21] Production.INFO: ==6334== Releasing lock... [2025-04-26 04:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 04:09:21] Production.INFO: 32 MB #Memory Used# [2025-04-26 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 01:10:06 [end_date_ymd] => 2025-04-26 04:10:06 [RateCDR] => 1 ) [2025-04-26 04:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 01:10:06' and `end` < '2025-04-26 04:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 04:10:18] Production.INFO: count ==438 [2025-04-26 04:10:19] Production.ERROR: pbx CDR StartTime 2025-04-26 01:10:06 - End Time 2025-04-26 04:10:06 [2025-04-26 04:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991737', 'tblTempUsageDetail_20' ) start [2025-04-26 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991737', 'tblTempUsageDetail_20' ) end [2025-04-26 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991737', 'tblTempVendorCDR_20' ) start [2025-04-26 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991737', 'tblTempVendorCDR_20' ) end [2025-04-26 04:10:19] Production.INFO: ProcessCDR(1,14991737,1,1,2) [2025-04-26 04:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991737', 'tblTempUsageDetail_20' ) start [2025-04-26 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991737', 'tblTempUsageDetail_20' ) end [2025-04-26 04:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 04:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 04:10:22] Production.INFO: ==6409== Releasing lock... [2025-04-26 04:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 04:10:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-26 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 01:11:05 [end_date_ymd] => 2025-04-26 04:11:05 [RateCDR] => 1 ) [2025-04-26 04:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 01:11:05' and `end` < '2025-04-26 04:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 04:11:18] Production.INFO: count ==429 [2025-04-26 04:11:18] Production.ERROR: pbx CDR StartTime 2025-04-26 01:11:05 - End Time 2025-04-26 04:11:05 [2025-04-26 04:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991743', 'tblTempUsageDetail_20' ) start [2025-04-26 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991743', 'tblTempUsageDetail_20' ) end [2025-04-26 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991743', 'tblTempVendorCDR_20' ) start [2025-04-26 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991743', 'tblTempVendorCDR_20' ) end [2025-04-26 04:11:18] Production.INFO: ProcessCDR(1,14991743,1,1,2) [2025-04-26 04:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991743', 'tblTempUsageDetail_20' ) start [2025-04-26 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991743', 'tblTempUsageDetail_20' ) end [2025-04-26 04:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 04:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 04:11:21] Production.INFO: ==6483== Releasing lock... [2025-04-26 04:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 04:11:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-26 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 01:12:05 [end_date_ymd] => 2025-04-26 04:12:05 [RateCDR] => 1 ) [2025-04-26 04:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 01:12:05' and `end` < '2025-04-26 04:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 04:12:18] Production.INFO: count ==428 [2025-04-26 04:12:18] Production.ERROR: pbx CDR StartTime 2025-04-26 01:12:05 - End Time 2025-04-26 04:12:05 [2025-04-26 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991748', 'tblTempUsageDetail_20' ) start [2025-04-26 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991748', 'tblTempUsageDetail_20' ) end [2025-04-26 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991748', 'tblTempVendorCDR_20' ) start [2025-04-26 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991748', 'tblTempVendorCDR_20' ) end [2025-04-26 04:12:18] Production.INFO: ProcessCDR(1,14991748,1,1,2) [2025-04-26 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991748', 'tblTempUsageDetail_20' ) start [2025-04-26 04:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991748', 'tblTempUsageDetail_20' ) end [2025-04-26 04:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 04:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 04:12:22] Production.INFO: ==6557== Releasing lock... [2025-04-26 04:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 04:12:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-26 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 01:13:05 [end_date_ymd] => 2025-04-26 04:13:05 [RateCDR] => 1 ) [2025-04-26 04:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 01:13:05' and `end` < '2025-04-26 04:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 04:13:18] Production.INFO: count ==427 [2025-04-26 04:13:18] Production.ERROR: pbx CDR StartTime 2025-04-26 01:13:05 - End Time 2025-04-26 04:13:05 [2025-04-26 04:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991753', 'tblTempUsageDetail_20' ) start [2025-04-26 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991753', 'tblTempUsageDetail_20' ) end [2025-04-26 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991753', 'tblTempVendorCDR_20' ) start [2025-04-26 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991753', 'tblTempVendorCDR_20' ) end [2025-04-26 04:13:18] Production.INFO: ProcessCDR(1,14991753,1,1,2) [2025-04-26 04:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991753', 'tblTempUsageDetail_20' ) start [2025-04-26 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991753', 'tblTempUsageDetail_20' ) end [2025-04-26 04:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 04:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 04:13:21] Production.INFO: ==6627== Releasing lock... [2025-04-26 04:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 04:13:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-26 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 01:14:05 [end_date_ymd] => 2025-04-26 04:14:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 01:14:05' and `end` < '2025-04-26 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-04-26 04:14:18] Production.INFO: count ==427 [2025-04-26 04:14:18] Production.ERROR: pbx CDR StartTime 2025-04-26 01:14:05 - End Time 2025-04-26 04:14:05 [2025-04-26 04:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991758', 'tblTempUsageDetail_20' ) start [2025-04-26 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991758', 'tblTempUsageDetail_20' ) end [2025-04-26 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991758', 'tblTempVendorCDR_20' ) start [2025-04-26 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991758', 'tblTempVendorCDR_20' ) end [2025-04-26 04:14:18] Production.INFO: ProcessCDR(1,14991758,1,1,2) [2025-04-26 04:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991758', 'tblTempUsageDetail_20' ) start [2025-04-26 04:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991758', 'tblTempUsageDetail_20' ) end [2025-04-26 04:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 04:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 04:14:22] Production.INFO: ==6702== Releasing lock... [2025-04-26 04:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 04:14:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-26 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 01:15:05 [end_date_ymd] => 2025-04-26 04:15:05 [RateCDR] => 1 ) [2025-04-26 04:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 01:15:05' and `end` < '2025-04-26 04:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 04:15:17] Production.INFO: count ==430 [2025-04-26 04:15:18] Production.ERROR: pbx CDR StartTime 2025-04-26 01:15:05 - End Time 2025-04-26 04:15:05 [2025-04-26 04:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991763', 'tblTempUsageDetail_20' ) start [2025-04-26 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991763', 'tblTempUsageDetail_20' ) end [2025-04-26 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991763', 'tblTempVendorCDR_20' ) start [2025-04-26 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991763', 'tblTempVendorCDR_20' ) end [2025-04-26 04:15:18] Production.INFO: ProcessCDR(1,14991763,1,1,2) [2025-04-26 04:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991763', 'tblTempUsageDetail_20' ) start [2025-04-26 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991763', 'tblTempUsageDetail_20' ) end [2025-04-26 04:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 04:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 04:15:21] Production.INFO: ==6774== Releasing lock... [2025-04-26 04:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 04:15:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-26 04:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 01:16:06 [end_date_ymd] => 2025-04-26 04:16:06 [RateCDR] => 1 ) [2025-04-26 04:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 01:16:06' and `end` < '2025-04-26 04:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 04:16:18] Production.INFO: count ==428 [2025-04-26 04:16:18] Production.ERROR: pbx CDR StartTime 2025-04-26 01:16:06 - End Time 2025-04-26 04:16:06 [2025-04-26 04:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991768', 'tblTempUsageDetail_20' ) start [2025-04-26 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991768', 'tblTempUsageDetail_20' ) end [2025-04-26 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991768', 'tblTempVendorCDR_20' ) start [2025-04-26 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991768', 'tblTempVendorCDR_20' ) end [2025-04-26 04:16:18] Production.INFO: ProcessCDR(1,14991768,1,1,2) [2025-04-26 04:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991768', 'tblTempUsageDetail_20' ) start [2025-04-26 04:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991768', 'tblTempUsageDetail_20' ) end [2025-04-26 04:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 04:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 04:16:22] Production.INFO: ==6845== Releasing lock... [2025-04-26 04:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 04:16:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-26 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 01:17:05 [end_date_ymd] => 2025-04-26 04:17:05 [RateCDR] => 1 ) [2025-04-26 04:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 01:17:05' and `end` < '2025-04-26 04:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 04:17:18] Production.INFO: count ==430 [2025-04-26 04:17:18] Production.ERROR: pbx CDR StartTime 2025-04-26 01:17:05 - End Time 2025-04-26 04:17:05 [2025-04-26 04:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991773', 'tblTempUsageDetail_20' ) start [2025-04-26 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991773', 'tblTempUsageDetail_20' ) end [2025-04-26 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991773', 'tblTempVendorCDR_20' ) start [2025-04-26 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991773', 'tblTempVendorCDR_20' ) end [2025-04-26 04:17:18] Production.INFO: ProcessCDR(1,14991773,1,1,2) [2025-04-26 04:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991773', 'tblTempUsageDetail_20' ) start [2025-04-26 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991773', 'tblTempUsageDetail_20' ) end [2025-04-26 04:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 04:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 04:17:21] Production.INFO: ==6919== Releasing lock... [2025-04-26 04:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 04:17:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-26 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 01:18:05 [end_date_ymd] => 2025-04-26 04:18:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 01:18:05' and `end` < '2025-04-26 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-04-26 04:18:18] Production.INFO: count ==430 [2025-04-26 04:18:18] Production.ERROR: pbx CDR StartTime 2025-04-26 01:18:05 - End Time 2025-04-26 04:18:05 [2025-04-26 04:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991778', 'tblTempUsageDetail_20' ) start [2025-04-26 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991778', 'tblTempUsageDetail_20' ) end [2025-04-26 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991778', 'tblTempVendorCDR_20' ) start [2025-04-26 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991778', 'tblTempVendorCDR_20' ) end [2025-04-26 04:18:18] Production.INFO: ProcessCDR(1,14991778,1,1,2) [2025-04-26 04:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991778', 'tblTempUsageDetail_20' ) start [2025-04-26 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991778', 'tblTempUsageDetail_20' ) end [2025-04-26 04:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 04:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 04:18:21] Production.INFO: ==6994== Releasing lock... [2025-04-26 04:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 04:18:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-26 04:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 01:19:04 [end_date_ymd] => 2025-04-26 04:19:04 [RateCDR] => 1 ) [2025-04-26 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-04-26 01:19:04' and `end` < '2025-04-26 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-04-26 04:19:17] Production.INFO: count ==431 [2025-04-26 04:19:17] Production.ERROR: pbx CDR StartTime 2025-04-26 01:19:04 - End Time 2025-04-26 04:19:04 [2025-04-26 04:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991783', 'tblTempUsageDetail_20' ) start [2025-04-26 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991783', 'tblTempUsageDetail_20' ) end [2025-04-26 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991783', 'tblTempVendorCDR_20' ) start [2025-04-26 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991783', 'tblTempVendorCDR_20' ) end [2025-04-26 04:19:17] Production.INFO: ProcessCDR(1,14991783,1,1,2) [2025-04-26 04:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991783', 'tblTempUsageDetail_20' ) start [2025-04-26 04:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991783', 'tblTempUsageDetail_20' ) end [2025-04-26 04:19:20] Production.ERROR: pbx prc_insertCDR start [2025-04-26 04:19:20] Production.ERROR: pbx prc_insertCDR end [2025-04-26 04:19:20] Production.INFO: ==7112== Releasing lock... [2025-04-26 04:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 04:19:20] Production.INFO: 31.5 MB #Memory Used# [2025-04-26 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 01:20:06 [end_date_ymd] => 2025-04-26 04:20:06 [RateCDR] => 1 ) [2025-04-26 04:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 01:20:06' and `end` < '2025-04-26 04:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 04:20:18] Production.INFO: count ==429 [2025-04-26 04:20:18] Production.ERROR: pbx CDR StartTime 2025-04-26 01:20:06 - End Time 2025-04-26 04:20:06 [2025-04-26 04:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991789', 'tblTempUsageDetail_20' ) start [2025-04-26 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991789', 'tblTempUsageDetail_20' ) end [2025-04-26 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991789', 'tblTempVendorCDR_20' ) start [2025-04-26 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991789', 'tblTempVendorCDR_20' ) end [2025-04-26 04:20:18] Production.INFO: ProcessCDR(1,14991789,1,1,2) [2025-04-26 04:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991789', 'tblTempUsageDetail_20' ) start [2025-04-26 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991789', 'tblTempUsageDetail_20' ) end [2025-04-26 04:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 04:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 04:20:22] Production.INFO: ==7186== Releasing lock... [2025-04-26 04:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 04:20:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-26 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 01:21:05 [end_date_ymd] => 2025-04-26 04:21:05 [RateCDR] => 1 ) [2025-04-26 04:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 01:21:05' and `end` < '2025-04-26 04:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 04:21:18] Production.INFO: count ==427 [2025-04-26 04:21:18] Production.ERROR: pbx CDR StartTime 2025-04-26 01:21:05 - End Time 2025-04-26 04:21:05 [2025-04-26 04:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991794', 'tblTempUsageDetail_20' ) start [2025-04-26 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991794', 'tblTempUsageDetail_20' ) end [2025-04-26 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991794', 'tblTempVendorCDR_20' ) start [2025-04-26 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991794', 'tblTempVendorCDR_20' ) end [2025-04-26 04:21:18] Production.INFO: ProcessCDR(1,14991794,1,1,2) [2025-04-26 04:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991794', 'tblTempUsageDetail_20' ) start [2025-04-26 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991794', 'tblTempUsageDetail_20' ) end [2025-04-26 04:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 04:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 04:21:21] Production.INFO: ==7263== Releasing lock... [2025-04-26 04:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 04:21:21] Production.INFO: 32 MB #Memory Used# [2025-04-26 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 01:22:05 [end_date_ymd] => 2025-04-26 04:22:05 [RateCDR] => 1 ) [2025-04-26 04:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 01:22:05' and `end` < '2025-04-26 04:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 04:22:18] Production.INFO: count ==426 [2025-04-26 04:22:18] Production.ERROR: pbx CDR StartTime 2025-04-26 01:22:05 - End Time 2025-04-26 04:22:05 [2025-04-26 04:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991799', 'tblTempUsageDetail_20' ) start [2025-04-26 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991799', 'tblTempUsageDetail_20' ) end [2025-04-26 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991799', 'tblTempVendorCDR_20' ) start [2025-04-26 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991799', 'tblTempVendorCDR_20' ) end [2025-04-26 04:22:18] Production.INFO: ProcessCDR(1,14991799,1,1,2) [2025-04-26 04:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991799', 'tblTempUsageDetail_20' ) start [2025-04-26 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991799', 'tblTempUsageDetail_20' ) end [2025-04-26 04:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 04:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 04:22:21] Production.INFO: ==7336== Releasing lock... [2025-04-26 04:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 04:22:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-26 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 01:23:05 [end_date_ymd] => 2025-04-26 04:23:05 [RateCDR] => 1 ) [2025-04-26 04:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 01:23:05' and `end` < '2025-04-26 04:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 04:23:17] Production.INFO: count ==429 [2025-04-26 04:23:18] Production.ERROR: pbx CDR StartTime 2025-04-26 01:23:05 - End Time 2025-04-26 04:23:05 [2025-04-26 04:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991804', 'tblTempUsageDetail_20' ) start [2025-04-26 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991804', 'tblTempUsageDetail_20' ) end [2025-04-26 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991804', 'tblTempVendorCDR_20' ) start [2025-04-26 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991804', 'tblTempVendorCDR_20' ) end [2025-04-26 04:23:18] Production.INFO: ProcessCDR(1,14991804,1,1,2) [2025-04-26 04:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991804', 'tblTempUsageDetail_20' ) start [2025-04-26 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991804', 'tblTempUsageDetail_20' ) end [2025-04-26 04:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 04:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 04:23:21] Production.INFO: ==7412== Releasing lock... [2025-04-26 04:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 04:23:21] Production.INFO: 32 MB #Memory Used# [2025-04-26 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 01:24:05 [end_date_ymd] => 2025-04-26 04:24:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 01:24:05' and `end` < '2025-04-26 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-04-26 04:24:17] Production.INFO: count ==429 [2025-04-26 04:24:17] Production.ERROR: pbx CDR StartTime 2025-04-26 01:24:05 - End Time 2025-04-26 04:24:05 [2025-04-26 04:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991809', 'tblTempUsageDetail_20' ) start [2025-04-26 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991809', 'tblTempUsageDetail_20' ) end [2025-04-26 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991809', 'tblTempVendorCDR_20' ) start [2025-04-26 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991809', 'tblTempVendorCDR_20' ) end [2025-04-26 04:24:17] Production.INFO: ProcessCDR(1,14991809,1,1,2) [2025-04-26 04:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991809', 'tblTempUsageDetail_20' ) start [2025-04-26 04:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991809', 'tblTempUsageDetail_20' ) end [2025-04-26 04:24:20] Production.ERROR: pbx prc_insertCDR start [2025-04-26 04:24:20] Production.ERROR: pbx prc_insertCDR end [2025-04-26 04:24:20] Production.INFO: ==7482== Releasing lock... [2025-04-26 04:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 04:24:20] Production.INFO: 32 MB #Memory Used# [2025-04-26 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 01:25:05 [end_date_ymd] => 2025-04-26 04:25:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 01:25:05' and `end` < '2025-04-26 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-04-26 04:25:17] Production.INFO: count ==428 [2025-04-26 04:25:17] Production.ERROR: pbx CDR StartTime 2025-04-26 01:25:05 - End Time 2025-04-26 04:25:05 [2025-04-26 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991814', 'tblTempUsageDetail_20' ) start [2025-04-26 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991814', 'tblTempUsageDetail_20' ) end [2025-04-26 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991814', 'tblTempVendorCDR_20' ) start [2025-04-26 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991814', 'tblTempVendorCDR_20' ) end [2025-04-26 04:25:17] Production.INFO: ProcessCDR(1,14991814,1,1,2) [2025-04-26 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991814', 'tblTempUsageDetail_20' ) start [2025-04-26 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991814', 'tblTempUsageDetail_20' ) end [2025-04-26 04:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 04:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 04:25:21] Production.INFO: ==7556== Releasing lock... [2025-04-26 04:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 04:25:21] Production.INFO: 32 MB #Memory Used# [2025-04-26 04:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 01:26:04 [end_date_ymd] => 2025-04-26 04:26:04 [RateCDR] => 1 ) [2025-04-26 04:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 01:26:04' and `end` < '2025-04-26 04:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 04:26:17] Production.INFO: count ==426 [2025-04-26 04:26:17] Production.ERROR: pbx CDR StartTime 2025-04-26 01:26:04 - End Time 2025-04-26 04:26:04 [2025-04-26 04:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991819', 'tblTempUsageDetail_20' ) start [2025-04-26 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991819', 'tblTempUsageDetail_20' ) end [2025-04-26 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991819', 'tblTempVendorCDR_20' ) start [2025-04-26 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991819', 'tblTempVendorCDR_20' ) end [2025-04-26 04:26:17] Production.INFO: ProcessCDR(1,14991819,1,1,2) [2025-04-26 04:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991819', 'tblTempUsageDetail_20' ) start [2025-04-26 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991819', 'tblTempUsageDetail_20' ) end [2025-04-26 04:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 04:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 04:26:21] Production.INFO: ==7629== Releasing lock... [2025-04-26 04:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 04:26:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-26 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 01:27:05 [end_date_ymd] => 2025-04-26 04:27:05 [RateCDR] => 1 ) [2025-04-26 04:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 01:27:05' and `end` < '2025-04-26 04:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 04:27:17] Production.INFO: count ==430 [2025-04-26 04:27:17] Production.ERROR: pbx CDR StartTime 2025-04-26 01:27:05 - End Time 2025-04-26 04:27:05 [2025-04-26 04:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991824', 'tblTempUsageDetail_20' ) start [2025-04-26 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991824', 'tblTempUsageDetail_20' ) end [2025-04-26 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991824', 'tblTempVendorCDR_20' ) start [2025-04-26 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991824', 'tblTempVendorCDR_20' ) end [2025-04-26 04:27:17] Production.INFO: ProcessCDR(1,14991824,1,1,2) [2025-04-26 04:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991824', 'tblTempUsageDetail_20' ) start [2025-04-26 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991824', 'tblTempUsageDetail_20' ) end [2025-04-26 04:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 04:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 04:27:21] Production.INFO: ==7702== Releasing lock... [2025-04-26 04:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 04:27:21] Production.INFO: 32 MB #Memory Used# [2025-04-26 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 01:28:05 [end_date_ymd] => 2025-04-26 04:28:05 [RateCDR] => 1 ) [2025-04-26 04:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 01:28:05' and `end` < '2025-04-26 04:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 04:28:18] Production.INFO: count ==431 [2025-04-26 04:28:18] Production.ERROR: pbx CDR StartTime 2025-04-26 01:28:05 - End Time 2025-04-26 04:28:05 [2025-04-26 04:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991829', 'tblTempUsageDetail_20' ) start [2025-04-26 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991829', 'tblTempUsageDetail_20' ) end [2025-04-26 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991829', 'tblTempVendorCDR_20' ) start [2025-04-26 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991829', 'tblTempVendorCDR_20' ) end [2025-04-26 04:28:18] Production.INFO: ProcessCDR(1,14991829,1,1,2) [2025-04-26 04:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991829', 'tblTempUsageDetail_20' ) start [2025-04-26 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991829', 'tblTempUsageDetail_20' ) end [2025-04-26 04:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 04:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 04:28:21] Production.INFO: ==7778== Releasing lock... [2025-04-26 04:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 04:28:21] Production.INFO: 32 MB #Memory Used# [2025-04-26 04:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 01:29:04 [end_date_ymd] => 2025-04-26 04:29:04 [RateCDR] => 1 ) [2025-04-26 04:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 01:29:04' and `end` < '2025-04-26 04:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 04:29:17] Production.INFO: count ==430 [2025-04-26 04:29:17] Production.ERROR: pbx CDR StartTime 2025-04-26 01:29:04 - End Time 2025-04-26 04:29:04 [2025-04-26 04:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991834', 'tblTempUsageDetail_20' ) start [2025-04-26 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991834', 'tblTempUsageDetail_20' ) end [2025-04-26 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991834', 'tblTempVendorCDR_20' ) start [2025-04-26 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991834', 'tblTempVendorCDR_20' ) end [2025-04-26 04:29:17] Production.INFO: ProcessCDR(1,14991834,1,1,2) [2025-04-26 04:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991834', 'tblTempUsageDetail_20' ) start [2025-04-26 04:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991834', 'tblTempUsageDetail_20' ) end [2025-04-26 04:29:20] Production.ERROR: pbx prc_insertCDR start [2025-04-26 04:29:20] Production.ERROR: pbx prc_insertCDR end [2025-04-26 04:29:20] Production.INFO: ==7853== Releasing lock... [2025-04-26 04:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 04:29:20] Production.INFO: 32.25 MB #Memory Used# [2025-04-26 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 01:30:06 [end_date_ymd] => 2025-04-26 04:30:06 [RateCDR] => 1 ) [2025-04-26 04:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 01:30:06' and `end` < '2025-04-26 04:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 04:30:19] Production.INFO: count ==420 [2025-04-26 04:30:19] Production.ERROR: pbx CDR StartTime 2025-04-26 01:30:06 - End Time 2025-04-26 04:30:06 [2025-04-26 04:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991841', 'tblTempUsageDetail_20' ) start [2025-04-26 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991841', 'tblTempUsageDetail_20' ) end [2025-04-26 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991841', 'tblTempVendorCDR_20' ) start [2025-04-26 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991841', 'tblTempVendorCDR_20' ) end [2025-04-26 04:30:19] Production.INFO: ProcessCDR(1,14991841,1,1,2) [2025-04-26 04:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991841', 'tblTempUsageDetail_20' ) start [2025-04-26 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991841', 'tblTempUsageDetail_20' ) end [2025-04-26 04:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 04:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 04:30:22] Production.INFO: ==7928== Releasing lock... [2025-04-26 04:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 04:30:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-26 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 01:31:05 [end_date_ymd] => 2025-04-26 04:31:05 [RateCDR] => 1 ) [2025-04-26 04:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 01:31:05' and `end` < '2025-04-26 04:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 04:31:17] Production.INFO: count ==409 [2025-04-26 04:31:17] Production.ERROR: pbx CDR StartTime 2025-04-26 01:31:05 - End Time 2025-04-26 04:31:05 [2025-04-26 04:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991846', 'tblTempUsageDetail_20' ) start [2025-04-26 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991846', 'tblTempUsageDetail_20' ) end [2025-04-26 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991846', 'tblTempVendorCDR_20' ) start [2025-04-26 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991846', 'tblTempVendorCDR_20' ) end [2025-04-26 04:31:17] Production.INFO: ProcessCDR(1,14991846,1,1,2) [2025-04-26 04:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991846', 'tblTempUsageDetail_20' ) start [2025-04-26 04:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991846', 'tblTempUsageDetail_20' ) end [2025-04-26 04:31:20] Production.ERROR: pbx prc_insertCDR start [2025-04-26 04:31:20] Production.ERROR: pbx prc_insertCDR end [2025-04-26 04:31:20] Production.INFO: ==8024== Releasing lock... [2025-04-26 04:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 04:31:20] Production.INFO: 31.5 MB #Memory Used# [2025-04-26 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 01:32:05 [end_date_ymd] => 2025-04-26 04:32:05 [RateCDR] => 1 ) [2025-04-26 04:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 01:32:05' and `end` < '2025-04-26 04:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 04:32:18] Production.INFO: count ==406 [2025-04-26 04:32:18] Production.ERROR: pbx CDR StartTime 2025-04-26 01:32:05 - End Time 2025-04-26 04:32:05 [2025-04-26 04:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991851', 'tblTempUsageDetail_20' ) start [2025-04-26 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991851', 'tblTempUsageDetail_20' ) end [2025-04-26 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991851', 'tblTempVendorCDR_20' ) start [2025-04-26 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991851', 'tblTempVendorCDR_20' ) end [2025-04-26 04:32:18] Production.INFO: ProcessCDR(1,14991851,1,1,2) [2025-04-26 04:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991851', 'tblTempUsageDetail_20' ) start [2025-04-26 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991851', 'tblTempUsageDetail_20' ) end [2025-04-26 04:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 04:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 04:32:21] Production.INFO: ==8109== Releasing lock... [2025-04-26 04:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 04:32:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-26 04:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 01:33:04 [end_date_ymd] => 2025-04-26 04:33:04 [RateCDR] => 1 ) [2025-04-26 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-04-26 01:33:04' and `end` < '2025-04-26 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-04-26 04:33:17] Production.INFO: count ==405 [2025-04-26 04:33:17] Production.ERROR: pbx CDR StartTime 2025-04-26 01:33:04 - End Time 2025-04-26 04:33:04 [2025-04-26 04:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991856', 'tblTempUsageDetail_20' ) start [2025-04-26 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991856', 'tblTempUsageDetail_20' ) end [2025-04-26 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991856', 'tblTempVendorCDR_20' ) start [2025-04-26 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991856', 'tblTempVendorCDR_20' ) end [2025-04-26 04:33:17] Production.INFO: ProcessCDR(1,14991856,1,1,2) [2025-04-26 04:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991856', 'tblTempUsageDetail_20' ) start [2025-04-26 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991856', 'tblTempUsageDetail_20' ) end [2025-04-26 04:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 04:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 04:33:21] Production.INFO: ==8182== Releasing lock... [2025-04-26 04:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 04:33:21] Production.INFO: 32 MB #Memory Used# [2025-04-26 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 01:34:05 [end_date_ymd] => 2025-04-26 04:34:05 [RateCDR] => 1 ) [2025-04-26 04:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 01:34:05' and `end` < '2025-04-26 04:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 04:34:18] Production.INFO: count ==404 [2025-04-26 04:34:18] Production.ERROR: pbx CDR StartTime 2025-04-26 01:34:05 - End Time 2025-04-26 04:34:05 [2025-04-26 04:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991861', 'tblTempUsageDetail_20' ) start [2025-04-26 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991861', 'tblTempUsageDetail_20' ) end [2025-04-26 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991861', 'tblTempVendorCDR_20' ) start [2025-04-26 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991861', 'tblTempVendorCDR_20' ) end [2025-04-26 04:34:18] Production.INFO: ProcessCDR(1,14991861,1,1,2) [2025-04-26 04:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991861', 'tblTempUsageDetail_20' ) start [2025-04-26 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991861', 'tblTempUsageDetail_20' ) end [2025-04-26 04:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 04:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 04:34:21] Production.INFO: ==8301== Releasing lock... [2025-04-26 04:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 04:34:21] Production.INFO: 32 MB #Memory Used# [2025-04-26 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 01:35:05 [end_date_ymd] => 2025-04-26 04:35:05 [RateCDR] => 1 ) [2025-04-26 04:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 01:35:05' and `end` < '2025-04-26 04:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 04:35:18] Production.INFO: count ==404 [2025-04-26 04:35:18] Production.ERROR: pbx CDR StartTime 2025-04-26 01:35:05 - End Time 2025-04-26 04:35:05 [2025-04-26 04:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991866', 'tblTempUsageDetail_20' ) start [2025-04-26 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991866', 'tblTempUsageDetail_20' ) end [2025-04-26 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991866', 'tblTempVendorCDR_20' ) start [2025-04-26 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991866', 'tblTempVendorCDR_20' ) end [2025-04-26 04:35:18] Production.INFO: ProcessCDR(1,14991866,1,1,2) [2025-04-26 04:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991866', 'tblTempUsageDetail_20' ) start [2025-04-26 04:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991866', 'tblTempUsageDetail_20' ) end [2025-04-26 04:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 04:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 04:35:22] Production.INFO: ==8373== Releasing lock... [2025-04-26 04:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 04:35:22] Production.INFO: 32 MB #Memory Used# [2025-04-26 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 01:36:05 [end_date_ymd] => 2025-04-26 04:36:05 [RateCDR] => 1 ) [2025-04-26 04:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 01:36:05' and `end` < '2025-04-26 04:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 04:36:18] Production.INFO: count ==401 [2025-04-26 04:36:18] Production.ERROR: pbx CDR StartTime 2025-04-26 01:36:05 - End Time 2025-04-26 04:36:05 [2025-04-26 04:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991871', 'tblTempUsageDetail_20' ) start [2025-04-26 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991871', 'tblTempUsageDetail_20' ) end [2025-04-26 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991871', 'tblTempVendorCDR_20' ) start [2025-04-26 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991871', 'tblTempVendorCDR_20' ) end [2025-04-26 04:36:18] Production.INFO: ProcessCDR(1,14991871,1,1,2) [2025-04-26 04:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991871', 'tblTempUsageDetail_20' ) start [2025-04-26 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991871', 'tblTempUsageDetail_20' ) end [2025-04-26 04:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 04:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 04:36:21] Production.INFO: ==8446== Releasing lock... [2025-04-26 04:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 04:36:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-26 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 01:37:05 [end_date_ymd] => 2025-04-26 04:37:05 [RateCDR] => 1 ) [2025-04-26 04:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 01:37:05' and `end` < '2025-04-26 04:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 04:37:18] Production.INFO: count ==399 [2025-04-26 04:37:18] Production.ERROR: pbx CDR StartTime 2025-04-26 01:37:05 - End Time 2025-04-26 04:37:05 [2025-04-26 04:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991876', 'tblTempUsageDetail_20' ) start [2025-04-26 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991876', 'tblTempUsageDetail_20' ) end [2025-04-26 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991876', 'tblTempVendorCDR_20' ) start [2025-04-26 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991876', 'tblTempVendorCDR_20' ) end [2025-04-26 04:37:18] Production.INFO: ProcessCDR(1,14991876,1,1,2) [2025-04-26 04:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991876', 'tblTempUsageDetail_20' ) start [2025-04-26 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991876', 'tblTempUsageDetail_20' ) end [2025-04-26 04:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 04:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 04:37:21] Production.INFO: ==8519== Releasing lock... [2025-04-26 04:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 04:37:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-26 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 01:38:05 [end_date_ymd] => 2025-04-26 04:38:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 01:38:05' and `end` < '2025-04-26 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-04-26 04:38:17] Production.INFO: count ==396 [2025-04-26 04:38:17] Production.ERROR: pbx CDR StartTime 2025-04-26 01:38:05 - End Time 2025-04-26 04:38:05 [2025-04-26 04:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991881', 'tblTempUsageDetail_20' ) start [2025-04-26 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991881', 'tblTempUsageDetail_20' ) end [2025-04-26 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991881', 'tblTempVendorCDR_20' ) start [2025-04-26 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991881', 'tblTempVendorCDR_20' ) end [2025-04-26 04:38:17] Production.INFO: ProcessCDR(1,14991881,1,1,2) [2025-04-26 04:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991881', 'tblTempUsageDetail_20' ) start [2025-04-26 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991881', 'tblTempUsageDetail_20' ) end [2025-04-26 04:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 04:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 04:38:21] Production.INFO: ==8592== Releasing lock... [2025-04-26 04:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 04:38:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-26 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 01:39:05 [end_date_ymd] => 2025-04-26 04:39:05 [RateCDR] => 1 ) [2025-04-26 04:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 01:39:05' and `end` < '2025-04-26 04:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 04:39:18] Production.INFO: count ==391 [2025-04-26 04:39:18] Production.ERROR: pbx CDR StartTime 2025-04-26 01:39:05 - End Time 2025-04-26 04:39:05 [2025-04-26 04:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991886', 'tblTempUsageDetail_20' ) start [2025-04-26 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991886', 'tblTempUsageDetail_20' ) end [2025-04-26 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991886', 'tblTempVendorCDR_20' ) start [2025-04-26 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991886', 'tblTempVendorCDR_20' ) end [2025-04-26 04:39:18] Production.INFO: ProcessCDR(1,14991886,1,1,2) [2025-04-26 04:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991886', 'tblTempUsageDetail_20' ) start [2025-04-26 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991886', 'tblTempUsageDetail_20' ) end [2025-04-26 04:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 04:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 04:39:21] Production.INFO: ==8669== Releasing lock... [2025-04-26 04:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 04:39:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-26 04:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 01:40:05 [end_date_ymd] => 2025-04-26 04:40:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 01:40:05' and `end` < '2025-04-26 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-04-26 04:40:18] Production.INFO: count ==540 [2025-04-26 04:40:18] Production.ERROR: pbx CDR StartTime 2025-04-26 01:40:05 - End Time 2025-04-26 04:40:05 [2025-04-26 04:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991892', 'tblTempUsageDetail_20' ) start [2025-04-26 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991892', 'tblTempUsageDetail_20' ) end [2025-04-26 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991892', 'tblTempVendorCDR_20' ) start [2025-04-26 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991892', 'tblTempVendorCDR_20' ) end [2025-04-26 04:40:18] Production.INFO: ProcessCDR(1,14991892,1,1,2) [2025-04-26 04:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991892', 'tblTempUsageDetail_20' ) start [2025-04-26 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991892', 'tblTempUsageDetail_20' ) end [2025-04-26 04:40:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 04:40:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 04:40:21] Production.INFO: ==8745== Releasing lock... [2025-04-26 04:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 04:40:21] Production.INFO: 33 MB #Memory Used# [2025-04-26 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 01:41:05 [end_date_ymd] => 2025-04-26 04:41:05 [RateCDR] => 1 ) [2025-04-26 04:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 01:41:05' and `end` < '2025-04-26 04:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 04:41:18] Production.INFO: count ==527 [2025-04-26 04:41:18] Production.ERROR: pbx CDR StartTime 2025-04-26 01:41:05 - End Time 2025-04-26 04:41:05 [2025-04-26 04:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991897', 'tblTempUsageDetail_20' ) start [2025-04-26 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991897', 'tblTempUsageDetail_20' ) end [2025-04-26 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991897', 'tblTempVendorCDR_20' ) start [2025-04-26 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991897', 'tblTempVendorCDR_20' ) end [2025-04-26 04:41:18] Production.INFO: ProcessCDR(1,14991897,1,1,2) [2025-04-26 04:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991897', 'tblTempUsageDetail_20' ) start [2025-04-26 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991897', 'tblTempUsageDetail_20' ) end [2025-04-26 04:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 04:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 04:41:21] Production.INFO: ==8817== Releasing lock... [2025-04-26 04:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 04:41:21] Production.INFO: 33 MB #Memory Used# [2025-04-26 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 01:42:05 [end_date_ymd] => 2025-04-26 04:42:05 [RateCDR] => 1 ) [2025-04-26 04:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 01:42:05' and `end` < '2025-04-26 04:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 04:42:18] Production.INFO: count ==527 [2025-04-26 04:42:18] Production.ERROR: pbx CDR StartTime 2025-04-26 01:42:05 - End Time 2025-04-26 04:42:05 [2025-04-26 04:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991902', 'tblTempUsageDetail_20' ) start [2025-04-26 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991902', 'tblTempUsageDetail_20' ) end [2025-04-26 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991902', 'tblTempVendorCDR_20' ) start [2025-04-26 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991902', 'tblTempVendorCDR_20' ) end [2025-04-26 04:42:18] Production.INFO: ProcessCDR(1,14991902,1,1,2) [2025-04-26 04:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991902', 'tblTempUsageDetail_20' ) start [2025-04-26 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991902', 'tblTempUsageDetail_20' ) end [2025-04-26 04:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 04:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 04:42:22] Production.INFO: ==8895== Releasing lock... [2025-04-26 04:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 04:42:22] Production.INFO: 33 MB #Memory Used# [2025-04-26 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 01:43:05 [end_date_ymd] => 2025-04-26 04:43:05 [RateCDR] => 1 ) [2025-04-26 04:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 01:43:05' and `end` < '2025-04-26 04:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 04:43:17] Production.INFO: count ==527 [2025-04-26 04:43:17] Production.ERROR: pbx CDR StartTime 2025-04-26 01:43:05 - End Time 2025-04-26 04:43:05 [2025-04-26 04:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991907', 'tblTempUsageDetail_20' ) start [2025-04-26 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991907', 'tblTempUsageDetail_20' ) end [2025-04-26 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991907', 'tblTempVendorCDR_20' ) start [2025-04-26 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991907', 'tblTempVendorCDR_20' ) end [2025-04-26 04:43:17] Production.INFO: ProcessCDR(1,14991907,1,1,2) [2025-04-26 04:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991907', 'tblTempUsageDetail_20' ) start [2025-04-26 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991907', 'tblTempUsageDetail_20' ) end [2025-04-26 04:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 04:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 04:43:21] Production.INFO: ==8965== Releasing lock... [2025-04-26 04:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 04:43:21] Production.INFO: 33 MB #Memory Used# [2025-04-26 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 01:44:05 [end_date_ymd] => 2025-04-26 04:44:05 [RateCDR] => 1 ) [2025-04-26 04:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 01:44:05' and `end` < '2025-04-26 04:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 04:44:18] Production.INFO: count ==721 [2025-04-26 04:44:18] Production.ERROR: pbx CDR StartTime 2025-04-26 01:44:05 - End Time 2025-04-26 04:44:05 [2025-04-26 04:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991912', 'tblTempUsageDetail_20' ) start [2025-04-26 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991912', 'tblTempUsageDetail_20' ) end [2025-04-26 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991912', 'tblTempVendorCDR_20' ) start [2025-04-26 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991912', 'tblTempVendorCDR_20' ) end [2025-04-26 04:44:18] Production.INFO: ProcessCDR(1,14991912,1,1,2) [2025-04-26 04:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991912', 'tblTempUsageDetail_20' ) start [2025-04-26 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991912', 'tblTempUsageDetail_20' ) end [2025-04-26 04:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 04:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 04:44:22] Production.INFO: ==9041== Releasing lock... [2025-04-26 04:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 04:44:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-26 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 01:45:05 [end_date_ymd] => 2025-04-26 04:45:05 [RateCDR] => 1 ) [2025-04-26 04:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 01:45:05' and `end` < '2025-04-26 04:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 04:45:17] Production.INFO: count ==720 [2025-04-26 04:45:18] Production.ERROR: pbx CDR StartTime 2025-04-26 01:45:05 - End Time 2025-04-26 04:45:05 [2025-04-26 04:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991917', 'tblTempUsageDetail_20' ) start [2025-04-26 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991917', 'tblTempUsageDetail_20' ) end [2025-04-26 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991917', 'tblTempVendorCDR_20' ) start [2025-04-26 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991917', 'tblTempVendorCDR_20' ) end [2025-04-26 04:45:18] Production.INFO: ProcessCDR(1,14991917,1,1,2) [2025-04-26 04:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991917', 'tblTempUsageDetail_20' ) start [2025-04-26 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991917', 'tblTempUsageDetail_20' ) end [2025-04-26 04:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 04:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 04:45:21] Production.INFO: ==9120== Releasing lock... [2025-04-26 04:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 04:45:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-26 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 01:46:05 [end_date_ymd] => 2025-04-26 04:46:05 [RateCDR] => 1 ) [2025-04-26 04:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 01:46:05' and `end` < '2025-04-26 04:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 04:46:18] Production.INFO: count ==716 [2025-04-26 04:46:19] Production.ERROR: pbx CDR StartTime 2025-04-26 01:46:05 - End Time 2025-04-26 04:46:05 [2025-04-26 04:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 04:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991922', 'tblTempUsageDetail_20' ) start [2025-04-26 04:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991922', 'tblTempUsageDetail_20' ) end [2025-04-26 04:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991922', 'tblTempVendorCDR_20' ) start [2025-04-26 04:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991922', 'tblTempVendorCDR_20' ) end [2025-04-26 04:46:19] Production.INFO: ProcessCDR(1,14991922,1,1,2) [2025-04-26 04:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991922', 'tblTempUsageDetail_20' ) start [2025-04-26 04:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991922', 'tblTempUsageDetail_20' ) end [2025-04-26 04:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 04:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 04:46:22] Production.INFO: ==9195== Releasing lock... [2025-04-26 04:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 04:46:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-26 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 01:47:05 [end_date_ymd] => 2025-04-26 04:47:05 [RateCDR] => 1 ) [2025-04-26 04:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 01:47:05' and `end` < '2025-04-26 04:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 04:47:21] Production.INFO: count ==712 [2025-04-26 04:47:21] Production.ERROR: pbx CDR StartTime 2025-04-26 01:47:05 - End Time 2025-04-26 04:47:05 [2025-04-26 04:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 04:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991927', 'tblTempUsageDetail_20' ) start [2025-04-26 04:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991927', 'tblTempUsageDetail_20' ) end [2025-04-26 04:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991927', 'tblTempVendorCDR_20' ) start [2025-04-26 04:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991927', 'tblTempVendorCDR_20' ) end [2025-04-26 04:47:21] Production.INFO: ProcessCDR(1,14991927,1,1,2) [2025-04-26 04:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991927', 'tblTempUsageDetail_20' ) start [2025-04-26 04:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991927', 'tblTempUsageDetail_20' ) end [2025-04-26 04:47:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 04:47:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 04:47:24] Production.INFO: ==9265== Releasing lock... [2025-04-26 04:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 04:47:24] Production.INFO: 34 MB #Memory Used# [2025-04-26 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 01:48:05 [end_date_ymd] => 2025-04-26 04:48:05 [RateCDR] => 1 ) [2025-04-26 04:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 01:48:05' and `end` < '2025-04-26 04:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 04:48:18] Production.INFO: count ==710 [2025-04-26 04:48:18] Production.ERROR: pbx CDR StartTime 2025-04-26 01:48:05 - End Time 2025-04-26 04:48:05 [2025-04-26 04:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991932', 'tblTempUsageDetail_20' ) start [2025-04-26 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991932', 'tblTempUsageDetail_20' ) end [2025-04-26 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991932', 'tblTempVendorCDR_20' ) start [2025-04-26 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991932', 'tblTempVendorCDR_20' ) end [2025-04-26 04:48:18] Production.INFO: ProcessCDR(1,14991932,1,1,2) [2025-04-26 04:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991932', 'tblTempUsageDetail_20' ) start [2025-04-26 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991932', 'tblTempUsageDetail_20' ) end [2025-04-26 04:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 04:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 04:48:22] Production.INFO: ==9345== Releasing lock... [2025-04-26 04:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 04:48:22] Production.INFO: 34 MB #Memory Used# [2025-04-26 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 01:49:05 [end_date_ymd] => 2025-04-26 04:49:05 [RateCDR] => 1 ) [2025-04-26 04:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 01:49:05' and `end` < '2025-04-26 04:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 04:49:19] Production.INFO: count ==708 [2025-04-26 04:49:19] Production.ERROR: pbx CDR StartTime 2025-04-26 01:49:05 - End Time 2025-04-26 04:49:05 [2025-04-26 04:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991937', 'tblTempUsageDetail_20' ) start [2025-04-26 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991937', 'tblTempUsageDetail_20' ) end [2025-04-26 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991937', 'tblTempVendorCDR_20' ) start [2025-04-26 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991937', 'tblTempVendorCDR_20' ) end [2025-04-26 04:49:19] Production.INFO: ProcessCDR(1,14991937,1,1,2) [2025-04-26 04:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991937', 'tblTempUsageDetail_20' ) start [2025-04-26 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991937', 'tblTempUsageDetail_20' ) end [2025-04-26 04:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 04:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 04:49:22] Production.INFO: ==9420== Releasing lock... [2025-04-26 04:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 04:49:22] Production.INFO: 34 MB #Memory Used# [2025-04-26 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 01:50:06 [end_date_ymd] => 2025-04-26 04:50:06 [RateCDR] => 1 ) [2025-04-26 04:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 01:50:06' and `end` < '2025-04-26 04:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 04:50:19] Production.INFO: count ==700 [2025-04-26 04:50:19] Production.ERROR: pbx CDR StartTime 2025-04-26 01:50:06 - End Time 2025-04-26 04:50:06 [2025-04-26 04:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991943', 'tblTempUsageDetail_20' ) start [2025-04-26 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991943', 'tblTempUsageDetail_20' ) end [2025-04-26 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991943', 'tblTempVendorCDR_20' ) start [2025-04-26 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991943', 'tblTempVendorCDR_20' ) end [2025-04-26 04:50:19] Production.INFO: ProcessCDR(1,14991943,1,1,2) [2025-04-26 04:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991943', 'tblTempUsageDetail_20' ) start [2025-04-26 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991943', 'tblTempUsageDetail_20' ) end [2025-04-26 04:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 04:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 04:50:22] Production.INFO: ==9541== Releasing lock... [2025-04-26 04:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 04:50:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-26 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 01:51:05 [end_date_ymd] => 2025-04-26 04:51:05 [RateCDR] => 1 ) [2025-04-26 04:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 01:51:05' and `end` < '2025-04-26 04:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 04:51:18] Production.INFO: count ==691 [2025-04-26 04:51:19] Production.ERROR: pbx CDR StartTime 2025-04-26 01:51:05 - End Time 2025-04-26 04:51:05 [2025-04-26 04:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991948', 'tblTempUsageDetail_20' ) start [2025-04-26 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991948', 'tblTempUsageDetail_20' ) end [2025-04-26 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991948', 'tblTempVendorCDR_20' ) start [2025-04-26 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991948', 'tblTempVendorCDR_20' ) end [2025-04-26 04:51:19] Production.INFO: ProcessCDR(1,14991948,1,1,2) [2025-04-26 04:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991948', 'tblTempUsageDetail_20' ) start [2025-04-26 04:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991948', 'tblTempUsageDetail_20' ) end [2025-04-26 04:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 04:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 04:51:24] Production.INFO: ==9617== Releasing lock... [2025-04-26 04:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 04:51:24] Production.INFO: 33.5 MB #Memory Used# [2025-04-26 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 01:52:05 [end_date_ymd] => 2025-04-26 04:52:05 [RateCDR] => 1 ) [2025-04-26 04:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 01:52:05' and `end` < '2025-04-26 04:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 04:52:18] Production.INFO: count ==688 [2025-04-26 04:52:19] Production.ERROR: pbx CDR StartTime 2025-04-26 01:52:05 - End Time 2025-04-26 04:52:05 [2025-04-26 04:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991953', 'tblTempUsageDetail_20' ) start [2025-04-26 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991953', 'tblTempUsageDetail_20' ) end [2025-04-26 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991953', 'tblTempVendorCDR_20' ) start [2025-04-26 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991953', 'tblTempVendorCDR_20' ) end [2025-04-26 04:52:19] Production.INFO: ProcessCDR(1,14991953,1,1,2) [2025-04-26 04:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991953', 'tblTempUsageDetail_20' ) start [2025-04-26 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991953', 'tblTempUsageDetail_20' ) end [2025-04-26 04:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 04:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 04:52:22] Production.INFO: ==9688== Releasing lock... [2025-04-26 04:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 04:52:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-26 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 01:53:05 [end_date_ymd] => 2025-04-26 04:53:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 01:53:05' and `end` < '2025-04-26 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-04-26 04:53:18] Production.INFO: count ==687 [2025-04-26 04:53:18] Production.ERROR: pbx CDR StartTime 2025-04-26 01:53:05 - End Time 2025-04-26 04:53:05 [2025-04-26 04:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991958', 'tblTempUsageDetail_20' ) start [2025-04-26 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991958', 'tblTempUsageDetail_20' ) end [2025-04-26 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991958', 'tblTempVendorCDR_20' ) start [2025-04-26 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991958', 'tblTempVendorCDR_20' ) end [2025-04-26 04:53:18] Production.INFO: ProcessCDR(1,14991958,1,1,2) [2025-04-26 04:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991958', 'tblTempUsageDetail_20' ) start [2025-04-26 04:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991958', 'tblTempUsageDetail_20' ) end [2025-04-26 04:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 04:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 04:53:22] Production.INFO: ==9760== Releasing lock... [2025-04-26 04:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 04:53:22] Production.INFO: 33 MB #Memory Used# [2025-04-26 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 01:54:05 [end_date_ymd] => 2025-04-26 04:54:05 [RateCDR] => 1 ) [2025-04-26 04:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 01:54:05' and `end` < '2025-04-26 04:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 04:54:19] Production.INFO: count ==822 [2025-04-26 04:54:19] Production.ERROR: pbx CDR StartTime 2025-04-26 01:54:05 - End Time 2025-04-26 04:54:05 [2025-04-26 04:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991963', 'tblTempUsageDetail_20' ) start [2025-04-26 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991963', 'tblTempUsageDetail_20' ) end [2025-04-26 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991963', 'tblTempVendorCDR_20' ) start [2025-04-26 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991963', 'tblTempVendorCDR_20' ) end [2025-04-26 04:54:19] Production.INFO: ProcessCDR(1,14991963,1,1,2) [2025-04-26 04:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991963', 'tblTempUsageDetail_20' ) start [2025-04-26 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991963', 'tblTempUsageDetail_20' ) end [2025-04-26 04:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 04:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 04:54:22] Production.INFO: ==9841== Releasing lock... [2025-04-26 04:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 04:54:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-26 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 01:55:05 [end_date_ymd] => 2025-04-26 04:55:05 [RateCDR] => 1 ) [2025-04-26 04:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 01:55:05' and `end` < '2025-04-26 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-04-26 04:55:18] Production.INFO: count ==828 [2025-04-26 04:55:18] Production.ERROR: pbx CDR StartTime 2025-04-26 01:55:05 - End Time 2025-04-26 04:55:05 [2025-04-26 04:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991968', 'tblTempUsageDetail_20' ) start [2025-04-26 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991968', 'tblTempUsageDetail_20' ) end [2025-04-26 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991968', 'tblTempVendorCDR_20' ) start [2025-04-26 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991968', 'tblTempVendorCDR_20' ) end [2025-04-26 04:55:18] Production.INFO: ProcessCDR(1,14991968,1,1,2) [2025-04-26 04:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991968', 'tblTempUsageDetail_20' ) start [2025-04-26 04:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991968', 'tblTempUsageDetail_20' ) end [2025-04-26 04:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 04:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 04:55:21] Production.INFO: ==9913== Releasing lock... [2025-04-26 04:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 04:55:21] Production.INFO: 35.25 MB #Memory Used# [2025-04-26 04:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 01:56:06 [end_date_ymd] => 2025-04-26 04:56:06 [RateCDR] => 1 ) [2025-04-26 04:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 01:56:06' and `end` < '2025-04-26 04:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 04:56:19] Production.INFO: count ==863 [2025-04-26 04:56:19] Production.ERROR: pbx CDR StartTime 2025-04-26 01:56:06 - End Time 2025-04-26 04:56:06 [2025-04-26 04:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991973', 'tblTempUsageDetail_20' ) start [2025-04-26 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991973', 'tblTempUsageDetail_20' ) end [2025-04-26 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991973', 'tblTempVendorCDR_20' ) start [2025-04-26 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991973', 'tblTempVendorCDR_20' ) end [2025-04-26 04:56:19] Production.INFO: ProcessCDR(1,14991973,1,1,2) [2025-04-26 04:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991973', 'tblTempUsageDetail_20' ) start [2025-04-26 04:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991973', 'tblTempUsageDetail_20' ) end [2025-04-26 04:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 04:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 04:56:23] Production.INFO: ==9991== Releasing lock... [2025-04-26 04:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 04:56:23] Production.INFO: 35.25 MB #Memory Used# [2025-04-26 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 01:57:05 [end_date_ymd] => 2025-04-26 04:57:05 [RateCDR] => 1 ) [2025-04-26 04:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 01:57:05' and `end` < '2025-04-26 04:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 04:57:18] Production.INFO: count ==861 [2025-04-26 04:57:18] Production.ERROR: pbx CDR StartTime 2025-04-26 01:57:05 - End Time 2025-04-26 04:57:05 [2025-04-26 04:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991978', 'tblTempUsageDetail_20' ) start [2025-04-26 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991978', 'tblTempUsageDetail_20' ) end [2025-04-26 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991978', 'tblTempVendorCDR_20' ) start [2025-04-26 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991978', 'tblTempVendorCDR_20' ) end [2025-04-26 04:57:18] Production.INFO: ProcessCDR(1,14991978,1,1,2) [2025-04-26 04:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991978', 'tblTempUsageDetail_20' ) start [2025-04-26 04:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991978', 'tblTempUsageDetail_20' ) end [2025-04-26 04:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 04:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 04:57:22] Production.INFO: ==10063== Releasing lock... [2025-04-26 04:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 04:57:22] Production.INFO: 35 MB #Memory Used# [2025-04-26 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 01:58:05 [end_date_ymd] => 2025-04-26 04:58:05 [RateCDR] => 1 ) [2025-04-26 04:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 01:58:05' and `end` < '2025-04-26 04:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 04:58:18] Production.INFO: count ==859 [2025-04-26 04:58:18] Production.ERROR: pbx CDR StartTime 2025-04-26 01:58:05 - End Time 2025-04-26 04:58:05 [2025-04-26 04:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991983', 'tblTempUsageDetail_20' ) start [2025-04-26 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991983', 'tblTempUsageDetail_20' ) end [2025-04-26 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991983', 'tblTempVendorCDR_20' ) start [2025-04-26 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991983', 'tblTempVendorCDR_20' ) end [2025-04-26 04:58:19] Production.INFO: ProcessCDR(1,14991983,1,1,2) [2025-04-26 04:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991983', 'tblTempUsageDetail_20' ) start [2025-04-26 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991983', 'tblTempUsageDetail_20' ) end [2025-04-26 04:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 04:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 04:58:22] Production.INFO: ==10135== Releasing lock... [2025-04-26 04:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 04:58:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-26 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 01:59:05 [end_date_ymd] => 2025-04-26 04:59:05 [RateCDR] => 1 ) [2025-04-26 04:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 01:59:05' and `end` < '2025-04-26 04:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 04:59:18] Production.INFO: count ==859 [2025-04-26 04:59:18] Production.ERROR: pbx CDR StartTime 2025-04-26 01:59:05 - End Time 2025-04-26 04:59:05 [2025-04-26 04:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991988', 'tblTempUsageDetail_20' ) start [2025-04-26 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991988', 'tblTempUsageDetail_20' ) end [2025-04-26 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991988', 'tblTempVendorCDR_20' ) start [2025-04-26 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991988', 'tblTempVendorCDR_20' ) end [2025-04-26 04:59:18] Production.INFO: ProcessCDR(1,14991988,1,1,2) [2025-04-26 04:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 04:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991988', 'tblTempUsageDetail_20' ) start [2025-04-26 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991988', 'tblTempUsageDetail_20' ) end [2025-04-26 04:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 04:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 04:59:22] Production.INFO: ==10212== Releasing lock... [2025-04-26 04:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 04:59:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-26 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 02:00:06 [end_date_ymd] => 2025-04-26 05:00:06 [RateCDR] => 1 ) [2025-04-26 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-04-26 02:00:06' and `end` < '2025-04-26 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-04-26 05:00:20] Production.INFO: count ==1024 [2025-04-26 05:00:20] Production.ERROR: pbx CDR StartTime 2025-04-26 02:00:06 - End Time 2025-04-26 05:00:06 [2025-04-26 05:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991994', 'tblTempUsageDetail_20' ) start [2025-04-26 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991994', 'tblTempUsageDetail_20' ) end [2025-04-26 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991994', 'tblTempVendorCDR_20' ) start [2025-04-26 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991994', 'tblTempVendorCDR_20' ) end [2025-04-26 05:00:20] Production.INFO: ProcessCDR(1,14991994,1,1,2) [2025-04-26 05:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991994', 'tblTempUsageDetail_20' ) start [2025-04-26 05:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991994', 'tblTempUsageDetail_20' ) end [2025-04-26 05:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 05:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 05:00:24] Production.INFO: ==10288== Releasing lock... [2025-04-26 05:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 05:00:24] Production.INFO: 36.75 MB #Memory Used# [2025-04-26 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 02:01:05 [end_date_ymd] => 2025-04-26 05:01:05 [RateCDR] => 1 ) [2025-04-26 05:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 02:01:05' and `end` < '2025-04-26 05:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 05:01:18] Production.INFO: count ==1010 [2025-04-26 05:01:18] Production.ERROR: pbx CDR StartTime 2025-04-26 02:01:05 - End Time 2025-04-26 05:01:05 [2025-04-26 05:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991999', 'tblTempUsageDetail_20' ) start [2025-04-26 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14991999', 'tblTempUsageDetail_20' ) end [2025-04-26 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991999', 'tblTempVendorCDR_20' ) start [2025-04-26 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14991999', 'tblTempVendorCDR_20' ) end [2025-04-26 05:01:18] Production.INFO: ProcessCDR(1,14991999,1,1,2) [2025-04-26 05:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14991999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14991999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14991999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14991999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991999', 'tblTempUsageDetail_20' ) start [2025-04-26 05:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14991999', 'tblTempUsageDetail_20' ) end [2025-04-26 05:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 05:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 05:01:23] Production.INFO: ==10374== Releasing lock... [2025-04-26 05:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 05:01:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-26 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 02:02:05 [end_date_ymd] => 2025-04-26 05:02:05 [RateCDR] => 1 ) [2025-04-26 05:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 02:02:05' and `end` < '2025-04-26 05:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 05:02:18] Production.INFO: count ==1007 [2025-04-26 05:02:19] Production.ERROR: pbx CDR StartTime 2025-04-26 02:02:05 - End Time 2025-04-26 05:02:05 [2025-04-26 05:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992004', 'tblTempUsageDetail_20' ) start [2025-04-26 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992004', 'tblTempUsageDetail_20' ) end [2025-04-26 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992004', 'tblTempVendorCDR_20' ) start [2025-04-26 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992004', 'tblTempVendorCDR_20' ) end [2025-04-26 05:02:19] Production.INFO: ProcessCDR(1,14992004,1,1,2) [2025-04-26 05:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992004', 'tblTempUsageDetail_20' ) start [2025-04-26 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992004', 'tblTempUsageDetail_20' ) end [2025-04-26 05:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 05:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 05:02:22] Production.INFO: ==10448== Releasing lock... [2025-04-26 05:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 05:02:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-26 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 02:03:05 [end_date_ymd] => 2025-04-26 05:03:05 [RateCDR] => 1 ) [2025-04-26 05:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 02:03:05' and `end` < '2025-04-26 05:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 05:03:18] Production.INFO: count ==1004 [2025-04-26 05:03:19] Production.ERROR: pbx CDR StartTime 2025-04-26 02:03:05 - End Time 2025-04-26 05:03:05 [2025-04-26 05:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992009', 'tblTempUsageDetail_20' ) start [2025-04-26 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992009', 'tblTempUsageDetail_20' ) end [2025-04-26 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992009', 'tblTempVendorCDR_20' ) start [2025-04-26 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992009', 'tblTempVendorCDR_20' ) end [2025-04-26 05:03:19] Production.INFO: ProcessCDR(1,14992009,1,1,2) [2025-04-26 05:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992009', 'tblTempUsageDetail_20' ) start [2025-04-26 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992009', 'tblTempUsageDetail_20' ) end [2025-04-26 05:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 05:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 05:03:22] Production.INFO: ==10521== Releasing lock... [2025-04-26 05:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 05:03:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-26 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 02:04:05 [end_date_ymd] => 2025-04-26 05:04:05 [RateCDR] => 1 ) [2025-04-26 05:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 02:04:05' and `end` < '2025-04-26 05:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 05:04:18] Production.INFO: count ==999 [2025-04-26 05:04:19] Production.ERROR: pbx CDR StartTime 2025-04-26 02:04:05 - End Time 2025-04-26 05:04:05 [2025-04-26 05:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992014', 'tblTempUsageDetail_20' ) start [2025-04-26 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992014', 'tblTempUsageDetail_20' ) end [2025-04-26 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992014', 'tblTempVendorCDR_20' ) start [2025-04-26 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992014', 'tblTempVendorCDR_20' ) end [2025-04-26 05:04:19] Production.INFO: ProcessCDR(1,14992014,1,1,2) [2025-04-26 05:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992014', 'tblTempUsageDetail_20' ) start [2025-04-26 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992014', 'tblTempUsageDetail_20' ) end [2025-04-26 05:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 05:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 05:04:22] Production.INFO: ==10596== Releasing lock... [2025-04-26 05:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 05:04:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-26 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 02:05:05 [end_date_ymd] => 2025-04-26 05:05:05 [RateCDR] => 1 ) [2025-04-26 05:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 02:05:05' and `end` < '2025-04-26 05:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 05:05:18] Production.INFO: count ==1001 [2025-04-26 05:05:19] Production.ERROR: pbx CDR StartTime 2025-04-26 02:05:05 - End Time 2025-04-26 05:05:05 [2025-04-26 05:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992019', 'tblTempUsageDetail_20' ) start [2025-04-26 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992019', 'tblTempUsageDetail_20' ) end [2025-04-26 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992019', 'tblTempVendorCDR_20' ) start [2025-04-26 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992019', 'tblTempVendorCDR_20' ) end [2025-04-26 05:05:19] Production.INFO: ProcessCDR(1,14992019,1,1,2) [2025-04-26 05:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992019', 'tblTempUsageDetail_20' ) start [2025-04-26 05:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992019', 'tblTempUsageDetail_20' ) end [2025-04-26 05:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 05:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 05:05:22] Production.INFO: ==10713== Releasing lock... [2025-04-26 05:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 05:05:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-26 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 02:06:05 [end_date_ymd] => 2025-04-26 05:06:05 [RateCDR] => 1 ) [2025-04-26 05:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 02:06:05' and `end` < '2025-04-26 05:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 05:06:18] Production.INFO: count ==1000 [2025-04-26 05:06:18] Production.ERROR: pbx CDR StartTime 2025-04-26 02:06:05 - End Time 2025-04-26 05:06:05 [2025-04-26 05:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992024', 'tblTempUsageDetail_20' ) start [2025-04-26 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992024', 'tblTempUsageDetail_20' ) end [2025-04-26 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992024', 'tblTempVendorCDR_20' ) start [2025-04-26 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992024', 'tblTempVendorCDR_20' ) end [2025-04-26 05:06:18] Production.INFO: ProcessCDR(1,14992024,1,1,2) [2025-04-26 05:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992024', 'tblTempUsageDetail_20' ) start [2025-04-26 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992024', 'tblTempUsageDetail_20' ) end [2025-04-26 05:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 05:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 05:06:21] Production.INFO: ==10785== Releasing lock... [2025-04-26 05:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 05:06:21] Production.INFO: 36.25 MB #Memory Used# [2025-04-26 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 02:07:05 [end_date_ymd] => 2025-04-26 05:07:05 [RateCDR] => 1 ) [2025-04-26 05:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 02:07:05' and `end` < '2025-04-26 05:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 05:07:18] Production.INFO: count ==1000 [2025-04-26 05:07:19] Production.ERROR: pbx CDR StartTime 2025-04-26 02:07:05 - End Time 2025-04-26 05:07:05 [2025-04-26 05:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992029', 'tblTempUsageDetail_20' ) start [2025-04-26 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992029', 'tblTempUsageDetail_20' ) end [2025-04-26 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992029', 'tblTempVendorCDR_20' ) start [2025-04-26 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992029', 'tblTempVendorCDR_20' ) end [2025-04-26 05:07:19] Production.INFO: ProcessCDR(1,14992029,1,1,2) [2025-04-26 05:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992029', 'tblTempUsageDetail_20' ) start [2025-04-26 05:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992029', 'tblTempUsageDetail_20' ) end [2025-04-26 05:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 05:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 05:07:22] Production.INFO: ==10857== Releasing lock... [2025-04-26 05:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 05:07:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-26 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 02:08:05 [end_date_ymd] => 2025-04-26 05:08:05 [RateCDR] => 1 ) [2025-04-26 05:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 02:08:05' and `end` < '2025-04-26 05:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 05:08:17] Production.INFO: count ==1000 [2025-04-26 05:08:18] Production.ERROR: pbx CDR StartTime 2025-04-26 02:08:05 - End Time 2025-04-26 05:08:05 [2025-04-26 05:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992034', 'tblTempUsageDetail_20' ) start [2025-04-26 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992034', 'tblTempUsageDetail_20' ) end [2025-04-26 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992034', 'tblTempVendorCDR_20' ) start [2025-04-26 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992034', 'tblTempVendorCDR_20' ) end [2025-04-26 05:08:18] Production.INFO: ProcessCDR(1,14992034,1,1,2) [2025-04-26 05:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992034', 'tblTempUsageDetail_20' ) start [2025-04-26 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992034', 'tblTempUsageDetail_20' ) end [2025-04-26 05:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 05:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 05:08:21] Production.INFO: ==10932== Releasing lock... [2025-04-26 05:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 05:08:21] Production.INFO: 36.25 MB #Memory Used# [2025-04-26 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 02:09:05 [end_date_ymd] => 2025-04-26 05:09:05 [RateCDR] => 1 ) [2025-04-26 05:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 02:09:05' and `end` < '2025-04-26 05:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 05:09:18] Production.INFO: count ==1000 [2025-04-26 05:09:18] Production.ERROR: pbx CDR StartTime 2025-04-26 02:09:05 - End Time 2025-04-26 05:09:05 [2025-04-26 05:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992039', 'tblTempUsageDetail_20' ) start [2025-04-26 05:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992039', 'tblTempUsageDetail_20' ) end [2025-04-26 05:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992039', 'tblTempVendorCDR_20' ) start [2025-04-26 05:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992039', 'tblTempVendorCDR_20' ) end [2025-04-26 05:09:19] Production.INFO: ProcessCDR(1,14992039,1,1,2) [2025-04-26 05:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992039', 'tblTempUsageDetail_20' ) start [2025-04-26 05:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992039', 'tblTempUsageDetail_20' ) end [2025-04-26 05:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 05:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 05:09:22] Production.INFO: ==11012== Releasing lock... [2025-04-26 05:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 05:09:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-26 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 02:10:06 [end_date_ymd] => 2025-04-26 05:10:06 [RateCDR] => 1 ) [2025-04-26 05:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 02:10:06' and `end` < '2025-04-26 05:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 05:10:19] Production.INFO: count ==1000 [2025-04-26 05:10:19] Production.ERROR: pbx CDR StartTime 2025-04-26 02:10:06 - End Time 2025-04-26 05:10:06 [2025-04-26 05:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992045', 'tblTempUsageDetail_20' ) start [2025-04-26 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992045', 'tblTempUsageDetail_20' ) end [2025-04-26 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992045', 'tblTempVendorCDR_20' ) start [2025-04-26 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992045', 'tblTempVendorCDR_20' ) end [2025-04-26 05:10:19] Production.INFO: ProcessCDR(1,14992045,1,1,2) [2025-04-26 05:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992045', 'tblTempUsageDetail_20' ) start [2025-04-26 05:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992045', 'tblTempUsageDetail_20' ) end [2025-04-26 05:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 05:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 05:10:23] Production.INFO: ==11084== Releasing lock... [2025-04-26 05:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 05:10:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-26 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 02:11:05 [end_date_ymd] => 2025-04-26 05:11:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 02:11:05' and `end` < '2025-04-26 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-04-26 05:11:18] Production.INFO: count ==993 [2025-04-26 05:11:18] Production.ERROR: pbx CDR StartTime 2025-04-26 02:11:05 - End Time 2025-04-26 05:11:05 [2025-04-26 05:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992050', 'tblTempUsageDetail_20' ) start [2025-04-26 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992050', 'tblTempUsageDetail_20' ) end [2025-04-26 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992050', 'tblTempVendorCDR_20' ) start [2025-04-26 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992050', 'tblTempVendorCDR_20' ) end [2025-04-26 05:11:18] Production.INFO: ProcessCDR(1,14992050,1,1,2) [2025-04-26 05:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992050', 'tblTempUsageDetail_20' ) start [2025-04-26 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992050', 'tblTempUsageDetail_20' ) end [2025-04-26 05:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 05:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 05:11:21] Production.INFO: ==11163== Releasing lock... [2025-04-26 05:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 05:11:21] Production.INFO: 36.25 MB #Memory Used# [2025-04-26 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 02:12:05 [end_date_ymd] => 2025-04-26 05:12:05 [RateCDR] => 1 ) [2025-04-26 05:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 02:12:05' and `end` < '2025-04-26 05:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 05:12:18] Production.INFO: count ==991 [2025-04-26 05:12:18] Production.ERROR: pbx CDR StartTime 2025-04-26 02:12:05 - End Time 2025-04-26 05:12:05 [2025-04-26 05:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992055', 'tblTempUsageDetail_20' ) start [2025-04-26 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992055', 'tblTempUsageDetail_20' ) end [2025-04-26 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992055', 'tblTempVendorCDR_20' ) start [2025-04-26 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992055', 'tblTempVendorCDR_20' ) end [2025-04-26 05:12:18] Production.INFO: ProcessCDR(1,14992055,1,1,2) [2025-04-26 05:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992055', 'tblTempUsageDetail_20' ) start [2025-04-26 05:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992055', 'tblTempUsageDetail_20' ) end [2025-04-26 05:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 05:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 05:12:22] Production.INFO: ==11235== Releasing lock... [2025-04-26 05:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 05:12:22] Production.INFO: 37 MB #Memory Used# [2025-04-26 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 02:13:05 [end_date_ymd] => 2025-04-26 05:13:05 [RateCDR] => 1 ) [2025-04-26 05:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 02:13:05' and `end` < '2025-04-26 05:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 05:13:18] Production.INFO: count ==991 [2025-04-26 05:13:19] Production.ERROR: pbx CDR StartTime 2025-04-26 02:13:05 - End Time 2025-04-26 05:13:05 [2025-04-26 05:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 05:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992060', 'tblTempUsageDetail_20' ) start [2025-04-26 05:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992060', 'tblTempUsageDetail_20' ) end [2025-04-26 05:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992060', 'tblTempVendorCDR_20' ) start [2025-04-26 05:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992060', 'tblTempVendorCDR_20' ) end [2025-04-26 05:13:19] Production.INFO: ProcessCDR(1,14992060,1,1,2) [2025-04-26 05:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992060', 'tblTempUsageDetail_20' ) start [2025-04-26 05:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992060', 'tblTempUsageDetail_20' ) end [2025-04-26 05:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 05:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 05:13:22] Production.INFO: ==11314== Releasing lock... [2025-04-26 05:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 05:13:22] Production.INFO: 37 MB #Memory Used# [2025-04-26 05:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 02:14:06 [end_date_ymd] => 2025-04-26 05:14:06 [RateCDR] => 1 ) [2025-04-26 05:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 02:14:06' and `end` < '2025-04-26 05:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 05:14:18] Production.INFO: count ==1820 [2025-04-26 05:14:19] Production.ERROR: pbx CDR StartTime 2025-04-26 02:14:06 - End Time 2025-04-26 05:14:06 [2025-04-26 05:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992065', 'tblTempUsageDetail_20' ) start [2025-04-26 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992065', 'tblTempUsageDetail_20' ) end [2025-04-26 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992065', 'tblTempVendorCDR_20' ) start [2025-04-26 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992065', 'tblTempVendorCDR_20' ) end [2025-04-26 05:14:19] Production.INFO: ProcessCDR(1,14992065,1,1,2) [2025-04-26 05:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992065', 'tblTempUsageDetail_20' ) start [2025-04-26 05:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992065', 'tblTempUsageDetail_20' ) end [2025-04-26 05:14:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 05:14:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 05:14:24] Production.INFO: ==11387== Releasing lock... [2025-04-26 05:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 05:14:24] Production.INFO: 42.5 MB #Memory Used# [2025-04-26 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 02:15:05 [end_date_ymd] => 2025-04-26 05:15:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 02:15:05' and `end` < '2025-04-26 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-04-26 05:15:18] Production.INFO: count ==1817 [2025-04-26 05:15:19] Production.ERROR: pbx CDR StartTime 2025-04-26 02:15:05 - End Time 2025-04-26 05:15:05 [2025-04-26 05:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 05:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992070', 'tblTempUsageDetail_20' ) start [2025-04-26 05:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992070', 'tblTempUsageDetail_20' ) end [2025-04-26 05:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992070', 'tblTempVendorCDR_20' ) start [2025-04-26 05:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992070', 'tblTempVendorCDR_20' ) end [2025-04-26 05:15:19] Production.INFO: ProcessCDR(1,14992070,1,1,2) [2025-04-26 05:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992070', 'tblTempUsageDetail_20' ) start [2025-04-26 05:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992070', 'tblTempUsageDetail_20' ) end [2025-04-26 05:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 05:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 05:15:22] Production.INFO: ==11461== Releasing lock... [2025-04-26 05:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 05:15:22] Production.INFO: 42.5 MB #Memory Used# [2025-04-26 05:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 02:16:06 [end_date_ymd] => 2025-04-26 05:16:06 [RateCDR] => 1 ) [2025-04-26 05:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 02:16:06' and `end` < '2025-04-26 05:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 05:16:19] Production.INFO: count ==1817 [2025-04-26 05:16:19] Production.ERROR: pbx CDR StartTime 2025-04-26 02:16:06 - End Time 2025-04-26 05:16:06 [2025-04-26 05:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992075', 'tblTempUsageDetail_20' ) start [2025-04-26 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992075', 'tblTempUsageDetail_20' ) end [2025-04-26 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992075', 'tblTempVendorCDR_20' ) start [2025-04-26 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992075', 'tblTempVendorCDR_20' ) end [2025-04-26 05:16:19] Production.INFO: ProcessCDR(1,14992075,1,1,2) [2025-04-26 05:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992075', 'tblTempUsageDetail_20' ) start [2025-04-26 05:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992075', 'tblTempUsageDetail_20' ) end [2025-04-26 05:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 05:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 05:16:23] Production.INFO: ==11535== Releasing lock... [2025-04-26 05:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 05:16:23] Production.INFO: 42.5 MB #Memory Used# [2025-04-26 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 02:17:05 [end_date_ymd] => 2025-04-26 05:17:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 02:17:05' and `end` < '2025-04-26 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-04-26 05:17:18] Production.INFO: count ==1814 [2025-04-26 05:17:18] Production.ERROR: pbx CDR StartTime 2025-04-26 02:17:05 - End Time 2025-04-26 05:17:05 [2025-04-26 05:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992080', 'tblTempUsageDetail_20' ) start [2025-04-26 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992080', 'tblTempUsageDetail_20' ) end [2025-04-26 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992080', 'tblTempVendorCDR_20' ) start [2025-04-26 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992080', 'tblTempVendorCDR_20' ) end [2025-04-26 05:17:18] Production.INFO: ProcessCDR(1,14992080,1,1,2) [2025-04-26 05:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992080', 'tblTempUsageDetail_20' ) start [2025-04-26 05:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992080', 'tblTempUsageDetail_20' ) end [2025-04-26 05:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 05:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 05:17:22] Production.INFO: ==11607== Releasing lock... [2025-04-26 05:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 05:17:22] Production.INFO: 42.5 MB #Memory Used# [2025-04-26 05:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 02:18:06 [end_date_ymd] => 2025-04-26 05:18:06 [RateCDR] => 1 ) [2025-04-26 05:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 02:18:06' and `end` < '2025-04-26 05:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 05:18:18] Production.INFO: count ==1814 [2025-04-26 05:18:19] Production.ERROR: pbx CDR StartTime 2025-04-26 02:18:06 - End Time 2025-04-26 05:18:06 [2025-04-26 05:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992085', 'tblTempUsageDetail_20' ) start [2025-04-26 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992085', 'tblTempUsageDetail_20' ) end [2025-04-26 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992085', 'tblTempVendorCDR_20' ) start [2025-04-26 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992085', 'tblTempVendorCDR_20' ) end [2025-04-26 05:18:19] Production.INFO: ProcessCDR(1,14992085,1,1,2) [2025-04-26 05:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992085', 'tblTempUsageDetail_20' ) start [2025-04-26 05:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992085', 'tblTempUsageDetail_20' ) end [2025-04-26 05:18:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 05:18:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 05:18:23] Production.INFO: ==11690== Releasing lock... [2025-04-26 05:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 05:18:23] Production.INFO: 42.5 MB #Memory Used# [2025-04-26 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 02:19:05 [end_date_ymd] => 2025-04-26 05:19:05 [RateCDR] => 1 ) [2025-04-26 05:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 02:19:05' and `end` < '2025-04-26 05:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 05:19:18] Production.INFO: count ==1813 [2025-04-26 05:19:18] Production.ERROR: pbx CDR StartTime 2025-04-26 02:19:05 - End Time 2025-04-26 05:19:05 [2025-04-26 05:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992090', 'tblTempUsageDetail_20' ) start [2025-04-26 05:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992090', 'tblTempUsageDetail_20' ) end [2025-04-26 05:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992090', 'tblTempVendorCDR_20' ) start [2025-04-26 05:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992090', 'tblTempVendorCDR_20' ) end [2025-04-26 05:19:19] Production.INFO: ProcessCDR(1,14992090,1,1,2) [2025-04-26 05:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992090', 'tblTempUsageDetail_20' ) start [2025-04-26 05:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992090', 'tblTempUsageDetail_20' ) end [2025-04-26 05:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 05:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 05:19:22] Production.INFO: ==11761== Releasing lock... [2025-04-26 05:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 05:19:22] Production.INFO: 42.25 MB #Memory Used# [2025-04-26 05:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 02:20:05 [end_date_ymd] => 2025-04-26 05:20:05 [RateCDR] => 1 ) [2025-04-26 05:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 02:20:05' and `end` < '2025-04-26 05:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 05:20:18] Production.INFO: count ==1802 [2025-04-26 05:20:19] Production.ERROR: pbx CDR StartTime 2025-04-26 02:20:05 - End Time 2025-04-26 05:20:05 [2025-04-26 05:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992095', 'tblTempUsageDetail_20' ) start [2025-04-26 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992095', 'tblTempUsageDetail_20' ) end [2025-04-26 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992095', 'tblTempVendorCDR_20' ) start [2025-04-26 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992095', 'tblTempVendorCDR_20' ) end [2025-04-26 05:20:19] Production.INFO: ProcessCDR(1,14992095,1,1,2) [2025-04-26 05:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992095', 'tblTempUsageDetail_20' ) start [2025-04-26 05:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992095', 'tblTempUsageDetail_20' ) end [2025-04-26 05:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 05:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 05:20:23] Production.INFO: ==11839== Releasing lock... [2025-04-26 05:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 05:20:23] Production.INFO: 42.25 MB #Memory Used# [2025-04-26 05:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 02:21:06 [end_date_ymd] => 2025-04-26 05:21:06 [RateCDR] => 1 ) [2025-04-26 05:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 02:21:06' and `end` < '2025-04-26 05:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 05:21:18] Production.INFO: count ==1792 [2025-04-26 05:21:19] Production.ERROR: pbx CDR StartTime 2025-04-26 02:21:06 - End Time 2025-04-26 05:21:06 [2025-04-26 05:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 05:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992101', 'tblTempUsageDetail_20' ) start [2025-04-26 05:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992101', 'tblTempUsageDetail_20' ) end [2025-04-26 05:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992101', 'tblTempVendorCDR_20' ) start [2025-04-26 05:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992101', 'tblTempVendorCDR_20' ) end [2025-04-26 05:21:19] Production.INFO: ProcessCDR(1,14992101,1,1,2) [2025-04-26 05:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992101', 'tblTempUsageDetail_20' ) start [2025-04-26 05:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992101', 'tblTempUsageDetail_20' ) end [2025-04-26 05:21:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 05:21:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 05:21:23] Production.INFO: ==11956== Releasing lock... [2025-04-26 05:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 05:21:23] Production.INFO: 42.25 MB #Memory Used# [2025-04-26 05:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 02:22:06 [end_date_ymd] => 2025-04-26 05:22:06 [RateCDR] => 1 ) [2025-04-26 05:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 02:22:06' and `end` < '2025-04-26 05:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 05:22:18] Production.INFO: count ==1791 [2025-04-26 05:22:19] Production.ERROR: pbx CDR StartTime 2025-04-26 02:22:06 - End Time 2025-04-26 05:22:06 [2025-04-26 05:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992106', 'tblTempUsageDetail_20' ) start [2025-04-26 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992106', 'tblTempUsageDetail_20' ) end [2025-04-26 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992106', 'tblTempVendorCDR_20' ) start [2025-04-26 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992106', 'tblTempVendorCDR_20' ) end [2025-04-26 05:22:19] Production.INFO: ProcessCDR(1,14992106,1,1,2) [2025-04-26 05:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992106', 'tblTempUsageDetail_20' ) start [2025-04-26 05:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992106', 'tblTempUsageDetail_20' ) end [2025-04-26 05:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 05:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 05:22:22] Production.INFO: ==12027== Releasing lock... [2025-04-26 05:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 05:22:22] Production.INFO: 41.75 MB #Memory Used# [2025-04-26 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 02:23:05 [end_date_ymd] => 2025-04-26 05:23:05 [RateCDR] => 1 ) [2025-04-26 05:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 02:23:05' and `end` < '2025-04-26 05:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 05:23:18] Production.INFO: count ==1788 [2025-04-26 05:23:18] Production.ERROR: pbx CDR StartTime 2025-04-26 02:23:05 - End Time 2025-04-26 05:23:05 [2025-04-26 05:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992111', 'tblTempUsageDetail_20' ) start [2025-04-26 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992111', 'tblTempUsageDetail_20' ) end [2025-04-26 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992111', 'tblTempVendorCDR_20' ) start [2025-04-26 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992111', 'tblTempVendorCDR_20' ) end [2025-04-26 05:23:18] Production.INFO: ProcessCDR(1,14992111,1,1,2) [2025-04-26 05:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992111', 'tblTempUsageDetail_20' ) start [2025-04-26 05:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992111', 'tblTempUsageDetail_20' ) end [2025-04-26 05:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 05:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 05:23:22] Production.INFO: ==12096== Releasing lock... [2025-04-26 05:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 05:23:22] Production.INFO: 41.75 MB #Memory Used# [2025-04-26 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 02:24:05 [end_date_ymd] => 2025-04-26 05:24:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 02:24:05' and `end` < '2025-04-26 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-04-26 05:24:18] Production.INFO: count ==1785 [2025-04-26 05:24:18] Production.ERROR: pbx CDR StartTime 2025-04-26 02:24:05 - End Time 2025-04-26 05:24:05 [2025-04-26 05:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992116', 'tblTempUsageDetail_20' ) start [2025-04-26 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992116', 'tblTempUsageDetail_20' ) end [2025-04-26 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992116', 'tblTempVendorCDR_20' ) start [2025-04-26 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992116', 'tblTempVendorCDR_20' ) end [2025-04-26 05:24:18] Production.INFO: ProcessCDR(1,14992116,1,1,2) [2025-04-26 05:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992116', 'tblTempUsageDetail_20' ) start [2025-04-26 05:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992116', 'tblTempUsageDetail_20' ) end [2025-04-26 05:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 05:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 05:24:22] Production.INFO: ==12170== Releasing lock... [2025-04-26 05:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 05:24:22] Production.INFO: 42 MB #Memory Used# [2025-04-26 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 02:25:05 [end_date_ymd] => 2025-04-26 05:25:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 02:25:05' and `end` < '2025-04-26 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-04-26 05:25:18] Production.INFO: count ==1783 [2025-04-26 05:25:19] Production.ERROR: pbx CDR StartTime 2025-04-26 02:25:05 - End Time 2025-04-26 05:25:05 [2025-04-26 05:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 05:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992121', 'tblTempUsageDetail_20' ) start [2025-04-26 05:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992121', 'tblTempUsageDetail_20' ) end [2025-04-26 05:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992121', 'tblTempVendorCDR_20' ) start [2025-04-26 05:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992121', 'tblTempVendorCDR_20' ) end [2025-04-26 05:25:19] Production.INFO: ProcessCDR(1,14992121,1,1,2) [2025-04-26 05:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992121', 'tblTempUsageDetail_20' ) start [2025-04-26 05:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992121', 'tblTempUsageDetail_20' ) end [2025-04-26 05:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 05:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 05:25:22] Production.INFO: ==12242== Releasing lock... [2025-04-26 05:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 05:25:22] Production.INFO: 41.75 MB #Memory Used# [2025-04-26 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 02:26:05 [end_date_ymd] => 2025-04-26 05:26:05 [RateCDR] => 1 ) [2025-04-26 05:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 02:26:05' and `end` < '2025-04-26 05:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 05:26:18] Production.INFO: count ==1782 [2025-04-26 05:26:18] Production.ERROR: pbx CDR StartTime 2025-04-26 02:26:05 - End Time 2025-04-26 05:26:05 [2025-04-26 05:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992126', 'tblTempUsageDetail_20' ) start [2025-04-26 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992126', 'tblTempUsageDetail_20' ) end [2025-04-26 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992126', 'tblTempVendorCDR_20' ) start [2025-04-26 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992126', 'tblTempVendorCDR_20' ) end [2025-04-26 05:26:18] Production.INFO: ProcessCDR(1,14992126,1,1,2) [2025-04-26 05:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992126', 'tblTempUsageDetail_20' ) start [2025-04-26 05:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992126', 'tblTempUsageDetail_20' ) end [2025-04-26 05:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 05:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 05:26:22] Production.INFO: ==12322== Releasing lock... [2025-04-26 05:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 05:26:22] Production.INFO: 42 MB #Memory Used# [2025-04-26 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 02:27:05 [end_date_ymd] => 2025-04-26 05:27:05 [RateCDR] => 1 ) [2025-04-26 05:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 02:27:05' and `end` < '2025-04-26 05:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 05:27:18] Production.INFO: count ==1781 [2025-04-26 05:27:19] Production.ERROR: pbx CDR StartTime 2025-04-26 02:27:05 - End Time 2025-04-26 05:27:05 [2025-04-26 05:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 05:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992131', 'tblTempUsageDetail_20' ) start [2025-04-26 05:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992131', 'tblTempUsageDetail_20' ) end [2025-04-26 05:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992131', 'tblTempVendorCDR_20' ) start [2025-04-26 05:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992131', 'tblTempVendorCDR_20' ) end [2025-04-26 05:27:19] Production.INFO: ProcessCDR(1,14992131,1,1,2) [2025-04-26 05:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992131', 'tblTempUsageDetail_20' ) start [2025-04-26 05:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992131', 'tblTempUsageDetail_20' ) end [2025-04-26 05:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 05:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 05:27:22] Production.INFO: ==12395== Releasing lock... [2025-04-26 05:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 05:27:22] Production.INFO: 42 MB #Memory Used# [2025-04-26 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 02:28:05 [end_date_ymd] => 2025-04-26 05:28:05 [RateCDR] => 1 ) [2025-04-26 05:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 02:28:05' and `end` < '2025-04-26 05:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 05:28:18] Production.INFO: count ==1780 [2025-04-26 05:28:18] Production.ERROR: pbx CDR StartTime 2025-04-26 02:28:05 - End Time 2025-04-26 05:28:05 [2025-04-26 05:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992136', 'tblTempUsageDetail_20' ) start [2025-04-26 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992136', 'tblTempUsageDetail_20' ) end [2025-04-26 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992136', 'tblTempVendorCDR_20' ) start [2025-04-26 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992136', 'tblTempVendorCDR_20' ) end [2025-04-26 05:28:19] Production.INFO: ProcessCDR(1,14992136,1,1,2) [2025-04-26 05:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992136', 'tblTempUsageDetail_20' ) start [2025-04-26 05:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992136', 'tblTempUsageDetail_20' ) end [2025-04-26 05:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 05:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 05:28:22] Production.INFO: ==12464== Releasing lock... [2025-04-26 05:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 05:28:22] Production.INFO: 41.75 MB #Memory Used# [2025-04-26 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 02:29:05 [end_date_ymd] => 2025-04-26 05:29:05 [RateCDR] => 1 ) [2025-04-26 05:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 02:29:05' and `end` < '2025-04-26 05:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 05:29:18] Production.INFO: count ==1779 [2025-04-26 05:29:19] Production.ERROR: pbx CDR StartTime 2025-04-26 02:29:05 - End Time 2025-04-26 05:29:05 [2025-04-26 05:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 05:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992141', 'tblTempUsageDetail_20' ) start [2025-04-26 05:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992141', 'tblTempUsageDetail_20' ) end [2025-04-26 05:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992141', 'tblTempVendorCDR_20' ) start [2025-04-26 05:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992141', 'tblTempVendorCDR_20' ) end [2025-04-26 05:29:19] Production.INFO: ProcessCDR(1,14992141,1,1,2) [2025-04-26 05:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992141', 'tblTempUsageDetail_20' ) start [2025-04-26 05:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992141', 'tblTempUsageDetail_20' ) end [2025-04-26 05:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 05:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 05:29:22] Production.INFO: ==12540== Releasing lock... [2025-04-26 05:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 05:29:22] Production.INFO: 41.75 MB #Memory Used# [2025-04-26 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 02:30:06 [end_date_ymd] => 2025-04-26 05:30:06 [RateCDR] => 1 ) [2025-04-26 05:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 02:30:06' and `end` < '2025-04-26 05:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 05:30:18] Production.INFO: count ==1767 [2025-04-26 05:30:19] Production.ERROR: pbx CDR StartTime 2025-04-26 02:30:06 - End Time 2025-04-26 05:30:06 [2025-04-26 05:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992147', 'tblTempUsageDetail_20' ) start [2025-04-26 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992147', 'tblTempUsageDetail_20' ) end [2025-04-26 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992147', 'tblTempVendorCDR_20' ) start [2025-04-26 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992147', 'tblTempVendorCDR_20' ) end [2025-04-26 05:30:19] Production.INFO: ProcessCDR(1,14992147,1,1,2) [2025-04-26 05:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992147', 'tblTempUsageDetail_20' ) start [2025-04-26 05:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992147', 'tblTempUsageDetail_20' ) end [2025-04-26 05:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 05:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 05:30:23] Production.INFO: ==12616== Releasing lock... [2025-04-26 05:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 05:30:23] Production.INFO: 41.5 MB #Memory Used# [2025-04-26 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 02:31:05 [end_date_ymd] => 2025-04-26 05:31:05 [RateCDR] => 1 ) [2025-04-26 05:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 02:31:05' and `end` < '2025-04-26 05:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 05:31:18] Production.INFO: count ==1767 [2025-04-26 05:31:19] Production.ERROR: pbx CDR StartTime 2025-04-26 02:31:05 - End Time 2025-04-26 05:31:05 [2025-04-26 05:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 05:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992152', 'tblTempUsageDetail_20' ) start [2025-04-26 05:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992152', 'tblTempUsageDetail_20' ) end [2025-04-26 05:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992152', 'tblTempVendorCDR_20' ) start [2025-04-26 05:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992152', 'tblTempVendorCDR_20' ) end [2025-04-26 05:31:19] Production.INFO: ProcessCDR(1,14992152,1,1,2) [2025-04-26 05:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992152', 'tblTempUsageDetail_20' ) start [2025-04-26 05:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992152', 'tblTempUsageDetail_20' ) end [2025-04-26 05:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 05:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 05:31:22] Production.INFO: ==12697== Releasing lock... [2025-04-26 05:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 05:31:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-26 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 02:32:05 [end_date_ymd] => 2025-04-26 05:32:05 [RateCDR] => 1 ) [2025-04-26 05:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 02:32:05' and `end` < '2025-04-26 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-04-26 05:32:18] Production.INFO: count ==1763 [2025-04-26 05:32:18] Production.ERROR: pbx CDR StartTime 2025-04-26 02:32:05 - End Time 2025-04-26 05:32:05 [2025-04-26 05:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992157', 'tblTempUsageDetail_20' ) start [2025-04-26 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992157', 'tblTempUsageDetail_20' ) end [2025-04-26 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992157', 'tblTempVendorCDR_20' ) start [2025-04-26 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992157', 'tblTempVendorCDR_20' ) end [2025-04-26 05:32:18] Production.INFO: ProcessCDR(1,14992157,1,1,2) [2025-04-26 05:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992157', 'tblTempUsageDetail_20' ) start [2025-04-26 05:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992157', 'tblTempUsageDetail_20' ) end [2025-04-26 05:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 05:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 05:32:22] Production.INFO: ==12771== Releasing lock... [2025-04-26 05:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 05:32:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-26 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 02:33:05 [end_date_ymd] => 2025-04-26 05:33:05 [RateCDR] => 1 ) [2025-04-26 05:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 02:33:05' and `end` < '2025-04-26 05:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 05:33:18] Production.INFO: count ==1758 [2025-04-26 05:33:19] Production.ERROR: pbx CDR StartTime 2025-04-26 02:33:05 - End Time 2025-04-26 05:33:05 [2025-04-26 05:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 05:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992162', 'tblTempUsageDetail_20' ) start [2025-04-26 05:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992162', 'tblTempUsageDetail_20' ) end [2025-04-26 05:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992162', 'tblTempVendorCDR_20' ) start [2025-04-26 05:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992162', 'tblTempVendorCDR_20' ) end [2025-04-26 05:33:19] Production.INFO: ProcessCDR(1,14992162,1,1,2) [2025-04-26 05:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992162', 'tblTempUsageDetail_20' ) start [2025-04-26 05:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992162', 'tblTempUsageDetail_20' ) end [2025-04-26 05:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 05:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 05:33:22] Production.INFO: ==12846== Releasing lock... [2025-04-26 05:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 05:33:22] Production.INFO: 41.75 MB #Memory Used# [2025-04-26 05:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 02:34:06 [end_date_ymd] => 2025-04-26 05:34:06 [RateCDR] => 1 ) [2025-04-26 05:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 02:34:06' and `end` < '2025-04-26 05:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 05:34:18] Production.INFO: count ==1754 [2025-04-26 05:34:19] Production.ERROR: pbx CDR StartTime 2025-04-26 02:34:06 - End Time 2025-04-26 05:34:06 [2025-04-26 05:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 05:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992167', 'tblTempUsageDetail_20' ) start [2025-04-26 05:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992167', 'tblTempUsageDetail_20' ) end [2025-04-26 05:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992167', 'tblTempVendorCDR_20' ) start [2025-04-26 05:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992167', 'tblTempVendorCDR_20' ) end [2025-04-26 05:34:19] Production.INFO: ProcessCDR(1,14992167,1,1,2) [2025-04-26 05:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992167', 'tblTempUsageDetail_20' ) start [2025-04-26 05:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992167', 'tblTempUsageDetail_20' ) end [2025-04-26 05:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 05:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 05:34:22] Production.INFO: ==12918== Releasing lock... [2025-04-26 05:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 05:34:22] Production.INFO: 41.75 MB #Memory Used# [2025-04-26 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 02:35:05 [end_date_ymd] => 2025-04-26 05:35:05 [RateCDR] => 1 ) [2025-04-26 05:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 02:35:05' and `end` < '2025-04-26 05:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 05:35:18] Production.INFO: count ==1750 [2025-04-26 05:35:19] Production.ERROR: pbx CDR StartTime 2025-04-26 02:35:05 - End Time 2025-04-26 05:35:05 [2025-04-26 05:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 05:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992172', 'tblTempUsageDetail_20' ) start [2025-04-26 05:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992172', 'tblTempUsageDetail_20' ) end [2025-04-26 05:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992172', 'tblTempVendorCDR_20' ) start [2025-04-26 05:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992172', 'tblTempVendorCDR_20' ) end [2025-04-26 05:35:19] Production.INFO: ProcessCDR(1,14992172,1,1,2) [2025-04-26 05:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992172', 'tblTempUsageDetail_20' ) start [2025-04-26 05:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992172', 'tblTempUsageDetail_20' ) end [2025-04-26 05:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 05:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 05:35:22] Production.INFO: ==12987== Releasing lock... [2025-04-26 05:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 05:35:22] Production.INFO: 42 MB #Memory Used# [2025-04-26 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 02:36:05 [end_date_ymd] => 2025-04-26 05:36:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 02:36:05' and `end` < '2025-04-26 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-04-26 05:36:18] Production.INFO: count ==1748 [2025-04-26 05:36:19] Production.ERROR: pbx CDR StartTime 2025-04-26 02:36:05 - End Time 2025-04-26 05:36:05 [2025-04-26 05:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 05:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992177', 'tblTempUsageDetail_20' ) start [2025-04-26 05:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992177', 'tblTempUsageDetail_20' ) end [2025-04-26 05:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992177', 'tblTempVendorCDR_20' ) start [2025-04-26 05:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992177', 'tblTempVendorCDR_20' ) end [2025-04-26 05:36:19] Production.INFO: ProcessCDR(1,14992177,1,1,2) [2025-04-26 05:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992177', 'tblTempUsageDetail_20' ) start [2025-04-26 05:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992177', 'tblTempUsageDetail_20' ) end [2025-04-26 05:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 05:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 05:36:22] Production.INFO: ==13099== Releasing lock... [2025-04-26 05:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 05:36:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-26 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 02:37:05 [end_date_ymd] => 2025-04-26 05:37:05 [RateCDR] => 1 ) [2025-04-26 05:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 02:37:05' and `end` < '2025-04-26 05:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 05:37:18] Production.INFO: count ==1747 [2025-04-26 05:37:19] Production.ERROR: pbx CDR StartTime 2025-04-26 02:37:05 - End Time 2025-04-26 05:37:05 [2025-04-26 05:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 05:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992182', 'tblTempUsageDetail_20' ) start [2025-04-26 05:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992182', 'tblTempUsageDetail_20' ) end [2025-04-26 05:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992182', 'tblTempVendorCDR_20' ) start [2025-04-26 05:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992182', 'tblTempVendorCDR_20' ) end [2025-04-26 05:37:19] Production.INFO: ProcessCDR(1,14992182,1,1,2) [2025-04-26 05:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992182', 'tblTempUsageDetail_20' ) start [2025-04-26 05:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992182', 'tblTempUsageDetail_20' ) end [2025-04-26 05:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 05:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 05:37:22] Production.INFO: ==13171== Releasing lock... [2025-04-26 05:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 05:37:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-26 05:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 02:38:06 [end_date_ymd] => 2025-04-26 05:38:06 [RateCDR] => 1 ) [2025-04-26 05:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 02:38:06' and `end` < '2025-04-26 05:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 05:38:18] Production.INFO: count ==1746 [2025-04-26 05:38:19] Production.ERROR: pbx CDR StartTime 2025-04-26 02:38:06 - End Time 2025-04-26 05:38:06 [2025-04-26 05:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992187', 'tblTempUsageDetail_20' ) start [2025-04-26 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992187', 'tblTempUsageDetail_20' ) end [2025-04-26 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992187', 'tblTempVendorCDR_20' ) start [2025-04-26 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992187', 'tblTempVendorCDR_20' ) end [2025-04-26 05:38:19] Production.INFO: ProcessCDR(1,14992187,1,1,2) [2025-04-26 05:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992187', 'tblTempUsageDetail_20' ) start [2025-04-26 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992187', 'tblTempUsageDetail_20' ) end [2025-04-26 05:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 05:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 05:38:22] Production.INFO: ==13246== Releasing lock... [2025-04-26 05:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 05:38:22] Production.INFO: 41.75 MB #Memory Used# [2025-04-26 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 02:39:05 [end_date_ymd] => 2025-04-26 05:39:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 02:39:05' and `end` < '2025-04-26 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-04-26 05:39:18] Production.INFO: count ==1745 [2025-04-26 05:39:18] Production.ERROR: pbx CDR StartTime 2025-04-26 02:39:05 - End Time 2025-04-26 05:39:05 [2025-04-26 05:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992192', 'tblTempUsageDetail_20' ) start [2025-04-26 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992192', 'tblTempUsageDetail_20' ) end [2025-04-26 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992192', 'tblTempVendorCDR_20' ) start [2025-04-26 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992192', 'tblTempVendorCDR_20' ) end [2025-04-26 05:39:18] Production.INFO: ProcessCDR(1,14992192,1,1,2) [2025-04-26 05:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992192', 'tblTempUsageDetail_20' ) start [2025-04-26 05:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992192', 'tblTempUsageDetail_20' ) end [2025-04-26 05:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 05:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 05:39:22] Production.INFO: ==13319== Releasing lock... [2025-04-26 05:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 05:39:22] Production.INFO: 41.75 MB #Memory Used# [2025-04-26 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 02:40:06 [end_date_ymd] => 2025-04-26 05:40:06 [RateCDR] => 1 ) [2025-04-26 05:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 02:40:06' and `end` < '2025-04-26 05:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 05:40:18] Production.INFO: count ==1742 [2025-04-26 05:40:19] Production.ERROR: pbx CDR StartTime 2025-04-26 02:40:06 - End Time 2025-04-26 05:40:06 [2025-04-26 05:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992198', 'tblTempUsageDetail_20' ) start [2025-04-26 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992198', 'tblTempUsageDetail_20' ) end [2025-04-26 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992198', 'tblTempVendorCDR_20' ) start [2025-04-26 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992198', 'tblTempVendorCDR_20' ) end [2025-04-26 05:40:19] Production.INFO: ProcessCDR(1,14992198,1,1,2) [2025-04-26 05:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992198', 'tblTempUsageDetail_20' ) start [2025-04-26 05:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992198', 'tblTempUsageDetail_20' ) end [2025-04-26 05:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 05:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 05:40:23] Production.INFO: ==13402== Releasing lock... [2025-04-26 05:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 05:40:23] Production.INFO: 41.5 MB #Memory Used# [2025-04-26 05:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 02:41:04 [end_date_ymd] => 2025-04-26 05:41:04 [RateCDR] => 1 ) [2025-04-26 05:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 02:41:04' and `end` < '2025-04-26 05:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 05:41:17] Production.INFO: count ==1742 [2025-04-26 05:41:18] Production.ERROR: pbx CDR StartTime 2025-04-26 02:41:04 - End Time 2025-04-26 05:41:04 [2025-04-26 05:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992203', 'tblTempUsageDetail_20' ) start [2025-04-26 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992203', 'tblTempUsageDetail_20' ) end [2025-04-26 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992203', 'tblTempVendorCDR_20' ) start [2025-04-26 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992203', 'tblTempVendorCDR_20' ) end [2025-04-26 05:41:18] Production.INFO: ProcessCDR(1,14992203,1,1,2) [2025-04-26 05:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992203', 'tblTempUsageDetail_20' ) start [2025-04-26 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992203', 'tblTempUsageDetail_20' ) end [2025-04-26 05:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 05:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 05:41:21] Production.INFO: ==13472== Releasing lock... [2025-04-26 05:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 05:41:21] Production.INFO: 41.5 MB #Memory Used# [2025-04-26 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 02:42:05 [end_date_ymd] => 2025-04-26 05:42:05 [RateCDR] => 1 ) [2025-04-26 05:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 02:42:05' and `end` < '2025-04-26 05:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 05:42:18] Production.INFO: count ==1738 [2025-04-26 05:42:19] Production.ERROR: pbx CDR StartTime 2025-04-26 02:42:05 - End Time 2025-04-26 05:42:05 [2025-04-26 05:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992208', 'tblTempUsageDetail_20' ) start [2025-04-26 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992208', 'tblTempUsageDetail_20' ) end [2025-04-26 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992208', 'tblTempVendorCDR_20' ) start [2025-04-26 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992208', 'tblTempVendorCDR_20' ) end [2025-04-26 05:42:19] Production.INFO: ProcessCDR(1,14992208,1,1,2) [2025-04-26 05:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992208', 'tblTempUsageDetail_20' ) start [2025-04-26 05:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992208', 'tblTempUsageDetail_20' ) end [2025-04-26 05:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 05:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 05:42:22] Production.INFO: ==13544== Releasing lock... [2025-04-26 05:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 05:42:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-26 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 02:43:05 [end_date_ymd] => 2025-04-26 05:43:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 02:43:05' and `end` < '2025-04-26 05:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 05:43:18] Production.INFO: count ==1736 [2025-04-26 05:43:19] Production.ERROR: pbx CDR StartTime 2025-04-26 02:43:05 - End Time 2025-04-26 05:43:05 [2025-04-26 05:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 05:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992213', 'tblTempUsageDetail_20' ) start [2025-04-26 05:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992213', 'tblTempUsageDetail_20' ) end [2025-04-26 05:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992213', 'tblTempVendorCDR_20' ) start [2025-04-26 05:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992213', 'tblTempVendorCDR_20' ) end [2025-04-26 05:43:19] Production.INFO: ProcessCDR(1,14992213,1,1,2) [2025-04-26 05:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992213', 'tblTempUsageDetail_20' ) start [2025-04-26 05:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992213', 'tblTempUsageDetail_20' ) end [2025-04-26 05:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 05:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 05:43:22] Production.INFO: ==13617== Releasing lock... [2025-04-26 05:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 05:43:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-26 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 02:44:05 [end_date_ymd] => 2025-04-26 05:44:05 [RateCDR] => 1 ) [2025-04-26 05:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 02:44:05' and `end` < '2025-04-26 05:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 05:44:18] Production.INFO: count ==1735 [2025-04-26 05:44:18] Production.ERROR: pbx CDR StartTime 2025-04-26 02:44:05 - End Time 2025-04-26 05:44:05 [2025-04-26 05:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992218', 'tblTempUsageDetail_20' ) start [2025-04-26 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992218', 'tblTempUsageDetail_20' ) end [2025-04-26 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992218', 'tblTempVendorCDR_20' ) start [2025-04-26 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992218', 'tblTempVendorCDR_20' ) end [2025-04-26 05:44:18] Production.INFO: ProcessCDR(1,14992218,1,1,2) [2025-04-26 05:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992218', 'tblTempUsageDetail_20' ) start [2025-04-26 05:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992218', 'tblTempUsageDetail_20' ) end [2025-04-26 05:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 05:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 05:44:22] Production.INFO: ==13693== Releasing lock... [2025-04-26 05:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 05:44:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-26 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 02:45:05 [end_date_ymd] => 2025-04-26 05:45:05 [RateCDR] => 1 ) [2025-04-26 05:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 02:45:05' and `end` < '2025-04-26 05:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 05:45:18] Production.INFO: count ==1740 [2025-04-26 05:45:19] Production.ERROR: pbx CDR StartTime 2025-04-26 02:45:05 - End Time 2025-04-26 05:45:05 [2025-04-26 05:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 05:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992223', 'tblTempUsageDetail_20' ) start [2025-04-26 05:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992223', 'tblTempUsageDetail_20' ) end [2025-04-26 05:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992223', 'tblTempVendorCDR_20' ) start [2025-04-26 05:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992223', 'tblTempVendorCDR_20' ) end [2025-04-26 05:45:19] Production.INFO: ProcessCDR(1,14992223,1,1,2) [2025-04-26 05:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992223', 'tblTempUsageDetail_20' ) start [2025-04-26 05:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992223', 'tblTempUsageDetail_20' ) end [2025-04-26 05:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 05:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 05:45:22] Production.INFO: ==13766== Releasing lock... [2025-04-26 05:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 05:45:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-26 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 02:46:05 [end_date_ymd] => 2025-04-26 05:46:05 [RateCDR] => 1 ) [2025-04-26 05:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 02:46:05' and `end` < '2025-04-26 05:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 05:46:18] Production.INFO: count ==1740 [2025-04-26 05:46:18] Production.ERROR: pbx CDR StartTime 2025-04-26 02:46:05 - End Time 2025-04-26 05:46:05 [2025-04-26 05:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992228', 'tblTempUsageDetail_20' ) start [2025-04-26 05:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992228', 'tblTempUsageDetail_20' ) end [2025-04-26 05:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992228', 'tblTempVendorCDR_20' ) start [2025-04-26 05:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992228', 'tblTempVendorCDR_20' ) end [2025-04-26 05:46:19] Production.INFO: ProcessCDR(1,14992228,1,1,2) [2025-04-26 05:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992228', 'tblTempUsageDetail_20' ) start [2025-04-26 05:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992228', 'tblTempUsageDetail_20' ) end [2025-04-26 05:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 05:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 05:46:22] Production.INFO: ==13836== Releasing lock... [2025-04-26 05:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 05:46:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-26 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 02:47:05 [end_date_ymd] => 2025-04-26 05:47:05 [RateCDR] => 1 ) [2025-04-26 05:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 02:47:05' and `end` < '2025-04-26 05:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 05:47:18] Production.INFO: count ==1739 [2025-04-26 05:47:19] Production.ERROR: pbx CDR StartTime 2025-04-26 02:47:05 - End Time 2025-04-26 05:47:05 [2025-04-26 05:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992233', 'tblTempUsageDetail_20' ) start [2025-04-26 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992233', 'tblTempUsageDetail_20' ) end [2025-04-26 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992233', 'tblTempVendorCDR_20' ) start [2025-04-26 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992233', 'tblTempVendorCDR_20' ) end [2025-04-26 05:47:19] Production.INFO: ProcessCDR(1,14992233,1,1,2) [2025-04-26 05:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992233', 'tblTempUsageDetail_20' ) start [2025-04-26 05:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992233', 'tblTempUsageDetail_20' ) end [2025-04-26 05:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 05:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 05:47:23] Production.INFO: ==13911== Releasing lock... [2025-04-26 05:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 05:47:23] Production.INFO: 41.5 MB #Memory Used# [2025-04-26 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 02:48:05 [end_date_ymd] => 2025-04-26 05:48:05 [RateCDR] => 1 ) [2025-04-26 05:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 02:48:05' and `end` < '2025-04-26 05:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 05:48:18] Production.INFO: count ==1739 [2025-04-26 05:48:19] Production.ERROR: pbx CDR StartTime 2025-04-26 02:48:05 - End Time 2025-04-26 05:48:05 [2025-04-26 05:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 05:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992238', 'tblTempUsageDetail_20' ) start [2025-04-26 05:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992238', 'tblTempUsageDetail_20' ) end [2025-04-26 05:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992238', 'tblTempVendorCDR_20' ) start [2025-04-26 05:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992238', 'tblTempVendorCDR_20' ) end [2025-04-26 05:48:19] Production.INFO: ProcessCDR(1,14992238,1,1,2) [2025-04-26 05:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992238', 'tblTempUsageDetail_20' ) start [2025-04-26 05:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992238', 'tblTempUsageDetail_20' ) end [2025-04-26 05:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 05:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 05:48:22] Production.INFO: ==13983== Releasing lock... [2025-04-26 05:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 05:48:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-26 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 02:49:05 [end_date_ymd] => 2025-04-26 05:49:05 [RateCDR] => 1 ) [2025-04-26 05:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 02:49:05' and `end` < '2025-04-26 05:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 05:49:18] Production.INFO: count ==1739 [2025-04-26 05:49:19] Production.ERROR: pbx CDR StartTime 2025-04-26 02:49:05 - End Time 2025-04-26 05:49:05 [2025-04-26 05:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 05:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992243', 'tblTempUsageDetail_20' ) start [2025-04-26 05:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992243', 'tblTempUsageDetail_20' ) end [2025-04-26 05:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992243', 'tblTempVendorCDR_20' ) start [2025-04-26 05:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992243', 'tblTempVendorCDR_20' ) end [2025-04-26 05:49:19] Production.INFO: ProcessCDR(1,14992243,1,1,2) [2025-04-26 05:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992243', 'tblTempUsageDetail_20' ) start [2025-04-26 05:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992243', 'tblTempUsageDetail_20' ) end [2025-04-26 05:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 05:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 05:49:23] Production.INFO: ==14057== Releasing lock... [2025-04-26 05:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 05:49:23] Production.INFO: 41.5 MB #Memory Used# [2025-04-26 05:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 02:50:05 [end_date_ymd] => 2025-04-26 05:50:05 [RateCDR] => 1 ) [2025-04-26 05:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 02:50:05' and `end` < '2025-04-26 05:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 05:50:18] Production.INFO: count ==1738 [2025-04-26 05:50:19] Production.ERROR: pbx CDR StartTime 2025-04-26 02:50:05 - End Time 2025-04-26 05:50:05 [2025-04-26 05:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992248', 'tblTempUsageDetail_20' ) start [2025-04-26 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992248', 'tblTempUsageDetail_20' ) end [2025-04-26 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992248', 'tblTempVendorCDR_20' ) start [2025-04-26 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992248', 'tblTempVendorCDR_20' ) end [2025-04-26 05:50:19] Production.INFO: ProcessCDR(1,14992248,1,1,2) [2025-04-26 05:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992248', 'tblTempUsageDetail_20' ) start [2025-04-26 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992248', 'tblTempUsageDetail_20' ) end [2025-04-26 05:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 05:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 05:50:22] Production.INFO: ==14134== Releasing lock... [2025-04-26 05:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 05:50:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-26 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 02:51:05 [end_date_ymd] => 2025-04-26 05:51:05 [RateCDR] => 1 ) [2025-04-26 05:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 02:51:05' and `end` < '2025-04-26 05:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 05:51:18] Production.INFO: count ==1738 [2025-04-26 05:51:19] Production.ERROR: pbx CDR StartTime 2025-04-26 02:51:05 - End Time 2025-04-26 05:51:05 [2025-04-26 05:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 05:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992254', 'tblTempUsageDetail_20' ) start [2025-04-26 05:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992254', 'tblTempUsageDetail_20' ) end [2025-04-26 05:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992254', 'tblTempVendorCDR_20' ) start [2025-04-26 05:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992254', 'tblTempVendorCDR_20' ) end [2025-04-26 05:51:19] Production.INFO: ProcessCDR(1,14992254,1,1,2) [2025-04-26 05:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992254', 'tblTempUsageDetail_20' ) start [2025-04-26 05:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992254', 'tblTempUsageDetail_20' ) end [2025-04-26 05:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 05:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 05:51:22] Production.INFO: ==14251== Releasing lock... [2025-04-26 05:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 05:51:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-26 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 02:52:05 [end_date_ymd] => 2025-04-26 05:52:05 [RateCDR] => 1 ) [2025-04-26 05:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 02:52:05' and `end` < '2025-04-26 05:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 05:52:18] Production.INFO: count ==1738 [2025-04-26 05:52:19] Production.ERROR: pbx CDR StartTime 2025-04-26 02:52:05 - End Time 2025-04-26 05:52:05 [2025-04-26 05:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 05:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992259', 'tblTempUsageDetail_20' ) start [2025-04-26 05:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992259', 'tblTempUsageDetail_20' ) end [2025-04-26 05:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992259', 'tblTempVendorCDR_20' ) start [2025-04-26 05:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992259', 'tblTempVendorCDR_20' ) end [2025-04-26 05:52:19] Production.INFO: ProcessCDR(1,14992259,1,1,2) [2025-04-26 05:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992259', 'tblTempUsageDetail_20' ) start [2025-04-26 05:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992259', 'tblTempUsageDetail_20' ) end [2025-04-26 05:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 05:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 05:52:22] Production.INFO: ==14326== Releasing lock... [2025-04-26 05:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 05:52:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-26 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 02:53:05 [end_date_ymd] => 2025-04-26 05:53:05 [RateCDR] => 1 ) [2025-04-26 05:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 02:53:05' and `end` < '2025-04-26 05:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 05:53:18] Production.INFO: count ==1737 [2025-04-26 05:53:18] Production.ERROR: pbx CDR StartTime 2025-04-26 02:53:05 - End Time 2025-04-26 05:53:05 [2025-04-26 05:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992264', 'tblTempUsageDetail_20' ) start [2025-04-26 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992264', 'tblTempUsageDetail_20' ) end [2025-04-26 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992264', 'tblTempVendorCDR_20' ) start [2025-04-26 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992264', 'tblTempVendorCDR_20' ) end [2025-04-26 05:53:18] Production.INFO: ProcessCDR(1,14992264,1,1,2) [2025-04-26 05:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992264', 'tblTempUsageDetail_20' ) start [2025-04-26 05:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992264', 'tblTempUsageDetail_20' ) end [2025-04-26 05:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 05:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 05:53:22] Production.INFO: ==14399== Releasing lock... [2025-04-26 05:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 05:53:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-26 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 02:54:05 [end_date_ymd] => 2025-04-26 05:54:05 [RateCDR] => 1 ) [2025-04-26 05:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 02:54:05' and `end` < '2025-04-26 05:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 05:54:18] Production.INFO: count ==1736 [2025-04-26 05:54:19] Production.ERROR: pbx CDR StartTime 2025-04-26 02:54:05 - End Time 2025-04-26 05:54:05 [2025-04-26 05:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992269', 'tblTempUsageDetail_20' ) start [2025-04-26 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992269', 'tblTempUsageDetail_20' ) end [2025-04-26 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992269', 'tblTempVendorCDR_20' ) start [2025-04-26 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992269', 'tblTempVendorCDR_20' ) end [2025-04-26 05:54:19] Production.INFO: ProcessCDR(1,14992269,1,1,2) [2025-04-26 05:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992269', 'tblTempUsageDetail_20' ) start [2025-04-26 05:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992269', 'tblTempUsageDetail_20' ) end [2025-04-26 05:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 05:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 05:54:22] Production.INFO: ==14480== Releasing lock... [2025-04-26 05:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 05:54:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-26 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 02:55:05 [end_date_ymd] => 2025-04-26 05:55:05 [RateCDR] => 1 ) [2025-04-26 05:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 02:55:05' and `end` < '2025-04-26 05:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 05:55:18] Production.INFO: count ==1735 [2025-04-26 05:55:19] Production.ERROR: pbx CDR StartTime 2025-04-26 02:55:05 - End Time 2025-04-26 05:55:05 [2025-04-26 05:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 05:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992274', 'tblTempUsageDetail_20' ) start [2025-04-26 05:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992274', 'tblTempUsageDetail_20' ) end [2025-04-26 05:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992274', 'tblTempVendorCDR_20' ) start [2025-04-26 05:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992274', 'tblTempVendorCDR_20' ) end [2025-04-26 05:55:19] Production.INFO: ProcessCDR(1,14992274,1,1,2) [2025-04-26 05:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992274', 'tblTempUsageDetail_20' ) start [2025-04-26 05:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992274', 'tblTempUsageDetail_20' ) end [2025-04-26 05:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 05:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 05:55:22] Production.INFO: ==14595== Releasing lock... [2025-04-26 05:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 05:55:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-26 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 02:56:05 [end_date_ymd] => 2025-04-26 05:56:05 [RateCDR] => 1 ) [2025-04-26 05:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 02:56:05' and `end` < '2025-04-26 05:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 05:56:18] Production.INFO: count ==1737 [2025-04-26 05:56:18] Production.ERROR: pbx CDR StartTime 2025-04-26 02:56:05 - End Time 2025-04-26 05:56:05 [2025-04-26 05:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992279', 'tblTempUsageDetail_20' ) start [2025-04-26 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992279', 'tblTempUsageDetail_20' ) end [2025-04-26 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992279', 'tblTempVendorCDR_20' ) start [2025-04-26 05:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992279', 'tblTempVendorCDR_20' ) end [2025-04-26 05:56:19] Production.INFO: ProcessCDR(1,14992279,1,1,2) [2025-04-26 05:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992279', 'tblTempUsageDetail_20' ) start [2025-04-26 05:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992279', 'tblTempUsageDetail_20' ) end [2025-04-26 05:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 05:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 05:56:22] Production.INFO: ==14669== Releasing lock... [2025-04-26 05:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 05:56:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-26 05:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 02:57:04 [end_date_ymd] => 2025-04-26 05:57:04 [RateCDR] => 1 ) [2025-04-26 05:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 02:57:04' and `end` < '2025-04-26 05:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 05:57:17] Production.INFO: count ==1737 [2025-04-26 05:57:18] Production.ERROR: pbx CDR StartTime 2025-04-26 02:57:04 - End Time 2025-04-26 05:57:04 [2025-04-26 05:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992284', 'tblTempUsageDetail_20' ) start [2025-04-26 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992284', 'tblTempUsageDetail_20' ) end [2025-04-26 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992284', 'tblTempVendorCDR_20' ) start [2025-04-26 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992284', 'tblTempVendorCDR_20' ) end [2025-04-26 05:57:18] Production.INFO: ProcessCDR(1,14992284,1,1,2) [2025-04-26 05:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992284', 'tblTempUsageDetail_20' ) start [2025-04-26 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992284', 'tblTempUsageDetail_20' ) end [2025-04-26 05:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 05:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 05:57:21] Production.INFO: ==14741== Releasing lock... [2025-04-26 05:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 05:57:21] Production.INFO: 41.5 MB #Memory Used# [2025-04-26 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 02:58:05 [end_date_ymd] => 2025-04-26 05:58:05 [RateCDR] => 1 ) [2025-04-26 05:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 02:58:05' and `end` < '2025-04-26 05:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 05:58:18] Production.INFO: count ==1737 [2025-04-26 05:58:19] Production.ERROR: pbx CDR StartTime 2025-04-26 02:58:05 - End Time 2025-04-26 05:58:05 [2025-04-26 05:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 05:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992289', 'tblTempUsageDetail_20' ) start [2025-04-26 05:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992289', 'tblTempUsageDetail_20' ) end [2025-04-26 05:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992289', 'tblTempVendorCDR_20' ) start [2025-04-26 05:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992289', 'tblTempVendorCDR_20' ) end [2025-04-26 05:58:19] Production.INFO: ProcessCDR(1,14992289,1,1,2) [2025-04-26 05:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992289', 'tblTempUsageDetail_20' ) start [2025-04-26 05:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992289', 'tblTempUsageDetail_20' ) end [2025-04-26 05:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 05:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 05:58:22] Production.INFO: ==14817== Releasing lock... [2025-04-26 05:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 05:58:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-26 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 02:59:05 [end_date_ymd] => 2025-04-26 05:59:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 02:59:05' and `end` < '2025-04-26 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-04-26 05:59:18] Production.INFO: count ==1733 [2025-04-26 05:59:19] Production.ERROR: pbx CDR StartTime 2025-04-26 02:59:05 - End Time 2025-04-26 05:59:05 [2025-04-26 05:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992294', 'tblTempUsageDetail_20' ) start [2025-04-26 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992294', 'tblTempUsageDetail_20' ) end [2025-04-26 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992294', 'tblTempVendorCDR_20' ) start [2025-04-26 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992294', 'tblTempVendorCDR_20' ) end [2025-04-26 05:59:19] Production.INFO: ProcessCDR(1,14992294,1,1,2) [2025-04-26 05:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 05:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 05:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992294', 'tblTempUsageDetail_20' ) start [2025-04-26 05:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992294', 'tblTempUsageDetail_20' ) end [2025-04-26 05:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 05:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 05:59:22] Production.INFO: ==14887== Releasing lock... [2025-04-26 05:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 05:59:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-26 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 03:00:06 [end_date_ymd] => 2025-04-26 06:00:06 [RateCDR] => 1 ) [2025-04-26 06:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 03:00:06' and `end` < '2025-04-26 06:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 06:00:18] Production.INFO: count ==1721 [2025-04-26 06:00:19] Production.ERROR: pbx CDR StartTime 2025-04-26 03:00:06 - End Time 2025-04-26 06:00:06 [2025-04-26 06:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992300', 'tblTempUsageDetail_20' ) start [2025-04-26 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992300', 'tblTempUsageDetail_20' ) end [2025-04-26 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992300', 'tblTempVendorCDR_20' ) start [2025-04-26 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992300', 'tblTempVendorCDR_20' ) end [2025-04-26 06:00:19] Production.INFO: ProcessCDR(1,14992300,1,1,2) [2025-04-26 06:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992300', 'tblTempUsageDetail_20' ) start [2025-04-26 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992300', 'tblTempUsageDetail_20' ) end [2025-04-26 06:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 06:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 06:00:22] Production.INFO: ==14963== Releasing lock... [2025-04-26 06:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 06:00:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-26 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 03:01:05 [end_date_ymd] => 2025-04-26 06:01:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 03:01:05' and `end` < '2025-04-26 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-04-26 06:01:18] Production.INFO: count ==1705 [2025-04-26 06:01:19] Production.ERROR: pbx CDR StartTime 2025-04-26 03:01:05 - End Time 2025-04-26 06:01:05 [2025-04-26 06:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 06:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992305', 'tblTempUsageDetail_20' ) start [2025-04-26 06:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992305', 'tblTempUsageDetail_20' ) end [2025-04-26 06:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992305', 'tblTempVendorCDR_20' ) start [2025-04-26 06:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992305', 'tblTempVendorCDR_20' ) end [2025-04-26 06:01:19] Production.INFO: ProcessCDR(1,14992305,1,1,2) [2025-04-26 06:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992305', 'tblTempUsageDetail_20' ) start [2025-04-26 06:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992305', 'tblTempUsageDetail_20' ) end [2025-04-26 06:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 06:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 06:01:22] Production.INFO: ==15053== Releasing lock... [2025-04-26 06:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 06:01:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-26 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 03:02:05 [end_date_ymd] => 2025-04-26 06:02:05 [RateCDR] => 1 ) [2025-04-26 06:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 03:02:05' and `end` < '2025-04-26 06:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 06:02:18] Production.INFO: count ==1700 [2025-04-26 06:02:18] Production.ERROR: pbx CDR StartTime 2025-04-26 03:02:05 - End Time 2025-04-26 06:02:05 [2025-04-26 06:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992310', 'tblTempUsageDetail_20' ) start [2025-04-26 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992310', 'tblTempUsageDetail_20' ) end [2025-04-26 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992310', 'tblTempVendorCDR_20' ) start [2025-04-26 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992310', 'tblTempVendorCDR_20' ) end [2025-04-26 06:02:18] Production.INFO: ProcessCDR(1,14992310,1,1,2) [2025-04-26 06:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992310', 'tblTempUsageDetail_20' ) start [2025-04-26 06:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992310', 'tblTempUsageDetail_20' ) end [2025-04-26 06:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 06:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 06:02:22] Production.INFO: ==15123== Releasing lock... [2025-04-26 06:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 06:02:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-26 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 03:03:05 [end_date_ymd] => 2025-04-26 06:03:05 [RateCDR] => 1 ) [2025-04-26 06:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 03:03:05' and `end` < '2025-04-26 06:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 06:03:18] Production.INFO: count ==1700 [2025-04-26 06:03:19] Production.ERROR: pbx CDR StartTime 2025-04-26 03:03:05 - End Time 2025-04-26 06:03:05 [2025-04-26 06:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 06:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992315', 'tblTempUsageDetail_20' ) start [2025-04-26 06:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992315', 'tblTempUsageDetail_20' ) end [2025-04-26 06:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992315', 'tblTempVendorCDR_20' ) start [2025-04-26 06:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992315', 'tblTempVendorCDR_20' ) end [2025-04-26 06:03:19] Production.INFO: ProcessCDR(1,14992315,1,1,2) [2025-04-26 06:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992315', 'tblTempUsageDetail_20' ) start [2025-04-26 06:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992315', 'tblTempUsageDetail_20' ) end [2025-04-26 06:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 06:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 06:03:22] Production.INFO: ==15201== Releasing lock... [2025-04-26 06:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 06:03:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-26 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 03:04:05 [end_date_ymd] => 2025-04-26 06:04:05 [RateCDR] => 1 ) [2025-04-26 06:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 03:04:05' and `end` < '2025-04-26 06:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 06:04:18] Production.INFO: count ==1700 [2025-04-26 06:04:18] Production.ERROR: pbx CDR StartTime 2025-04-26 03:04:05 - End Time 2025-04-26 06:04:05 [2025-04-26 06:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992320', 'tblTempUsageDetail_20' ) start [2025-04-26 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992320', 'tblTempUsageDetail_20' ) end [2025-04-26 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992320', 'tblTempVendorCDR_20' ) start [2025-04-26 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992320', 'tblTempVendorCDR_20' ) end [2025-04-26 06:04:18] Production.INFO: ProcessCDR(1,14992320,1,1,2) [2025-04-26 06:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992320', 'tblTempUsageDetail_20' ) start [2025-04-26 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992320', 'tblTempUsageDetail_20' ) end [2025-04-26 06:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 06:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 06:04:22] Production.INFO: ==15271== Releasing lock... [2025-04-26 06:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 06:04:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-26 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 03:05:05 [end_date_ymd] => 2025-04-26 06:05:05 [RateCDR] => 1 ) [2025-04-26 06:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 03:05:05' and `end` < '2025-04-26 06:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 06:05:18] Production.INFO: count ==1699 [2025-04-26 06:05:19] Production.ERROR: pbx CDR StartTime 2025-04-26 03:05:05 - End Time 2025-04-26 06:05:05 [2025-04-26 06:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 06:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992325', 'tblTempUsageDetail_20' ) start [2025-04-26 06:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992325', 'tblTempUsageDetail_20' ) end [2025-04-26 06:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992325', 'tblTempVendorCDR_20' ) start [2025-04-26 06:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992325', 'tblTempVendorCDR_20' ) end [2025-04-26 06:05:19] Production.INFO: ProcessCDR(1,14992325,1,1,2) [2025-04-26 06:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992325', 'tblTempUsageDetail_20' ) start [2025-04-26 06:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992325', 'tblTempUsageDetail_20' ) end [2025-04-26 06:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 06:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 06:05:22] Production.INFO: ==15344== Releasing lock... [2025-04-26 06:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 06:05:22] Production.INFO: 41.75 MB #Memory Used# [2025-04-26 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 03:06:05 [end_date_ymd] => 2025-04-26 06:06:05 [RateCDR] => 1 ) [2025-04-26 06:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 03:06:05' and `end` < '2025-04-26 06:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 06:06:17] Production.INFO: count ==1699 [2025-04-26 06:06:18] Production.ERROR: pbx CDR StartTime 2025-04-26 03:06:05 - End Time 2025-04-26 06:06:05 [2025-04-26 06:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992330', 'tblTempUsageDetail_20' ) start [2025-04-26 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992330', 'tblTempUsageDetail_20' ) end [2025-04-26 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992330', 'tblTempVendorCDR_20' ) start [2025-04-26 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992330', 'tblTempVendorCDR_20' ) end [2025-04-26 06:06:18] Production.INFO: ProcessCDR(1,14992330,1,1,2) [2025-04-26 06:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992330', 'tblTempUsageDetail_20' ) start [2025-04-26 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992330', 'tblTempUsageDetail_20' ) end [2025-04-26 06:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 06:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 06:06:21] Production.INFO: ==15415== Releasing lock... [2025-04-26 06:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 06:06:21] Production.INFO: 41.75 MB #Memory Used# [2025-04-26 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 03:07:05 [end_date_ymd] => 2025-04-26 06:07:05 [RateCDR] => 1 ) [2025-04-26 06:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 03:07:05' and `end` < '2025-04-26 06:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 06:07:18] Production.INFO: count ==1702 [2025-04-26 06:07:19] Production.ERROR: pbx CDR StartTime 2025-04-26 03:07:05 - End Time 2025-04-26 06:07:05 [2025-04-26 06:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 06:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992335', 'tblTempUsageDetail_20' ) start [2025-04-26 06:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992335', 'tblTempUsageDetail_20' ) end [2025-04-26 06:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992335', 'tblTempVendorCDR_20' ) start [2025-04-26 06:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992335', 'tblTempVendorCDR_20' ) end [2025-04-26 06:07:19] Production.INFO: ProcessCDR(1,14992335,1,1,2) [2025-04-26 06:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992335', 'tblTempUsageDetail_20' ) start [2025-04-26 06:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992335', 'tblTempUsageDetail_20' ) end [2025-04-26 06:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 06:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 06:07:22] Production.INFO: ==15537== Releasing lock... [2025-04-26 06:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 06:07:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-26 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 03:08:05 [end_date_ymd] => 2025-04-26 06:08:05 [RateCDR] => 1 ) [2025-04-26 06:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 03:08:05' and `end` < '2025-04-26 06:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 06:08:18] Production.INFO: count ==1702 [2025-04-26 06:08:19] Production.ERROR: pbx CDR StartTime 2025-04-26 03:08:05 - End Time 2025-04-26 06:08:05 [2025-04-26 06:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992340', 'tblTempUsageDetail_20' ) start [2025-04-26 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992340', 'tblTempUsageDetail_20' ) end [2025-04-26 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992340', 'tblTempVendorCDR_20' ) start [2025-04-26 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992340', 'tblTempVendorCDR_20' ) end [2025-04-26 06:08:19] Production.INFO: ProcessCDR(1,14992340,1,1,2) [2025-04-26 06:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992340', 'tblTempUsageDetail_20' ) start [2025-04-26 06:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992340', 'tblTempUsageDetail_20' ) end [2025-04-26 06:08:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 06:08:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 06:08:23] Production.INFO: ==15613== Releasing lock... [2025-04-26 06:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 06:08:23] Production.INFO: 41.5 MB #Memory Used# [2025-04-26 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 03:09:05 [end_date_ymd] => 2025-04-26 06:09:05 [RateCDR] => 1 ) [2025-04-26 06:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 03:09:05' and `end` < '2025-04-26 06:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 06:09:17] Production.INFO: count ==1702 [2025-04-26 06:09:18] Production.ERROR: pbx CDR StartTime 2025-04-26 03:09:05 - End Time 2025-04-26 06:09:05 [2025-04-26 06:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992345', 'tblTempUsageDetail_20' ) start [2025-04-26 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992345', 'tblTempUsageDetail_20' ) end [2025-04-26 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992345', 'tblTempVendorCDR_20' ) start [2025-04-26 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992345', 'tblTempVendorCDR_20' ) end [2025-04-26 06:09:18] Production.INFO: ProcessCDR(1,14992345,1,1,2) [2025-04-26 06:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992345', 'tblTempUsageDetail_20' ) start [2025-04-26 06:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992345', 'tblTempUsageDetail_20' ) end [2025-04-26 06:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 06:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 06:09:22] Production.INFO: ==15689== Releasing lock... [2025-04-26 06:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 06:09:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-26 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 03:10:06 [end_date_ymd] => 2025-04-26 06:10:06 [RateCDR] => 1 ) [2025-04-26 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-04-26 03:10:06' and `end` < '2025-04-26 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-04-26 06:10:18] Production.INFO: count ==1692 [2025-04-26 06:10:19] Production.ERROR: pbx CDR StartTime 2025-04-26 03:10:06 - End Time 2025-04-26 06:10:06 [2025-04-26 06:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992351', 'tblTempUsageDetail_20' ) start [2025-04-26 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992351', 'tblTempUsageDetail_20' ) end [2025-04-26 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992351', 'tblTempVendorCDR_20' ) start [2025-04-26 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992351', 'tblTempVendorCDR_20' ) end [2025-04-26 06:10:19] Production.INFO: ProcessCDR(1,14992351,1,1,2) [2025-04-26 06:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992351', 'tblTempUsageDetail_20' ) start [2025-04-26 06:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992351', 'tblTempUsageDetail_20' ) end [2025-04-26 06:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 06:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 06:10:23] Production.INFO: ==15763== Releasing lock... [2025-04-26 06:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 06:10:23] Production.INFO: 41.25 MB #Memory Used# [2025-04-26 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 03:11:05 [end_date_ymd] => 2025-04-26 06:11:05 [RateCDR] => 1 ) [2025-04-26 06:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 03:11:05' and `end` < '2025-04-26 06:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 06:11:18] Production.INFO: count ==1689 [2025-04-26 06:11:18] Production.ERROR: pbx CDR StartTime 2025-04-26 03:11:05 - End Time 2025-04-26 06:11:05 [2025-04-26 06:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992356', 'tblTempUsageDetail_20' ) start [2025-04-26 06:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992356', 'tblTempUsageDetail_20' ) end [2025-04-26 06:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992356', 'tblTempVendorCDR_20' ) start [2025-04-26 06:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992356', 'tblTempVendorCDR_20' ) end [2025-04-26 06:11:19] Production.INFO: ProcessCDR(1,14992356,1,1,2) [2025-04-26 06:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992356', 'tblTempUsageDetail_20' ) start [2025-04-26 06:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992356', 'tblTempUsageDetail_20' ) end [2025-04-26 06:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 06:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 06:11:22] Production.INFO: ==15836== Releasing lock... [2025-04-26 06:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 06:11:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-26 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 03:12:05 [end_date_ymd] => 2025-04-26 06:12:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 03:12:05' and `end` < '2025-04-26 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-04-26 06:12:18] Production.INFO: count ==1686 [2025-04-26 06:12:19] Production.ERROR: pbx CDR StartTime 2025-04-26 03:12:05 - End Time 2025-04-26 06:12:05 [2025-04-26 06:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 06:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992361', 'tblTempUsageDetail_20' ) start [2025-04-26 06:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992361', 'tblTempUsageDetail_20' ) end [2025-04-26 06:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992361', 'tblTempVendorCDR_20' ) start [2025-04-26 06:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992361', 'tblTempVendorCDR_20' ) end [2025-04-26 06:12:19] Production.INFO: ProcessCDR(1,14992361,1,1,2) [2025-04-26 06:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992361', 'tblTempUsageDetail_20' ) start [2025-04-26 06:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992361', 'tblTempUsageDetail_20' ) end [2025-04-26 06:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 06:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 06:12:22] Production.INFO: ==15912== Releasing lock... [2025-04-26 06:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 06:12:22] Production.INFO: 41 MB #Memory Used# [2025-04-26 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 03:13:05 [end_date_ymd] => 2025-04-26 06:13:05 [RateCDR] => 1 ) [2025-04-26 06:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 03:13:05' and `end` < '2025-04-26 06:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 06:13:17] Production.INFO: count ==1686 [2025-04-26 06:13:18] Production.ERROR: pbx CDR StartTime 2025-04-26 03:13:05 - End Time 2025-04-26 06:13:05 [2025-04-26 06:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992366', 'tblTempUsageDetail_20' ) start [2025-04-26 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992366', 'tblTempUsageDetail_20' ) end [2025-04-26 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992366', 'tblTempVendorCDR_20' ) start [2025-04-26 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992366', 'tblTempVendorCDR_20' ) end [2025-04-26 06:13:18] Production.INFO: ProcessCDR(1,14992366,1,1,2) [2025-04-26 06:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992366', 'tblTempUsageDetail_20' ) start [2025-04-26 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992366', 'tblTempUsageDetail_20' ) end [2025-04-26 06:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 06:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 06:13:21] Production.INFO: ==15982== Releasing lock... [2025-04-26 06:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 06:13:21] Production.INFO: 41 MB #Memory Used# [2025-04-26 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 03:14:05 [end_date_ymd] => 2025-04-26 06:14:05 [RateCDR] => 1 ) [2025-04-26 06:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 03:14:05' and `end` < '2025-04-26 06:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 06:14:18] Production.INFO: count ==1685 [2025-04-26 06:14:19] Production.ERROR: pbx CDR StartTime 2025-04-26 03:14:05 - End Time 2025-04-26 06:14:05 [2025-04-26 06:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992371', 'tblTempUsageDetail_20' ) start [2025-04-26 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992371', 'tblTempUsageDetail_20' ) end [2025-04-26 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992371', 'tblTempVendorCDR_20' ) start [2025-04-26 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992371', 'tblTempVendorCDR_20' ) end [2025-04-26 06:14:19] Production.INFO: ProcessCDR(1,14992371,1,1,2) [2025-04-26 06:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992371', 'tblTempUsageDetail_20' ) start [2025-04-26 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992371', 'tblTempUsageDetail_20' ) end [2025-04-26 06:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 06:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 06:14:22] Production.INFO: ==16063== Releasing lock... [2025-04-26 06:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 06:14:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-26 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 03:15:05 [end_date_ymd] => 2025-04-26 06:15:05 [RateCDR] => 1 ) [2025-04-26 06:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 03:15:05' and `end` < '2025-04-26 06:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 06:15:17] Production.INFO: count ==1682 [2025-04-26 06:15:18] Production.ERROR: pbx CDR StartTime 2025-04-26 03:15:05 - End Time 2025-04-26 06:15:05 [2025-04-26 06:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992376', 'tblTempUsageDetail_20' ) start [2025-04-26 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992376', 'tblTempUsageDetail_20' ) end [2025-04-26 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992376', 'tblTempVendorCDR_20' ) start [2025-04-26 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992376', 'tblTempVendorCDR_20' ) end [2025-04-26 06:15:18] Production.INFO: ProcessCDR(1,14992376,1,1,2) [2025-04-26 06:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992376', 'tblTempUsageDetail_20' ) start [2025-04-26 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992376', 'tblTempUsageDetail_20' ) end [2025-04-26 06:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 06:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 06:15:21] Production.INFO: ==16138== Releasing lock... [2025-04-26 06:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 06:15:21] Production.INFO: 41.25 MB #Memory Used# [2025-04-26 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 03:16:05 [end_date_ymd] => 2025-04-26 06:16:05 [RateCDR] => 1 ) [2025-04-26 06:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 03:16:05' and `end` < '2025-04-26 06:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 06:16:18] Production.INFO: count ==1681 [2025-04-26 06:16:18] Production.ERROR: pbx CDR StartTime 2025-04-26 03:16:05 - End Time 2025-04-26 06:16:05 [2025-04-26 06:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992381', 'tblTempUsageDetail_20' ) start [2025-04-26 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992381', 'tblTempUsageDetail_20' ) end [2025-04-26 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992381', 'tblTempVendorCDR_20' ) start [2025-04-26 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992381', 'tblTempVendorCDR_20' ) end [2025-04-26 06:16:18] Production.INFO: ProcessCDR(1,14992381,1,1,2) [2025-04-26 06:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992381', 'tblTempUsageDetail_20' ) start [2025-04-26 06:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992381', 'tblTempUsageDetail_20' ) end [2025-04-26 06:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 06:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 06:16:22] Production.INFO: ==16212== Releasing lock... [2025-04-26 06:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 06:16:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-26 06:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 03:17:04 [end_date_ymd] => 2025-04-26 06:17:04 [RateCDR] => 1 ) [2025-04-26 06:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 03:17:04' and `end` < '2025-04-26 06:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 06:17:17] Production.INFO: count ==1681 [2025-04-26 06:17:18] Production.ERROR: pbx CDR StartTime 2025-04-26 03:17:04 - End Time 2025-04-26 06:17:04 [2025-04-26 06:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992386', 'tblTempUsageDetail_20' ) start [2025-04-26 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992386', 'tblTempUsageDetail_20' ) end [2025-04-26 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992386', 'tblTempVendorCDR_20' ) start [2025-04-26 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992386', 'tblTempVendorCDR_20' ) end [2025-04-26 06:17:18] Production.INFO: ProcessCDR(1,14992386,1,1,2) [2025-04-26 06:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992386', 'tblTempUsageDetail_20' ) start [2025-04-26 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992386', 'tblTempUsageDetail_20' ) end [2025-04-26 06:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 06:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 06:17:21] Production.INFO: ==16283== Releasing lock... [2025-04-26 06:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 06:17:21] Production.INFO: 41.25 MB #Memory Used# [2025-04-26 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 03:18:05 [end_date_ymd] => 2025-04-26 06:18:05 [RateCDR] => 1 ) [2025-04-26 06:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 03:18:05' and `end` < '2025-04-26 06:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 06:18:18] Production.INFO: count ==1680 [2025-04-26 06:18:19] Production.ERROR: pbx CDR StartTime 2025-04-26 03:18:05 - End Time 2025-04-26 06:18:05 [2025-04-26 06:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992391', 'tblTempUsageDetail_20' ) start [2025-04-26 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992391', 'tblTempUsageDetail_20' ) end [2025-04-26 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992391', 'tblTempVendorCDR_20' ) start [2025-04-26 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992391', 'tblTempVendorCDR_20' ) end [2025-04-26 06:18:19] Production.INFO: ProcessCDR(1,14992391,1,1,2) [2025-04-26 06:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992391', 'tblTempUsageDetail_20' ) start [2025-04-26 06:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992391', 'tblTempUsageDetail_20' ) end [2025-04-26 06:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 06:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 06:18:22] Production.INFO: ==16361== Releasing lock... [2025-04-26 06:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 06:18:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-26 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 03:19:05 [end_date_ymd] => 2025-04-26 06:19:05 [RateCDR] => 1 ) [2025-04-26 06:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 03:19:05' and `end` < '2025-04-26 06:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 06:19:18] Production.INFO: count ==1684 [2025-04-26 06:19:19] Production.ERROR: pbx CDR StartTime 2025-04-26 03:19:05 - End Time 2025-04-26 06:19:05 [2025-04-26 06:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 06:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992396', 'tblTempUsageDetail_20' ) start [2025-04-26 06:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992396', 'tblTempUsageDetail_20' ) end [2025-04-26 06:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992396', 'tblTempVendorCDR_20' ) start [2025-04-26 06:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992396', 'tblTempVendorCDR_20' ) end [2025-04-26 06:19:19] Production.INFO: ProcessCDR(1,14992396,1,1,2) [2025-04-26 06:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992396', 'tblTempUsageDetail_20' ) start [2025-04-26 06:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992396', 'tblTempUsageDetail_20' ) end [2025-04-26 06:19:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 06:19:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 06:19:24] Production.INFO: ==16434== Releasing lock... [2025-04-26 06:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 06:19:24] Production.INFO: 41.25 MB #Memory Used# [2025-04-26 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 03:20:06 [end_date_ymd] => 2025-04-26 06:20:06 [RateCDR] => 1 ) [2025-04-26 06:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 03:20:06' and `end` < '2025-04-26 06:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 06:20:18] Production.INFO: count ==1677 [2025-04-26 06:20:19] Production.ERROR: pbx CDR StartTime 2025-04-26 03:20:06 - End Time 2025-04-26 06:20:06 [2025-04-26 06:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992401', 'tblTempUsageDetail_20' ) start [2025-04-26 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992401', 'tblTempUsageDetail_20' ) end [2025-04-26 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992401', 'tblTempVendorCDR_20' ) start [2025-04-26 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992401', 'tblTempVendorCDR_20' ) end [2025-04-26 06:20:19] Production.INFO: ProcessCDR(1,14992401,1,1,2) [2025-04-26 06:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992401', 'tblTempUsageDetail_20' ) start [2025-04-26 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992401', 'tblTempUsageDetail_20' ) end [2025-04-26 06:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 06:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 06:20:22] Production.INFO: ==16511== Releasing lock... [2025-04-26 06:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 06:20:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-26 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 03:21:05 [end_date_ymd] => 2025-04-26 06:21:05 [RateCDR] => 1 ) [2025-04-26 06:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 03:21:05' and `end` < '2025-04-26 06:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 06:21:18] Production.INFO: count ==1676 [2025-04-26 06:21:19] Production.ERROR: pbx CDR StartTime 2025-04-26 03:21:05 - End Time 2025-04-26 06:21:05 [2025-04-26 06:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 06:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992407', 'tblTempUsageDetail_20' ) start [2025-04-26 06:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992407', 'tblTempUsageDetail_20' ) end [2025-04-26 06:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992407', 'tblTempVendorCDR_20' ) start [2025-04-26 06:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992407', 'tblTempVendorCDR_20' ) end [2025-04-26 06:21:19] Production.INFO: ProcessCDR(1,14992407,1,1,2) [2025-04-26 06:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992407', 'tblTempUsageDetail_20' ) start [2025-04-26 06:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992407', 'tblTempUsageDetail_20' ) end [2025-04-26 06:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 06:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 06:21:22] Production.INFO: ==16594== Releasing lock... [2025-04-26 06:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 06:21:22] Production.INFO: 41 MB #Memory Used# [2025-04-26 06:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 03:22:04 [end_date_ymd] => 2025-04-26 06:22:04 [RateCDR] => 1 ) [2025-04-26 06: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-04-26 03:22:04' and `end` < '2025-04-26 06: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-04-26 06:22:17] Production.INFO: count ==1676 [2025-04-26 06:22:18] Production.ERROR: pbx CDR StartTime 2025-04-26 03:22:04 - End Time 2025-04-26 06:22:04 [2025-04-26 06:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992412', 'tblTempUsageDetail_20' ) start [2025-04-26 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992412', 'tblTempUsageDetail_20' ) end [2025-04-26 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992412', 'tblTempVendorCDR_20' ) start [2025-04-26 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992412', 'tblTempVendorCDR_20' ) end [2025-04-26 06:22:18] Production.INFO: ProcessCDR(1,14992412,1,1,2) [2025-04-26 06:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992412', 'tblTempUsageDetail_20' ) start [2025-04-26 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992412', 'tblTempUsageDetail_20' ) end [2025-04-26 06:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 06:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 06:22:21] Production.INFO: ==16703== Releasing lock... [2025-04-26 06:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 06:22:21] Production.INFO: 41 MB #Memory Used# [2025-04-26 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 03:23:05 [end_date_ymd] => 2025-04-26 06:23:05 [RateCDR] => 1 ) [2025-04-26 06:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 03:23:05' and `end` < '2025-04-26 06:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 06:23:18] Production.INFO: count ==1673 [2025-04-26 06:23:18] Production.ERROR: pbx CDR StartTime 2025-04-26 03:23:05 - End Time 2025-04-26 06:23:05 [2025-04-26 06:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992417', 'tblTempUsageDetail_20' ) start [2025-04-26 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992417', 'tblTempUsageDetail_20' ) end [2025-04-26 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992417', 'tblTempVendorCDR_20' ) start [2025-04-26 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992417', 'tblTempVendorCDR_20' ) end [2025-04-26 06:23:18] Production.INFO: ProcessCDR(1,14992417,1,1,2) [2025-04-26 06:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992417', 'tblTempUsageDetail_20' ) start [2025-04-26 06:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992417', 'tblTempUsageDetail_20' ) end [2025-04-26 06:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 06:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 06:23:22] Production.INFO: ==16777== Releasing lock... [2025-04-26 06:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 06:23:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-26 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 03:24:05 [end_date_ymd] => 2025-04-26 06:24:05 [RateCDR] => 1 ) [2025-04-26 06:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 03:24:05' and `end` < '2025-04-26 06:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 06:24:17] Production.INFO: count ==1672 [2025-04-26 06:24:18] Production.ERROR: pbx CDR StartTime 2025-04-26 03:24:05 - End Time 2025-04-26 06:24:05 [2025-04-26 06:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992422', 'tblTempUsageDetail_20' ) start [2025-04-26 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992422', 'tblTempUsageDetail_20' ) end [2025-04-26 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992422', 'tblTempVendorCDR_20' ) start [2025-04-26 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992422', 'tblTempVendorCDR_20' ) end [2025-04-26 06:24:18] Production.INFO: ProcessCDR(1,14992422,1,1,2) [2025-04-26 06:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992422', 'tblTempUsageDetail_20' ) start [2025-04-26 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992422', 'tblTempUsageDetail_20' ) end [2025-04-26 06:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 06:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 06:24:21] Production.INFO: ==16848== Releasing lock... [2025-04-26 06:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 06:24:21] Production.INFO: 41 MB #Memory Used# [2025-04-26 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 03:25:05 [end_date_ymd] => 2025-04-26 06:25:05 [RateCDR] => 1 ) [2025-04-26 06:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 03:25:05' and `end` < '2025-04-26 06:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 06:25:18] Production.INFO: count ==1672 [2025-04-26 06:25:18] Production.ERROR: pbx CDR StartTime 2025-04-26 03:25:05 - End Time 2025-04-26 06:25:05 [2025-04-26 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992427', 'tblTempUsageDetail_20' ) start [2025-04-26 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992427', 'tblTempUsageDetail_20' ) end [2025-04-26 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992427', 'tblTempVendorCDR_20' ) start [2025-04-26 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992427', 'tblTempVendorCDR_20' ) end [2025-04-26 06:25:18] Production.INFO: ProcessCDR(1,14992427,1,1,2) [2025-04-26 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992427', 'tblTempUsageDetail_20' ) start [2025-04-26 06:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992427', 'tblTempUsageDetail_20' ) end [2025-04-26 06:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 06:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 06:25:22] Production.INFO: ==16930== Releasing lock... [2025-04-26 06:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 06:25:22] Production.INFO: 41 MB #Memory Used# [2025-04-26 06:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 03:26:06 [end_date_ymd] => 2025-04-26 06:26:06 [RateCDR] => 1 ) [2025-04-26 06:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 03:26:06' and `end` < '2025-04-26 06:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 06:26:19] Production.INFO: count ==1671 [2025-04-26 06:26:20] Production.ERROR: pbx CDR StartTime 2025-04-26 03:26:06 - End Time 2025-04-26 06:26:06 [2025-04-26 06:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 06:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992432', 'tblTempUsageDetail_20' ) start [2025-04-26 06:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992432', 'tblTempUsageDetail_20' ) end [2025-04-26 06:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992432', 'tblTempVendorCDR_20' ) start [2025-04-26 06:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992432', 'tblTempVendorCDR_20' ) end [2025-04-26 06:26:20] Production.INFO: ProcessCDR(1,14992432,1,1,2) [2025-04-26 06:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992432', 'tblTempUsageDetail_20' ) start [2025-04-26 06:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992432', 'tblTempUsageDetail_20' ) end [2025-04-26 06:26:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 06:26:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 06:26:23] Production.INFO: ==17005== Releasing lock... [2025-04-26 06:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 06:26:23] Production.INFO: 41 MB #Memory Used# [2025-04-26 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 03:27:05 [end_date_ymd] => 2025-04-26 06:27:05 [RateCDR] => 1 ) [2025-04-26 06:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 03:27:05' and `end` < '2025-04-26 06:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 06:27:18] Production.INFO: count ==1670 [2025-04-26 06:27:18] Production.ERROR: pbx CDR StartTime 2025-04-26 03:27:05 - End Time 2025-04-26 06:27:05 [2025-04-26 06:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992437', 'tblTempUsageDetail_20' ) start [2025-04-26 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992437', 'tblTempUsageDetail_20' ) end [2025-04-26 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992437', 'tblTempVendorCDR_20' ) start [2025-04-26 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992437', 'tblTempVendorCDR_20' ) end [2025-04-26 06:27:18] Production.INFO: ProcessCDR(1,14992437,1,1,2) [2025-04-26 06:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992437', 'tblTempUsageDetail_20' ) start [2025-04-26 06:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992437', 'tblTempUsageDetail_20' ) end [2025-04-26 06:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 06:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 06:27:22] Production.INFO: ==17076== Releasing lock... [2025-04-26 06:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 06:27:22] Production.INFO: 41 MB #Memory Used# [2025-04-26 06:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 03:28:06 [end_date_ymd] => 2025-04-26 06:28:06 [RateCDR] => 1 ) [2025-04-26 06:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 03:28:06' and `end` < '2025-04-26 06:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 06:28:18] Production.INFO: count ==1670 [2025-04-26 06:28:19] Production.ERROR: pbx CDR StartTime 2025-04-26 03:28:06 - End Time 2025-04-26 06:28:06 [2025-04-26 06:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 06:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992442', 'tblTempUsageDetail_20' ) start [2025-04-26 06:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992442', 'tblTempUsageDetail_20' ) end [2025-04-26 06:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992442', 'tblTempVendorCDR_20' ) start [2025-04-26 06:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992442', 'tblTempVendorCDR_20' ) end [2025-04-26 06:28:19] Production.INFO: ProcessCDR(1,14992442,1,1,2) [2025-04-26 06:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992442', 'tblTempUsageDetail_20' ) start [2025-04-26 06:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992442', 'tblTempUsageDetail_20' ) end [2025-04-26 06:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 06:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 06:28:22] Production.INFO: ==17160== Releasing lock... [2025-04-26 06:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 06:28:22] Production.INFO: 41 MB #Memory Used# [2025-04-26 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 03:29:05 [end_date_ymd] => 2025-04-26 06:29:05 [RateCDR] => 1 ) [2025-04-26 06:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 03:29:05' and `end` < '2025-04-26 06:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 06:29:18] Production.INFO: count ==1670 [2025-04-26 06:29:18] Production.ERROR: pbx CDR StartTime 2025-04-26 03:29:05 - End Time 2025-04-26 06:29:05 [2025-04-26 06:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992447', 'tblTempUsageDetail_20' ) start [2025-04-26 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992447', 'tblTempUsageDetail_20' ) end [2025-04-26 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992447', 'tblTempVendorCDR_20' ) start [2025-04-26 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992447', 'tblTempVendorCDR_20' ) end [2025-04-26 06:29:18] Production.INFO: ProcessCDR(1,14992447,1,1,2) [2025-04-26 06:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992447', 'tblTempUsageDetail_20' ) start [2025-04-26 06:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992447', 'tblTempUsageDetail_20' ) end [2025-04-26 06:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 06:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 06:29:22] Production.INFO: ==17236== Releasing lock... [2025-04-26 06:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 06:29:22] Production.INFO: 41 MB #Memory Used# [2025-04-26 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 03:30:06 [end_date_ymd] => 2025-04-26 06:30:06 [RateCDR] => 1 ) [2025-04-26 06:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 03:30:06' and `end` < '2025-04-26 06:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 06:30:19] Production.INFO: count ==1672 [2025-04-26 06:30:19] Production.ERROR: pbx CDR StartTime 2025-04-26 03:30:06 - End Time 2025-04-26 06:30:06 [2025-04-26 06:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992453', 'tblTempUsageDetail_20' ) start [2025-04-26 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992453', 'tblTempUsageDetail_20' ) end [2025-04-26 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992453', 'tblTempVendorCDR_20' ) start [2025-04-26 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992453', 'tblTempVendorCDR_20' ) end [2025-04-26 06:30:19] Production.INFO: ProcessCDR(1,14992453,1,1,2) [2025-04-26 06:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992453', 'tblTempUsageDetail_20' ) start [2025-04-26 06:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992453', 'tblTempUsageDetail_20' ) end [2025-04-26 06:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 06:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 06:30:23] Production.INFO: ==17320== Releasing lock... [2025-04-26 06:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 06:30:23] Production.INFO: 41 MB #Memory Used# [2025-04-26 06:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 03:31:04 [end_date_ymd] => 2025-04-26 06:31:04 [RateCDR] => 1 ) [2025-04-26 06: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-04-26 03:31:04' and `end` < '2025-04-26 06: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-04-26 06:31:17] Production.INFO: count ==1672 [2025-04-26 06:31:18] Production.ERROR: pbx CDR StartTime 2025-04-26 03:31:04 - End Time 2025-04-26 06:31:04 [2025-04-26 06:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992458', 'tblTempUsageDetail_20' ) start [2025-04-26 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992458', 'tblTempUsageDetail_20' ) end [2025-04-26 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992458', 'tblTempVendorCDR_20' ) start [2025-04-26 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992458', 'tblTempVendorCDR_20' ) end [2025-04-26 06:31:18] Production.INFO: ProcessCDR(1,14992458,1,1,2) [2025-04-26 06:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992458', 'tblTempUsageDetail_20' ) start [2025-04-26 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992458', 'tblTempUsageDetail_20' ) end [2025-04-26 06:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 06:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 06:31:21] Production.INFO: ==17402== Releasing lock... [2025-04-26 06:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 06:31:21] Production.INFO: 41 MB #Memory Used# [2025-04-26 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 03:32:05 [end_date_ymd] => 2025-04-26 06:32:05 [RateCDR] => 1 ) [2025-04-26 06:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 03:32:05' and `end` < '2025-04-26 06:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 06:32:17] Production.INFO: count ==1672 [2025-04-26 06:32:18] Production.ERROR: pbx CDR StartTime 2025-04-26 03:32:05 - End Time 2025-04-26 06:32:05 [2025-04-26 06:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992463', 'tblTempUsageDetail_20' ) start [2025-04-26 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992463', 'tblTempUsageDetail_20' ) end [2025-04-26 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992463', 'tblTempVendorCDR_20' ) start [2025-04-26 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992463', 'tblTempVendorCDR_20' ) end [2025-04-26 06:32:18] Production.INFO: ProcessCDR(1,14992463,1,1,2) [2025-04-26 06:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992463', 'tblTempUsageDetail_20' ) start [2025-04-26 06:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992463', 'tblTempUsageDetail_20' ) end [2025-04-26 06:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 06:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 06:32:22] Production.INFO: ==17474== Releasing lock... [2025-04-26 06:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 06:32:22] Production.INFO: 41 MB #Memory Used# [2025-04-26 06:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 03:33:04 [end_date_ymd] => 2025-04-26 06:33:04 [RateCDR] => 1 ) [2025-04-26 06: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-04-26 03:33:04' and `end` < '2025-04-26 06: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-04-26 06:33:17] Production.INFO: count ==1672 [2025-04-26 06:33:18] Production.ERROR: pbx CDR StartTime 2025-04-26 03:33:04 - End Time 2025-04-26 06:33:04 [2025-04-26 06:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992468', 'tblTempUsageDetail_20' ) start [2025-04-26 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992468', 'tblTempUsageDetail_20' ) end [2025-04-26 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992468', 'tblTempVendorCDR_20' ) start [2025-04-26 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992468', 'tblTempVendorCDR_20' ) end [2025-04-26 06:33:18] Production.INFO: ProcessCDR(1,14992468,1,1,2) [2025-04-26 06:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992468', 'tblTempUsageDetail_20' ) start [2025-04-26 06:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992468', 'tblTempUsageDetail_20' ) end [2025-04-26 06:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 06:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 06:33:22] Production.INFO: ==17551== Releasing lock... [2025-04-26 06:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 06:33:22] Production.INFO: 41 MB #Memory Used# [2025-04-26 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 03:34:05 [end_date_ymd] => 2025-04-26 06:34:05 [RateCDR] => 1 ) [2025-04-26 06:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 03:34:05' and `end` < '2025-04-26 06:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 06:34:18] Production.INFO: count ==1671 [2025-04-26 06:34:19] Production.ERROR: pbx CDR StartTime 2025-04-26 03:34:05 - End Time 2025-04-26 06:34:05 [2025-04-26 06:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 06:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992473', 'tblTempUsageDetail_20' ) start [2025-04-26 06:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992473', 'tblTempUsageDetail_20' ) end [2025-04-26 06:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992473', 'tblTempVendorCDR_20' ) start [2025-04-26 06:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992473', 'tblTempVendorCDR_20' ) end [2025-04-26 06:34:19] Production.INFO: ProcessCDR(1,14992473,1,1,2) [2025-04-26 06:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992473', 'tblTempUsageDetail_20' ) start [2025-04-26 06:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992473', 'tblTempUsageDetail_20' ) end [2025-04-26 06:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 06:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 06:34:22] Production.INFO: ==17635== Releasing lock... [2025-04-26 06:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 06:34:22] Production.INFO: 41 MB #Memory Used# [2025-04-26 06:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 03:35:06 [end_date_ymd] => 2025-04-26 06:35:06 [RateCDR] => 1 ) [2025-04-26 06:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 03:35:06' and `end` < '2025-04-26 06:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 06:35:19] Production.INFO: count ==1674 [2025-04-26 06:35:19] Production.ERROR: pbx CDR StartTime 2025-04-26 03:35:06 - End Time 2025-04-26 06:35:06 [2025-04-26 06:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 06:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992478', 'tblTempUsageDetail_20' ) start [2025-04-26 06:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992478', 'tblTempUsageDetail_20' ) end [2025-04-26 06:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992478', 'tblTempVendorCDR_20' ) start [2025-04-26 06:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992478', 'tblTempVendorCDR_20' ) end [2025-04-26 06:35:19] Production.INFO: ProcessCDR(1,14992478,1,1,2) [2025-04-26 06:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992478', 'tblTempUsageDetail_20' ) start [2025-04-26 06:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992478', 'tblTempUsageDetail_20' ) end [2025-04-26 06:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 06:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 06:35:23] Production.INFO: ==17708== Releasing lock... [2025-04-26 06:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 06:35:23] Production.INFO: 41.25 MB #Memory Used# [2025-04-26 06:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 03:36:06 [end_date_ymd] => 2025-04-26 06:36:06 [RateCDR] => 1 ) [2025-04-26 06:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 03:36:06' and `end` < '2025-04-26 06:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 06:36:18] Production.INFO: count ==1671 [2025-04-26 06:36:19] Production.ERROR: pbx CDR StartTime 2025-04-26 03:36:06 - End Time 2025-04-26 06:36:06 [2025-04-26 06:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 06:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992483', 'tblTempUsageDetail_20' ) start [2025-04-26 06:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992483', 'tblTempUsageDetail_20' ) end [2025-04-26 06:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992483', 'tblTempVendorCDR_20' ) start [2025-04-26 06:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992483', 'tblTempVendorCDR_20' ) end [2025-04-26 06:36:19] Production.INFO: ProcessCDR(1,14992483,1,1,2) [2025-04-26 06:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992483', 'tblTempUsageDetail_20' ) start [2025-04-26 06:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992483', 'tblTempUsageDetail_20' ) end [2025-04-26 06:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 06:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 06:36:23] Production.INFO: ==17780== Releasing lock... [2025-04-26 06:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 06:36:23] Production.INFO: 41 MB #Memory Used# [2025-04-26 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 03:37:05 [end_date_ymd] => 2025-04-26 06:37:05 [RateCDR] => 1 ) [2025-04-26 06:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 03:37:05' and `end` < '2025-04-26 06:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 06:37:18] Production.INFO: count ==1669 [2025-04-26 06:37:19] Production.ERROR: pbx CDR StartTime 2025-04-26 03:37:05 - End Time 2025-04-26 06:37:05 [2025-04-26 06:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 06:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992488', 'tblTempUsageDetail_20' ) start [2025-04-26 06:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992488', 'tblTempUsageDetail_20' ) end [2025-04-26 06:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992488', 'tblTempVendorCDR_20' ) start [2025-04-26 06:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992488', 'tblTempVendorCDR_20' ) end [2025-04-26 06:37:19] Production.INFO: ProcessCDR(1,14992488,1,1,2) [2025-04-26 06:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992488', 'tblTempUsageDetail_20' ) start [2025-04-26 06:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992488', 'tblTempUsageDetail_20' ) end [2025-04-26 06:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 06:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 06:37:23] Production.INFO: ==17857== Releasing lock... [2025-04-26 06:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 06:37:23] Production.INFO: 41.25 MB #Memory Used# [2025-04-26 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 03:38:05 [end_date_ymd] => 2025-04-26 06:38:05 [RateCDR] => 1 ) [2025-04-26 06:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 03:38:05' and `end` < '2025-04-26 06:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 06:38:18] Production.INFO: count ==1667 [2025-04-26 06:38:18] Production.ERROR: pbx CDR StartTime 2025-04-26 03:38:05 - End Time 2025-04-26 06:38:05 [2025-04-26 06:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992493', 'tblTempUsageDetail_20' ) start [2025-04-26 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992493', 'tblTempUsageDetail_20' ) end [2025-04-26 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992493', 'tblTempVendorCDR_20' ) start [2025-04-26 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992493', 'tblTempVendorCDR_20' ) end [2025-04-26 06:38:18] Production.INFO: ProcessCDR(1,14992493,1,1,2) [2025-04-26 06:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992493', 'tblTempUsageDetail_20' ) start [2025-04-26 06:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992493', 'tblTempUsageDetail_20' ) end [2025-04-26 06:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 06:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 06:38:22] Production.INFO: ==17970== Releasing lock... [2025-04-26 06:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 06:38:22] Production.INFO: 41 MB #Memory Used# [2025-04-26 06:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 03:39:06 [end_date_ymd] => 2025-04-26 06:39:06 [RateCDR] => 1 ) [2025-04-26 06:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 03:39:06' and `end` < '2025-04-26 06:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 06:39:18] Production.INFO: count ==1667 [2025-04-26 06:39:19] Production.ERROR: pbx CDR StartTime 2025-04-26 03:39:06 - End Time 2025-04-26 06:39:06 [2025-04-26 06:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 06:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992498', 'tblTempUsageDetail_20' ) start [2025-04-26 06:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992498', 'tblTempUsageDetail_20' ) end [2025-04-26 06:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992498', 'tblTempVendorCDR_20' ) start [2025-04-26 06:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992498', 'tblTempVendorCDR_20' ) end [2025-04-26 06:39:19] Production.INFO: ProcessCDR(1,14992498,1,1,2) [2025-04-26 06:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992498', 'tblTempUsageDetail_20' ) start [2025-04-26 06:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992498', 'tblTempUsageDetail_20' ) end [2025-04-26 06:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 06:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 06:39:22] Production.INFO: ==18045== Releasing lock... [2025-04-26 06:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 06:39:22] Production.INFO: 41 MB #Memory Used# [2025-04-26 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 03:40:06 [end_date_ymd] => 2025-04-26 06:40:06 [RateCDR] => 1 ) [2025-04-26 06:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 03:40:06' and `end` < '2025-04-26 06:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 06:40:18] Production.INFO: count ==1658 [2025-04-26 06:40:19] Production.ERROR: pbx CDR StartTime 2025-04-26 03:40:06 - End Time 2025-04-26 06:40:06 [2025-04-26 06:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992503', 'tblTempUsageDetail_20' ) start [2025-04-26 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992503', 'tblTempUsageDetail_20' ) end [2025-04-26 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992503', 'tblTempVendorCDR_20' ) start [2025-04-26 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992503', 'tblTempVendorCDR_20' ) end [2025-04-26 06:40:19] Production.INFO: ProcessCDR(1,14992503,1,1,2) [2025-04-26 06:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992503', 'tblTempUsageDetail_20' ) start [2025-04-26 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992503', 'tblTempUsageDetail_20' ) end [2025-04-26 06:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 06:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 06:40:22] Production.INFO: ==18118== Releasing lock... [2025-04-26 06:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 06:40:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-26 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 03:41:05 [end_date_ymd] => 2025-04-26 06:41:05 [RateCDR] => 1 ) [2025-04-26 06:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 03:41:05' and `end` < '2025-04-26 06:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 06:41:17] Production.INFO: count ==1657 [2025-04-26 06:41:18] Production.ERROR: pbx CDR StartTime 2025-04-26 03:41:05 - End Time 2025-04-26 06:41:05 [2025-04-26 06:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992509', 'tblTempUsageDetail_20' ) start [2025-04-26 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992509', 'tblTempUsageDetail_20' ) end [2025-04-26 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992509', 'tblTempVendorCDR_20' ) start [2025-04-26 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992509', 'tblTempVendorCDR_20' ) end [2025-04-26 06:41:18] Production.INFO: ProcessCDR(1,14992509,1,1,2) [2025-04-26 06:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992509', 'tblTempUsageDetail_20' ) start [2025-04-26 06:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992509', 'tblTempUsageDetail_20' ) end [2025-04-26 06:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 06:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 06:41:22] Production.INFO: ==18195== Releasing lock... [2025-04-26 06:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 06:41:22] Production.INFO: 41 MB #Memory Used# [2025-04-26 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 03:42:05 [end_date_ymd] => 2025-04-26 06:42:05 [RateCDR] => 1 ) [2025-04-26 06:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 03:42:05' and `end` < '2025-04-26 06:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 06:42:18] Production.INFO: count ==1657 [2025-04-26 06:42:18] Production.ERROR: pbx CDR StartTime 2025-04-26 03:42:05 - End Time 2025-04-26 06:42:05 [2025-04-26 06:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992514', 'tblTempUsageDetail_20' ) start [2025-04-26 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992514', 'tblTempUsageDetail_20' ) end [2025-04-26 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992514', 'tblTempVendorCDR_20' ) start [2025-04-26 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992514', 'tblTempVendorCDR_20' ) end [2025-04-26 06:42:18] Production.INFO: ProcessCDR(1,14992514,1,1,2) [2025-04-26 06:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992514', 'tblTempUsageDetail_20' ) start [2025-04-26 06:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992514', 'tblTempUsageDetail_20' ) end [2025-04-26 06:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 06:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 06:42:22] Production.INFO: ==18268== Releasing lock... [2025-04-26 06:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 06:42:22] Production.INFO: 41 MB #Memory Used# [2025-04-26 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 03:43:05 [end_date_ymd] => 2025-04-26 06:43:05 [RateCDR] => 1 ) [2025-04-26 06:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 03:43:05' and `end` < '2025-04-26 06:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 06:43:18] Production.INFO: count ==1657 [2025-04-26 06:43:18] Production.ERROR: pbx CDR StartTime 2025-04-26 03:43:05 - End Time 2025-04-26 06:43:05 [2025-04-26 06:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992519', 'tblTempUsageDetail_20' ) start [2025-04-26 06:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992519', 'tblTempUsageDetail_20' ) end [2025-04-26 06:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992519', 'tblTempVendorCDR_20' ) start [2025-04-26 06:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992519', 'tblTempVendorCDR_20' ) end [2025-04-26 06:43:19] Production.INFO: ProcessCDR(1,14992519,1,1,2) [2025-04-26 06:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992519', 'tblTempUsageDetail_20' ) start [2025-04-26 06:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992519', 'tblTempUsageDetail_20' ) end [2025-04-26 06:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 06:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 06:43:22] Production.INFO: ==18342== Releasing lock... [2025-04-26 06:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 06:43:22] Production.INFO: 41 MB #Memory Used# [2025-04-26 06:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 03:44:06 [end_date_ymd] => 2025-04-26 06:44:06 [RateCDR] => 1 ) [2025-04-26 06:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 03:44:06' and `end` < '2025-04-26 06:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 06:44:18] Production.INFO: count ==1660 [2025-04-26 06:44:19] Production.ERROR: pbx CDR StartTime 2025-04-26 03:44:06 - End Time 2025-04-26 06:44:06 [2025-04-26 06:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 06:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992524', 'tblTempUsageDetail_20' ) start [2025-04-26 06:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992524', 'tblTempUsageDetail_20' ) end [2025-04-26 06:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992524', 'tblTempVendorCDR_20' ) start [2025-04-26 06:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992524', 'tblTempVendorCDR_20' ) end [2025-04-26 06:44:19] Production.INFO: ProcessCDR(1,14992524,1,1,2) [2025-04-26 06:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992524', 'tblTempUsageDetail_20' ) start [2025-04-26 06:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992524', 'tblTempUsageDetail_20' ) end [2025-04-26 06:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 06:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 06:44:23] Production.INFO: ==18418== Releasing lock... [2025-04-26 06:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 06:44:23] Production.INFO: 41 MB #Memory Used# [2025-04-26 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 03:45:05 [end_date_ymd] => 2025-04-26 06:45:05 [RateCDR] => 1 ) [2025-04-26 06:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 03:45:05' and `end` < '2025-04-26 06:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 06:45:17] Production.INFO: count ==1660 [2025-04-26 06:45:18] Production.ERROR: pbx CDR StartTime 2025-04-26 03:45:05 - End Time 2025-04-26 06:45:05 [2025-04-26 06:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992529', 'tblTempUsageDetail_20' ) start [2025-04-26 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992529', 'tblTempUsageDetail_20' ) end [2025-04-26 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992529', 'tblTempVendorCDR_20' ) start [2025-04-26 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992529', 'tblTempVendorCDR_20' ) end [2025-04-26 06:45:18] Production.INFO: ProcessCDR(1,14992529,1,1,2) [2025-04-26 06:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992529', 'tblTempUsageDetail_20' ) start [2025-04-26 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992529', 'tblTempUsageDetail_20' ) end [2025-04-26 06:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 06:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 06:45:21] Production.INFO: ==18496== Releasing lock... [2025-04-26 06:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 06:45:21] Production.INFO: 41 MB #Memory Used# [2025-04-26 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 03:46:05 [end_date_ymd] => 2025-04-26 06:46:05 [RateCDR] => 1 ) [2025-04-26 06:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 03:46:05' and `end` < '2025-04-26 06:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 06:46:18] Production.INFO: count ==1660 [2025-04-26 06:46:19] Production.ERROR: pbx CDR StartTime 2025-04-26 03:46:05 - End Time 2025-04-26 06:46:05 [2025-04-26 06:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 06:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992534', 'tblTempUsageDetail_20' ) start [2025-04-26 06:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992534', 'tblTempUsageDetail_20' ) end [2025-04-26 06:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992534', 'tblTempVendorCDR_20' ) start [2025-04-26 06:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992534', 'tblTempVendorCDR_20' ) end [2025-04-26 06:46:19] Production.INFO: ProcessCDR(1,14992534,1,1,2) [2025-04-26 06:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992534', 'tblTempUsageDetail_20' ) start [2025-04-26 06:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992534', 'tblTempUsageDetail_20' ) end [2025-04-26 06:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 06:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 06:46:22] Production.INFO: ==18570== Releasing lock... [2025-04-26 06:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 06:46:22] Production.INFO: 41 MB #Memory Used# [2025-04-26 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 03:47:05 [end_date_ymd] => 2025-04-26 06:47:05 [RateCDR] => 1 ) [2025-04-26 06:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 03:47:05' and `end` < '2025-04-26 06:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 06:47:17] Production.INFO: count ==1660 [2025-04-26 06:47:18] Production.ERROR: pbx CDR StartTime 2025-04-26 03:47:05 - End Time 2025-04-26 06:47:05 [2025-04-26 06:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992539', 'tblTempUsageDetail_20' ) start [2025-04-26 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992539', 'tblTempUsageDetail_20' ) end [2025-04-26 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992539', 'tblTempVendorCDR_20' ) start [2025-04-26 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992539', 'tblTempVendorCDR_20' ) end [2025-04-26 06:47:18] Production.INFO: ProcessCDR(1,14992539,1,1,2) [2025-04-26 06:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992539', 'tblTempUsageDetail_20' ) start [2025-04-26 06:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992539', 'tblTempUsageDetail_20' ) end [2025-04-26 06:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 06:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 06:47:22] Production.INFO: ==18642== Releasing lock... [2025-04-26 06:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 06:47:22] Production.INFO: 41 MB #Memory Used# [2025-04-26 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 03:48:05 [end_date_ymd] => 2025-04-26 06:48:05 [RateCDR] => 1 ) [2025-04-26 06:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 03:48:05' and `end` < '2025-04-26 06:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 06:48:18] Production.INFO: count ==1660 [2025-04-26 06:48:18] Production.ERROR: pbx CDR StartTime 2025-04-26 03:48:05 - End Time 2025-04-26 06:48:05 [2025-04-26 06:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992544', 'tblTempUsageDetail_20' ) start [2025-04-26 06:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992544', 'tblTempUsageDetail_20' ) end [2025-04-26 06:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992544', 'tblTempVendorCDR_20' ) start [2025-04-26 06:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992544', 'tblTempVendorCDR_20' ) end [2025-04-26 06:48:19] Production.INFO: ProcessCDR(1,14992544,1,1,2) [2025-04-26 06:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992544', 'tblTempUsageDetail_20' ) start [2025-04-26 06:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992544', 'tblTempUsageDetail_20' ) end [2025-04-26 06:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 06:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 06:48:22] Production.INFO: ==18718== Releasing lock... [2025-04-26 06:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 06:48:22] Production.INFO: 41 MB #Memory Used# [2025-04-26 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 03:49:05 [end_date_ymd] => 2025-04-26 06:49:05 [RateCDR] => 1 ) [2025-04-26 06:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 03:49:05' and `end` < '2025-04-26 06:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 06:49:18] Production.INFO: count ==1660 [2025-04-26 06:49:19] Production.ERROR: pbx CDR StartTime 2025-04-26 03:49:05 - End Time 2025-04-26 06:49:05 [2025-04-26 06:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 06:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992549', 'tblTempUsageDetail_20' ) start [2025-04-26 06:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992549', 'tblTempUsageDetail_20' ) end [2025-04-26 06:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992549', 'tblTempVendorCDR_20' ) start [2025-04-26 06:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992549', 'tblTempVendorCDR_20' ) end [2025-04-26 06:49:19] Production.INFO: ProcessCDR(1,14992549,1,1,2) [2025-04-26 06:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992549', 'tblTempUsageDetail_20' ) start [2025-04-26 06:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992549', 'tblTempUsageDetail_20' ) end [2025-04-26 06:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 06:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 06:49:22] Production.INFO: ==18793== Releasing lock... [2025-04-26 06:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 06:49:22] Production.INFO: 41 MB #Memory Used# [2025-04-26 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 03:50:06 [end_date_ymd] => 2025-04-26 06:50:06 [RateCDR] => 1 ) [2025-04-26 06:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 03:50:06' and `end` < '2025-04-26 06:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 06:50:19] Production.INFO: count ==1652 [2025-04-26 06:50:19] Production.ERROR: pbx CDR StartTime 2025-04-26 03:50:06 - End Time 2025-04-26 06:50:06 [2025-04-26 06:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992555', 'tblTempUsageDetail_20' ) start [2025-04-26 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992555', 'tblTempUsageDetail_20' ) end [2025-04-26 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992555', 'tblTempVendorCDR_20' ) start [2025-04-26 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992555', 'tblTempVendorCDR_20' ) end [2025-04-26 06:50:19] Production.INFO: ProcessCDR(1,14992555,1,1,2) [2025-04-26 06:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992555', 'tblTempUsageDetail_20' ) start [2025-04-26 06:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992555', 'tblTempUsageDetail_20' ) end [2025-04-26 06:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 06:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 06:50:23] Production.INFO: ==18868== Releasing lock... [2025-04-26 06:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 06:50:23] Production.INFO: 41 MB #Memory Used# [2025-04-26 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 03:51:05 [end_date_ymd] => 2025-04-26 06:51:05 [RateCDR] => 1 ) [2025-04-26 06:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 03:51:05' and `end` < '2025-04-26 06:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 06:51:18] Production.INFO: count ==1652 [2025-04-26 06:51:19] Production.ERROR: pbx CDR StartTime 2025-04-26 03:51:05 - End Time 2025-04-26 06:51:05 [2025-04-26 06:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 06:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992560', 'tblTempUsageDetail_20' ) start [2025-04-26 06:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992560', 'tblTempUsageDetail_20' ) end [2025-04-26 06:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992560', 'tblTempVendorCDR_20' ) start [2025-04-26 06:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992560', 'tblTempVendorCDR_20' ) end [2025-04-26 06:51:19] Production.INFO: ProcessCDR(1,14992560,1,1,2) [2025-04-26 06:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992560', 'tblTempUsageDetail_20' ) start [2025-04-26 06:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992560', 'tblTempUsageDetail_20' ) end [2025-04-26 06:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 06:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 06:51:22] Production.INFO: ==18945== Releasing lock... [2025-04-26 06:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 06:51:22] Production.INFO: 41 MB #Memory Used# [2025-04-26 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 03:52:05 [end_date_ymd] => 2025-04-26 06:52:05 [RateCDR] => 1 ) [2025-04-26 06:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 03:52:05' and `end` < '2025-04-26 06:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 06:52:17] Production.INFO: count ==1652 [2025-04-26 06:52:18] Production.ERROR: pbx CDR StartTime 2025-04-26 03:52:05 - End Time 2025-04-26 06:52:05 [2025-04-26 06:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992565', 'tblTempUsageDetail_20' ) start [2025-04-26 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992565', 'tblTempUsageDetail_20' ) end [2025-04-26 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992565', 'tblTempVendorCDR_20' ) start [2025-04-26 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992565', 'tblTempVendorCDR_20' ) end [2025-04-26 06:52:18] Production.INFO: ProcessCDR(1,14992565,1,1,2) [2025-04-26 06:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992565', 'tblTempUsageDetail_20' ) start [2025-04-26 06:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992565', 'tblTempUsageDetail_20' ) end [2025-04-26 06:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 06:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 06:52:22] Production.INFO: ==19020== Releasing lock... [2025-04-26 06:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 06:52:22] Production.INFO: 41 MB #Memory Used# [2025-04-26 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 03:53:05 [end_date_ymd] => 2025-04-26 06:53:05 [RateCDR] => 1 ) [2025-04-26 06:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 03:53:05' and `end` < '2025-04-26 06:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 06:53:18] Production.INFO: count ==1651 [2025-04-26 06:53:19] Production.ERROR: pbx CDR StartTime 2025-04-26 03:53:05 - End Time 2025-04-26 06:53:05 [2025-04-26 06:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 06:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992570', 'tblTempUsageDetail_20' ) start [2025-04-26 06:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992570', 'tblTempUsageDetail_20' ) end [2025-04-26 06:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992570', 'tblTempVendorCDR_20' ) start [2025-04-26 06:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992570', 'tblTempVendorCDR_20' ) end [2025-04-26 06:53:19] Production.INFO: ProcessCDR(1,14992570,1,1,2) [2025-04-26 06:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992570', 'tblTempUsageDetail_20' ) start [2025-04-26 06:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992570', 'tblTempUsageDetail_20' ) end [2025-04-26 06:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 06:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 06:53:22] Production.INFO: ==19137== Releasing lock... [2025-04-26 06:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 06:53:22] Production.INFO: 41 MB #Memory Used# [2025-04-26 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 03:54:05 [end_date_ymd] => 2025-04-26 06:54:05 [RateCDR] => 1 ) [2025-04-26 06:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 03:54:05' and `end` < '2025-04-26 06:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 06:54:17] Production.INFO: count ==1650 [2025-04-26 06:54:18] Production.ERROR: pbx CDR StartTime 2025-04-26 03:54:05 - End Time 2025-04-26 06:54:05 [2025-04-26 06:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992575', 'tblTempUsageDetail_20' ) start [2025-04-26 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992575', 'tblTempUsageDetail_20' ) end [2025-04-26 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992575', 'tblTempVendorCDR_20' ) start [2025-04-26 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992575', 'tblTempVendorCDR_20' ) end [2025-04-26 06:54:18] Production.INFO: ProcessCDR(1,14992575,1,1,2) [2025-04-26 06:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992575', 'tblTempUsageDetail_20' ) start [2025-04-26 06:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992575', 'tblTempUsageDetail_20' ) end [2025-04-26 06:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 06:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 06:54:22] Production.INFO: ==19208== Releasing lock... [2025-04-26 06:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 06:54:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-26 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 03:55:05 [end_date_ymd] => 2025-04-26 06:55:05 [RateCDR] => 1 ) [2025-04-26 06:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 03:55:05' and `end` < '2025-04-26 06:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 06:55:18] Production.INFO: count ==1649 [2025-04-26 06:55:19] Production.ERROR: pbx CDR StartTime 2025-04-26 03:55:05 - End Time 2025-04-26 06:55:05 [2025-04-26 06:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 06:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992580', 'tblTempUsageDetail_20' ) start [2025-04-26 06:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992580', 'tblTempUsageDetail_20' ) end [2025-04-26 06:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992580', 'tblTempVendorCDR_20' ) start [2025-04-26 06:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992580', 'tblTempVendorCDR_20' ) end [2025-04-26 06:55:19] Production.INFO: ProcessCDR(1,14992580,1,1,2) [2025-04-26 06:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992580', 'tblTempUsageDetail_20' ) start [2025-04-26 06:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992580', 'tblTempUsageDetail_20' ) end [2025-04-26 06:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 06:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 06:55:22] Production.INFO: ==19278== Releasing lock... [2025-04-26 06:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 06:55:22] Production.INFO: 41 MB #Memory Used# [2025-04-26 06:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 03:56:06 [end_date_ymd] => 2025-04-26 06:56:06 [RateCDR] => 1 ) [2025-04-26 06:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 03:56:06' and `end` < '2025-04-26 06:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 06:56:19] Production.INFO: count ==1648 [2025-04-26 06:56:19] Production.ERROR: pbx CDR StartTime 2025-04-26 03:56:06 - End Time 2025-04-26 06:56:06 [2025-04-26 06:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 06:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992585', 'tblTempUsageDetail_20' ) start [2025-04-26 06:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992585', 'tblTempUsageDetail_20' ) end [2025-04-26 06:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992585', 'tblTempVendorCDR_20' ) start [2025-04-26 06:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992585', 'tblTempVendorCDR_20' ) end [2025-04-26 06:56:20] Production.INFO: ProcessCDR(1,14992585,1,1,2) [2025-04-26 06:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992585', 'tblTempUsageDetail_20' ) start [2025-04-26 06:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992585', 'tblTempUsageDetail_20' ) end [2025-04-26 06:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 06:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 06:56:23] Production.INFO: ==19353== Releasing lock... [2025-04-26 06:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 06:56:23] Production.INFO: 40.75 MB #Memory Used# [2025-04-26 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 03:57:05 [end_date_ymd] => 2025-04-26 06:57:05 [RateCDR] => 1 ) [2025-04-26 06:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 03:57:05' and `end` < '2025-04-26 06:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 06:57:18] Production.INFO: count ==1651 [2025-04-26 06:57:18] Production.ERROR: pbx CDR StartTime 2025-04-26 03:57:05 - End Time 2025-04-26 06:57:05 [2025-04-26 06:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992590', 'tblTempUsageDetail_20' ) start [2025-04-26 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992590', 'tblTempUsageDetail_20' ) end [2025-04-26 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992590', 'tblTempVendorCDR_20' ) start [2025-04-26 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992590', 'tblTempVendorCDR_20' ) end [2025-04-26 06:57:18] Production.INFO: ProcessCDR(1,14992590,1,1,2) [2025-04-26 06:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992590', 'tblTempUsageDetail_20' ) start [2025-04-26 06:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992590', 'tblTempUsageDetail_20' ) end [2025-04-26 06:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 06:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 06:57:22] Production.INFO: ==19428== Releasing lock... [2025-04-26 06:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 06:57:22] Production.INFO: 41 MB #Memory Used# [2025-04-26 06:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 03:58:06 [end_date_ymd] => 2025-04-26 06:58:06 [RateCDR] => 1 ) [2025-04-26 06:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 03:58:06' and `end` < '2025-04-26 06:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 06:58:18] Production.INFO: count ==1651 [2025-04-26 06:58:19] Production.ERROR: pbx CDR StartTime 2025-04-26 03:58:06 - End Time 2025-04-26 06:58:06 [2025-04-26 06:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 06:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992595', 'tblTempUsageDetail_20' ) start [2025-04-26 06:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992595', 'tblTempUsageDetail_20' ) end [2025-04-26 06:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992595', 'tblTempVendorCDR_20' ) start [2025-04-26 06:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992595', 'tblTempVendorCDR_20' ) end [2025-04-26 06:58:19] Production.INFO: ProcessCDR(1,14992595,1,1,2) [2025-04-26 06:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992595', 'tblTempUsageDetail_20' ) start [2025-04-26 06:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992595', 'tblTempUsageDetail_20' ) end [2025-04-26 06:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 06:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 06:58:22] Production.INFO: ==19501== Releasing lock... [2025-04-26 06:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 06:58:22] Production.INFO: 41 MB #Memory Used# [2025-04-26 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 03:59:05 [end_date_ymd] => 2025-04-26 06:59:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 03:59:05' and `end` < '2025-04-26 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-04-26 06:59:18] Production.INFO: count ==1651 [2025-04-26 06:59:18] Production.ERROR: pbx CDR StartTime 2025-04-26 03:59:05 - End Time 2025-04-26 06:59:05 [2025-04-26 06:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992600', 'tblTempUsageDetail_20' ) start [2025-04-26 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992600', 'tblTempUsageDetail_20' ) end [2025-04-26 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992600', 'tblTempVendorCDR_20' ) start [2025-04-26 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992600', 'tblTempVendorCDR_20' ) end [2025-04-26 06:59:18] Production.INFO: ProcessCDR(1,14992600,1,1,2) [2025-04-26 06:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 06:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 06:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992600', 'tblTempUsageDetail_20' ) start [2025-04-26 06:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992600', 'tblTempUsageDetail_20' ) end [2025-04-26 06:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 06:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 06:59:22] Production.INFO: ==19572== Releasing lock... [2025-04-26 06:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 06:59:22] Production.INFO: 41 MB #Memory Used# [2025-04-26 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 04:00:06 [end_date_ymd] => 2025-04-26 07:00:06 [RateCDR] => 1 ) [2025-04-26 07:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 04:00:06' and `end` < '2025-04-26 07:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 07:00:19] Production.INFO: count ==1649 [2025-04-26 07:00:19] Production.ERROR: pbx CDR StartTime 2025-04-26 04:00:06 - End Time 2025-04-26 07:00:06 [2025-04-26 07:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992606', 'tblTempUsageDetail_20' ) start [2025-04-26 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992606', 'tblTempUsageDetail_20' ) end [2025-04-26 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992606', 'tblTempVendorCDR_20' ) start [2025-04-26 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992606', 'tblTempVendorCDR_20' ) end [2025-04-26 07:00:19] Production.INFO: ProcessCDR(1,14992606,1,1,2) [2025-04-26 07:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992606', 'tblTempUsageDetail_20' ) start [2025-04-26 07:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992606', 'tblTempUsageDetail_20' ) end [2025-04-26 07:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 07:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 07:00:23] Production.INFO: ==19644== Releasing lock... [2025-04-26 07:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 07:00:23] Production.INFO: 41 MB #Memory Used# [2025-04-26 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 04:01:05 [end_date_ymd] => 2025-04-26 07:01:05 [RateCDR] => 1 ) [2025-04-26 07:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 04:01:05' and `end` < '2025-04-26 07:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 07:01:18] Production.INFO: count ==1649 [2025-04-26 07:01:18] Production.ERROR: pbx CDR StartTime 2025-04-26 04:01:05 - End Time 2025-04-26 07:01:05 [2025-04-26 07:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992611', 'tblTempUsageDetail_20' ) start [2025-04-26 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992611', 'tblTempUsageDetail_20' ) end [2025-04-26 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992611', 'tblTempVendorCDR_20' ) start [2025-04-26 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992611', 'tblTempVendorCDR_20' ) end [2025-04-26 07:01:18] Production.INFO: ProcessCDR(1,14992611,1,1,2) [2025-04-26 07:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992611', 'tblTempUsageDetail_20' ) start [2025-04-26 07:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992611', 'tblTempUsageDetail_20' ) end [2025-04-26 07:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 07:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 07:01:22] Production.INFO: ==19729== Releasing lock... [2025-04-26 07:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 07:01:22] Production.INFO: 41 MB #Memory Used# [2025-04-26 07:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 04:02:06 [end_date_ymd] => 2025-04-26 07:02:06 [RateCDR] => 1 ) [2025-04-26 07:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 04:02:06' and `end` < '2025-04-26 07:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 07:02:20] Production.INFO: count ==1654 [2025-04-26 07:02:21] Production.ERROR: pbx CDR StartTime 2025-04-26 04:02:06 - End Time 2025-04-26 07:02:06 [2025-04-26 07:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 07:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992616', 'tblTempUsageDetail_20' ) start [2025-04-26 07:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992616', 'tblTempUsageDetail_20' ) end [2025-04-26 07:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992616', 'tblTempVendorCDR_20' ) start [2025-04-26 07:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992616', 'tblTempVendorCDR_20' ) end [2025-04-26 07:02:21] Production.INFO: ProcessCDR(1,14992616,1,1,2) [2025-04-26 07:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992616', 'tblTempUsageDetail_20' ) start [2025-04-26 07:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992616', 'tblTempUsageDetail_20' ) end [2025-04-26 07:02:25] Production.ERROR: pbx prc_insertCDR start [2025-04-26 07:02:25] Production.ERROR: pbx prc_insertCDR end [2025-04-26 07:02:25] Production.INFO: ==19890== Releasing lock... [2025-04-26 07:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 07:02:25] Production.INFO: 41.25 MB #Memory Used# [2025-04-26 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 04:03:05 [end_date_ymd] => 2025-04-26 07:03:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 04:03:05' and `end` < '2025-04-26 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-04-26 07:03:18] Production.INFO: count ==1654 [2025-04-26 07:03:19] Production.ERROR: pbx CDR StartTime 2025-04-26 04:03:05 - End Time 2025-04-26 07:03:05 [2025-04-26 07:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992621', 'tblTempUsageDetail_20' ) start [2025-04-26 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992621', 'tblTempUsageDetail_20' ) end [2025-04-26 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992621', 'tblTempVendorCDR_20' ) start [2025-04-26 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992621', 'tblTempVendorCDR_20' ) end [2025-04-26 07:03:19] Production.INFO: ProcessCDR(1,14992621,1,1,2) [2025-04-26 07:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992621', 'tblTempUsageDetail_20' ) start [2025-04-26 07:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992621', 'tblTempUsageDetail_20' ) end [2025-04-26 07:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 07:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 07:03:22] Production.INFO: ==19964== Releasing lock... [2025-04-26 07:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 07:03:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-26 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 04:04:05 [end_date_ymd] => 2025-04-26 07:04:05 [RateCDR] => 1 ) [2025-04-26 07:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 04:04:05' and `end` < '2025-04-26 07:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 07:04:18] Production.INFO: count ==1652 [2025-04-26 07:04:19] Production.ERROR: pbx CDR StartTime 2025-04-26 04:04:05 - End Time 2025-04-26 07:04:05 [2025-04-26 07:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992626', 'tblTempUsageDetail_20' ) start [2025-04-26 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992626', 'tblTempUsageDetail_20' ) end [2025-04-26 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992626', 'tblTempVendorCDR_20' ) start [2025-04-26 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992626', 'tblTempVendorCDR_20' ) end [2025-04-26 07:04:19] Production.INFO: ProcessCDR(1,14992626,1,1,2) [2025-04-26 07:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992626', 'tblTempUsageDetail_20' ) start [2025-04-26 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992626', 'tblTempUsageDetail_20' ) end [2025-04-26 07:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 07:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 07:04:22] Production.INFO: ==20035== Releasing lock... [2025-04-26 07:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 07:04:22] Production.INFO: 41 MB #Memory Used# [2025-04-26 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 04:05:05 [end_date_ymd] => 2025-04-26 07:05:05 [RateCDR] => 1 ) [2025-04-26 07:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 04:05:05' and `end` < '2025-04-26 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-04-26 07:05:21] Production.INFO: count ==1651 [2025-04-26 07:05:22] Production.ERROR: pbx CDR StartTime 2025-04-26 04:05:05 - End Time 2025-04-26 07:05:05 [2025-04-26 07:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 07:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992631', 'tblTempUsageDetail_20' ) start [2025-04-26 07:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992631', 'tblTempUsageDetail_20' ) end [2025-04-26 07:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992631', 'tblTempVendorCDR_20' ) start [2025-04-26 07:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992631', 'tblTempVendorCDR_20' ) end [2025-04-26 07:05:22] Production.INFO: ProcessCDR(1,14992631,1,1,2) [2025-04-26 07:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992631', 'tblTempUsageDetail_20' ) start [2025-04-26 07:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992631', 'tblTempUsageDetail_20' ) end [2025-04-26 07:05:26] Production.ERROR: pbx prc_insertCDR start [2025-04-26 07:05:26] Production.ERROR: pbx prc_insertCDR end [2025-04-26 07:05:26] Production.INFO: ==20187== Releasing lock... [2025-04-26 07:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 07:05:26] Production.INFO: 41 MB #Memory Used# [2025-04-26 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 04:06:05 [end_date_ymd] => 2025-04-26 07:06:05 [RateCDR] => 1 ) [2025-04-26 07:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 04:06:05' and `end` < '2025-04-26 07:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 07:06:20] Production.INFO: count ==1644 [2025-04-26 07:06:20] Production.ERROR: pbx CDR StartTime 2025-04-26 04:06:05 - End Time 2025-04-26 07:06:05 [2025-04-26 07:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 07:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992636', 'tblTempUsageDetail_20' ) start [2025-04-26 07:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992636', 'tblTempUsageDetail_20' ) end [2025-04-26 07:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992636', 'tblTempVendorCDR_20' ) start [2025-04-26 07:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992636', 'tblTempVendorCDR_20' ) end [2025-04-26 07:06:20] Production.INFO: ProcessCDR(1,14992636,1,1,2) [2025-04-26 07:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992636', 'tblTempUsageDetail_20' ) start [2025-04-26 07:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992636', 'tblTempUsageDetail_20' ) end [2025-04-26 07:06:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 07:06:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 07:06:24] Production.INFO: ==20258== Releasing lock... [2025-04-26 07:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 07:06:24] Production.INFO: 40.5 MB #Memory Used# [2025-04-26 07:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 04:07:06 [end_date_ymd] => 2025-04-26 07:07:06 [RateCDR] => 1 ) [2025-04-26 07:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 04:07:06' and `end` < '2025-04-26 07:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 07:07:19] Production.INFO: count ==1642 [2025-04-26 07:07:19] Production.ERROR: pbx CDR StartTime 2025-04-26 04:07:06 - End Time 2025-04-26 07:07:06 [2025-04-26 07:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992641', 'tblTempUsageDetail_20' ) start [2025-04-26 07:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992641', 'tblTempUsageDetail_20' ) end [2025-04-26 07:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992641', 'tblTempVendorCDR_20' ) start [2025-04-26 07:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992641', 'tblTempVendorCDR_20' ) end [2025-04-26 07:07:20] Production.INFO: ProcessCDR(1,14992641,1,1,2) [2025-04-26 07:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992641', 'tblTempUsageDetail_20' ) start [2025-04-26 07:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992641', 'tblTempUsageDetail_20' ) end [2025-04-26 07:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 07:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 07:07:23] Production.INFO: ==20343== Releasing lock... [2025-04-26 07:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 07:07:23] Production.INFO: 40.75 MB #Memory Used# [2025-04-26 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 04:08:05 [end_date_ymd] => 2025-04-26 07:08:05 [RateCDR] => 1 ) [2025-04-26 07:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 04:08:05' and `end` < '2025-04-26 07:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 07:08:18] Production.INFO: count ==1638 [2025-04-26 07:08:18] Production.ERROR: pbx CDR StartTime 2025-04-26 04:08:05 - End Time 2025-04-26 07:08:05 [2025-04-26 07:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992646', 'tblTempUsageDetail_20' ) start [2025-04-26 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992646', 'tblTempUsageDetail_20' ) end [2025-04-26 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992646', 'tblTempVendorCDR_20' ) start [2025-04-26 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992646', 'tblTempVendorCDR_20' ) end [2025-04-26 07:08:19] Production.INFO: ProcessCDR(1,14992646,1,1,2) [2025-04-26 07:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992646', 'tblTempUsageDetail_20' ) start [2025-04-26 07:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992646', 'tblTempUsageDetail_20' ) end [2025-04-26 07:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 07:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 07:08:22] Production.INFO: ==20478== Releasing lock... [2025-04-26 07:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 07:08:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-26 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 04:09:05 [end_date_ymd] => 2025-04-26 07:09:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 04:09:05' and `end` < '2025-04-26 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-04-26 07:09:18] Production.INFO: count ==1638 [2025-04-26 07:09:19] Production.ERROR: pbx CDR StartTime 2025-04-26 04:09:05 - End Time 2025-04-26 07:09:05 [2025-04-26 07:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992651', 'tblTempUsageDetail_20' ) start [2025-04-26 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992651', 'tblTempUsageDetail_20' ) end [2025-04-26 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992651', 'tblTempVendorCDR_20' ) start [2025-04-26 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992651', 'tblTempVendorCDR_20' ) end [2025-04-26 07:09:19] Production.INFO: ProcessCDR(1,14992651,1,1,2) [2025-04-26 07:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992651', 'tblTempUsageDetail_20' ) start [2025-04-26 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992651', 'tblTempUsageDetail_20' ) end [2025-04-26 07:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 07:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 07:09:22] Production.INFO: ==20653== Releasing lock... [2025-04-26 07:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 07:09:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-26 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 04:10:06 [end_date_ymd] => 2025-04-26 07:10:06 [RateCDR] => 1 ) [2025-04-26 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-04-26 04:10:06' and `end` < '2025-04-26 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-04-26 07:10:20] Production.INFO: count ==1638 [2025-04-26 07:10:20] Production.ERROR: pbx CDR StartTime 2025-04-26 04:10:06 - End Time 2025-04-26 07:10:06 [2025-04-26 07:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992657', 'tblTempUsageDetail_20' ) start [2025-04-26 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992657', 'tblTempUsageDetail_20' ) end [2025-04-26 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992657', 'tblTempVendorCDR_20' ) start [2025-04-26 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992657', 'tblTempVendorCDR_20' ) end [2025-04-26 07:10:20] Production.INFO: ProcessCDR(1,14992657,1,1,2) [2025-04-26 07:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992657', 'tblTempUsageDetail_20' ) start [2025-04-26 07:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992657', 'tblTempUsageDetail_20' ) end [2025-04-26 07:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 07:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 07:10:24] Production.INFO: ==20752== Releasing lock... [2025-04-26 07:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 07:10:24] Production.INFO: 40.75 MB #Memory Used# [2025-04-26 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 04:11:05 [end_date_ymd] => 2025-04-26 07:11:05 [RateCDR] => 1 ) [2025-04-26 07:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 04:11:05' and `end` < '2025-04-26 07:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 07:11:21] Production.INFO: count ==1638 [2025-04-26 07:11:21] Production.ERROR: pbx CDR StartTime 2025-04-26 04:11:05 - End Time 2025-04-26 07:11:05 [2025-04-26 07:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 07:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992662', 'tblTempUsageDetail_20' ) start [2025-04-26 07:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992662', 'tblTempUsageDetail_20' ) end [2025-04-26 07:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992662', 'tblTempVendorCDR_20' ) start [2025-04-26 07:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992662', 'tblTempVendorCDR_20' ) end [2025-04-26 07:11:21] Production.INFO: ProcessCDR(1,14992662,1,1,2) [2025-04-26 07:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992662', 'tblTempUsageDetail_20' ) start [2025-04-26 07:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992662', 'tblTempUsageDetail_20' ) end [2025-04-26 07:11:25] Production.ERROR: pbx prc_insertCDR start [2025-04-26 07:11:25] Production.ERROR: pbx prc_insertCDR end [2025-04-26 07:11:25] Production.INFO: ==20853== Releasing lock... [2025-04-26 07:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 07:11:25] Production.INFO: 40.75 MB #Memory Used# [2025-04-26 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 04:12:05 [end_date_ymd] => 2025-04-26 07:12:05 [RateCDR] => 1 ) [2025-04-26 07:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 04:12:05' and `end` < '2025-04-26 07:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 07:12:18] Production.INFO: count ==1638 [2025-04-26 07:12:19] Production.ERROR: pbx CDR StartTime 2025-04-26 04:12:05 - End Time 2025-04-26 07:12:05 [2025-04-26 07:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992667', 'tblTempUsageDetail_20' ) start [2025-04-26 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992667', 'tblTempUsageDetail_20' ) end [2025-04-26 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992667', 'tblTempVendorCDR_20' ) start [2025-04-26 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992667', 'tblTempVendorCDR_20' ) end [2025-04-26 07:12:19] Production.INFO: ProcessCDR(1,14992667,1,1,2) [2025-04-26 07:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992667', 'tblTempUsageDetail_20' ) start [2025-04-26 07:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992667', 'tblTempUsageDetail_20' ) end [2025-04-26 07:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 07:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 07:12:22] Production.INFO: ==21035== Releasing lock... [2025-04-26 07:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 07:12:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-26 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 04:13:05 [end_date_ymd] => 2025-04-26 07:13:05 [RateCDR] => 1 ) [2025-04-26 07:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 04:13:05' and `end` < '2025-04-26 07:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 07:13:18] Production.INFO: count ==1638 [2025-04-26 07:13:18] Production.ERROR: pbx CDR StartTime 2025-04-26 04:13:05 - End Time 2025-04-26 07:13:05 [2025-04-26 07:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992672', 'tblTempUsageDetail_20' ) start [2025-04-26 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992672', 'tblTempUsageDetail_20' ) end [2025-04-26 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992672', 'tblTempVendorCDR_20' ) start [2025-04-26 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992672', 'tblTempVendorCDR_20' ) end [2025-04-26 07:13:18] Production.INFO: ProcessCDR(1,14992672,1,1,2) [2025-04-26 07:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992672', 'tblTempUsageDetail_20' ) start [2025-04-26 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992672', 'tblTempUsageDetail_20' ) end [2025-04-26 07:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 07:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 07:13:22] Production.INFO: ==21139== Releasing lock... [2025-04-26 07:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 07:13:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-26 07:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 04:14:06 [end_date_ymd] => 2025-04-26 07:14:06 [RateCDR] => 1 ) [2025-04-26 07:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 04:14:06' and `end` < '2025-04-26 07:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 07:14:19] Production.INFO: count ==1635 [2025-04-26 07:14:19] Production.ERROR: pbx CDR StartTime 2025-04-26 04:14:06 - End Time 2025-04-26 07:14:06 [2025-04-26 07:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992677', 'tblTempUsageDetail_20' ) start [2025-04-26 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992677', 'tblTempUsageDetail_20' ) end [2025-04-26 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992677', 'tblTempVendorCDR_20' ) start [2025-04-26 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992677', 'tblTempVendorCDR_20' ) end [2025-04-26 07:14:19] Production.INFO: ProcessCDR(1,14992677,1,1,2) [2025-04-26 07:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992677', 'tblTempUsageDetail_20' ) start [2025-04-26 07:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992677', 'tblTempUsageDetail_20' ) end [2025-04-26 07:14:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 07:14:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 07:14:23] Production.INFO: ==21242== Releasing lock... [2025-04-26 07:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 07:14:23] Production.INFO: 41 MB #Memory Used# [2025-04-26 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 04:15:05 [end_date_ymd] => 2025-04-26 07:15:05 [RateCDR] => 1 ) [2025-04-26 07:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 04:15:05' and `end` < '2025-04-26 07:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 07:15:18] Production.INFO: count ==1648 [2025-04-26 07:15:19] Production.ERROR: pbx CDR StartTime 2025-04-26 04:15:05 - End Time 2025-04-26 07:15:05 [2025-04-26 07:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992682', 'tblTempUsageDetail_20' ) start [2025-04-26 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992682', 'tblTempUsageDetail_20' ) end [2025-04-26 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992682', 'tblTempVendorCDR_20' ) start [2025-04-26 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992682', 'tblTempVendorCDR_20' ) end [2025-04-26 07:15:19] Production.INFO: ProcessCDR(1,14992682,1,1,2) [2025-04-26 07:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992682', 'tblTempUsageDetail_20' ) start [2025-04-26 07:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992682', 'tblTempUsageDetail_20' ) end [2025-04-26 07:15:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 07:15:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 07:15:24] Production.INFO: ==21384== Releasing lock... [2025-04-26 07:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 07:15:24] Production.INFO: 41 MB #Memory Used# [2025-04-26 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 04:16:05 [end_date_ymd] => 2025-04-26 07:16:05 [RateCDR] => 1 ) [2025-04-26 07:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 04:16:05' and `end` < '2025-04-26 07:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 07:16:19] Production.INFO: count ==1649 [2025-04-26 07:16:19] Production.ERROR: pbx CDR StartTime 2025-04-26 04:16:05 - End Time 2025-04-26 07:16:05 [2025-04-26 07:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992687', 'tblTempUsageDetail_20' ) start [2025-04-26 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992687', 'tblTempUsageDetail_20' ) end [2025-04-26 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992687', 'tblTempVendorCDR_20' ) start [2025-04-26 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992687', 'tblTempVendorCDR_20' ) end [2025-04-26 07:16:19] Production.INFO: ProcessCDR(1,14992687,1,1,2) [2025-04-26 07:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992687', 'tblTempUsageDetail_20' ) start [2025-04-26 07:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992687', 'tblTempUsageDetail_20' ) end [2025-04-26 07:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 07:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 07:16:23] Production.INFO: ==21521== Releasing lock... [2025-04-26 07:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 07:16:23] Production.INFO: 41 MB #Memory Used# [2025-04-26 07:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 04:17:04 [end_date_ymd] => 2025-04-26 07:17:04 [RateCDR] => 1 ) [2025-04-26 07:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 04:17:04' and `end` < '2025-04-26 07:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 07:17:18] Production.INFO: count ==1646 [2025-04-26 07:17:19] Production.ERROR: pbx CDR StartTime 2025-04-26 04:17:04 - End Time 2025-04-26 07:17:04 [2025-04-26 07:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992692', 'tblTempUsageDetail_20' ) start [2025-04-26 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992692', 'tblTempUsageDetail_20' ) end [2025-04-26 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992692', 'tblTempVendorCDR_20' ) start [2025-04-26 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992692', 'tblTempVendorCDR_20' ) end [2025-04-26 07:17:19] Production.INFO: ProcessCDR(1,14992692,1,1,2) [2025-04-26 07:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992692', 'tblTempUsageDetail_20' ) start [2025-04-26 07:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992692', 'tblTempUsageDetail_20' ) end [2025-04-26 07:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 07:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 07:17:22] Production.INFO: ==21618== Releasing lock... [2025-04-26 07:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 07:17:22] Production.INFO: 41 MB #Memory Used# [2025-04-26 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 04:18:05 [end_date_ymd] => 2025-04-26 07:18:05 [RateCDR] => 1 ) [2025-04-26 07:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 04:18:05' and `end` < '2025-04-26 07:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 07:18:19] Production.INFO: count ==1646 [2025-04-26 07:18:20] Production.ERROR: pbx CDR StartTime 2025-04-26 04:18:05 - End Time 2025-04-26 07:18:05 [2025-04-26 07:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 07:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992697', 'tblTempUsageDetail_20' ) start [2025-04-26 07:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992697', 'tblTempUsageDetail_20' ) end [2025-04-26 07:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992697', 'tblTempVendorCDR_20' ) start [2025-04-26 07:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992697', 'tblTempVendorCDR_20' ) end [2025-04-26 07:18:20] Production.INFO: ProcessCDR(1,14992697,1,1,2) [2025-04-26 07:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992697', 'tblTempUsageDetail_20' ) start [2025-04-26 07:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992697', 'tblTempUsageDetail_20' ) end [2025-04-26 07:18:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 07:18:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 07:18:23] Production.INFO: ==21715== Releasing lock... [2025-04-26 07:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 07:18:23] Production.INFO: 41 MB #Memory Used# [2025-04-26 07:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 04:19:06 [end_date_ymd] => 2025-04-26 07:19:06 [RateCDR] => 1 ) [2025-04-26 07:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 04:19:06' and `end` < '2025-04-26 07:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 07:19:20] Production.INFO: count ==1644 [2025-04-26 07:19:21] Production.ERROR: pbx CDR StartTime 2025-04-26 04:19:06 - End Time 2025-04-26 07:19:06 [2025-04-26 07:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 07:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992702', 'tblTempUsageDetail_20' ) start [2025-04-26 07:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992702', 'tblTempUsageDetail_20' ) end [2025-04-26 07:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992702', 'tblTempVendorCDR_20' ) start [2025-04-26 07:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992702', 'tblTempVendorCDR_20' ) end [2025-04-26 07:19:21] Production.INFO: ProcessCDR(1,14992702,1,1,2) [2025-04-26 07:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992702', 'tblTempUsageDetail_20' ) start [2025-04-26 07:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992702', 'tblTempUsageDetail_20' ) end [2025-04-26 07:19:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 07:19:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 07:19:24] Production.INFO: ==21814== Releasing lock... [2025-04-26 07:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 07:19:24] Production.INFO: 41 MB #Memory Used# [2025-04-26 07:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 04:20:05 [end_date_ymd] => 2025-04-26 07:20:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 04:20:05' and `end` < '2025-04-26 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-04-26 07:20:18] Production.INFO: count ==1633 [2025-04-26 07:20:19] Production.ERROR: pbx CDR StartTime 2025-04-26 04:20:05 - End Time 2025-04-26 07:20:05 [2025-04-26 07:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992707', 'tblTempUsageDetail_20' ) start [2025-04-26 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992707', 'tblTempUsageDetail_20' ) end [2025-04-26 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992707', 'tblTempVendorCDR_20' ) start [2025-04-26 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992707', 'tblTempVendorCDR_20' ) end [2025-04-26 07:20:19] Production.INFO: ProcessCDR(1,14992707,1,1,2) [2025-04-26 07:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992707', 'tblTempUsageDetail_20' ) start [2025-04-26 07:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992707', 'tblTempUsageDetail_20' ) end [2025-04-26 07:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 07:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 07:20:23] Production.INFO: ==21914== Releasing lock... [2025-04-26 07:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 07:20:23] Production.INFO: 40.75 MB #Memory Used# [2025-04-26 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 04:21:05 [end_date_ymd] => 2025-04-26 07:21:05 [RateCDR] => 1 ) [2025-04-26 07:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 04:21:05' and `end` < '2025-04-26 07:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 07:21:18] Production.INFO: count ==1629 [2025-04-26 07:21:19] Production.ERROR: pbx CDR StartTime 2025-04-26 04:21:05 - End Time 2025-04-26 07:21:05 [2025-04-26 07:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992713', 'tblTempUsageDetail_20' ) start [2025-04-26 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992713', 'tblTempUsageDetail_20' ) end [2025-04-26 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992713', 'tblTempVendorCDR_20' ) start [2025-04-26 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992713', 'tblTempVendorCDR_20' ) end [2025-04-26 07:21:19] Production.INFO: ProcessCDR(1,14992713,1,1,2) [2025-04-26 07:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992713', 'tblTempUsageDetail_20' ) start [2025-04-26 07:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992713', 'tblTempUsageDetail_20' ) end [2025-04-26 07:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 07:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 07:21:22] Production.INFO: ==22018== Releasing lock... [2025-04-26 07:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 07:21:22] Production.INFO: 41 MB #Memory Used# [2025-04-26 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 04:22:05 [end_date_ymd] => 2025-04-26 07:22:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 04:22:05' and `end` < '2025-04-26 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-04-26 07:22:18] Production.INFO: count ==1629 [2025-04-26 07:22:19] Production.ERROR: pbx CDR StartTime 2025-04-26 04:22:05 - End Time 2025-04-26 07:22:05 [2025-04-26 07:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992718', 'tblTempUsageDetail_20' ) start [2025-04-26 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992718', 'tblTempUsageDetail_20' ) end [2025-04-26 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992718', 'tblTempVendorCDR_20' ) start [2025-04-26 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992718', 'tblTempVendorCDR_20' ) end [2025-04-26 07:22:19] Production.INFO: ProcessCDR(1,14992718,1,1,2) [2025-04-26 07:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992718', 'tblTempUsageDetail_20' ) start [2025-04-26 07:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992718', 'tblTempUsageDetail_20' ) end [2025-04-26 07:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 07:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 07:22:23] Production.INFO: ==22115== Releasing lock... [2025-04-26 07:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 07:22:23] Production.INFO: 41 MB #Memory Used# [2025-04-26 07:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 04:23:06 [end_date_ymd] => 2025-04-26 07:23:06 [RateCDR] => 1 ) [2025-04-26 07:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 04:23:06' and `end` < '2025-04-26 07:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 07:23:18] Production.INFO: count ==1625 [2025-04-26 07:23:19] Production.ERROR: pbx CDR StartTime 2025-04-26 04:23:06 - End Time 2025-04-26 07:23:06 [2025-04-26 07:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992723', 'tblTempUsageDetail_20' ) start [2025-04-26 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992723', 'tblTempUsageDetail_20' ) end [2025-04-26 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992723', 'tblTempVendorCDR_20' ) start [2025-04-26 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992723', 'tblTempVendorCDR_20' ) end [2025-04-26 07:23:19] Production.INFO: ProcessCDR(1,14992723,1,1,2) [2025-04-26 07:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992723', 'tblTempUsageDetail_20' ) start [2025-04-26 07:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992723', 'tblTempUsageDetail_20' ) end [2025-04-26 07:23:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 07:23:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 07:23:23] Production.INFO: ==22215== Releasing lock... [2025-04-26 07:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 07:23:23] Production.INFO: 41.25 MB #Memory Used# [2025-04-26 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 04:24:05 [end_date_ymd] => 2025-04-26 07:24:05 [RateCDR] => 1 ) [2025-04-26 07:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 04:24:05' and `end` < '2025-04-26 07:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 07:24:18] Production.INFO: count ==1623 [2025-04-26 07:24:18] Production.ERROR: pbx CDR StartTime 2025-04-26 04:24:05 - End Time 2025-04-26 07:24:05 [2025-04-26 07:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992728', 'tblTempUsageDetail_20' ) start [2025-04-26 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992728', 'tblTempUsageDetail_20' ) end [2025-04-26 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992728', 'tblTempVendorCDR_20' ) start [2025-04-26 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992728', 'tblTempVendorCDR_20' ) end [2025-04-26 07:24:18] Production.INFO: ProcessCDR(1,14992728,1,1,2) [2025-04-26 07:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992728', 'tblTempUsageDetail_20' ) start [2025-04-26 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992728', 'tblTempUsageDetail_20' ) end [2025-04-26 07:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 07:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 07:24:22] Production.INFO: ==22354== Releasing lock... [2025-04-26 07:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 07:24:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-26 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 04:25:05 [end_date_ymd] => 2025-04-26 07:25:05 [RateCDR] => 1 ) [2025-04-26 07:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 04:25:05' and `end` < '2025-04-26 07:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 07:25:18] Production.INFO: count ==1623 [2025-04-26 07:25:19] Production.ERROR: pbx CDR StartTime 2025-04-26 04:25:05 - End Time 2025-04-26 07:25:05 [2025-04-26 07:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 07:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992733', 'tblTempUsageDetail_20' ) start [2025-04-26 07:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992733', 'tblTempUsageDetail_20' ) end [2025-04-26 07:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992733', 'tblTempVendorCDR_20' ) start [2025-04-26 07:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992733', 'tblTempVendorCDR_20' ) end [2025-04-26 07:25:19] Production.INFO: ProcessCDR(1,14992733,1,1,2) [2025-04-26 07:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992733', 'tblTempUsageDetail_20' ) start [2025-04-26 07:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992733', 'tblTempUsageDetail_20' ) end [2025-04-26 07:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 07:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 07:25:22] Production.INFO: ==22456== Releasing lock... [2025-04-26 07:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 07:25:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-26 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 04:26:05 [end_date_ymd] => 2025-04-26 07:26:05 [RateCDR] => 1 ) [2025-04-26 07:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 04:26:05' and `end` < '2025-04-26 07:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 07:26:18] Production.INFO: count ==1622 [2025-04-26 07:26:18] Production.ERROR: pbx CDR StartTime 2025-04-26 04:26:05 - End Time 2025-04-26 07:26:05 [2025-04-26 07:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992738', 'tblTempUsageDetail_20' ) start [2025-04-26 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992738', 'tblTempUsageDetail_20' ) end [2025-04-26 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992738', 'tblTempVendorCDR_20' ) start [2025-04-26 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992738', 'tblTempVendorCDR_20' ) end [2025-04-26 07:26:18] Production.INFO: ProcessCDR(1,14992738,1,1,2) [2025-04-26 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992738', 'tblTempUsageDetail_20' ) start [2025-04-26 07:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992738', 'tblTempUsageDetail_20' ) end [2025-04-26 07:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 07:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 07:26:22] Production.INFO: ==22552== Releasing lock... [2025-04-26 07:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 07:26:22] Production.INFO: 41 MB #Memory Used# [2025-04-26 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 04:27:05 [end_date_ymd] => 2025-04-26 07:27:05 [RateCDR] => 1 ) [2025-04-26 07:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 04:27:05' and `end` < '2025-04-26 07:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 07:27:18] Production.INFO: count ==1618 [2025-04-26 07:27:19] Production.ERROR: pbx CDR StartTime 2025-04-26 04:27:05 - End Time 2025-04-26 07:27:05 [2025-04-26 07:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 07:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992743', 'tblTempUsageDetail_20' ) start [2025-04-26 07:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992743', 'tblTempUsageDetail_20' ) end [2025-04-26 07:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992743', 'tblTempVendorCDR_20' ) start [2025-04-26 07:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992743', 'tblTempVendorCDR_20' ) end [2025-04-26 07:27:19] Production.INFO: ProcessCDR(1,14992743,1,1,2) [2025-04-26 07:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992743', 'tblTempUsageDetail_20' ) start [2025-04-26 07:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992743', 'tblTempUsageDetail_20' ) end [2025-04-26 07:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 07:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 07:27:22] Production.INFO: ==22627== Releasing lock... [2025-04-26 07:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 07:27:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-26 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 04:28:05 [end_date_ymd] => 2025-04-26 07:28:05 [RateCDR] => 1 ) [2025-04-26 07:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 04:28:05' and `end` < '2025-04-26 07:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 07:28:17] Production.INFO: count ==1616 [2025-04-26 07:28:18] Production.ERROR: pbx CDR StartTime 2025-04-26 04:28:05 - End Time 2025-04-26 07:28:05 [2025-04-26 07:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992748', 'tblTempUsageDetail_20' ) start [2025-04-26 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992748', 'tblTempUsageDetail_20' ) end [2025-04-26 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992748', 'tblTempVendorCDR_20' ) start [2025-04-26 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992748', 'tblTempVendorCDR_20' ) end [2025-04-26 07:28:18] Production.INFO: ProcessCDR(1,14992748,1,1,2) [2025-04-26 07:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992748', 'tblTempUsageDetail_20' ) start [2025-04-26 07:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992748', 'tblTempUsageDetail_20' ) end [2025-04-26 07:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 07:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 07:28:22] Production.INFO: ==22698== Releasing lock... [2025-04-26 07:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 07:28:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-26 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 04:29:05 [end_date_ymd] => 2025-04-26 07:29:05 [RateCDR] => 1 ) [2025-04-26 07:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 04:29:05' and `end` < '2025-04-26 07:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 07:29:18] Production.INFO: count ==1617 [2025-04-26 07:29:19] Production.ERROR: pbx CDR StartTime 2025-04-26 04:29:05 - End Time 2025-04-26 07:29:05 [2025-04-26 07:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 07:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992753', 'tblTempUsageDetail_20' ) start [2025-04-26 07:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992753', 'tblTempUsageDetail_20' ) end [2025-04-26 07:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992753', 'tblTempVendorCDR_20' ) start [2025-04-26 07:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992753', 'tblTempVendorCDR_20' ) end [2025-04-26 07:29:19] Production.INFO: ProcessCDR(1,14992753,1,1,2) [2025-04-26 07:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992753', 'tblTempUsageDetail_20' ) start [2025-04-26 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992753', 'tblTempUsageDetail_20' ) end [2025-04-26 07:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 07:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 07:29:22] Production.INFO: ==22775== Releasing lock... [2025-04-26 07:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 07:29:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-26 07:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 04:30:05 [end_date_ymd] => 2025-04-26 07:30:05 [RateCDR] => 1 ) [2025-04-26 07:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 04:30:05' and `end` < '2025-04-26 07:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 07:30:17] Production.INFO: count ==1615 [2025-04-26 07:30:18] Production.ERROR: pbx CDR StartTime 2025-04-26 04:30:05 - End Time 2025-04-26 07:30:05 [2025-04-26 07:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992758', 'tblTempUsageDetail_20' ) start [2025-04-26 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992758', 'tblTempUsageDetail_20' ) end [2025-04-26 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992758', 'tblTempVendorCDR_20' ) start [2025-04-26 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992758', 'tblTempVendorCDR_20' ) end [2025-04-26 07:30:18] Production.INFO: ProcessCDR(1,14992758,1,1,2) [2025-04-26 07:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992758', 'tblTempUsageDetail_20' ) start [2025-04-26 07:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992758', 'tblTempUsageDetail_20' ) end [2025-04-26 07:30:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 07:30:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 07:30:21] Production.INFO: ==22858== Releasing lock... [2025-04-26 07:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 07:30:21] Production.INFO: 40.75 MB #Memory Used# [2025-04-26 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 04:31:05 [end_date_ymd] => 2025-04-26 07:31:05 [RateCDR] => 1 ) [2025-04-26 07:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 04:31:05' and `end` < '2025-04-26 07:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 07:31:18] Production.INFO: count ==1615 [2025-04-26 07:31:18] Production.ERROR: pbx CDR StartTime 2025-04-26 04:31:05 - End Time 2025-04-26 07:31:05 [2025-04-26 07:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992764', 'tblTempUsageDetail_20' ) start [2025-04-26 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992764', 'tblTempUsageDetail_20' ) end [2025-04-26 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992764', 'tblTempVendorCDR_20' ) start [2025-04-26 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992764', 'tblTempVendorCDR_20' ) end [2025-04-26 07:31:19] Production.INFO: ProcessCDR(1,14992764,1,1,2) [2025-04-26 07:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992764', 'tblTempUsageDetail_20' ) start [2025-04-26 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992764', 'tblTempUsageDetail_20' ) end [2025-04-26 07:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 07:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 07:31:22] Production.INFO: ==22937== Releasing lock... [2025-04-26 07:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 07:31:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-26 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 04:32:05 [end_date_ymd] => 2025-04-26 07:32:05 [RateCDR] => 1 ) [2025-04-26 07:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 04:32:05' and `end` < '2025-04-26 07:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 07:32:17] Production.INFO: count ==1615 [2025-04-26 07:32:18] Production.ERROR: pbx CDR StartTime 2025-04-26 04:32:05 - End Time 2025-04-26 07:32:05 [2025-04-26 07:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992769', 'tblTempUsageDetail_20' ) start [2025-04-26 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992769', 'tblTempUsageDetail_20' ) end [2025-04-26 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992769', 'tblTempVendorCDR_20' ) start [2025-04-26 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992769', 'tblTempVendorCDR_20' ) end [2025-04-26 07:32:18] Production.INFO: ProcessCDR(1,14992769,1,1,2) [2025-04-26 07:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992769', 'tblTempUsageDetail_20' ) start [2025-04-26 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992769', 'tblTempUsageDetail_20' ) end [2025-04-26 07:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 07:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 07:32:22] Production.INFO: ==23008== Releasing lock... [2025-04-26 07:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 07:32:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-26 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 04:33:05 [end_date_ymd] => 2025-04-26 07:33:05 [RateCDR] => 1 ) [2025-04-26 07:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 04:33:05' and `end` < '2025-04-26 07:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 07:33:18] Production.INFO: count ==1614 [2025-04-26 07:33:19] Production.ERROR: pbx CDR StartTime 2025-04-26 04:33:05 - End Time 2025-04-26 07:33:05 [2025-04-26 07:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992774', 'tblTempUsageDetail_20' ) start [2025-04-26 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992774', 'tblTempUsageDetail_20' ) end [2025-04-26 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992774', 'tblTempVendorCDR_20' ) start [2025-04-26 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992774', 'tblTempVendorCDR_20' ) end [2025-04-26 07:33:19] Production.INFO: ProcessCDR(1,14992774,1,1,2) [2025-04-26 07:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992774', 'tblTempUsageDetail_20' ) start [2025-04-26 07:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992774', 'tblTempUsageDetail_20' ) end [2025-04-26 07:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 07:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 07:33:23] Production.INFO: ==23081== Releasing lock... [2025-04-26 07:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 07:33:23] Production.INFO: 40.75 MB #Memory Used# [2025-04-26 07:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 04:34:06 [end_date_ymd] => 2025-04-26 07:34:06 [RateCDR] => 1 ) [2025-04-26 07:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 04:34:06' and `end` < '2025-04-26 07:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 07:34:18] Production.INFO: count ==1614 [2025-04-26 07:34:19] Production.ERROR: pbx CDR StartTime 2025-04-26 04:34:06 - End Time 2025-04-26 07:34:06 [2025-04-26 07:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992779', 'tblTempUsageDetail_20' ) start [2025-04-26 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992779', 'tblTempUsageDetail_20' ) end [2025-04-26 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992779', 'tblTempVendorCDR_20' ) start [2025-04-26 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992779', 'tblTempVendorCDR_20' ) end [2025-04-26 07:34:19] Production.INFO: ProcessCDR(1,14992779,1,1,2) [2025-04-26 07:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992779', 'tblTempUsageDetail_20' ) start [2025-04-26 07:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992779', 'tblTempUsageDetail_20' ) end [2025-04-26 07:34:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 07:34:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 07:34:23] Production.INFO: ==23153== Releasing lock... [2025-04-26 07:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 07:34:23] Production.INFO: 40.75 MB #Memory Used# [2025-04-26 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 04:35:05 [end_date_ymd] => 2025-04-26 07:35:05 [RateCDR] => 1 ) [2025-04-26 07:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 04:35:05' and `end` < '2025-04-26 07:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 07:35:18] Production.INFO: count ==1617 [2025-04-26 07:35:19] Production.ERROR: pbx CDR StartTime 2025-04-26 04:35:05 - End Time 2025-04-26 07:35:05 [2025-04-26 07:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 07:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992784', 'tblTempUsageDetail_20' ) start [2025-04-26 07:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992784', 'tblTempUsageDetail_20' ) end [2025-04-26 07:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992784', 'tblTempVendorCDR_20' ) start [2025-04-26 07:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992784', 'tblTempVendorCDR_20' ) end [2025-04-26 07:35:19] Production.INFO: ProcessCDR(1,14992784,1,1,2) [2025-04-26 07:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992784', 'tblTempUsageDetail_20' ) start [2025-04-26 07:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992784', 'tblTempUsageDetail_20' ) end [2025-04-26 07:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 07:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 07:35:22] Production.INFO: ==23223== Releasing lock... [2025-04-26 07:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 07:35:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-26 07:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 04:36:06 [end_date_ymd] => 2025-04-26 07:36:06 [RateCDR] => 1 ) [2025-04-26 07:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 04:36:06' and `end` < '2025-04-26 07:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 07:36:18] Production.INFO: count ==1617 [2025-04-26 07:36:19] Production.ERROR: pbx CDR StartTime 2025-04-26 04:36:06 - End Time 2025-04-26 07:36:06 [2025-04-26 07:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 07:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992789', 'tblTempUsageDetail_20' ) start [2025-04-26 07:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992789', 'tblTempUsageDetail_20' ) end [2025-04-26 07:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992789', 'tblTempVendorCDR_20' ) start [2025-04-26 07:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992789', 'tblTempVendorCDR_20' ) end [2025-04-26 07:36:19] Production.INFO: ProcessCDR(1,14992789,1,1,2) [2025-04-26 07:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992789', 'tblTempUsageDetail_20' ) start [2025-04-26 07:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992789', 'tblTempUsageDetail_20' ) end [2025-04-26 07:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 07:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 07:36:22] Production.INFO: ==23297== Releasing lock... [2025-04-26 07:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 07:36:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-26 07:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 04:37:04 [end_date_ymd] => 2025-04-26 07:37:04 [RateCDR] => 1 ) [2025-04-26 07: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-04-26 04:37:04' and `end` < '2025-04-26 07: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-04-26 07:37:17] Production.INFO: count ==1617 [2025-04-26 07:37:18] Production.ERROR: pbx CDR StartTime 2025-04-26 04:37:04 - End Time 2025-04-26 07:37:04 [2025-04-26 07:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992794', 'tblTempUsageDetail_20' ) start [2025-04-26 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992794', 'tblTempUsageDetail_20' ) end [2025-04-26 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992794', 'tblTempVendorCDR_20' ) start [2025-04-26 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992794', 'tblTempVendorCDR_20' ) end [2025-04-26 07:37:18] Production.INFO: ProcessCDR(1,14992794,1,1,2) [2025-04-26 07:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992794', 'tblTempUsageDetail_20' ) start [2025-04-26 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992794', 'tblTempUsageDetail_20' ) end [2025-04-26 07:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 07:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 07:37:21] Production.INFO: ==23371== Releasing lock... [2025-04-26 07:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 07:37:21] Production.INFO: 40.75 MB #Memory Used# [2025-04-26 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 04:38:05 [end_date_ymd] => 2025-04-26 07:38:05 [RateCDR] => 1 ) [2025-04-26 07:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 04:38:05' and `end` < '2025-04-26 07:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 07:38:18] Production.INFO: count ==1585 [2025-04-26 07:38:19] Production.ERROR: pbx CDR StartTime 2025-04-26 04:38:05 - End Time 2025-04-26 07:38:05 [2025-04-26 07:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 07:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992799', 'tblTempUsageDetail_20' ) start [2025-04-26 07:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992799', 'tblTempUsageDetail_20' ) end [2025-04-26 07:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992799', 'tblTempVendorCDR_20' ) start [2025-04-26 07:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992799', 'tblTempVendorCDR_20' ) end [2025-04-26 07:38:19] Production.INFO: ProcessCDR(1,14992799,1,1,2) [2025-04-26 07:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992799', 'tblTempUsageDetail_20' ) start [2025-04-26 07:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992799', 'tblTempUsageDetail_20' ) end [2025-04-26 07:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 07:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 07:38:22] Production.INFO: ==23444== Releasing lock... [2025-04-26 07:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 07:38:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-26 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 04:39:05 [end_date_ymd] => 2025-04-26 07:39:05 [RateCDR] => 1 ) [2025-04-26 07:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 04:39:05' and `end` < '2025-04-26 07:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 07:39:17] Production.INFO: count ==1525 [2025-04-26 07:39:18] Production.ERROR: pbx CDR StartTime 2025-04-26 04:39:05 - End Time 2025-04-26 07:39:05 [2025-04-26 07:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992804', 'tblTempUsageDetail_20' ) start [2025-04-26 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992804', 'tblTempUsageDetail_20' ) end [2025-04-26 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992804', 'tblTempVendorCDR_20' ) start [2025-04-26 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992804', 'tblTempVendorCDR_20' ) end [2025-04-26 07:39:18] Production.INFO: ProcessCDR(1,14992804,1,1,2) [2025-04-26 07:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992804', 'tblTempUsageDetail_20' ) start [2025-04-26 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992804', 'tblTempUsageDetail_20' ) end [2025-04-26 07:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 07:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 07:39:21] Production.INFO: ==23518== Releasing lock... [2025-04-26 07:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 07:39:21] Production.INFO: 40 MB #Memory Used# [2025-04-26 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 04:40:06 [end_date_ymd] => 2025-04-26 07:40:06 [RateCDR] => 1 ) [2025-04-26 07:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 04:40:06' and `end` < '2025-04-26 07:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 07:40:19] Production.INFO: count ==1458 [2025-04-26 07:40:19] Production.ERROR: pbx CDR StartTime 2025-04-26 04:40:06 - End Time 2025-04-26 07:40:06 [2025-04-26 07:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992810', 'tblTempUsageDetail_20' ) start [2025-04-26 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992810', 'tblTempUsageDetail_20' ) end [2025-04-26 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992810', 'tblTempVendorCDR_20' ) start [2025-04-26 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992810', 'tblTempVendorCDR_20' ) end [2025-04-26 07:40:19] Production.INFO: ProcessCDR(1,14992810,1,1,2) [2025-04-26 07:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992810', 'tblTempUsageDetail_20' ) start [2025-04-26 07:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992810', 'tblTempUsageDetail_20' ) end [2025-04-26 07:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 07:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 07:40:23] Production.INFO: ==23636== Releasing lock... [2025-04-26 07:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 07:40:23] Production.INFO: 39.75 MB #Memory Used# [2025-04-26 07:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 04:41:06 [end_date_ymd] => 2025-04-26 07:41:06 [RateCDR] => 1 ) [2025-04-26 07:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 04:41:06' and `end` < '2025-04-26 07:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 07:41:18] Production.INFO: count ==1409 [2025-04-26 07:41:19] Production.ERROR: pbx CDR StartTime 2025-04-26 04:41:06 - End Time 2025-04-26 07:41:06 [2025-04-26 07:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992815', 'tblTempUsageDetail_20' ) start [2025-04-26 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992815', 'tblTempUsageDetail_20' ) end [2025-04-26 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992815', 'tblTempVendorCDR_20' ) start [2025-04-26 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992815', 'tblTempVendorCDR_20' ) end [2025-04-26 07:41:19] Production.INFO: ProcessCDR(1,14992815,1,1,2) [2025-04-26 07:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992815', 'tblTempUsageDetail_20' ) start [2025-04-26 07:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992815', 'tblTempUsageDetail_20' ) end [2025-04-26 07:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 07:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 07:41:22] Production.INFO: ==23709== Releasing lock... [2025-04-26 07:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 07:41:22] Production.INFO: 39 MB #Memory Used# [2025-04-26 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 04:42:05 [end_date_ymd] => 2025-04-26 07:42:05 [RateCDR] => 1 ) [2025-04-26 07:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 04:42:05' and `end` < '2025-04-26 07:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 07:42:18] Production.INFO: count ==1351 [2025-04-26 07:42:18] Production.ERROR: pbx CDR StartTime 2025-04-26 04:42:05 - End Time 2025-04-26 07:42:05 [2025-04-26 07:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992820', 'tblTempUsageDetail_20' ) start [2025-04-26 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992820', 'tblTempUsageDetail_20' ) end [2025-04-26 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992820', 'tblTempVendorCDR_20' ) start [2025-04-26 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992820', 'tblTempVendorCDR_20' ) end [2025-04-26 07:42:18] Production.INFO: ProcessCDR(1,14992820,1,1,2) [2025-04-26 07:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992820', 'tblTempUsageDetail_20' ) start [2025-04-26 07:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992820', 'tblTempUsageDetail_20' ) end [2025-04-26 07:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 07:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 07:42:22] Production.INFO: ==23787== Releasing lock... [2025-04-26 07:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 07:42:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-26 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 04:43:05 [end_date_ymd] => 2025-04-26 07:43:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 04:43:05' and `end` < '2025-04-26 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-04-26 07:43:18] Production.INFO: count ==1288 [2025-04-26 07:43:19] Production.ERROR: pbx CDR StartTime 2025-04-26 04:43:05 - End Time 2025-04-26 07:43:05 [2025-04-26 07:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 07:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992825', 'tblTempUsageDetail_20' ) start [2025-04-26 07:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992825', 'tblTempUsageDetail_20' ) end [2025-04-26 07:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992825', 'tblTempVendorCDR_20' ) start [2025-04-26 07:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992825', 'tblTempVendorCDR_20' ) end [2025-04-26 07:43:19] Production.INFO: ProcessCDR(1,14992825,1,1,2) [2025-04-26 07:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992825', 'tblTempUsageDetail_20' ) start [2025-04-26 07:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992825', 'tblTempUsageDetail_20' ) end [2025-04-26 07:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 07:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 07:43:22] Production.INFO: ==23857== Releasing lock... [2025-04-26 07:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 07:43:22] Production.INFO: 38 MB #Memory Used# [2025-04-26 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 04:44:05 [end_date_ymd] => 2025-04-26 07:44:05 [RateCDR] => 1 ) [2025-04-26 07:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 04:44:05' and `end` < '2025-04-26 07:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 07:44:18] Production.INFO: count ==1263 [2025-04-26 07:44:19] Production.ERROR: pbx CDR StartTime 2025-04-26 04:44:05 - End Time 2025-04-26 07:44:05 [2025-04-26 07:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 07:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992830', 'tblTempUsageDetail_20' ) start [2025-04-26 07:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992830', 'tblTempUsageDetail_20' ) end [2025-04-26 07:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992830', 'tblTempVendorCDR_20' ) start [2025-04-26 07:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992830', 'tblTempVendorCDR_20' ) end [2025-04-26 07:44:19] Production.INFO: ProcessCDR(1,14992830,1,1,2) [2025-04-26 07:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992830', 'tblTempUsageDetail_20' ) start [2025-04-26 07:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992830', 'tblTempUsageDetail_20' ) end [2025-04-26 07:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 07:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 07:44:22] Production.INFO: ==23928== Releasing lock... [2025-04-26 07:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 07:44:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-26 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 04:45:05 [end_date_ymd] => 2025-04-26 07:45:05 [RateCDR] => 1 ) [2025-04-26 07:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 04:45:05' and `end` < '2025-04-26 07:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 07:45:18] Production.INFO: count ==1263 [2025-04-26 07:45:19] Production.ERROR: pbx CDR StartTime 2025-04-26 04:45:05 - End Time 2025-04-26 07:45:05 [2025-04-26 07:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 07:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992835', 'tblTempUsageDetail_20' ) start [2025-04-26 07:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992835', 'tblTempUsageDetail_20' ) end [2025-04-26 07:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992835', 'tblTempVendorCDR_20' ) start [2025-04-26 07:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992835', 'tblTempVendorCDR_20' ) end [2025-04-26 07:45:19] Production.INFO: ProcessCDR(1,14992835,1,1,2) [2025-04-26 07:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992835', 'tblTempUsageDetail_20' ) start [2025-04-26 07:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992835', 'tblTempUsageDetail_20' ) end [2025-04-26 07:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 07:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 07:45:22] Production.INFO: ==24001== Releasing lock... [2025-04-26 07:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 07:45:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-26 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 04:46:05 [end_date_ymd] => 2025-04-26 07:46:05 [RateCDR] => 1 ) [2025-04-26 07:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 04:46:05' and `end` < '2025-04-26 07:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 07:46:17] Production.INFO: count ==1263 [2025-04-26 07:46:18] Production.ERROR: pbx CDR StartTime 2025-04-26 04:46:05 - End Time 2025-04-26 07:46:05 [2025-04-26 07:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992840', 'tblTempUsageDetail_20' ) start [2025-04-26 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992840', 'tblTempUsageDetail_20' ) end [2025-04-26 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992840', 'tblTempVendorCDR_20' ) start [2025-04-26 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992840', 'tblTempVendorCDR_20' ) end [2025-04-26 07:46:18] Production.INFO: ProcessCDR(1,14992840,1,1,2) [2025-04-26 07:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992840', 'tblTempUsageDetail_20' ) start [2025-04-26 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992840', 'tblTempUsageDetail_20' ) end [2025-04-26 07:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 07:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 07:46:21] Production.INFO: ==24072== Releasing lock... [2025-04-26 07:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 07:46:21] Production.INFO: 38.25 MB #Memory Used# [2025-04-26 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 04:47:05 [end_date_ymd] => 2025-04-26 07:47:05 [RateCDR] => 1 ) [2025-04-26 07:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 04:47:05' and `end` < '2025-04-26 07:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 07:47:18] Production.INFO: count ==1263 [2025-04-26 07:47:19] Production.ERROR: pbx CDR StartTime 2025-04-26 04:47:05 - End Time 2025-04-26 07:47:05 [2025-04-26 07:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 07:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992845', 'tblTempUsageDetail_20' ) start [2025-04-26 07:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992845', 'tblTempUsageDetail_20' ) end [2025-04-26 07:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992845', 'tblTempVendorCDR_20' ) start [2025-04-26 07:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992845', 'tblTempVendorCDR_20' ) end [2025-04-26 07:47:19] Production.INFO: ProcessCDR(1,14992845,1,1,2) [2025-04-26 07:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992845', 'tblTempUsageDetail_20' ) start [2025-04-26 07:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992845', 'tblTempUsageDetail_20' ) end [2025-04-26 07:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 07:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 07:47:22] Production.INFO: ==24146== Releasing lock... [2025-04-26 07:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 07:47:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-26 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 04:48:05 [end_date_ymd] => 2025-04-26 07:48:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 04:48:05' and `end` < '2025-04-26 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-04-26 07:48:17] Production.INFO: count ==1263 [2025-04-26 07:48:18] Production.ERROR: pbx CDR StartTime 2025-04-26 04:48:05 - End Time 2025-04-26 07:48:05 [2025-04-26 07:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992850', 'tblTempUsageDetail_20' ) start [2025-04-26 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992850', 'tblTempUsageDetail_20' ) end [2025-04-26 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992850', 'tblTempVendorCDR_20' ) start [2025-04-26 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992850', 'tblTempVendorCDR_20' ) end [2025-04-26 07:48:18] Production.INFO: ProcessCDR(1,14992850,1,1,2) [2025-04-26 07:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992850', 'tblTempUsageDetail_20' ) start [2025-04-26 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992850', 'tblTempUsageDetail_20' ) end [2025-04-26 07:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 07:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 07:48:21] Production.INFO: ==24219== Releasing lock... [2025-04-26 07:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 07:48:21] Production.INFO: 38.25 MB #Memory Used# [2025-04-26 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 04:49:05 [end_date_ymd] => 2025-04-26 07:49:05 [RateCDR] => 1 ) [2025-04-26 07:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 04:49:05' and `end` < '2025-04-26 07:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 07:49:18] Production.INFO: count ==1264 [2025-04-26 07:49:18] Production.ERROR: pbx CDR StartTime 2025-04-26 04:49:05 - End Time 2025-04-26 07:49:05 [2025-04-26 07:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992855', 'tblTempUsageDetail_20' ) start [2025-04-26 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992855', 'tblTempUsageDetail_20' ) end [2025-04-26 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992855', 'tblTempVendorCDR_20' ) start [2025-04-26 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992855', 'tblTempVendorCDR_20' ) end [2025-04-26 07:49:18] Production.INFO: ProcessCDR(1,14992855,1,1,2) [2025-04-26 07:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992855', 'tblTempUsageDetail_20' ) start [2025-04-26 07:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992855', 'tblTempUsageDetail_20' ) end [2025-04-26 07:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 07:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 07:49:22] Production.INFO: ==24290== Releasing lock... [2025-04-26 07:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 07:49:22] Production.INFO: 38 MB #Memory Used# [2025-04-26 07:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 04:50:05 [end_date_ymd] => 2025-04-26 07:50:05 [RateCDR] => 1 ) [2025-04-26 07:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 04:50:05' and `end` < '2025-04-26 07:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 07:50:18] Production.INFO: count ==1263 [2025-04-26 07:50:19] Production.ERROR: pbx CDR StartTime 2025-04-26 04:50:05 - End Time 2025-04-26 07:50:05 [2025-04-26 07:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992861', 'tblTempUsageDetail_20' ) start [2025-04-26 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992861', 'tblTempUsageDetail_20' ) end [2025-04-26 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992861', 'tblTempVendorCDR_20' ) start [2025-04-26 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992861', 'tblTempVendorCDR_20' ) end [2025-04-26 07:50:19] Production.INFO: ProcessCDR(1,14992861,1,1,2) [2025-04-26 07:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992861', 'tblTempUsageDetail_20' ) start [2025-04-26 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992861', 'tblTempUsageDetail_20' ) end [2025-04-26 07:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 07:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 07:50:22] Production.INFO: ==24366== Releasing lock... [2025-04-26 07:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 07:50:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-26 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 04:51:05 [end_date_ymd] => 2025-04-26 07:51:05 [RateCDR] => 1 ) [2025-04-26 07:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 04:51:05' and `end` < '2025-04-26 07:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 07:51:18] Production.INFO: count ==1262 [2025-04-26 07:51:18] Production.ERROR: pbx CDR StartTime 2025-04-26 04:51:05 - End Time 2025-04-26 07:51:05 [2025-04-26 07:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992866', 'tblTempUsageDetail_20' ) start [2025-04-26 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992866', 'tblTempUsageDetail_20' ) end [2025-04-26 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992866', 'tblTempVendorCDR_20' ) start [2025-04-26 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992866', 'tblTempVendorCDR_20' ) end [2025-04-26 07:51:18] Production.INFO: ProcessCDR(1,14992866,1,1,2) [2025-04-26 07:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992866', 'tblTempUsageDetail_20' ) start [2025-04-26 07:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992866', 'tblTempUsageDetail_20' ) end [2025-04-26 07:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 07:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 07:51:22] Production.INFO: ==24445== Releasing lock... [2025-04-26 07:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 07:51:22] Production.INFO: 38 MB #Memory Used# [2025-04-26 07:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 04:52:06 [end_date_ymd] => 2025-04-26 07:52:06 [RateCDR] => 1 ) [2025-04-26 07:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 04:52:06' and `end` < '2025-04-26 07:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 07:52:18] Production.INFO: count ==1236 [2025-04-26 07:52:19] Production.ERROR: pbx CDR StartTime 2025-04-26 04:52:06 - End Time 2025-04-26 07:52:06 [2025-04-26 07:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 07:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992871', 'tblTempUsageDetail_20' ) start [2025-04-26 07:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992871', 'tblTempUsageDetail_20' ) end [2025-04-26 07:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992871', 'tblTempVendorCDR_20' ) start [2025-04-26 07:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992871', 'tblTempVendorCDR_20' ) end [2025-04-26 07:52:19] Production.INFO: ProcessCDR(1,14992871,1,1,2) [2025-04-26 07:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992871', 'tblTempUsageDetail_20' ) start [2025-04-26 07:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992871', 'tblTempUsageDetail_20' ) end [2025-04-26 07:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 07:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 07:52:23] Production.INFO: ==24522== Releasing lock... [2025-04-26 07:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 07:52:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-26 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 04:53:05 [end_date_ymd] => 2025-04-26 07:53:05 [RateCDR] => 1 ) [2025-04-26 07:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 04:53:05' and `end` < '2025-04-26 07:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 07:53:17] Production.INFO: count ==1176 [2025-04-26 07:53:18] Production.ERROR: pbx CDR StartTime 2025-04-26 04:53:05 - End Time 2025-04-26 07:53:05 [2025-04-26 07:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992876', 'tblTempUsageDetail_20' ) start [2025-04-26 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992876', 'tblTempUsageDetail_20' ) end [2025-04-26 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992876', 'tblTempVendorCDR_20' ) start [2025-04-26 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992876', 'tblTempVendorCDR_20' ) end [2025-04-26 07:53:18] Production.INFO: ProcessCDR(1,14992876,1,1,2) [2025-04-26 07:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992876', 'tblTempUsageDetail_20' ) start [2025-04-26 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992876', 'tblTempUsageDetail_20' ) end [2025-04-26 07:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 07:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 07:53:21] Production.INFO: ==24595== Releasing lock... [2025-04-26 07:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 07:53:21] Production.INFO: 38 MB #Memory Used# [2025-04-26 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 04:54:05 [end_date_ymd] => 2025-04-26 07:54:05 [RateCDR] => 1 ) [2025-04-26 07:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 04:54:05' and `end` < '2025-04-26 07:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 07:54:18] Production.INFO: count ==1119 [2025-04-26 07:54:18] Production.ERROR: pbx CDR StartTime 2025-04-26 04:54:05 - End Time 2025-04-26 07:54:05 [2025-04-26 07:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992881', 'tblTempUsageDetail_20' ) start [2025-04-26 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992881', 'tblTempUsageDetail_20' ) end [2025-04-26 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992881', 'tblTempVendorCDR_20' ) start [2025-04-26 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992881', 'tblTempVendorCDR_20' ) end [2025-04-26 07:54:18] Production.INFO: ProcessCDR(1,14992881,1,1,2) [2025-04-26 07:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992881', 'tblTempUsageDetail_20' ) start [2025-04-26 07:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992881', 'tblTempUsageDetail_20' ) end [2025-04-26 07:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 07:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 07:54:22] Production.INFO: ==24668== Releasing lock... [2025-04-26 07:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 07:54:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-26 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 04:55:05 [end_date_ymd] => 2025-04-26 07:55:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 04:55:05' and `end` < '2025-04-26 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-04-26 07:55:17] Production.INFO: count ==1116 [2025-04-26 07:55:18] Production.ERROR: pbx CDR StartTime 2025-04-26 04:55:05 - End Time 2025-04-26 07:55:05 [2025-04-26 07:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992886', 'tblTempUsageDetail_20' ) start [2025-04-26 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992886', 'tblTempUsageDetail_20' ) end [2025-04-26 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992886', 'tblTempVendorCDR_20' ) start [2025-04-26 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992886', 'tblTempVendorCDR_20' ) end [2025-04-26 07:55:18] Production.INFO: ProcessCDR(1,14992886,1,1,2) [2025-04-26 07:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992886', 'tblTempUsageDetail_20' ) start [2025-04-26 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992886', 'tblTempUsageDetail_20' ) end [2025-04-26 07:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 07:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 07:55:21] Production.INFO: ==24786== Releasing lock... [2025-04-26 07:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 07:55:21] Production.INFO: 37.25 MB #Memory Used# [2025-04-26 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 04:56:05 [end_date_ymd] => 2025-04-26 07:56:05 [RateCDR] => 1 ) [2025-04-26 07:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 04:56:05' and `end` < '2025-04-26 07:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 07:56:18] Production.INFO: count ==1089 [2025-04-26 07:56:18] Production.ERROR: pbx CDR StartTime 2025-04-26 04:56:05 - End Time 2025-04-26 07:56:05 [2025-04-26 07:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992891', 'tblTempUsageDetail_20' ) start [2025-04-26 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992891', 'tblTempUsageDetail_20' ) end [2025-04-26 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992891', 'tblTempVendorCDR_20' ) start [2025-04-26 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992891', 'tblTempVendorCDR_20' ) end [2025-04-26 07:56:19] Production.INFO: ProcessCDR(1,14992891,1,1,2) [2025-04-26 07:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992891', 'tblTempUsageDetail_20' ) start [2025-04-26 07:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992891', 'tblTempUsageDetail_20' ) end [2025-04-26 07:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 07:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 07:56:22] Production.INFO: ==24865== Releasing lock... [2025-04-26 07:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 07:56:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-26 07:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 04:57:04 [end_date_ymd] => 2025-04-26 07:57:04 [RateCDR] => 1 ) [2025-04-26 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-04-26 04:57:04' and `end` < '2025-04-26 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-04-26 07:57:17] Production.INFO: count ==1049 [2025-04-26 07:57:18] Production.ERROR: pbx CDR StartTime 2025-04-26 04:57:04 - End Time 2025-04-26 07:57:04 [2025-04-26 07:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992896', 'tblTempUsageDetail_20' ) start [2025-04-26 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992896', 'tblTempUsageDetail_20' ) end [2025-04-26 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992896', 'tblTempVendorCDR_20' ) start [2025-04-26 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992896', 'tblTempVendorCDR_20' ) end [2025-04-26 07:57:18] Production.INFO: ProcessCDR(1,14992896,1,1,2) [2025-04-26 07:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992896', 'tblTempUsageDetail_20' ) start [2025-04-26 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992896', 'tblTempUsageDetail_20' ) end [2025-04-26 07:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 07:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 07:57:21] Production.INFO: ==24937== Releasing lock... [2025-04-26 07:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 07:57:21] Production.INFO: 37 MB #Memory Used# [2025-04-26 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 04:58:05 [end_date_ymd] => 2025-04-26 07:58:05 [RateCDR] => 1 ) [2025-04-26 07:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 04:58:05' and `end` < '2025-04-26 07:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 07:58:17] Production.INFO: count ==985 [2025-04-26 07:58:18] Production.ERROR: pbx CDR StartTime 2025-04-26 04:58:05 - End Time 2025-04-26 07:58:05 [2025-04-26 07:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992901', 'tblTempUsageDetail_20' ) start [2025-04-26 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992901', 'tblTempUsageDetail_20' ) end [2025-04-26 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992901', 'tblTempVendorCDR_20' ) start [2025-04-26 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992901', 'tblTempVendorCDR_20' ) end [2025-04-26 07:58:18] Production.INFO: ProcessCDR(1,14992901,1,1,2) [2025-04-26 07:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992901', 'tblTempUsageDetail_20' ) start [2025-04-26 07:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992901', 'tblTempUsageDetail_20' ) end [2025-04-26 07:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 07:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 07:58:22] Production.INFO: ==25009== Releasing lock... [2025-04-26 07:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 07:58:22] Production.INFO: 37 MB #Memory Used# [2025-04-26 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 04:59:05 [end_date_ymd] => 2025-04-26 07:59:05 [RateCDR] => 1 ) [2025-04-26 07:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 04:59:05' and `end` < '2025-04-26 07:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 07:59:18] Production.INFO: count ==925 [2025-04-26 07:59:19] Production.ERROR: pbx CDR StartTime 2025-04-26 04:59:05 - End Time 2025-04-26 07:59:05 [2025-04-26 07:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 07:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992906', 'tblTempUsageDetail_20' ) start [2025-04-26 07:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992906', 'tblTempUsageDetail_20' ) end [2025-04-26 07:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992906', 'tblTempVendorCDR_20' ) start [2025-04-26 07:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992906', 'tblTempVendorCDR_20' ) end [2025-04-26 07:59:19] Production.INFO: ProcessCDR(1,14992906,1,1,2) [2025-04-26 07:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 07:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 07:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992906', 'tblTempUsageDetail_20' ) start [2025-04-26 07:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992906', 'tblTempUsageDetail_20' ) end [2025-04-26 07:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 07:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 07:59:22] Production.INFO: ==25093== Releasing lock... [2025-04-26 07:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 07:59:22] Production.INFO: 35.5 MB #Memory Used# [2025-04-26 08:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 05:00:05 [end_date_ymd] => 2025-04-26 08:00:05 [RateCDR] => 1 ) [2025-04-26 08:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 05:00:05' and `end` < '2025-04-26 08:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 08:00:18] Production.INFO: count ==859 [2025-04-26 08:00:18] Production.ERROR: pbx CDR StartTime 2025-04-26 05:00:05 - End Time 2025-04-26 08:00:05 [2025-04-26 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992912', 'tblTempUsageDetail_20' ) start [2025-04-26 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992912', 'tblTempUsageDetail_20' ) end [2025-04-26 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992912', 'tblTempVendorCDR_20' ) start [2025-04-26 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992912', 'tblTempVendorCDR_20' ) end [2025-04-26 08:00:18] Production.INFO: ProcessCDR(1,14992912,1,1,2) [2025-04-26 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992912', 'tblTempUsageDetail_20' ) start [2025-04-26 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992912', 'tblTempUsageDetail_20' ) end [2025-04-26 08:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 08:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 08:00:22] Production.INFO: ==25171== Releasing lock... [2025-04-26 08:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 08:00:22] Production.INFO: 35.5 MB #Memory Used# [2025-04-26 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 05:01:05 [end_date_ymd] => 2025-04-26 08:01:05 [RateCDR] => 1 ) [2025-04-26 08:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 05:01:05' and `end` < '2025-04-26 08:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 08:01:17] Production.INFO: count ==795 [2025-04-26 08:01:18] Production.ERROR: pbx CDR StartTime 2025-04-26 05:01:05 - End Time 2025-04-26 08:01:05 [2025-04-26 08:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992917', 'tblTempUsageDetail_20' ) start [2025-04-26 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992917', 'tblTempUsageDetail_20' ) end [2025-04-26 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992917', 'tblTempVendorCDR_20' ) start [2025-04-26 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992917', 'tblTempVendorCDR_20' ) end [2025-04-26 08:01:18] Production.INFO: ProcessCDR(1,14992917,1,1,2) [2025-04-26 08:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992917', 'tblTempUsageDetail_20' ) start [2025-04-26 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992917', 'tblTempUsageDetail_20' ) end [2025-04-26 08:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 08:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 08:01:21] Production.INFO: ==25255== Releasing lock... [2025-04-26 08:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 08:01:21] Production.INFO: 35 MB #Memory Used# [2025-04-26 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 05:02:05 [end_date_ymd] => 2025-04-26 08:02:05 [RateCDR] => 1 ) [2025-04-26 08:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 05:02:05' and `end` < '2025-04-26 08:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 08:02:17] Production.INFO: count ==736 [2025-04-26 08:02:18] Production.ERROR: pbx CDR StartTime 2025-04-26 05:02:05 - End Time 2025-04-26 08:02:05 [2025-04-26 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992922', 'tblTempUsageDetail_20' ) start [2025-04-26 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992922', 'tblTempUsageDetail_20' ) end [2025-04-26 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992922', 'tblTempVendorCDR_20' ) start [2025-04-26 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992922', 'tblTempVendorCDR_20' ) end [2025-04-26 08:02:18] Production.INFO: ProcessCDR(1,14992922,1,1,2) [2025-04-26 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992922', 'tblTempUsageDetail_20' ) start [2025-04-26 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992922', 'tblTempUsageDetail_20' ) end [2025-04-26 08:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 08:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 08:02:21] Production.INFO: ==25328== Releasing lock... [2025-04-26 08:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 08:02:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-26 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 05:03:05 [end_date_ymd] => 2025-04-26 08:03:05 [RateCDR] => 1 ) [2025-04-26 08:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 05:03:05' and `end` < '2025-04-26 08:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 08:03:18] Production.INFO: count ==677 [2025-04-26 08:03:18] Production.ERROR: pbx CDR StartTime 2025-04-26 05:03:05 - End Time 2025-04-26 08:03:05 [2025-04-26 08:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992927', 'tblTempUsageDetail_20' ) start [2025-04-26 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992927', 'tblTempUsageDetail_20' ) end [2025-04-26 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992927', 'tblTempVendorCDR_20' ) start [2025-04-26 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992927', 'tblTempVendorCDR_20' ) end [2025-04-26 08:03:18] Production.INFO: ProcessCDR(1,14992927,1,1,2) [2025-04-26 08:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992927', 'tblTempUsageDetail_20' ) start [2025-04-26 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992927', 'tblTempUsageDetail_20' ) end [2025-04-26 08:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 08:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 08:03:21] Production.INFO: ==25402== Releasing lock... [2025-04-26 08:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 08:03:21] Production.INFO: 34 MB #Memory Used# [2025-04-26 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 05:04:05 [end_date_ymd] => 2025-04-26 08:04:05 [RateCDR] => 1 ) [2025-04-26 08:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 05:04:05' and `end` < '2025-04-26 08:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 08:04:18] Production.INFO: count ==618 [2025-04-26 08:04:18] Production.ERROR: pbx CDR StartTime 2025-04-26 05:04:05 - End Time 2025-04-26 08:04:05 [2025-04-26 08:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992932', 'tblTempUsageDetail_20' ) start [2025-04-26 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992932', 'tblTempUsageDetail_20' ) end [2025-04-26 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992932', 'tblTempVendorCDR_20' ) start [2025-04-26 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992932', 'tblTempVendorCDR_20' ) end [2025-04-26 08:04:18] Production.INFO: ProcessCDR(1,14992932,1,1,2) [2025-04-26 08:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992932', 'tblTempUsageDetail_20' ) start [2025-04-26 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992932', 'tblTempUsageDetail_20' ) end [2025-04-26 08:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 08:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 08:04:22] Production.INFO: ==25483== Releasing lock... [2025-04-26 08:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 08:04:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-26 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 05:05:05 [end_date_ymd] => 2025-04-26 08:05:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 05:05:05' and `end` < '2025-04-26 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-04-26 08:05:18] Production.INFO: count ==556 [2025-04-26 08:05:18] Production.ERROR: pbx CDR StartTime 2025-04-26 05:05:05 - End Time 2025-04-26 08:05:05 [2025-04-26 08:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992937', 'tblTempUsageDetail_20' ) start [2025-04-26 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992937', 'tblTempUsageDetail_20' ) end [2025-04-26 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992937', 'tblTempVendorCDR_20' ) start [2025-04-26 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992937', 'tblTempVendorCDR_20' ) end [2025-04-26 08:05:18] Production.INFO: ProcessCDR(1,14992937,1,1,2) [2025-04-26 08:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992937', 'tblTempUsageDetail_20' ) start [2025-04-26 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992937', 'tblTempUsageDetail_20' ) end [2025-04-26 08:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 08:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 08:05:21] Production.INFO: ==25559== Releasing lock... [2025-04-26 08:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 08:05:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-26 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 05:06:05 [end_date_ymd] => 2025-04-26 08:06:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 05:06:05' and `end` < '2025-04-26 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-04-26 08:06:17] Production.INFO: count ==494 [2025-04-26 08:06:17] Production.ERROR: pbx CDR StartTime 2025-04-26 05:06:05 - End Time 2025-04-26 08:06:05 [2025-04-26 08:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992942', 'tblTempUsageDetail_20' ) start [2025-04-26 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992942', 'tblTempUsageDetail_20' ) end [2025-04-26 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992942', 'tblTempVendorCDR_20' ) start [2025-04-26 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992942', 'tblTempVendorCDR_20' ) end [2025-04-26 08:06:17] Production.INFO: ProcessCDR(1,14992942,1,1,2) [2025-04-26 08:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992942', 'tblTempUsageDetail_20' ) start [2025-04-26 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992942', 'tblTempUsageDetail_20' ) end [2025-04-26 08:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 08:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 08:06:21] Production.INFO: ==25631== Releasing lock... [2025-04-26 08:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 08:06:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-26 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 05:07:05 [end_date_ymd] => 2025-04-26 08:07:05 [RateCDR] => 1 ) [2025-04-26 08:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 05:07:05' and `end` < '2025-04-26 08:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 08:07:17] Production.INFO: count ==434 [2025-04-26 08:07:18] Production.ERROR: pbx CDR StartTime 2025-04-26 05:07:05 - End Time 2025-04-26 08:07:05 [2025-04-26 08:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992947', 'tblTempUsageDetail_20' ) start [2025-04-26 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992947', 'tblTempUsageDetail_20' ) end [2025-04-26 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992947', 'tblTempVendorCDR_20' ) start [2025-04-26 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992947', 'tblTempVendorCDR_20' ) end [2025-04-26 08:07:18] Production.INFO: ProcessCDR(1,14992947,1,1,2) [2025-04-26 08:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992947', 'tblTempUsageDetail_20' ) start [2025-04-26 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992947', 'tblTempUsageDetail_20' ) end [2025-04-26 08:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 08:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 08:07:21] Production.INFO: ==25702== Releasing lock... [2025-04-26 08:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 08:07:21] Production.INFO: 32 MB #Memory Used# [2025-04-26 08:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 05:08:06 [end_date_ymd] => 2025-04-26 08:08:06 [RateCDR] => 1 ) [2025-04-26 08:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 05:08:06' and `end` < '2025-04-26 08:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 08:08:18] Production.INFO: count ==377 [2025-04-26 08:08:19] Production.ERROR: pbx CDR StartTime 2025-04-26 05:08:06 - End Time 2025-04-26 08:08:06 [2025-04-26 08:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992952', 'tblTempUsageDetail_20' ) start [2025-04-26 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992952', 'tblTempUsageDetail_20' ) end [2025-04-26 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992952', 'tblTempVendorCDR_20' ) start [2025-04-26 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992952', 'tblTempVendorCDR_20' ) end [2025-04-26 08:08:19] Production.INFO: ProcessCDR(1,14992952,1,1,2) [2025-04-26 08:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992952', 'tblTempUsageDetail_20' ) start [2025-04-26 08:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992952', 'tblTempUsageDetail_20' ) end [2025-04-26 08:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 08:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 08:08:22] Production.INFO: ==25774== Releasing lock... [2025-04-26 08:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 08:08:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-26 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 05:09:05 [end_date_ymd] => 2025-04-26 08:09:05 [RateCDR] => 1 ) [2025-04-26 08:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 05:09:05' and `end` < '2025-04-26 08:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 08:09:18] Production.INFO: count ==326 [2025-04-26 08:09:18] Production.ERROR: pbx CDR StartTime 2025-04-26 05:09:05 - End Time 2025-04-26 08:09:05 [2025-04-26 08:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992957', 'tblTempUsageDetail_20' ) start [2025-04-26 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992957', 'tblTempUsageDetail_20' ) end [2025-04-26 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992957', 'tblTempVendorCDR_20' ) start [2025-04-26 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992957', 'tblTempVendorCDR_20' ) end [2025-04-26 08:09:18] Production.INFO: ProcessCDR(1,14992957,1,1,2) [2025-04-26 08:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992957', 'tblTempUsageDetail_20' ) start [2025-04-26 08:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992957', 'tblTempUsageDetail_20' ) end [2025-04-26 08:09:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 08:09:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 08:09:23] Production.INFO: ==25852== Releasing lock... [2025-04-26 08:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 08:09:23] Production.INFO: 31.75 MB #Memory Used# [2025-04-26 08:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 05:10:06 [end_date_ymd] => 2025-04-26 08:10:06 [RateCDR] => 1 ) [2025-04-26 08:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 05:10:06' and `end` < '2025-04-26 08:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 08:10:19] Production.INFO: count ==265 [2025-04-26 08:10:19] Production.ERROR: pbx CDR StartTime 2025-04-26 05:10:06 - End Time 2025-04-26 08:10:06 [2025-04-26 08:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992962', 'tblTempUsageDetail_20' ) start [2025-04-26 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992962', 'tblTempUsageDetail_20' ) end [2025-04-26 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992962', 'tblTempVendorCDR_20' ) start [2025-04-26 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992962', 'tblTempVendorCDR_20' ) end [2025-04-26 08:10:19] Production.INFO: ProcessCDR(1,14992962,1,1,2) [2025-04-26 08:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992962', 'tblTempUsageDetail_20' ) start [2025-04-26 08:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992962', 'tblTempUsageDetail_20' ) end [2025-04-26 08:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 08:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 08:10:24] Production.INFO: ==25933== Releasing lock... [2025-04-26 08:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 08:10:24] Production.INFO: 30.75 MB #Memory Used# [2025-04-26 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 05:11:05 [end_date_ymd] => 2025-04-26 08:11:05 [RateCDR] => 1 ) [2025-04-26 08:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 05:11:05' and `end` < '2025-04-26 08:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 08:11:17] Production.INFO: count ==208 [2025-04-26 08:11:17] Production.ERROR: pbx CDR StartTime 2025-04-26 05:11:05 - End Time 2025-04-26 08:11:05 [2025-04-26 08:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992968', 'tblTempUsageDetail_20' ) start [2025-04-26 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992968', 'tblTempUsageDetail_20' ) end [2025-04-26 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992968', 'tblTempVendorCDR_20' ) start [2025-04-26 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992968', 'tblTempVendorCDR_20' ) end [2025-04-26 08:11:17] Production.INFO: ProcessCDR(1,14992968,1,1,2) [2025-04-26 08:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992968', 'tblTempUsageDetail_20' ) start [2025-04-26 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992968', 'tblTempUsageDetail_20' ) end [2025-04-26 08:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 08:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 08:11:21] Production.INFO: ==26052== Releasing lock... [2025-04-26 08:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 08:11:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-26 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 05:12:05 [end_date_ymd] => 2025-04-26 08:12:05 [RateCDR] => 1 ) [2025-04-26 08:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 05:12:05' and `end` < '2025-04-26 08:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 08:12:18] Production.INFO: count ==148 [2025-04-26 08:12:18] Production.ERROR: pbx CDR StartTime 2025-04-26 05:12:05 - End Time 2025-04-26 08:12:05 [2025-04-26 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992973', 'tblTempUsageDetail_20' ) start [2025-04-26 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992973', 'tblTempUsageDetail_20' ) end [2025-04-26 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992973', 'tblTempVendorCDR_20' ) start [2025-04-26 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992973', 'tblTempVendorCDR_20' ) end [2025-04-26 08:12:18] Production.INFO: ProcessCDR(1,14992973,1,1,2) [2025-04-26 08:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992973', 'tblTempUsageDetail_20' ) start [2025-04-26 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992973', 'tblTempUsageDetail_20' ) end [2025-04-26 08:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 08:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 08:12:21] Production.INFO: ==26129== Releasing lock... [2025-04-26 08:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 08:12:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-26 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 05:13:05 [end_date_ymd] => 2025-04-26 08:13:05 [RateCDR] => 1 ) [2025-04-26 08:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 05:13:05' and `end` < '2025-04-26 08:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 08:13:18] Production.INFO: count ==90 [2025-04-26 08:13:18] Production.ERROR: pbx CDR StartTime 2025-04-26 05:13:05 - End Time 2025-04-26 08:13:05 [2025-04-26 08:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992978', 'tblTempUsageDetail_20' ) start [2025-04-26 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992978', 'tblTempUsageDetail_20' ) end [2025-04-26 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992978', 'tblTempVendorCDR_20' ) start [2025-04-26 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992978', 'tblTempVendorCDR_20' ) end [2025-04-26 08:13:18] Production.INFO: ProcessCDR(1,14992978,1,1,2) [2025-04-26 08:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992978', 'tblTempUsageDetail_20' ) start [2025-04-26 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992978', 'tblTempUsageDetail_20' ) end [2025-04-26 08:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 08:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 08:13:21] Production.INFO: ==26204== Releasing lock... [2025-04-26 08:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 08:13:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-26 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 05:14:05 [end_date_ymd] => 2025-04-26 08:14:05 [RateCDR] => 1 ) [2025-04-26 08:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 05:14:05' and `end` < '2025-04-26 08:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 08:14:18] Production.INFO: count ==89 [2025-04-26 08:14:18] Production.ERROR: pbx CDR StartTime 2025-04-26 05:14:05 - End Time 2025-04-26 08:14:05 [2025-04-26 08:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992983', 'tblTempUsageDetail_20' ) start [2025-04-26 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992983', 'tblTempUsageDetail_20' ) end [2025-04-26 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992983', 'tblTempVendorCDR_20' ) start [2025-04-26 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992983', 'tblTempVendorCDR_20' ) end [2025-04-26 08:14:18] Production.INFO: ProcessCDR(1,14992983,1,1,2) [2025-04-26 08:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992983', 'tblTempUsageDetail_20' ) start [2025-04-26 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992983', 'tblTempUsageDetail_20' ) end [2025-04-26 08:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 08:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 08:14:21] Production.INFO: ==26280== Releasing lock... [2025-04-26 08:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 08:14:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-26 08:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 05:15:06 [end_date_ymd] => 2025-04-26 08:15:06 [RateCDR] => 1 ) [2025-04-26 08:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 05:15:06' and `end` < '2025-04-26 08:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 08:15:18] Production.INFO: count ==89 [2025-04-26 08:15:18] Production.ERROR: pbx CDR StartTime 2025-04-26 05:15:06 - End Time 2025-04-26 08:15:06 [2025-04-26 08:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992988', 'tblTempUsageDetail_20' ) start [2025-04-26 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992988', 'tblTempUsageDetail_20' ) end [2025-04-26 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992988', 'tblTempVendorCDR_20' ) start [2025-04-26 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992988', 'tblTempVendorCDR_20' ) end [2025-04-26 08:15:18] Production.INFO: ProcessCDR(1,14992988,1,1,2) [2025-04-26 08:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992988', 'tblTempUsageDetail_20' ) start [2025-04-26 08:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992988', 'tblTempUsageDetail_20' ) end [2025-04-26 08:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 08:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 08:15:22] Production.INFO: ==26364== Releasing lock... [2025-04-26 08:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 08:15:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-26 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 05:16:05 [end_date_ymd] => 2025-04-26 08:16:05 [RateCDR] => 1 ) [2025-04-26 08:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 05:16:05' and `end` < '2025-04-26 08:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 08:16:17] Production.INFO: count ==94 [2025-04-26 08:16:17] Production.ERROR: pbx CDR StartTime 2025-04-26 05:16:05 - End Time 2025-04-26 08:16:05 [2025-04-26 08:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992993', 'tblTempUsageDetail_20' ) start [2025-04-26 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992993', 'tblTempUsageDetail_20' ) end [2025-04-26 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992993', 'tblTempVendorCDR_20' ) start [2025-04-26 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992993', 'tblTempVendorCDR_20' ) end [2025-04-26 08:16:17] Production.INFO: ProcessCDR(1,14992993,1,1,2) [2025-04-26 08:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992993', 'tblTempUsageDetail_20' ) start [2025-04-26 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992993', 'tblTempUsageDetail_20' ) end [2025-04-26 08:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 08:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 08:16:21] Production.INFO: ==26434== Releasing lock... [2025-04-26 08:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 08:16:21] Production.INFO: 29 MB #Memory Used# [2025-04-26 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 05:17:05 [end_date_ymd] => 2025-04-26 08:17:05 [RateCDR] => 1 ) [2025-04-26 08:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 05:17:05' and `end` < '2025-04-26 08:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 08:17:18] Production.INFO: count ==94 [2025-04-26 08:17:18] Production.ERROR: pbx CDR StartTime 2025-04-26 05:17:05 - End Time 2025-04-26 08:17:05 [2025-04-26 08:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992998', 'tblTempUsageDetail_20' ) start [2025-04-26 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14992998', 'tblTempUsageDetail_20' ) end [2025-04-26 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992998', 'tblTempVendorCDR_20' ) start [2025-04-26 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14992998', 'tblTempVendorCDR_20' ) end [2025-04-26 08:17:18] Production.INFO: ProcessCDR(1,14992998,1,1,2) [2025-04-26 08:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14992998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14992998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14992998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14992998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992998', 'tblTempUsageDetail_20' ) start [2025-04-26 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14992998', 'tblTempUsageDetail_20' ) end [2025-04-26 08:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 08:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 08:17:21] Production.INFO: ==26510== Releasing lock... [2025-04-26 08:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 08:17:21] Production.INFO: 29 MB #Memory Used# [2025-04-26 08:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 05:18:04 [end_date_ymd] => 2025-04-26 08:18:04 [RateCDR] => 1 ) [2025-04-26 08: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-04-26 05:18:04' and `end` < '2025-04-26 08:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 08:18:17] Production.INFO: count ==99 [2025-04-26 08:18:17] Production.ERROR: pbx CDR StartTime 2025-04-26 05:18:04 - End Time 2025-04-26 08:18:04 [2025-04-26 08:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993003', 'tblTempUsageDetail_20' ) start [2025-04-26 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993003', 'tblTempUsageDetail_20' ) end [2025-04-26 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993003', 'tblTempVendorCDR_20' ) start [2025-04-26 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993003', 'tblTempVendorCDR_20' ) end [2025-04-26 08:18:17] Production.INFO: ProcessCDR(1,14993003,1,1,2) [2025-04-26 08:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993003', 'tblTempUsageDetail_20' ) start [2025-04-26 08:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993003', 'tblTempUsageDetail_20' ) end [2025-04-26 08:18:20] Production.ERROR: pbx prc_insertCDR start [2025-04-26 08:18:20] Production.ERROR: pbx prc_insertCDR end [2025-04-26 08:18:20] Production.INFO: ==26589== Releasing lock... [2025-04-26 08:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 08:18:20] Production.INFO: 29 MB #Memory Used# [2025-04-26 08:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 05:19:04 [end_date_ymd] => 2025-04-26 08:19:04 [RateCDR] => 1 ) [2025-04-26 08:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 05:19:04' and `end` < '2025-04-26 08:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 08:19:17] Production.INFO: count ==99 [2025-04-26 08:19:17] Production.ERROR: pbx CDR StartTime 2025-04-26 05:19:04 - End Time 2025-04-26 08:19:04 [2025-04-26 08:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993008', 'tblTempUsageDetail_20' ) start [2025-04-26 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993008', 'tblTempUsageDetail_20' ) end [2025-04-26 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993008', 'tblTempVendorCDR_20' ) start [2025-04-26 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993008', 'tblTempVendorCDR_20' ) end [2025-04-26 08:19:17] Production.INFO: ProcessCDR(1,14993008,1,1,2) [2025-04-26 08:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993008', 'tblTempUsageDetail_20' ) start [2025-04-26 08:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993008', 'tblTempUsageDetail_20' ) end [2025-04-26 08:19:20] Production.ERROR: pbx prc_insertCDR start [2025-04-26 08:19:20] Production.ERROR: pbx prc_insertCDR end [2025-04-26 08:19:20] Production.INFO: ==26661== Releasing lock... [2025-04-26 08:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 08:19:20] Production.INFO: 29 MB #Memory Used# [2025-04-26 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 05:20:06 [end_date_ymd] => 2025-04-26 08:20:06 [RateCDR] => 1 ) [2025-04-26 08:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 05:20:06' and `end` < '2025-04-26 08:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 08:20:18] Production.INFO: count ==105 [2025-04-26 08:20:18] Production.ERROR: pbx CDR StartTime 2025-04-26 05:20:06 - End Time 2025-04-26 08:20:06 [2025-04-26 08:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993014', 'tblTempUsageDetail_20' ) start [2025-04-26 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993014', 'tblTempUsageDetail_20' ) end [2025-04-26 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993014', 'tblTempVendorCDR_20' ) start [2025-04-26 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993014', 'tblTempVendorCDR_20' ) end [2025-04-26 08:20:18] Production.INFO: ProcessCDR(1,14993014,1,1,2) [2025-04-26 08:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993014', 'tblTempUsageDetail_20' ) start [2025-04-26 08:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993014', 'tblTempUsageDetail_20' ) end [2025-04-26 08:20:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 08:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 08:20:22] Production.INFO: ==26737== Releasing lock... [2025-04-26 08:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 08:20:22] Production.INFO: 29 MB #Memory Used# [2025-04-26 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 05:21:05 [end_date_ymd] => 2025-04-26 08:21:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 05:21:05' and `end` < '2025-04-26 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-04-26 08:21:18] Production.INFO: count ==105 [2025-04-26 08:21:18] Production.ERROR: pbx CDR StartTime 2025-04-26 05:21:05 - End Time 2025-04-26 08:21:05 [2025-04-26 08:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993019', 'tblTempUsageDetail_20' ) start [2025-04-26 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993019', 'tblTempUsageDetail_20' ) end [2025-04-26 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993019', 'tblTempVendorCDR_20' ) start [2025-04-26 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993019', 'tblTempVendorCDR_20' ) end [2025-04-26 08:21:18] Production.INFO: ProcessCDR(1,14993019,1,1,2) [2025-04-26 08:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993019', 'tblTempUsageDetail_20' ) start [2025-04-26 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993019', 'tblTempUsageDetail_20' ) end [2025-04-26 08:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 08:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 08:21:21] Production.INFO: ==26813== Releasing lock... [2025-04-26 08:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 08:21:21] Production.INFO: 29 MB #Memory Used# [2025-04-26 08:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 05:22:06 [end_date_ymd] => 2025-04-26 08:22:06 [RateCDR] => 1 ) [2025-04-26 08:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 05:22:06' and `end` < '2025-04-26 08:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 08:22:18] Production.INFO: count ==105 [2025-04-26 08:22:18] Production.ERROR: pbx CDR StartTime 2025-04-26 05:22:06 - End Time 2025-04-26 08:22:06 [2025-04-26 08:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993024', 'tblTempUsageDetail_20' ) start [2025-04-26 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993024', 'tblTempUsageDetail_20' ) end [2025-04-26 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993024', 'tblTempVendorCDR_20' ) start [2025-04-26 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993024', 'tblTempVendorCDR_20' ) end [2025-04-26 08:22:18] Production.INFO: ProcessCDR(1,14993024,1,1,2) [2025-04-26 08:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993024', 'tblTempUsageDetail_20' ) start [2025-04-26 08:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993024', 'tblTempUsageDetail_20' ) end [2025-04-26 08:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 08:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 08:22:22] Production.INFO: ==26889== Releasing lock... [2025-04-26 08:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 08:22:22] Production.INFO: 29 MB #Memory Used# [2025-04-26 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 05:23:05 [end_date_ymd] => 2025-04-26 08:23:05 [RateCDR] => 1 ) [2025-04-26 08:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 05:23:05' and `end` < '2025-04-26 08:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 08:23:18] Production.INFO: count ==107 [2025-04-26 08:23:18] Production.ERROR: pbx CDR StartTime 2025-04-26 05:23:05 - End Time 2025-04-26 08:23:05 [2025-04-26 08:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993029', 'tblTempUsageDetail_20' ) start [2025-04-26 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993029', 'tblTempUsageDetail_20' ) end [2025-04-26 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993029', 'tblTempVendorCDR_20' ) start [2025-04-26 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993029', 'tblTempVendorCDR_20' ) end [2025-04-26 08:23:18] Production.INFO: ProcessCDR(1,14993029,1,1,2) [2025-04-26 08:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993029', 'tblTempUsageDetail_20' ) start [2025-04-26 08:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993029', 'tblTempUsageDetail_20' ) end [2025-04-26 08:23:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 08:23:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 08:23:23] Production.INFO: ==26972== Releasing lock... [2025-04-26 08:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 08:23:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-26 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 05:24:05 [end_date_ymd] => 2025-04-26 08:24:05 [RateCDR] => 1 ) [2025-04-26 08:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 05:24:05' and `end` < '2025-04-26 08:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 08:24:17] Production.INFO: count ==107 [2025-04-26 08:24:17] Production.ERROR: pbx CDR StartTime 2025-04-26 05:24:05 - End Time 2025-04-26 08:24:05 [2025-04-26 08:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993034', 'tblTempUsageDetail_20' ) start [2025-04-26 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993034', 'tblTempUsageDetail_20' ) end [2025-04-26 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993034', 'tblTempVendorCDR_20' ) start [2025-04-26 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993034', 'tblTempVendorCDR_20' ) end [2025-04-26 08:24:17] Production.INFO: ProcessCDR(1,14993034,1,1,2) [2025-04-26 08:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993034', 'tblTempUsageDetail_20' ) start [2025-04-26 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993034', 'tblTempUsageDetail_20' ) end [2025-04-26 08:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 08:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 08:24:21] Production.INFO: ==27048== Releasing lock... [2025-04-26 08:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 08:24:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-26 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 05:25:05 [end_date_ymd] => 2025-04-26 08:25:05 [RateCDR] => 1 ) [2025-04-26 08:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 05:25:05' and `end` < '2025-04-26 08:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 08:25:17] Production.INFO: count ==107 [2025-04-26 08:25:17] Production.ERROR: pbx CDR StartTime 2025-04-26 05:25:05 - End Time 2025-04-26 08:25:05 [2025-04-26 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993039', 'tblTempUsageDetail_20' ) start [2025-04-26 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993039', 'tblTempUsageDetail_20' ) end [2025-04-26 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993039', 'tblTempVendorCDR_20' ) start [2025-04-26 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993039', 'tblTempVendorCDR_20' ) end [2025-04-26 08:25:17] Production.INFO: ProcessCDR(1,14993039,1,1,2) [2025-04-26 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993039', 'tblTempUsageDetail_20' ) start [2025-04-26 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993039', 'tblTempUsageDetail_20' ) end [2025-04-26 08:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 08:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 08:25:21] Production.INFO: ==27126== Releasing lock... [2025-04-26 08:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 08:25:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-26 08:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 05:26:06 [end_date_ymd] => 2025-04-26 08:26:06 [RateCDR] => 1 ) [2025-04-26 08:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 05:26:06' and `end` < '2025-04-26 08:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 08:26:18] Production.INFO: count ==112 [2025-04-26 08:26:18] Production.ERROR: pbx CDR StartTime 2025-04-26 05:26:06 - End Time 2025-04-26 08:26:06 [2025-04-26 08:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993044', 'tblTempUsageDetail_20' ) start [2025-04-26 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993044', 'tblTempUsageDetail_20' ) end [2025-04-26 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993044', 'tblTempVendorCDR_20' ) start [2025-04-26 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993044', 'tblTempVendorCDR_20' ) end [2025-04-26 08:26:18] Production.INFO: ProcessCDR(1,14993044,1,1,2) [2025-04-26 08:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993044', 'tblTempUsageDetail_20' ) start [2025-04-26 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993044', 'tblTempUsageDetail_20' ) end [2025-04-26 08:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 08:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 08:26:21] Production.INFO: ==27241== Releasing lock... [2025-04-26 08:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 08:26:21] Production.INFO: 29 MB #Memory Used# [2025-04-26 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 05:27:05 [end_date_ymd] => 2025-04-26 08:27:05 [RateCDR] => 1 ) [2025-04-26 08:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 05:27:05' and `end` < '2025-04-26 08:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 08:27:17] Production.INFO: count ==115 [2025-04-26 08:27:17] Production.ERROR: pbx CDR StartTime 2025-04-26 05:27:05 - End Time 2025-04-26 08:27:05 [2025-04-26 08:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993049', 'tblTempUsageDetail_20' ) start [2025-04-26 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993049', 'tblTempUsageDetail_20' ) end [2025-04-26 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993049', 'tblTempVendorCDR_20' ) start [2025-04-26 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993049', 'tblTempVendorCDR_20' ) end [2025-04-26 08:27:17] Production.INFO: ProcessCDR(1,14993049,1,1,2) [2025-04-26 08:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993049', 'tblTempUsageDetail_20' ) start [2025-04-26 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993049', 'tblTempUsageDetail_20' ) end [2025-04-26 08:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 08:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 08:27:21] Production.INFO: ==27321== Releasing lock... [2025-04-26 08:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 08:27:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-26 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 05:28:05 [end_date_ymd] => 2025-04-26 08:28:05 [RateCDR] => 1 ) [2025-04-26 08:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 05:28:05' and `end` < '2025-04-26 08:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 08:28:18] Production.INFO: count ==115 [2025-04-26 08:28:18] Production.ERROR: pbx CDR StartTime 2025-04-26 05:28:05 - End Time 2025-04-26 08:28:05 [2025-04-26 08:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993054', 'tblTempUsageDetail_20' ) start [2025-04-26 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993054', 'tblTempUsageDetail_20' ) end [2025-04-26 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993054', 'tblTempVendorCDR_20' ) start [2025-04-26 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993054', 'tblTempVendorCDR_20' ) end [2025-04-26 08:28:18] Production.INFO: ProcessCDR(1,14993054,1,1,2) [2025-04-26 08:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993054', 'tblTempUsageDetail_20' ) start [2025-04-26 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993054', 'tblTempUsageDetail_20' ) end [2025-04-26 08:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 08:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 08:28:21] Production.INFO: ==27394== Releasing lock... [2025-04-26 08:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 08:28:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-26 08:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 05:29:04 [end_date_ymd] => 2025-04-26 08:29:04 [RateCDR] => 1 ) [2025-04-26 08:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 05:29:04' and `end` < '2025-04-26 08:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 08:29:17] Production.INFO: count ==117 [2025-04-26 08:29:17] Production.ERROR: pbx CDR StartTime 2025-04-26 05:29:04 - End Time 2025-04-26 08:29:04 [2025-04-26 08:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993059', 'tblTempUsageDetail_20' ) start [2025-04-26 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993059', 'tblTempUsageDetail_20' ) end [2025-04-26 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993059', 'tblTempVendorCDR_20' ) start [2025-04-26 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993059', 'tblTempVendorCDR_20' ) end [2025-04-26 08:29:17] Production.INFO: ProcessCDR(1,14993059,1,1,2) [2025-04-26 08:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993059', 'tblTempUsageDetail_20' ) start [2025-04-26 08:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993059', 'tblTempUsageDetail_20' ) end [2025-04-26 08:29:20] Production.ERROR: pbx prc_insertCDR start [2025-04-26 08:29:20] Production.ERROR: pbx prc_insertCDR end [2025-04-26 08:29:20] Production.INFO: ==27467== Releasing lock... [2025-04-26 08:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 08:29:20] Production.INFO: 29.25 MB #Memory Used# [2025-04-26 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 05:30:06 [end_date_ymd] => 2025-04-26 08:30:06 [RateCDR] => 1 ) [2025-04-26 08:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 05:30:06' and `end` < '2025-04-26 08:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 08:30:18] Production.INFO: count ==127 [2025-04-26 08:30:18] Production.ERROR: pbx CDR StartTime 2025-04-26 05:30:06 - End Time 2025-04-26 08:30:06 [2025-04-26 08:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993065', 'tblTempUsageDetail_20' ) start [2025-04-26 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993065', 'tblTempUsageDetail_20' ) end [2025-04-26 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993065', 'tblTempVendorCDR_20' ) start [2025-04-26 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993065', 'tblTempVendorCDR_20' ) end [2025-04-26 08:30:18] Production.INFO: ProcessCDR(1,14993065,1,1,2) [2025-04-26 08:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993065', 'tblTempUsageDetail_20' ) start [2025-04-26 08:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993065', 'tblTempUsageDetail_20' ) end [2025-04-26 08:30:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 08:30:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 08:30:21] Production.INFO: ==27547== Releasing lock... [2025-04-26 08:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 08:30:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-26 08:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 05:31:06 [end_date_ymd] => 2025-04-26 08:31:06 [RateCDR] => 1 ) [2025-04-26 08:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 05:31:06' and `end` < '2025-04-26 08:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 08:31:18] Production.INFO: count ==128 [2025-04-26 08:31:18] Production.ERROR: pbx CDR StartTime 2025-04-26 05:31:06 - End Time 2025-04-26 08:31:06 [2025-04-26 08:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993070', 'tblTempUsageDetail_20' ) start [2025-04-26 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993070', 'tblTempUsageDetail_20' ) end [2025-04-26 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993070', 'tblTempVendorCDR_20' ) start [2025-04-26 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993070', 'tblTempVendorCDR_20' ) end [2025-04-26 08:31:18] Production.INFO: ProcessCDR(1,14993070,1,1,2) [2025-04-26 08:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993070', 'tblTempUsageDetail_20' ) start [2025-04-26 08:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993070', 'tblTempUsageDetail_20' ) end [2025-04-26 08:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 08:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 08:31:22] Production.INFO: ==27624== Releasing lock... [2025-04-26 08:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 08:31:22] Production.INFO: 29 MB #Memory Used# [2025-04-26 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 05:32:05 [end_date_ymd] => 2025-04-26 08:32:05 [RateCDR] => 1 ) [2025-04-26 08:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 05:32:05' and `end` < '2025-04-26 08:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 08:32:18] Production.INFO: count ==130 [2025-04-26 08:32:18] Production.ERROR: pbx CDR StartTime 2025-04-26 05:32:05 - End Time 2025-04-26 08:32:05 [2025-04-26 08:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993075', 'tblTempUsageDetail_20' ) start [2025-04-26 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993075', 'tblTempUsageDetail_20' ) end [2025-04-26 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993075', 'tblTempVendorCDR_20' ) start [2025-04-26 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993075', 'tblTempVendorCDR_20' ) end [2025-04-26 08:32:18] Production.INFO: ProcessCDR(1,14993075,1,1,2) [2025-04-26 08:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993075', 'tblTempUsageDetail_20' ) start [2025-04-26 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993075', 'tblTempUsageDetail_20' ) end [2025-04-26 08:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 08:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 08:32:21] Production.INFO: ==27699== Releasing lock... [2025-04-26 08:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 08:32:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-26 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 05:33:05 [end_date_ymd] => 2025-04-26 08:33:05 [RateCDR] => 1 ) [2025-04-26 08:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 05:33:05' and `end` < '2025-04-26 08:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 08:33:18] Production.INFO: count ==133 [2025-04-26 08:33:18] Production.ERROR: pbx CDR StartTime 2025-04-26 05:33:05 - End Time 2025-04-26 08:33:05 [2025-04-26 08:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993080', 'tblTempUsageDetail_20' ) start [2025-04-26 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993080', 'tblTempUsageDetail_20' ) end [2025-04-26 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993080', 'tblTempVendorCDR_20' ) start [2025-04-26 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993080', 'tblTempVendorCDR_20' ) end [2025-04-26 08:33:18] Production.INFO: ProcessCDR(1,14993080,1,1,2) [2025-04-26 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993080', 'tblTempUsageDetail_20' ) start [2025-04-26 08:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993080', 'tblTempUsageDetail_20' ) end [2025-04-26 08:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 08:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 08:33:22] Production.INFO: ==27777== Releasing lock... [2025-04-26 08:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 08:33:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-26 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 05:34:05 [end_date_ymd] => 2025-04-26 08:34:05 [RateCDR] => 1 ) [2025-04-26 08:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 05:34:05' and `end` < '2025-04-26 08:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 08:34:17] Production.INFO: count ==138 [2025-04-26 08:34:17] Production.ERROR: pbx CDR StartTime 2025-04-26 05:34:05 - End Time 2025-04-26 08:34:05 [2025-04-26 08:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993085', 'tblTempUsageDetail_20' ) start [2025-04-26 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993085', 'tblTempUsageDetail_20' ) end [2025-04-26 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993085', 'tblTempVendorCDR_20' ) start [2025-04-26 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993085', 'tblTempVendorCDR_20' ) end [2025-04-26 08:34:17] Production.INFO: ProcessCDR(1,14993085,1,1,2) [2025-04-26 08:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993085', 'tblTempUsageDetail_20' ) start [2025-04-26 08:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993085', 'tblTempUsageDetail_20' ) end [2025-04-26 08:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 08:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 08:34:21] Production.INFO: ==27848== Releasing lock... [2025-04-26 08:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 08:34:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-26 08:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 05:35:06 [end_date_ymd] => 2025-04-26 08:35:06 [RateCDR] => 1 ) [2025-04-26 08:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 05:35:06' and `end` < '2025-04-26 08:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 08:35:18] Production.INFO: count ==138 [2025-04-26 08:35:18] Production.ERROR: pbx CDR StartTime 2025-04-26 05:35:06 - End Time 2025-04-26 08:35:06 [2025-04-26 08:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993090', 'tblTempUsageDetail_20' ) start [2025-04-26 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993090', 'tblTempUsageDetail_20' ) end [2025-04-26 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993090', 'tblTempVendorCDR_20' ) start [2025-04-26 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993090', 'tblTempVendorCDR_20' ) end [2025-04-26 08:35:18] Production.INFO: ProcessCDR(1,14993090,1,1,2) [2025-04-26 08:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993090', 'tblTempUsageDetail_20' ) start [2025-04-26 08:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993090', 'tblTempUsageDetail_20' ) end [2025-04-26 08:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 08:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 08:35:22] Production.INFO: ==27928== Releasing lock... [2025-04-26 08:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 08:35:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-26 08:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 05:36:04 [end_date_ymd] => 2025-04-26 08:36:04 [RateCDR] => 1 ) [2025-04-26 08: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-04-26 05:36:04' and `end` < '2025-04-26 08: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-04-26 08:36:17] Production.INFO: count ==138 [2025-04-26 08:36:17] Production.ERROR: pbx CDR StartTime 2025-04-26 05:36:04 - End Time 2025-04-26 08:36:04 [2025-04-26 08:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993095', 'tblTempUsageDetail_20' ) start [2025-04-26 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993095', 'tblTempUsageDetail_20' ) end [2025-04-26 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993095', 'tblTempVendorCDR_20' ) start [2025-04-26 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993095', 'tblTempVendorCDR_20' ) end [2025-04-26 08:36:17] Production.INFO: ProcessCDR(1,14993095,1,1,2) [2025-04-26 08:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993095', 'tblTempUsageDetail_20' ) start [2025-04-26 08:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993095', 'tblTempUsageDetail_20' ) end [2025-04-26 08:36:20] Production.ERROR: pbx prc_insertCDR start [2025-04-26 08:36:20] Production.ERROR: pbx prc_insertCDR end [2025-04-26 08:36:21] Production.INFO: ==28000== Releasing lock... [2025-04-26 08:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 08:36:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-26 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 05:37:05 [end_date_ymd] => 2025-04-26 08:37:05 [RateCDR] => 1 ) [2025-04-26 08:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 05:37:05' and `end` < '2025-04-26 08:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 08:37:18] Production.INFO: count ==138 [2025-04-26 08:37:18] Production.ERROR: pbx CDR StartTime 2025-04-26 05:37:05 - End Time 2025-04-26 08:37:05 [2025-04-26 08:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993100', 'tblTempUsageDetail_20' ) start [2025-04-26 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993100', 'tblTempUsageDetail_20' ) end [2025-04-26 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993100', 'tblTempVendorCDR_20' ) start [2025-04-26 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993100', 'tblTempVendorCDR_20' ) end [2025-04-26 08:37:18] Production.INFO: ProcessCDR(1,14993100,1,1,2) [2025-04-26 08:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993100', 'tblTempUsageDetail_20' ) start [2025-04-26 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993100', 'tblTempUsageDetail_20' ) end [2025-04-26 08:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 08:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 08:37:21] Production.INFO: ==28080== Releasing lock... [2025-04-26 08:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 08:37:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-26 08:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 05:38:04 [end_date_ymd] => 2025-04-26 08:38:04 [RateCDR] => 1 ) [2025-04-26 08: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-04-26 05:38:04' and `end` < '2025-04-26 08: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-04-26 08:38:17] Production.INFO: count ==139 [2025-04-26 08:38:17] Production.ERROR: pbx CDR StartTime 2025-04-26 05:38:04 - End Time 2025-04-26 08:38:04 [2025-04-26 08:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993105', 'tblTempUsageDetail_20' ) start [2025-04-26 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993105', 'tblTempUsageDetail_20' ) end [2025-04-26 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993105', 'tblTempVendorCDR_20' ) start [2025-04-26 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993105', 'tblTempVendorCDR_20' ) end [2025-04-26 08:38:17] Production.INFO: ProcessCDR(1,14993105,1,1,2) [2025-04-26 08:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993105', 'tblTempUsageDetail_20' ) start [2025-04-26 08:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993105', 'tblTempUsageDetail_20' ) end [2025-04-26 08:38:20] Production.ERROR: pbx prc_insertCDR start [2025-04-26 08:38:20] Production.ERROR: pbx prc_insertCDR end [2025-04-26 08:38:20] Production.INFO: ==28149== Releasing lock... [2025-04-26 08:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 08:38:20] Production.INFO: 29.5 MB #Memory Used# [2025-04-26 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 05:39:05 [end_date_ymd] => 2025-04-26 08:39:05 [RateCDR] => 1 ) [2025-04-26 08:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 05:39:05' and `end` < '2025-04-26 08:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 08:39:18] Production.INFO: count ==142 [2025-04-26 08:39:18] Production.ERROR: pbx CDR StartTime 2025-04-26 05:39:05 - End Time 2025-04-26 08:39:05 [2025-04-26 08:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993110', 'tblTempUsageDetail_20' ) start [2025-04-26 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993110', 'tblTempUsageDetail_20' ) end [2025-04-26 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993110', 'tblTempVendorCDR_20' ) start [2025-04-26 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993110', 'tblTempVendorCDR_20' ) end [2025-04-26 08:39:18] Production.INFO: ProcessCDR(1,14993110,1,1,2) [2025-04-26 08:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993110', 'tblTempUsageDetail_20' ) start [2025-04-26 08:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993110', 'tblTempUsageDetail_20' ) end [2025-04-26 08:39:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 08:39:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 08:39:23] Production.INFO: ==28225== Releasing lock... [2025-04-26 08:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 08:39:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-26 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 05:40:06 [end_date_ymd] => 2025-04-26 08:40:06 [RateCDR] => 1 ) [2025-04-26 08:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 05:40:06' and `end` < '2025-04-26 08:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 08:40:18] Production.INFO: count ==153 [2025-04-26 08:40:18] Production.ERROR: pbx CDR StartTime 2025-04-26 05:40:06 - End Time 2025-04-26 08:40:06 [2025-04-26 08:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993116', 'tblTempUsageDetail_20' ) start [2025-04-26 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993116', 'tblTempUsageDetail_20' ) end [2025-04-26 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993116', 'tblTempVendorCDR_20' ) start [2025-04-26 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993116', 'tblTempVendorCDR_20' ) end [2025-04-26 08:40:18] Production.INFO: ProcessCDR(1,14993116,1,1,2) [2025-04-26 08:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993116', 'tblTempUsageDetail_20' ) start [2025-04-26 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993116', 'tblTempUsageDetail_20' ) end [2025-04-26 08:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 08:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 08:40:22] Production.INFO: ==28302== Releasing lock... [2025-04-26 08:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 08:40:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-26 08:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 05:41:04 [end_date_ymd] => 2025-04-26 08:41:04 [RateCDR] => 1 ) [2025-04-26 08:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 05:41:04' and `end` < '2025-04-26 08:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 08:41:17] Production.INFO: count ==160 [2025-04-26 08:41:17] Production.ERROR: pbx CDR StartTime 2025-04-26 05:41:04 - End Time 2025-04-26 08:41:04 [2025-04-26 08:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993121', 'tblTempUsageDetail_20' ) start [2025-04-26 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993121', 'tblTempUsageDetail_20' ) end [2025-04-26 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993121', 'tblTempVendorCDR_20' ) start [2025-04-26 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993121', 'tblTempVendorCDR_20' ) end [2025-04-26 08:41:17] Production.INFO: ProcessCDR(1,14993121,1,1,2) [2025-04-26 08:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993121', 'tblTempUsageDetail_20' ) start [2025-04-26 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993121', 'tblTempUsageDetail_20' ) end [2025-04-26 08:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 08:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 08:41:22] Production.INFO: ==28419== Releasing lock... [2025-04-26 08:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 08:41:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-26 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 05:42:05 [end_date_ymd] => 2025-04-26 08:42:05 [RateCDR] => 1 ) [2025-04-26 08:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 05:42:05' and `end` < '2025-04-26 08:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 08:42:18] Production.INFO: count ==165 [2025-04-26 08:42:18] Production.ERROR: pbx CDR StartTime 2025-04-26 05:42:05 - End Time 2025-04-26 08:42:05 [2025-04-26 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993126', 'tblTempUsageDetail_20' ) start [2025-04-26 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993126', 'tblTempUsageDetail_20' ) end [2025-04-26 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993126', 'tblTempVendorCDR_20' ) start [2025-04-26 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993126', 'tblTempVendorCDR_20' ) end [2025-04-26 08:42:18] Production.INFO: ProcessCDR(1,14993126,1,1,2) [2025-04-26 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993126', 'tblTempUsageDetail_20' ) start [2025-04-26 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993126', 'tblTempUsageDetail_20' ) end [2025-04-26 08:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 08:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 08:42:21] Production.INFO: ==28497== Releasing lock... [2025-04-26 08:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 08:42:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-26 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 05:43:05 [end_date_ymd] => 2025-04-26 08:43:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 05:43:05' and `end` < '2025-04-26 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-04-26 08:43:18] Production.INFO: count ==166 [2025-04-26 08:43:18] Production.ERROR: pbx CDR StartTime 2025-04-26 05:43:05 - End Time 2025-04-26 08:43:05 [2025-04-26 08:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993131', 'tblTempUsageDetail_20' ) start [2025-04-26 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993131', 'tblTempUsageDetail_20' ) end [2025-04-26 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993131', 'tblTempVendorCDR_20' ) start [2025-04-26 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993131', 'tblTempVendorCDR_20' ) end [2025-04-26 08:43:18] Production.INFO: ProcessCDR(1,14993131,1,1,2) [2025-04-26 08:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993131', 'tblTempUsageDetail_20' ) start [2025-04-26 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993131', 'tblTempUsageDetail_20' ) end [2025-04-26 08:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 08:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 08:43:21] Production.INFO: ==28606== Releasing lock... [2025-04-26 08:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 08:43:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-26 08:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 05:44:06 [end_date_ymd] => 2025-04-26 08:44:06 [RateCDR] => 1 ) [2025-04-26 08:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 05:44:06' and `end` < '2025-04-26 08:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 08:44:18] Production.INFO: count ==166 [2025-04-26 08:44:18] Production.ERROR: pbx CDR StartTime 2025-04-26 05:44:06 - End Time 2025-04-26 08:44:06 [2025-04-26 08:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993136', 'tblTempUsageDetail_20' ) start [2025-04-26 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993136', 'tblTempUsageDetail_20' ) end [2025-04-26 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993136', 'tblTempVendorCDR_20' ) start [2025-04-26 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993136', 'tblTempVendorCDR_20' ) end [2025-04-26 08:44:18] Production.INFO: ProcessCDR(1,14993136,1,1,2) [2025-04-26 08:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993136', 'tblTempUsageDetail_20' ) start [2025-04-26 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993136', 'tblTempUsageDetail_20' ) end [2025-04-26 08:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 08:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 08:44:22] Production.INFO: ==28680== Releasing lock... [2025-04-26 08:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 08:44:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-26 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 05:45:05 [end_date_ymd] => 2025-04-26 08:45:05 [RateCDR] => 1 ) [2025-04-26 08:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 05:45:05' and `end` < '2025-04-26 08:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 08:45:18] Production.INFO: count ==162 [2025-04-26 08:45:18] Production.ERROR: pbx CDR StartTime 2025-04-26 05:45:05 - End Time 2025-04-26 08:45:05 [2025-04-26 08:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993141', 'tblTempUsageDetail_20' ) start [2025-04-26 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993141', 'tblTempUsageDetail_20' ) end [2025-04-26 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993141', 'tblTempVendorCDR_20' ) start [2025-04-26 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993141', 'tblTempVendorCDR_20' ) end [2025-04-26 08:45:18] Production.INFO: ProcessCDR(1,14993141,1,1,2) [2025-04-26 08:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993141', 'tblTempUsageDetail_20' ) start [2025-04-26 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993141', 'tblTempUsageDetail_20' ) end [2025-04-26 08:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 08:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 08:45:21] Production.INFO: ==28754== Releasing lock... [2025-04-26 08:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 08:45:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-26 08:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 05:46:06 [end_date_ymd] => 2025-04-26 08:46:06 [RateCDR] => 1 ) [2025-04-26 08:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 05:46:06' and `end` < '2025-04-26 08:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 08:46:18] Production.INFO: count ==162 [2025-04-26 08:46:18] Production.ERROR: pbx CDR StartTime 2025-04-26 05:46:06 - End Time 2025-04-26 08:46:06 [2025-04-26 08:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993146', 'tblTempUsageDetail_20' ) start [2025-04-26 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993146', 'tblTempUsageDetail_20' ) end [2025-04-26 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993146', 'tblTempVendorCDR_20' ) start [2025-04-26 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993146', 'tblTempVendorCDR_20' ) end [2025-04-26 08:46:18] Production.INFO: ProcessCDR(1,14993146,1,1,2) [2025-04-26 08:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993146', 'tblTempUsageDetail_20' ) start [2025-04-26 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993146', 'tblTempUsageDetail_20' ) end [2025-04-26 08:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 08:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 08:46:22] Production.INFO: ==28831== Releasing lock... [2025-04-26 08:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 08:46:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-26 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 05:47:05 [end_date_ymd] => 2025-04-26 08:47:05 [RateCDR] => 1 ) [2025-04-26 08:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 05:47:05' and `end` < '2025-04-26 08:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 08:47:18] Production.INFO: count ==162 [2025-04-26 08:47:18] Production.ERROR: pbx CDR StartTime 2025-04-26 05:47:05 - End Time 2025-04-26 08:47:05 [2025-04-26 08:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993151', 'tblTempUsageDetail_20' ) start [2025-04-26 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993151', 'tblTempUsageDetail_20' ) end [2025-04-26 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993151', 'tblTempVendorCDR_20' ) start [2025-04-26 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993151', 'tblTempVendorCDR_20' ) end [2025-04-26 08:47:18] Production.INFO: ProcessCDR(1,14993151,1,1,2) [2025-04-26 08:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993151', 'tblTempUsageDetail_20' ) start [2025-04-26 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993151', 'tblTempUsageDetail_20' ) end [2025-04-26 08:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 08:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 08:47:21] Production.INFO: ==28904== Releasing lock... [2025-04-26 08:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 08:47:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-26 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 05:48:05 [end_date_ymd] => 2025-04-26 08:48:05 [RateCDR] => 1 ) [2025-04-26 08:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 05:48:05' and `end` < '2025-04-26 08:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 08:48:18] Production.INFO: count ==163 [2025-04-26 08:48:18] Production.ERROR: pbx CDR StartTime 2025-04-26 05:48:05 - End Time 2025-04-26 08:48:05 [2025-04-26 08:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993156', 'tblTempUsageDetail_20' ) start [2025-04-26 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993156', 'tblTempUsageDetail_20' ) end [2025-04-26 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993156', 'tblTempVendorCDR_20' ) start [2025-04-26 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993156', 'tblTempVendorCDR_20' ) end [2025-04-26 08:48:18] Production.INFO: ProcessCDR(1,14993156,1,1,2) [2025-04-26 08:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993156', 'tblTempUsageDetail_20' ) start [2025-04-26 08:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993156', 'tblTempUsageDetail_20' ) end [2025-04-26 08:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 08:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 08:48:21] Production.INFO: ==28974== Releasing lock... [2025-04-26 08:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 08:48:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-26 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 05:49:05 [end_date_ymd] => 2025-04-26 08:49:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 05:49:05' and `end` < '2025-04-26 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-04-26 08:49:18] Production.INFO: count ==164 [2025-04-26 08:49:18] Production.ERROR: pbx CDR StartTime 2025-04-26 05:49:05 - End Time 2025-04-26 08:49:05 [2025-04-26 08:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993161', 'tblTempUsageDetail_20' ) start [2025-04-26 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993161', 'tblTempUsageDetail_20' ) end [2025-04-26 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993161', 'tblTempVendorCDR_20' ) start [2025-04-26 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993161', 'tblTempVendorCDR_20' ) end [2025-04-26 08:49:18] Production.INFO: ProcessCDR(1,14993161,1,1,2) [2025-04-26 08:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993161', 'tblTempUsageDetail_20' ) start [2025-04-26 08:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993161', 'tblTempUsageDetail_20' ) end [2025-04-26 08:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 08:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 08:49:23] Production.INFO: ==29047== Releasing lock... [2025-04-26 08:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 08:49:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-26 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 05:50:06 [end_date_ymd] => 2025-04-26 08:50:06 [RateCDR] => 1 ) [2025-04-26 08:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 05:50:06' and `end` < '2025-04-26 08:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 08:50:19] Production.INFO: count ==188 [2025-04-26 08:50:19] Production.ERROR: pbx CDR StartTime 2025-04-26 05:50:06 - End Time 2025-04-26 08:50:06 [2025-04-26 08:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993167', 'tblTempUsageDetail_20' ) start [2025-04-26 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993167', 'tblTempUsageDetail_20' ) end [2025-04-26 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993167', 'tblTempVendorCDR_20' ) start [2025-04-26 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993167', 'tblTempVendorCDR_20' ) end [2025-04-26 08:50:19] Production.INFO: ProcessCDR(1,14993167,1,1,2) [2025-04-26 08:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993167', 'tblTempUsageDetail_20' ) start [2025-04-26 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993167', 'tblTempUsageDetail_20' ) end [2025-04-26 08:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 08:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 08:50:22] Production.INFO: ==29123== Releasing lock... [2025-04-26 08:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 08:50:22] Production.INFO: 30 MB #Memory Used# [2025-04-26 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 05:51:05 [end_date_ymd] => 2025-04-26 08:51:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 05:51:05' and `end` < '2025-04-26 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-04-26 08:51:17] Production.INFO: count ==195 [2025-04-26 08:51:17] Production.ERROR: pbx CDR StartTime 2025-04-26 05:51:05 - End Time 2025-04-26 08:51:05 [2025-04-26 08:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993172', 'tblTempUsageDetail_20' ) start [2025-04-26 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993172', 'tblTempUsageDetail_20' ) end [2025-04-26 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993172', 'tblTempVendorCDR_20' ) start [2025-04-26 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993172', 'tblTempVendorCDR_20' ) end [2025-04-26 08:51:17] Production.INFO: ProcessCDR(1,14993172,1,1,2) [2025-04-26 08:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993172', 'tblTempUsageDetail_20' ) start [2025-04-26 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993172', 'tblTempUsageDetail_20' ) end [2025-04-26 08:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 08:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 08:51:21] Production.INFO: ==29204== Releasing lock... [2025-04-26 08:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 08:51:21] Production.INFO: 30 MB #Memory Used# [2025-04-26 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 05:52:05 [end_date_ymd] => 2025-04-26 08:52:05 [RateCDR] => 1 ) [2025-04-26 08:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 05:52:05' and `end` < '2025-04-26 08:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 08:52:18] Production.INFO: count ==198 [2025-04-26 08:52:18] Production.ERROR: pbx CDR StartTime 2025-04-26 05:52:05 - End Time 2025-04-26 08:52:05 [2025-04-26 08:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993177', 'tblTempUsageDetail_20' ) start [2025-04-26 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993177', 'tblTempUsageDetail_20' ) end [2025-04-26 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993177', 'tblTempVendorCDR_20' ) start [2025-04-26 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993177', 'tblTempVendorCDR_20' ) end [2025-04-26 08:52:18] Production.INFO: ProcessCDR(1,14993177,1,1,2) [2025-04-26 08:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993177', 'tblTempUsageDetail_20' ) start [2025-04-26 08:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993177', 'tblTempUsageDetail_20' ) end [2025-04-26 08:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 08:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 08:52:21] Production.INFO: ==29281== Releasing lock... [2025-04-26 08:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 08:52:21] Production.INFO: 30 MB #Memory Used# [2025-04-26 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 05:53:05 [end_date_ymd] => 2025-04-26 08:53:05 [RateCDR] => 1 ) [2025-04-26 08:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 05:53:05' and `end` < '2025-04-26 08:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 08:53:18] Production.INFO: count ==199 [2025-04-26 08:53:18] Production.ERROR: pbx CDR StartTime 2025-04-26 05:53:05 - End Time 2025-04-26 08:53:05 [2025-04-26 08:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993182', 'tblTempUsageDetail_20' ) start [2025-04-26 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993182', 'tblTempUsageDetail_20' ) end [2025-04-26 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993182', 'tblTempVendorCDR_20' ) start [2025-04-26 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993182', 'tblTempVendorCDR_20' ) end [2025-04-26 08:53:18] Production.INFO: ProcessCDR(1,14993182,1,1,2) [2025-04-26 08:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993182', 'tblTempUsageDetail_20' ) start [2025-04-26 08:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993182', 'tblTempUsageDetail_20' ) end [2025-04-26 08:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 08:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 08:53:23] Production.INFO: ==29354== Releasing lock... [2025-04-26 08:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 08:53:23] Production.INFO: 29.75 MB #Memory Used# [2025-04-26 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 05:54:05 [end_date_ymd] => 2025-04-26 08:54:05 [RateCDR] => 1 ) [2025-04-26 08:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 05:54:05' and `end` < '2025-04-26 08:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 08:54:18] Production.INFO: count ==199 [2025-04-26 08:54:18] Production.ERROR: pbx CDR StartTime 2025-04-26 05:54:05 - End Time 2025-04-26 08:54:05 [2025-04-26 08:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993187', 'tblTempUsageDetail_20' ) start [2025-04-26 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993187', 'tblTempUsageDetail_20' ) end [2025-04-26 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993187', 'tblTempVendorCDR_20' ) start [2025-04-26 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993187', 'tblTempVendorCDR_20' ) end [2025-04-26 08:54:18] Production.INFO: ProcessCDR(1,14993187,1,1,2) [2025-04-26 08:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993187', 'tblTempUsageDetail_20' ) start [2025-04-26 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993187', 'tblTempUsageDetail_20' ) end [2025-04-26 08:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 08:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 08:54:21] Production.INFO: ==29430== Releasing lock... [2025-04-26 08:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 08:54:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-26 08:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 05:55:06 [end_date_ymd] => 2025-04-26 08:55:06 [RateCDR] => 1 ) [2025-04-26 08:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 05:55:06' and `end` < '2025-04-26 08:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 08:55:19] Production.INFO: count ==196 [2025-04-26 08:55:19] Production.ERROR: pbx CDR StartTime 2025-04-26 05:55:06 - End Time 2025-04-26 08:55:06 [2025-04-26 08:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993192', 'tblTempUsageDetail_20' ) start [2025-04-26 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993192', 'tblTempUsageDetail_20' ) end [2025-04-26 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993192', 'tblTempVendorCDR_20' ) start [2025-04-26 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993192', 'tblTempVendorCDR_20' ) end [2025-04-26 08:55:19] Production.INFO: ProcessCDR(1,14993192,1,1,2) [2025-04-26 08:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993192', 'tblTempUsageDetail_20' ) start [2025-04-26 08:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993192', 'tblTempUsageDetail_20' ) end [2025-04-26 08:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 08:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 08:55:22] Production.INFO: ==29502== Releasing lock... [2025-04-26 08:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 08:55:22] Production.INFO: 30 MB #Memory Used# [2025-04-26 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 05:56:05 [end_date_ymd] => 2025-04-26 08:56:05 [RateCDR] => 1 ) [2025-04-26 08:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 05:56:05' and `end` < '2025-04-26 08:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 08:56:18] Production.INFO: count ==199 [2025-04-26 08:56:18] Production.ERROR: pbx CDR StartTime 2025-04-26 05:56:05 - End Time 2025-04-26 08:56:05 [2025-04-26 08:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993197', 'tblTempUsageDetail_20' ) start [2025-04-26 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993197', 'tblTempUsageDetail_20' ) end [2025-04-26 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993197', 'tblTempVendorCDR_20' ) start [2025-04-26 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993197', 'tblTempVendorCDR_20' ) end [2025-04-26 08:56:18] Production.INFO: ProcessCDR(1,14993197,1,1,2) [2025-04-26 08:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993197', 'tblTempUsageDetail_20' ) start [2025-04-26 08:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993197', 'tblTempUsageDetail_20' ) end [2025-04-26 08:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 08:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 08:56:21] Production.INFO: ==29575== Releasing lock... [2025-04-26 08:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 08:56:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-26 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 05:57:05 [end_date_ymd] => 2025-04-26 08:57:05 [RateCDR] => 1 ) [2025-04-26 08:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 05:57:05' and `end` < '2025-04-26 08:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 08:57:18] Production.INFO: count ==201 [2025-04-26 08:57:18] Production.ERROR: pbx CDR StartTime 2025-04-26 05:57:05 - End Time 2025-04-26 08:57:05 [2025-04-26 08:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993202', 'tblTempUsageDetail_20' ) start [2025-04-26 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993202', 'tblTempUsageDetail_20' ) end [2025-04-26 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993202', 'tblTempVendorCDR_20' ) start [2025-04-26 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993202', 'tblTempVendorCDR_20' ) end [2025-04-26 08:57:18] Production.INFO: ProcessCDR(1,14993202,1,1,2) [2025-04-26 08:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993202', 'tblTempUsageDetail_20' ) start [2025-04-26 08:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993202', 'tblTempUsageDetail_20' ) end [2025-04-26 08:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 08:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 08:57:21] Production.INFO: ==29693== Releasing lock... [2025-04-26 08:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 08:57:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-26 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 05:58:05 [end_date_ymd] => 2025-04-26 08:58:05 [RateCDR] => 1 ) [2025-04-26 08:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 05:58:05' and `end` < '2025-04-26 08:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 08:58:17] Production.INFO: count ==201 [2025-04-26 08:58:17] Production.ERROR: pbx CDR StartTime 2025-04-26 05:58:05 - End Time 2025-04-26 08:58:05 [2025-04-26 08:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993207', 'tblTempUsageDetail_20' ) start [2025-04-26 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993207', 'tblTempUsageDetail_20' ) end [2025-04-26 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993207', 'tblTempVendorCDR_20' ) start [2025-04-26 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993207', 'tblTempVendorCDR_20' ) end [2025-04-26 08:58:17] Production.INFO: ProcessCDR(1,14993207,1,1,2) [2025-04-26 08:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993207', 'tblTempUsageDetail_20' ) start [2025-04-26 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993207', 'tblTempUsageDetail_20' ) end [2025-04-26 08:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 08:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 08:58:21] Production.INFO: ==29767== Releasing lock... [2025-04-26 08:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 08:58:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-26 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 05:59:05 [end_date_ymd] => 2025-04-26 08:59:05 [RateCDR] => 1 ) [2025-04-26 08:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 05:59:05' and `end` < '2025-04-26 08:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 08:59:18] Production.INFO: count ==209 [2025-04-26 08:59:18] Production.ERROR: pbx CDR StartTime 2025-04-26 05:59:05 - End Time 2025-04-26 08:59:05 [2025-04-26 08:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993212', 'tblTempUsageDetail_20' ) start [2025-04-26 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993212', 'tblTempUsageDetail_20' ) end [2025-04-26 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993212', 'tblTempVendorCDR_20' ) start [2025-04-26 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993212', 'tblTempVendorCDR_20' ) end [2025-04-26 08:59:18] Production.INFO: ProcessCDR(1,14993212,1,1,2) [2025-04-26 08:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 08:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993212', 'tblTempUsageDetail_20' ) start [2025-04-26 08:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993212', 'tblTempUsageDetail_20' ) end [2025-04-26 08:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 08:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 08:59:23] Production.INFO: ==29839== Releasing lock... [2025-04-26 08:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 08:59:23] Production.INFO: 30 MB #Memory Used# [2025-04-26 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 06:00:06 [end_date_ymd] => 2025-04-26 09:00:06 [RateCDR] => 1 ) [2025-04-26 09:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 06:00:06' and `end` < '2025-04-26 09:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 09:00:19] Production.INFO: count ==219 [2025-04-26 09:00:19] Production.ERROR: pbx CDR StartTime 2025-04-26 06:00:06 - End Time 2025-04-26 09:00:06 [2025-04-26 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993218', 'tblTempUsageDetail_20' ) start [2025-04-26 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993218', 'tblTempUsageDetail_20' ) end [2025-04-26 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993218', 'tblTempVendorCDR_20' ) start [2025-04-26 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993218', 'tblTempVendorCDR_20' ) end [2025-04-26 09:00:19] Production.INFO: ProcessCDR(1,14993218,1,1,2) [2025-04-26 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993218', 'tblTempUsageDetail_20' ) start [2025-04-26 09:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993218', 'tblTempUsageDetail_20' ) end [2025-04-26 09:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 09:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 09:00:22] Production.INFO: ==29913== Releasing lock... [2025-04-26 09:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 09:00:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-26 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 06:01:05 [end_date_ymd] => 2025-04-26 09:01:05 [RateCDR] => 1 ) [2025-04-26 09:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 06:01:05' and `end` < '2025-04-26 09:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 09:01:18] Production.INFO: count ==240 [2025-04-26 09:01:18] Production.ERROR: pbx CDR StartTime 2025-04-26 06:01:05 - End Time 2025-04-26 09:01:05 [2025-04-26 09:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993223', 'tblTempUsageDetail_20' ) start [2025-04-26 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993223', 'tblTempUsageDetail_20' ) end [2025-04-26 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993223', 'tblTempVendorCDR_20' ) start [2025-04-26 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993223', 'tblTempVendorCDR_20' ) end [2025-04-26 09:01:18] Production.INFO: ProcessCDR(1,14993223,1,1,2) [2025-04-26 09:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993223', 'tblTempUsageDetail_20' ) start [2025-04-26 09:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993223', 'tblTempUsageDetail_20' ) end [2025-04-26 09:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 09:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 09:01:21] Production.INFO: ==29997== Releasing lock... [2025-04-26 09:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 09:01:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-26 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 06:02:05 [end_date_ymd] => 2025-04-26 09:02:05 [RateCDR] => 1 ) [2025-04-26 09:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 06:02:05' and `end` < '2025-04-26 09:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 09:02:17] Production.INFO: count ==240 [2025-04-26 09:02:17] Production.ERROR: pbx CDR StartTime 2025-04-26 06:02:05 - End Time 2025-04-26 09:02:05 [2025-04-26 09:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993228', 'tblTempUsageDetail_20' ) start [2025-04-26 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993228', 'tblTempUsageDetail_20' ) end [2025-04-26 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993228', 'tblTempVendorCDR_20' ) start [2025-04-26 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993228', 'tblTempVendorCDR_20' ) end [2025-04-26 09:02:17] Production.INFO: ProcessCDR(1,14993228,1,1,2) [2025-04-26 09:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993228', 'tblTempUsageDetail_20' ) start [2025-04-26 09:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993228', 'tblTempUsageDetail_20' ) end [2025-04-26 09:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 09:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 09:02:21] Production.INFO: ==30072== Releasing lock... [2025-04-26 09:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 09:02:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-26 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 06:03:05 [end_date_ymd] => 2025-04-26 09:03:05 [RateCDR] => 1 ) [2025-04-26 09:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 06:03:05' and `end` < '2025-04-26 09:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 09:03:17] Production.INFO: count ==240 [2025-04-26 09:03:17] Production.ERROR: pbx CDR StartTime 2025-04-26 06:03:05 - End Time 2025-04-26 09:03:05 [2025-04-26 09:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993233', 'tblTempUsageDetail_20' ) start [2025-04-26 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993233', 'tblTempUsageDetail_20' ) end [2025-04-26 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993233', 'tblTempVendorCDR_20' ) start [2025-04-26 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993233', 'tblTempVendorCDR_20' ) end [2025-04-26 09:03:17] Production.INFO: ProcessCDR(1,14993233,1,1,2) [2025-04-26 09:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993233', 'tblTempUsageDetail_20' ) start [2025-04-26 09:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993233', 'tblTempUsageDetail_20' ) end [2025-04-26 09:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 09:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 09:03:21] Production.INFO: ==30147== Releasing lock... [2025-04-26 09:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 09:03:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-26 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 06:04:05 [end_date_ymd] => 2025-04-26 09:04:05 [RateCDR] => 1 ) [2025-04-26 09:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 06:04:05' and `end` < '2025-04-26 09:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 09:04:18] Production.INFO: count ==244 [2025-04-26 09:04:18] Production.ERROR: pbx CDR StartTime 2025-04-26 06:04:05 - End Time 2025-04-26 09:04:05 [2025-04-26 09:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993238', 'tblTempUsageDetail_20' ) start [2025-04-26 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993238', 'tblTempUsageDetail_20' ) end [2025-04-26 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993238', 'tblTempVendorCDR_20' ) start [2025-04-26 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993238', 'tblTempVendorCDR_20' ) end [2025-04-26 09:04:18] Production.INFO: ProcessCDR(1,14993238,1,1,2) [2025-04-26 09:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993238', 'tblTempUsageDetail_20' ) start [2025-04-26 09:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993238', 'tblTempUsageDetail_20' ) end [2025-04-26 09:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 09:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 09:04:21] Production.INFO: ==30227== Releasing lock... [2025-04-26 09:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 09:04:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-26 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 06:05:05 [end_date_ymd] => 2025-04-26 09:05:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 06:05:05' and `end` < '2025-04-26 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-04-26 09:05:17] Production.INFO: count ==247 [2025-04-26 09:05:18] Production.ERROR: pbx CDR StartTime 2025-04-26 06:05:05 - End Time 2025-04-26 09:05:05 [2025-04-26 09:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993243', 'tblTempUsageDetail_20' ) start [2025-04-26 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993243', 'tblTempUsageDetail_20' ) end [2025-04-26 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993243', 'tblTempVendorCDR_20' ) start [2025-04-26 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993243', 'tblTempVendorCDR_20' ) end [2025-04-26 09:05:18] Production.INFO: ProcessCDR(1,14993243,1,1,2) [2025-04-26 09:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993243', 'tblTempUsageDetail_20' ) start [2025-04-26 09:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993243', 'tblTempUsageDetail_20' ) end [2025-04-26 09:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 09:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 09:05:22] Production.INFO: ==30300== Releasing lock... [2025-04-26 09:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 09:05:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-26 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 06:06:05 [end_date_ymd] => 2025-04-26 09:06:05 [RateCDR] => 1 ) [2025-04-26 09:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 06:06:05' and `end` < '2025-04-26 09:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 09:06:18] Production.INFO: count ==253 [2025-04-26 09:06:18] Production.ERROR: pbx CDR StartTime 2025-04-26 06:06:05 - End Time 2025-04-26 09:06:05 [2025-04-26 09:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993248', 'tblTempUsageDetail_20' ) start [2025-04-26 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993248', 'tblTempUsageDetail_20' ) end [2025-04-26 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993248', 'tblTempVendorCDR_20' ) start [2025-04-26 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993248', 'tblTempVendorCDR_20' ) end [2025-04-26 09:06:18] Production.INFO: ProcessCDR(1,14993248,1,1,2) [2025-04-26 09:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993248', 'tblTempUsageDetail_20' ) start [2025-04-26 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993248', 'tblTempUsageDetail_20' ) end [2025-04-26 09:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 09:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 09:06:23] Production.INFO: ==30370== Releasing lock... [2025-04-26 09:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 09:06:23] Production.INFO: 30.25 MB #Memory Used# [2025-04-26 09:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 06:07:04 [end_date_ymd] => 2025-04-26 09:07:04 [RateCDR] => 1 ) [2025-04-26 09:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 06:07:04' and `end` < '2025-04-26 09:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 09:07:17] Production.INFO: count ==253 [2025-04-26 09:07:17] Production.ERROR: pbx CDR StartTime 2025-04-26 06:07:04 - End Time 2025-04-26 09:07:04 [2025-04-26 09:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993253', 'tblTempUsageDetail_20' ) start [2025-04-26 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993253', 'tblTempUsageDetail_20' ) end [2025-04-26 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993253', 'tblTempVendorCDR_20' ) start [2025-04-26 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993253', 'tblTempVendorCDR_20' ) end [2025-04-26 09:07:17] Production.INFO: ProcessCDR(1,14993253,1,1,2) [2025-04-26 09:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993253', 'tblTempUsageDetail_20' ) start [2025-04-26 09:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993253', 'tblTempUsageDetail_20' ) end [2025-04-26 09:07:20] Production.ERROR: pbx prc_insertCDR start [2025-04-26 09:07:20] Production.ERROR: pbx prc_insertCDR end [2025-04-26 09:07:20] Production.INFO: ==30449== Releasing lock... [2025-04-26 09:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 09:07:20] Production.INFO: 30.25 MB #Memory Used# [2025-04-26 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 06:08:05 [end_date_ymd] => 2025-04-26 09:08:05 [RateCDR] => 1 ) [2025-04-26 09:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 06:08:05' and `end` < '2025-04-26 09:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 09:08:18] Production.INFO: count ==255 [2025-04-26 09:08:18] Production.ERROR: pbx CDR StartTime 2025-04-26 06:08:05 - End Time 2025-04-26 09:08:05 [2025-04-26 09:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993258', 'tblTempUsageDetail_20' ) start [2025-04-26 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993258', 'tblTempUsageDetail_20' ) end [2025-04-26 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993258', 'tblTempVendorCDR_20' ) start [2025-04-26 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993258', 'tblTempVendorCDR_20' ) end [2025-04-26 09:08:18] Production.INFO: ProcessCDR(1,14993258,1,1,2) [2025-04-26 09:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993258', 'tblTempUsageDetail_20' ) start [2025-04-26 09:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993258', 'tblTempUsageDetail_20' ) end [2025-04-26 09:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 09:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 09:08:23] Production.INFO: ==30521== Releasing lock... [2025-04-26 09:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 09:08:23] Production.INFO: 30 MB #Memory Used# [2025-04-26 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 06:09:05 [end_date_ymd] => 2025-04-26 09:09:05 [RateCDR] => 1 ) [2025-04-26 09:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 06:09:05' and `end` < '2025-04-26 09:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 09:09:17] Production.INFO: count ==266 [2025-04-26 09:09:18] Production.ERROR: pbx CDR StartTime 2025-04-26 06:09:05 - End Time 2025-04-26 09:09:05 [2025-04-26 09:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993263', 'tblTempUsageDetail_20' ) start [2025-04-26 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993263', 'tblTempUsageDetail_20' ) end [2025-04-26 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993263', 'tblTempVendorCDR_20' ) start [2025-04-26 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993263', 'tblTempVendorCDR_20' ) end [2025-04-26 09:09:18] Production.INFO: ProcessCDR(1,14993263,1,1,2) [2025-04-26 09:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993263', 'tblTempUsageDetail_20' ) start [2025-04-26 09:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993263', 'tblTempUsageDetail_20' ) end [2025-04-26 09:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 09:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 09:09:22] Production.INFO: ==30592== Releasing lock... [2025-04-26 09:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 09:09:22] Production.INFO: 31 MB #Memory Used# [2025-04-26 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 06:10:06 [end_date_ymd] => 2025-04-26 09:10:06 [RateCDR] => 1 ) [2025-04-26 09:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 06:10:06' and `end` < '2025-04-26 09:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 09:10:19] Production.INFO: count ==285 [2025-04-26 09:10:19] Production.ERROR: pbx CDR StartTime 2025-04-26 06:10:06 - End Time 2025-04-26 09:10:06 [2025-04-26 09:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993269', 'tblTempUsageDetail_20' ) start [2025-04-26 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993269', 'tblTempUsageDetail_20' ) end [2025-04-26 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993269', 'tblTempVendorCDR_20' ) start [2025-04-26 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993269', 'tblTempVendorCDR_20' ) end [2025-04-26 09:10:19] Production.INFO: ProcessCDR(1,14993269,1,1,2) [2025-04-26 09:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993269', 'tblTempUsageDetail_20' ) start [2025-04-26 09:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993269', 'tblTempUsageDetail_20' ) end [2025-04-26 09:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 09:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 09:10:24] Production.INFO: ==30671== Releasing lock... [2025-04-26 09:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 09:10:24] Production.INFO: 31 MB #Memory Used# [2025-04-26 09:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 06:11:06 [end_date_ymd] => 2025-04-26 09:11:06 [RateCDR] => 1 ) [2025-04-26 09:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 06:11:06' and `end` < '2025-04-26 09:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 09:11:18] Production.INFO: count ==308 [2025-04-26 09:11:18] Production.ERROR: pbx CDR StartTime 2025-04-26 06:11:06 - End Time 2025-04-26 09:11:06 [2025-04-26 09:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993274', 'tblTempUsageDetail_20' ) start [2025-04-26 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993274', 'tblTempUsageDetail_20' ) end [2025-04-26 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993274', 'tblTempVendorCDR_20' ) start [2025-04-26 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993274', 'tblTempVendorCDR_20' ) end [2025-04-26 09:11:18] Production.INFO: ProcessCDR(1,14993274,1,1,2) [2025-04-26 09:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993274', 'tblTempUsageDetail_20' ) start [2025-04-26 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993274', 'tblTempUsageDetail_20' ) end [2025-04-26 09:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 09:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 09:11:23] Production.INFO: ==30744== Releasing lock... [2025-04-26 09:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 09:11:23] Production.INFO: 30.5 MB #Memory Used# [2025-04-26 09:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 06:12:05 [end_date_ymd] => 2025-04-26 09:12:05 [RateCDR] => 1 ) [2025-04-26 09:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 06:12:05' and `end` < '2025-04-26 09:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 09:12:17] Production.INFO: count ==308 [2025-04-26 09:12:17] Production.ERROR: pbx CDR StartTime 2025-04-26 06:12:05 - End Time 2025-04-26 09:12:05 [2025-04-26 09:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993279', 'tblTempUsageDetail_20' ) start [2025-04-26 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993279', 'tblTempUsageDetail_20' ) end [2025-04-26 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993279', 'tblTempVendorCDR_20' ) start [2025-04-26 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993279', 'tblTempVendorCDR_20' ) end [2025-04-26 09:12:17] Production.INFO: ProcessCDR(1,14993279,1,1,2) [2025-04-26 09:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993279', 'tblTempUsageDetail_20' ) start [2025-04-26 09:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993279', 'tblTempUsageDetail_20' ) end [2025-04-26 09:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 09:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 09:12:21] Production.INFO: ==30860== Releasing lock... [2025-04-26 09:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 09:12:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-26 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 06:13:05 [end_date_ymd] => 2025-04-26 09:13:05 [RateCDR] => 1 ) [2025-04-26 09:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 06:13:05' and `end` < '2025-04-26 09:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 09:13:18] Production.INFO: count ==310 [2025-04-26 09:13:18] Production.ERROR: pbx CDR StartTime 2025-04-26 06:13:05 - End Time 2025-04-26 09:13:05 [2025-04-26 09:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993284', 'tblTempUsageDetail_20' ) start [2025-04-26 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993284', 'tblTempUsageDetail_20' ) end [2025-04-26 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993284', 'tblTempVendorCDR_20' ) start [2025-04-26 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993284', 'tblTempVendorCDR_20' ) end [2025-04-26 09:13:18] Production.INFO: ProcessCDR(1,14993284,1,1,2) [2025-04-26 09:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993284', 'tblTempUsageDetail_20' ) start [2025-04-26 09:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993284', 'tblTempUsageDetail_20' ) end [2025-04-26 09:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 09:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 09:13:23] Production.INFO: ==30930== Releasing lock... [2025-04-26 09:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 09:13:23] Production.INFO: 30.5 MB #Memory Used# [2025-04-26 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 06:14:05 [end_date_ymd] => 2025-04-26 09:14:05 [RateCDR] => 1 ) [2025-04-26 09:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 06:14:05' and `end` < '2025-04-26 09:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 09:14:17] Production.INFO: count ==323 [2025-04-26 09:14:17] Production.ERROR: pbx CDR StartTime 2025-04-26 06:14:05 - End Time 2025-04-26 09:14:05 [2025-04-26 09:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993289', 'tblTempUsageDetail_20' ) start [2025-04-26 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993289', 'tblTempUsageDetail_20' ) end [2025-04-26 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993289', 'tblTempVendorCDR_20' ) start [2025-04-26 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993289', 'tblTempVendorCDR_20' ) end [2025-04-26 09:14:17] Production.INFO: ProcessCDR(1,14993289,1,1,2) [2025-04-26 09:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993289', 'tblTempUsageDetail_20' ) start [2025-04-26 09:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993289', 'tblTempUsageDetail_20' ) end [2025-04-26 09:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 09:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 09:14:21] Production.INFO: ==31004== Releasing lock... [2025-04-26 09:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 09:14:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-26 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 06:15:05 [end_date_ymd] => 2025-04-26 09:15:05 [RateCDR] => 1 ) [2025-04-26 09:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 06:15:05' and `end` < '2025-04-26 09:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 09:15:17] Production.INFO: count ==332 [2025-04-26 09:15:17] Production.ERROR: pbx CDR StartTime 2025-04-26 06:15:05 - End Time 2025-04-26 09:15:05 [2025-04-26 09:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993294', 'tblTempUsageDetail_20' ) start [2025-04-26 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993294', 'tblTempUsageDetail_20' ) end [2025-04-26 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993294', 'tblTempVendorCDR_20' ) start [2025-04-26 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993294', 'tblTempVendorCDR_20' ) end [2025-04-26 09:15:18] Production.INFO: ProcessCDR(1,14993294,1,1,2) [2025-04-26 09:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993294', 'tblTempUsageDetail_20' ) start [2025-04-26 09:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993294', 'tblTempUsageDetail_20' ) end [2025-04-26 09:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 09:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 09:15:21] Production.INFO: ==31075== Releasing lock... [2025-04-26 09:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 09:15:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-26 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 06:16:05 [end_date_ymd] => 2025-04-26 09:16:05 [RateCDR] => 1 ) [2025-04-26 09:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 06:16:05' and `end` < '2025-04-26 09:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 09:16:17] Production.INFO: count ==332 [2025-04-26 09:16:17] Production.ERROR: pbx CDR StartTime 2025-04-26 06:16:05 - End Time 2025-04-26 09:16:05 [2025-04-26 09:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 09:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993299', 'tblTempUsageDetail_20' ) start [2025-04-26 09:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993299', 'tblTempUsageDetail_20' ) end [2025-04-26 09:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993299', 'tblTempVendorCDR_20' ) start [2025-04-26 09:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993299', 'tblTempVendorCDR_20' ) end [2025-04-26 09:16:17] Production.INFO: ProcessCDR(1,14993299,1,1,2) [2025-04-26 09:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993299', 'tblTempUsageDetail_20' ) start [2025-04-26 09:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993299', 'tblTempUsageDetail_20' ) end [2025-04-26 09:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 09:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 09:16:21] Production.INFO: ==31159== Releasing lock... [2025-04-26 09:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 09:16:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-26 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 06:17:05 [end_date_ymd] => 2025-04-26 09:17:05 [RateCDR] => 1 ) [2025-04-26 09:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 06:17:05' and `end` < '2025-04-26 09:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 09:17:18] Production.INFO: count ==333 [2025-04-26 09:17:18] Production.ERROR: pbx CDR StartTime 2025-04-26 06:17:05 - End Time 2025-04-26 09:17:05 [2025-04-26 09:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993304', 'tblTempUsageDetail_20' ) start [2025-04-26 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993304', 'tblTempUsageDetail_20' ) end [2025-04-26 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993304', 'tblTempVendorCDR_20' ) start [2025-04-26 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993304', 'tblTempVendorCDR_20' ) end [2025-04-26 09:17:18] Production.INFO: ProcessCDR(1,14993304,1,1,2) [2025-04-26 09:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993304', 'tblTempUsageDetail_20' ) start [2025-04-26 09:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993304', 'tblTempUsageDetail_20' ) end [2025-04-26 09:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 09:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 09:17:23] Production.INFO: ==31232== Releasing lock... [2025-04-26 09:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 09:17:23] Production.INFO: 31 MB #Memory Used# [2025-04-26 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 06:18:05 [end_date_ymd] => 2025-04-26 09:18:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 06:18:05' and `end` < '2025-04-26 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-04-26 09:18:18] Production.INFO: count ==337 [2025-04-26 09:18:18] Production.ERROR: pbx CDR StartTime 2025-04-26 06:18:05 - End Time 2025-04-26 09:18:05 [2025-04-26 09:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993309', 'tblTempUsageDetail_20' ) start [2025-04-26 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993309', 'tblTempUsageDetail_20' ) end [2025-04-26 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993309', 'tblTempVendorCDR_20' ) start [2025-04-26 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993309', 'tblTempVendorCDR_20' ) end [2025-04-26 09:18:18] Production.INFO: ProcessCDR(1,14993309,1,1,2) [2025-04-26 09:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993309', 'tblTempUsageDetail_20' ) start [2025-04-26 09:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993309', 'tblTempUsageDetail_20' ) end [2025-04-26 09:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 09:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 09:18:22] Production.INFO: ==31319== Releasing lock... [2025-04-26 09:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 09:18:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-26 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 06:19:05 [end_date_ymd] => 2025-04-26 09:19:05 [RateCDR] => 1 ) [2025-04-26 09:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 06:19:05' and `end` < '2025-04-26 09:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 09:19:18] Production.INFO: count ==334 [2025-04-26 09:19:18] Production.ERROR: pbx CDR StartTime 2025-04-26 06:19:05 - End Time 2025-04-26 09:19:05 [2025-04-26 09:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993314', 'tblTempUsageDetail_20' ) start [2025-04-26 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993314', 'tblTempUsageDetail_20' ) end [2025-04-26 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993314', 'tblTempVendorCDR_20' ) start [2025-04-26 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993314', 'tblTempVendorCDR_20' ) end [2025-04-26 09:19:18] Production.INFO: ProcessCDR(1,14993314,1,1,2) [2025-04-26 09:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993314', 'tblTempUsageDetail_20' ) start [2025-04-26 09:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993314', 'tblTempUsageDetail_20' ) end [2025-04-26 09:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 09:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 09:19:21] Production.INFO: ==31391== Releasing lock... [2025-04-26 09:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 09:19:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-26 09:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 06:20:06 [end_date_ymd] => 2025-04-26 09:20:06 [RateCDR] => 1 ) [2025-04-26 09:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 06:20:06' and `end` < '2025-04-26 09:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 09:20:19] Production.INFO: count ==356 [2025-04-26 09:20:19] Production.ERROR: pbx CDR StartTime 2025-04-26 06:20:06 - End Time 2025-04-26 09:20:06 [2025-04-26 09:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993320', 'tblTempUsageDetail_20' ) start [2025-04-26 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993320', 'tblTempUsageDetail_20' ) end [2025-04-26 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993320', 'tblTempVendorCDR_20' ) start [2025-04-26 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993320', 'tblTempVendorCDR_20' ) end [2025-04-26 09:20:19] Production.INFO: ProcessCDR(1,14993320,1,1,2) [2025-04-26 09:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993320', 'tblTempUsageDetail_20' ) start [2025-04-26 09:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993320', 'tblTempUsageDetail_20' ) end [2025-04-26 09:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 09:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 09:20:22] Production.INFO: ==31466== Releasing lock... [2025-04-26 09:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 09:20:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-26 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 06:21:05 [end_date_ymd] => 2025-04-26 09:21:05 [RateCDR] => 1 ) [2025-04-26 09:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 06:21:05' and `end` < '2025-04-26 09:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 09:21:17] Production.INFO: count ==366 [2025-04-26 09:21:17] Production.ERROR: pbx CDR StartTime 2025-04-26 06:21:05 - End Time 2025-04-26 09:21:05 [2025-04-26 09:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 09:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993325', 'tblTempUsageDetail_20' ) start [2025-04-26 09:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993325', 'tblTempUsageDetail_20' ) end [2025-04-26 09:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993325', 'tblTempVendorCDR_20' ) start [2025-04-26 09:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993325', 'tblTempVendorCDR_20' ) end [2025-04-26 09:21:17] Production.INFO: ProcessCDR(1,14993325,1,1,2) [2025-04-26 09:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993325', 'tblTempUsageDetail_20' ) start [2025-04-26 09:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993325', 'tblTempUsageDetail_20' ) end [2025-04-26 09:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 09:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 09:21:22] Production.INFO: ==31539== Releasing lock... [2025-04-26 09:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 09:21:22] Production.INFO: 31 MB #Memory Used# [2025-04-26 09:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 06:22:06 [end_date_ymd] => 2025-04-26 09:22:06 [RateCDR] => 1 ) [2025-04-26 09:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 06:22:06' and `end` < '2025-04-26 09:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 09:22:18] Production.INFO: count ==367 [2025-04-26 09:22:18] Production.ERROR: pbx CDR StartTime 2025-04-26 06:22:06 - End Time 2025-04-26 09:22:06 [2025-04-26 09:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993330', 'tblTempUsageDetail_20' ) start [2025-04-26 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993330', 'tblTempUsageDetail_20' ) end [2025-04-26 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993330', 'tblTempVendorCDR_20' ) start [2025-04-26 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993330', 'tblTempVendorCDR_20' ) end [2025-04-26 09:22:18] Production.INFO: ProcessCDR(1,14993330,1,1,2) [2025-04-26 09:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993330', 'tblTempUsageDetail_20' ) start [2025-04-26 09:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993330', 'tblTempUsageDetail_20' ) end [2025-04-26 09:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 09:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 09:22:23] Production.INFO: ==31614== Releasing lock... [2025-04-26 09:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 09:22:23] Production.INFO: 31.25 MB #Memory Used# [2025-04-26 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 06:23:05 [end_date_ymd] => 2025-04-26 09:23:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 06:23:05' and `end` < '2025-04-26 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-04-26 09:23:18] Production.INFO: count ==377 [2025-04-26 09:23:18] Production.ERROR: pbx CDR StartTime 2025-04-26 06:23:05 - End Time 2025-04-26 09:23:05 [2025-04-26 09:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993335', 'tblTempUsageDetail_20' ) start [2025-04-26 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993335', 'tblTempUsageDetail_20' ) end [2025-04-26 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993335', 'tblTempVendorCDR_20' ) start [2025-04-26 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993335', 'tblTempVendorCDR_20' ) end [2025-04-26 09:23:18] Production.INFO: ProcessCDR(1,14993335,1,1,2) [2025-04-26 09:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993335', 'tblTempUsageDetail_20' ) start [2025-04-26 09:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993335', 'tblTempUsageDetail_20' ) end [2025-04-26 09:23:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 09:23:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 09:23:23] Production.INFO: ==31688== Releasing lock... [2025-04-26 09:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 09:23:23] Production.INFO: 31.75 MB #Memory Used# [2025-04-26 09:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 06:24:06 [end_date_ymd] => 2025-04-26 09:24:06 [RateCDR] => 1 ) [2025-04-26 09:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 06:24:06' and `end` < '2025-04-26 09:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 09:24:18] Production.INFO: count ==377 [2025-04-26 09:24:18] Production.ERROR: pbx CDR StartTime 2025-04-26 06:24:06 - End Time 2025-04-26 09:24:06 [2025-04-26 09:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993340', 'tblTempUsageDetail_20' ) start [2025-04-26 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993340', 'tblTempUsageDetail_20' ) end [2025-04-26 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993340', 'tblTempVendorCDR_20' ) start [2025-04-26 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993340', 'tblTempVendorCDR_20' ) end [2025-04-26 09:24:18] Production.INFO: ProcessCDR(1,14993340,1,1,2) [2025-04-26 09:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993340', 'tblTempUsageDetail_20' ) start [2025-04-26 09:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993340', 'tblTempUsageDetail_20' ) end [2025-04-26 09:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 09:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 09:24:22] Production.INFO: ==31758== Releasing lock... [2025-04-26 09:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 09:24:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-26 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 06:25:05 [end_date_ymd] => 2025-04-26 09:25:05 [RateCDR] => 1 ) [2025-04-26 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 06:25:05' and `end` < '2025-04-26 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 09:25:18] Production.INFO: count ==377 [2025-04-26 09:25:18] Production.ERROR: pbx CDR StartTime 2025-04-26 06:25:05 - End Time 2025-04-26 09:25:05 [2025-04-26 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993345', 'tblTempUsageDetail_20' ) start [2025-04-26 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993345', 'tblTempUsageDetail_20' ) end [2025-04-26 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993345', 'tblTempVendorCDR_20' ) start [2025-04-26 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993345', 'tblTempVendorCDR_20' ) end [2025-04-26 09:25:18] Production.INFO: ProcessCDR(1,14993345,1,1,2) [2025-04-26 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993345', 'tblTempUsageDetail_20' ) start [2025-04-26 09:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993345', 'tblTempUsageDetail_20' ) end [2025-04-26 09:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 09:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 09:25:21] Production.INFO: ==31829== Releasing lock... [2025-04-26 09:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 09:25:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-26 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 06:26:05 [end_date_ymd] => 2025-04-26 09:26:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 06:26:05' and `end` < '2025-04-26 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-04-26 09:26:18] Production.INFO: count ==382 [2025-04-26 09:26:18] Production.ERROR: pbx CDR StartTime 2025-04-26 06:26:05 - End Time 2025-04-26 09:26:05 [2025-04-26 09:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993350', 'tblTempUsageDetail_20' ) start [2025-04-26 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993350', 'tblTempUsageDetail_20' ) end [2025-04-26 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993350', 'tblTempVendorCDR_20' ) start [2025-04-26 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993350', 'tblTempVendorCDR_20' ) end [2025-04-26 09:26:18] Production.INFO: ProcessCDR(1,14993350,1,1,2) [2025-04-26 09:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993350', 'tblTempUsageDetail_20' ) start [2025-04-26 09:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993350', 'tblTempUsageDetail_20' ) end [2025-04-26 09:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 09:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 09:26:21] Production.INFO: ==31899== Releasing lock... [2025-04-26 09:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 09:26:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-26 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 06:27:05 [end_date_ymd] => 2025-04-26 09:27:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 06:27:05' and `end` < '2025-04-26 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-04-26 09:27:17] Production.INFO: count ==392 [2025-04-26 09:27:17] Production.ERROR: pbx CDR StartTime 2025-04-26 06:27:05 - End Time 2025-04-26 09:27:05 [2025-04-26 09:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993355', 'tblTempUsageDetail_20' ) start [2025-04-26 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993355', 'tblTempUsageDetail_20' ) end [2025-04-26 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993355', 'tblTempVendorCDR_20' ) start [2025-04-26 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993355', 'tblTempVendorCDR_20' ) end [2025-04-26 09:27:17] Production.INFO: ProcessCDR(1,14993355,1,1,2) [2025-04-26 09:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993355', 'tblTempUsageDetail_20' ) start [2025-04-26 09:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993355', 'tblTempUsageDetail_20' ) end [2025-04-26 09:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 09:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 09:27:21] Production.INFO: ==31972== Releasing lock... [2025-04-26 09:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 09:27:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-26 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 06:28:05 [end_date_ymd] => 2025-04-26 09:28:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 06:28:05' and `end` < '2025-04-26 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-04-26 09:28:18] Production.INFO: count ==396 [2025-04-26 09:28:18] Production.ERROR: pbx CDR StartTime 2025-04-26 06:28:05 - End Time 2025-04-26 09:28:05 [2025-04-26 09:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993360', 'tblTempUsageDetail_20' ) start [2025-04-26 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993360', 'tblTempUsageDetail_20' ) end [2025-04-26 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993360', 'tblTempVendorCDR_20' ) start [2025-04-26 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993360', 'tblTempVendorCDR_20' ) end [2025-04-26 09:28:18] Production.INFO: ProcessCDR(1,14993360,1,1,2) [2025-04-26 09:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993360', 'tblTempUsageDetail_20' ) start [2025-04-26 09:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993360', 'tblTempUsageDetail_20' ) end [2025-04-26 09:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 09:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 09:28:21] Production.INFO: ==32095== Releasing lock... [2025-04-26 09:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 09:28:21] Production.INFO: 32 MB #Memory Used# [2025-04-26 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 06:29:05 [end_date_ymd] => 2025-04-26 09:29:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 06:29:05' and `end` < '2025-04-26 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-04-26 09:29:18] Production.INFO: count ==411 [2025-04-26 09:29:18] Production.ERROR: pbx CDR StartTime 2025-04-26 06:29:05 - End Time 2025-04-26 09:29:05 [2025-04-26 09:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993365', 'tblTempUsageDetail_20' ) start [2025-04-26 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993365', 'tblTempUsageDetail_20' ) end [2025-04-26 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993365', 'tblTempVendorCDR_20' ) start [2025-04-26 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993365', 'tblTempVendorCDR_20' ) end [2025-04-26 09:29:18] Production.INFO: ProcessCDR(1,14993365,1,1,2) [2025-04-26 09:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993365', 'tblTempUsageDetail_20' ) start [2025-04-26 09:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993365', 'tblTempUsageDetail_20' ) end [2025-04-26 09:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 09:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 09:29:23] Production.INFO: ==32175== Releasing lock... [2025-04-26 09:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 09:29:23] Production.INFO: 31.75 MB #Memory Used# [2025-04-26 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 06:30:06 [end_date_ymd] => 2025-04-26 09:30:06 [RateCDR] => 1 ) [2025-04-26 09:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 06:30:06' and `end` < '2025-04-26 09:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 09:30:18] Production.INFO: count ==421 [2025-04-26 09:30:18] Production.ERROR: pbx CDR StartTime 2025-04-26 06:30:06 - End Time 2025-04-26 09:30:06 [2025-04-26 09:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 09:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993371', 'tblTempUsageDetail_20' ) start [2025-04-26 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993371', 'tblTempUsageDetail_20' ) end [2025-04-26 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993371', 'tblTempVendorCDR_20' ) start [2025-04-26 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993371', 'tblTempVendorCDR_20' ) end [2025-04-26 09:30:19] Production.INFO: ProcessCDR(1,14993371,1,1,2) [2025-04-26 09:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993371', 'tblTempUsageDetail_20' ) start [2025-04-26 09:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993371', 'tblTempUsageDetail_20' ) end [2025-04-26 09:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 09:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 09:30:23] Production.INFO: ==32249== Releasing lock... [2025-04-26 09:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 09:30:23] Production.INFO: 32 MB #Memory Used# [2025-04-26 09:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 06:31:04 [end_date_ymd] => 2025-04-26 09:31:04 [RateCDR] => 1 ) [2025-04-26 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-04-26 06:31:04' and `end` < '2025-04-26 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-04-26 09:31:17] Production.INFO: count ==444 [2025-04-26 09:31:17] Production.ERROR: pbx CDR StartTime 2025-04-26 06:31:04 - End Time 2025-04-26 09:31:04 [2025-04-26 09:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 09:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993376', 'tblTempUsageDetail_20' ) start [2025-04-26 09:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993376', 'tblTempUsageDetail_20' ) end [2025-04-26 09:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993376', 'tblTempVendorCDR_20' ) start [2025-04-26 09:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993376', 'tblTempVendorCDR_20' ) end [2025-04-26 09:31:17] Production.INFO: ProcessCDR(1,14993376,1,1,2) [2025-04-26 09:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993376', 'tblTempUsageDetail_20' ) start [2025-04-26 09:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993376', 'tblTempUsageDetail_20' ) end [2025-04-26 09:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 09:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 09:31:22] Production.INFO: ==32326== Releasing lock... [2025-04-26 09:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 09:31:22] Production.INFO: 32 MB #Memory Used# [2025-04-26 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 06:32:05 [end_date_ymd] => 2025-04-26 09:32:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 06:32:05' and `end` < '2025-04-26 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-04-26 09:32:18] Production.INFO: count ==446 [2025-04-26 09:32:18] Production.ERROR: pbx CDR StartTime 2025-04-26 06:32:05 - End Time 2025-04-26 09:32:05 [2025-04-26 09:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993381', 'tblTempUsageDetail_20' ) start [2025-04-26 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993381', 'tblTempUsageDetail_20' ) end [2025-04-26 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993381', 'tblTempVendorCDR_20' ) start [2025-04-26 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993381', 'tblTempVendorCDR_20' ) end [2025-04-26 09:32:18] Production.INFO: ProcessCDR(1,14993381,1,1,2) [2025-04-26 09:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993381', 'tblTempUsageDetail_20' ) start [2025-04-26 09:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993381', 'tblTempUsageDetail_20' ) end [2025-04-26 09:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 09:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 09:32:21] Production.INFO: ==32401== Releasing lock... [2025-04-26 09:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 09:32:21] Production.INFO: 32 MB #Memory Used# [2025-04-26 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 06:33:05 [end_date_ymd] => 2025-04-26 09:33:05 [RateCDR] => 1 ) [2025-04-26 09:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 06:33:05' and `end` < '2025-04-26 09:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 09:33:18] Production.INFO: count ==446 [2025-04-26 09:33:18] Production.ERROR: pbx CDR StartTime 2025-04-26 06:33:05 - End Time 2025-04-26 09:33:05 [2025-04-26 09:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993386', 'tblTempUsageDetail_20' ) start [2025-04-26 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993386', 'tblTempUsageDetail_20' ) end [2025-04-26 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993386', 'tblTempVendorCDR_20' ) start [2025-04-26 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993386', 'tblTempVendorCDR_20' ) end [2025-04-26 09:33:18] Production.INFO: ProcessCDR(1,14993386,1,1,2) [2025-04-26 09:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993386', 'tblTempUsageDetail_20' ) start [2025-04-26 09:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993386', 'tblTempUsageDetail_20' ) end [2025-04-26 09:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 09:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 09:33:21] Production.INFO: ==32475== Releasing lock... [2025-04-26 09:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 09:33:21] Production.INFO: 32 MB #Memory Used# [2025-04-26 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 06:34:05 [end_date_ymd] => 2025-04-26 09:34:05 [RateCDR] => 1 ) [2025-04-26 09:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 06:34:05' and `end` < '2025-04-26 09:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 09:34:17] Production.INFO: count ==455 [2025-04-26 09:34:17] Production.ERROR: pbx CDR StartTime 2025-04-26 06:34:05 - End Time 2025-04-26 09:34:05 [2025-04-26 09:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 09:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993391', 'tblTempUsageDetail_20' ) start [2025-04-26 09:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993391', 'tblTempUsageDetail_20' ) end [2025-04-26 09:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993391', 'tblTempVendorCDR_20' ) start [2025-04-26 09:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993391', 'tblTempVendorCDR_20' ) end [2025-04-26 09:34:17] Production.INFO: ProcessCDR(1,14993391,1,1,2) [2025-04-26 09:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993391', 'tblTempUsageDetail_20' ) start [2025-04-26 09:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993391', 'tblTempUsageDetail_20' ) end [2025-04-26 09:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 09:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 09:34:21] Production.INFO: ==32555== Releasing lock... [2025-04-26 09:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 09:34:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-26 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 06:35:05 [end_date_ymd] => 2025-04-26 09:35:05 [RateCDR] => 1 ) [2025-04-26 09:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 06:35:05' and `end` < '2025-04-26 09:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 09:35:18] Production.INFO: count ==452 [2025-04-26 09:35:18] Production.ERROR: pbx CDR StartTime 2025-04-26 06:35:05 - End Time 2025-04-26 09:35:05 [2025-04-26 09:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993396', 'tblTempUsageDetail_20' ) start [2025-04-26 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993396', 'tblTempUsageDetail_20' ) end [2025-04-26 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993396', 'tblTempVendorCDR_20' ) start [2025-04-26 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993396', 'tblTempVendorCDR_20' ) end [2025-04-26 09:35:18] Production.INFO: ProcessCDR(1,14993396,1,1,2) [2025-04-26 09:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993396', 'tblTempUsageDetail_20' ) start [2025-04-26 09:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993396', 'tblTempUsageDetail_20' ) end [2025-04-26 09:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 09:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 09:35:21] Production.INFO: ==32629== Releasing lock... [2025-04-26 09:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 09:35:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-26 09:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 06:36:06 [end_date_ymd] => 2025-04-26 09:36:06 [RateCDR] => 1 ) [2025-04-26 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-04-26 06:36:06' and `end` < '2025-04-26 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-04-26 09:36:18] Production.INFO: count ==453 [2025-04-26 09:36:18] Production.ERROR: pbx CDR StartTime 2025-04-26 06:36:06 - End Time 2025-04-26 09:36:06 [2025-04-26 09:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993401', 'tblTempUsageDetail_20' ) start [2025-04-26 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993401', 'tblTempUsageDetail_20' ) end [2025-04-26 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993401', 'tblTempVendorCDR_20' ) start [2025-04-26 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993401', 'tblTempVendorCDR_20' ) end [2025-04-26 09:36:18] Production.INFO: ProcessCDR(1,14993401,1,1,2) [2025-04-26 09:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993401', 'tblTempUsageDetail_20' ) start [2025-04-26 09:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993401', 'tblTempUsageDetail_20' ) end [2025-04-26 09:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 09:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 09:36:22] Production.INFO: ==32700== Releasing lock... [2025-04-26 09:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 09:36:22] Production.INFO: 32 MB #Memory Used# [2025-04-26 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 06:37:05 [end_date_ymd] => 2025-04-26 09:37:05 [RateCDR] => 1 ) [2025-04-26 09:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 06:37:05' and `end` < '2025-04-26 09:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 09:37:18] Production.INFO: count ==454 [2025-04-26 09:37:18] Production.ERROR: pbx CDR StartTime 2025-04-26 06:37:05 - End Time 2025-04-26 09:37:05 [2025-04-26 09:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993406', 'tblTempUsageDetail_20' ) start [2025-04-26 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993406', 'tblTempUsageDetail_20' ) end [2025-04-26 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993406', 'tblTempVendorCDR_20' ) start [2025-04-26 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993406', 'tblTempVendorCDR_20' ) end [2025-04-26 09:37:18] Production.INFO: ProcessCDR(1,14993406,1,1,2) [2025-04-26 09:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993406', 'tblTempUsageDetail_20' ) start [2025-04-26 09:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993406', 'tblTempUsageDetail_20' ) end [2025-04-26 09:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 09:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 09:37:23] Production.INFO: ==302== Releasing lock... [2025-04-26 09:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 09:37:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-26 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 06:38:05 [end_date_ymd] => 2025-04-26 09:38:05 [RateCDR] => 1 ) [2025-04-26 09:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 06:38:05' and `end` < '2025-04-26 09:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 09:38:17] Production.INFO: count ==458 [2025-04-26 09:38:17] Production.ERROR: pbx CDR StartTime 2025-04-26 06:38:05 - End Time 2025-04-26 09:38:05 [2025-04-26 09:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 09:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993411', 'tblTempUsageDetail_20' ) start [2025-04-26 09:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993411', 'tblTempUsageDetail_20' ) end [2025-04-26 09:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993411', 'tblTempVendorCDR_20' ) start [2025-04-26 09:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993411', 'tblTempVendorCDR_20' ) end [2025-04-26 09:38:17] Production.INFO: ProcessCDR(1,14993411,1,1,2) [2025-04-26 09:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993411', 'tblTempUsageDetail_20' ) start [2025-04-26 09:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993411', 'tblTempUsageDetail_20' ) end [2025-04-26 09:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 09:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 09:38:21] Production.INFO: ==395== Releasing lock... [2025-04-26 09:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 09:38:21] Production.INFO: 32 MB #Memory Used# [2025-04-26 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 06:39:05 [end_date_ymd] => 2025-04-26 09:39:05 [RateCDR] => 1 ) [2025-04-26 09:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 06:39:05' and `end` < '2025-04-26 09:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 09:39:18] Production.INFO: count ==469 [2025-04-26 09:39:18] Production.ERROR: pbx CDR StartTime 2025-04-26 06:39:05 - End Time 2025-04-26 09:39:05 [2025-04-26 09:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993416', 'tblTempUsageDetail_20' ) start [2025-04-26 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993416', 'tblTempUsageDetail_20' ) end [2025-04-26 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993416', 'tblTempVendorCDR_20' ) start [2025-04-26 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993416', 'tblTempVendorCDR_20' ) end [2025-04-26 09:39:18] Production.INFO: ProcessCDR(1,14993416,1,1,2) [2025-04-26 09:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993416', 'tblTempUsageDetail_20' ) start [2025-04-26 09:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993416', 'tblTempUsageDetail_20' ) end [2025-04-26 09:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 09:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 09:39:21] Production.INFO: ==466== Releasing lock... [2025-04-26 09:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 09:39:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-26 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 06:40:06 [end_date_ymd] => 2025-04-26 09:40:06 [RateCDR] => 1 ) [2025-04-26 09:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 06:40:06' and `end` < '2025-04-26 09:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 09:40:19] Production.INFO: count ==480 [2025-04-26 09:40:19] Production.ERROR: pbx CDR StartTime 2025-04-26 06:40:06 - End Time 2025-04-26 09:40:06 [2025-04-26 09:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993422', 'tblTempUsageDetail_20' ) start [2025-04-26 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993422', 'tblTempUsageDetail_20' ) end [2025-04-26 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993422', 'tblTempVendorCDR_20' ) start [2025-04-26 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993422', 'tblTempVendorCDR_20' ) end [2025-04-26 09:40:19] Production.INFO: ProcessCDR(1,14993422,1,1,2) [2025-04-26 09:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993422', 'tblTempUsageDetail_20' ) start [2025-04-26 09:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993422', 'tblTempUsageDetail_20' ) end [2025-04-26 09:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 09:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 09:40:24] Production.INFO: ==543== Releasing lock... [2025-04-26 09:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 09:40:24] Production.INFO: 32.5 MB #Memory Used# [2025-04-26 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 06:41:05 [end_date_ymd] => 2025-04-26 09:41:05 [RateCDR] => 1 ) [2025-04-26 09:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 06:41:05' and `end` < '2025-04-26 09:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 09:41:17] Production.INFO: count ==503 [2025-04-26 09:41:17] Production.ERROR: pbx CDR StartTime 2025-04-26 06:41:05 - End Time 2025-04-26 09:41:05 [2025-04-26 09:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 09:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993427', 'tblTempUsageDetail_20' ) start [2025-04-26 09:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993427', 'tblTempUsageDetail_20' ) end [2025-04-26 09:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993427', 'tblTempVendorCDR_20' ) start [2025-04-26 09:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993427', 'tblTempVendorCDR_20' ) end [2025-04-26 09:41:17] Production.INFO: ProcessCDR(1,14993427,1,1,2) [2025-04-26 09:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993427', 'tblTempUsageDetail_20' ) start [2025-04-26 09:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993427', 'tblTempUsageDetail_20' ) end [2025-04-26 09:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 09:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 09:41:21] Production.INFO: ==621== Releasing lock... [2025-04-26 09:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 09:41:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-26 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 06:42:05 [end_date_ymd] => 2025-04-26 09:42:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 06:42:05' and `end` < '2025-04-26 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-04-26 09:42:18] Production.INFO: count ==513 [2025-04-26 09:42:18] Production.ERROR: pbx CDR StartTime 2025-04-26 06:42:05 - End Time 2025-04-26 09:42:05 [2025-04-26 09:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993432', 'tblTempUsageDetail_20' ) start [2025-04-26 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993432', 'tblTempUsageDetail_20' ) end [2025-04-26 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993432', 'tblTempVendorCDR_20' ) start [2025-04-26 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993432', 'tblTempVendorCDR_20' ) end [2025-04-26 09:42:18] Production.INFO: ProcessCDR(1,14993432,1,1,2) [2025-04-26 09:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993432', 'tblTempUsageDetail_20' ) start [2025-04-26 09:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993432', 'tblTempUsageDetail_20' ) end [2025-04-26 09:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 09:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 09:42:21] Production.INFO: ==718== Releasing lock... [2025-04-26 09:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 09:42:21] Production.INFO: 32 MB #Memory Used# [2025-04-26 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 06:43:05 [end_date_ymd] => 2025-04-26 09:43:05 [RateCDR] => 1 ) [2025-04-26 09:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 06:43:05' and `end` < '2025-04-26 09:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 09:43:18] Production.INFO: count ==514 [2025-04-26 09:43:18] Production.ERROR: pbx CDR StartTime 2025-04-26 06:43:05 - End Time 2025-04-26 09:43:05 [2025-04-26 09:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993437', 'tblTempUsageDetail_20' ) start [2025-04-26 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993437', 'tblTempUsageDetail_20' ) end [2025-04-26 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993437', 'tblTempVendorCDR_20' ) start [2025-04-26 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993437', 'tblTempVendorCDR_20' ) end [2025-04-26 09:43:18] Production.INFO: ProcessCDR(1,14993437,1,1,2) [2025-04-26 09:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993437', 'tblTempUsageDetail_20' ) start [2025-04-26 09:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993437', 'tblTempUsageDetail_20' ) end [2025-04-26 09:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 09:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 09:43:23] Production.INFO: ==835== Releasing lock... [2025-04-26 09:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 09:43:23] Production.INFO: 31.75 MB #Memory Used# [2025-04-26 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 06:44:05 [end_date_ymd] => 2025-04-26 09:44:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 06:44:05' and `end` < '2025-04-26 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-04-26 09:44:17] Production.INFO: count ==525 [2025-04-26 09:44:18] Production.ERROR: pbx CDR StartTime 2025-04-26 06:44:05 - End Time 2025-04-26 09:44:05 [2025-04-26 09:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993442', 'tblTempUsageDetail_20' ) start [2025-04-26 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993442', 'tblTempUsageDetail_20' ) end [2025-04-26 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993442', 'tblTempVendorCDR_20' ) start [2025-04-26 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993442', 'tblTempVendorCDR_20' ) end [2025-04-26 09:44:18] Production.INFO: ProcessCDR(1,14993442,1,1,2) [2025-04-26 09:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993442', 'tblTempUsageDetail_20' ) start [2025-04-26 09:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993442', 'tblTempUsageDetail_20' ) end [2025-04-26 09:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 09:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 09:44:23] Production.INFO: ==913== Releasing lock... [2025-04-26 09:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 09:44:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-26 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 06:45:05 [end_date_ymd] => 2025-04-26 09:45:05 [RateCDR] => 1 ) [2025-04-26 09:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 06:45:05' and `end` < '2025-04-26 09:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 09:45:17] Production.INFO: count ==547 [2025-04-26 09:45:17] Production.ERROR: pbx CDR StartTime 2025-04-26 06:45:05 - End Time 2025-04-26 09:45:05 [2025-04-26 09:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 09:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993447', 'tblTempUsageDetail_20' ) start [2025-04-26 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993447', 'tblTempUsageDetail_20' ) end [2025-04-26 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993447', 'tblTempVendorCDR_20' ) start [2025-04-26 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993447', 'tblTempVendorCDR_20' ) end [2025-04-26 09:45:18] Production.INFO: ProcessCDR(1,14993447,1,1,2) [2025-04-26 09:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993447', 'tblTempUsageDetail_20' ) start [2025-04-26 09:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993447', 'tblTempUsageDetail_20' ) end [2025-04-26 09:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 09:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 09:45:21] Production.INFO: ==993== Releasing lock... [2025-04-26 09:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 09:45:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-26 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 06:46:05 [end_date_ymd] => 2025-04-26 09:46:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 06:46:05' and `end` < '2025-04-26 09:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 09:46:18] Production.INFO: count ==559 [2025-04-26 09:46:18] Production.ERROR: pbx CDR StartTime 2025-04-26 06:46:05 - End Time 2025-04-26 09:46:05 [2025-04-26 09:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993452', 'tblTempUsageDetail_20' ) start [2025-04-26 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993452', 'tblTempUsageDetail_20' ) end [2025-04-26 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993452', 'tblTempVendorCDR_20' ) start [2025-04-26 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993452', 'tblTempVendorCDR_20' ) end [2025-04-26 09:46:18] Production.INFO: ProcessCDR(1,14993452,1,1,2) [2025-04-26 09:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993452', 'tblTempUsageDetail_20' ) start [2025-04-26 09:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993452', 'tblTempUsageDetail_20' ) end [2025-04-26 09:46:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 09:46:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 09:46:23] Production.INFO: ==1067== Releasing lock... [2025-04-26 09:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 09:46:23] Production.INFO: 33 MB #Memory Used# [2025-04-26 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 06:47:05 [end_date_ymd] => 2025-04-26 09:47:05 [RateCDR] => 1 ) [2025-04-26 09:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 06:47:05' and `end` < '2025-04-26 09:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 09:47:18] Production.INFO: count ==571 [2025-04-26 09:47:18] Production.ERROR: pbx CDR StartTime 2025-04-26 06:47:05 - End Time 2025-04-26 09:47:05 [2025-04-26 09:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993457', 'tblTempUsageDetail_20' ) start [2025-04-26 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993457', 'tblTempUsageDetail_20' ) end [2025-04-26 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993457', 'tblTempVendorCDR_20' ) start [2025-04-26 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993457', 'tblTempVendorCDR_20' ) end [2025-04-26 09:47:18] Production.INFO: ProcessCDR(1,14993457,1,1,2) [2025-04-26 09:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993457', 'tblTempUsageDetail_20' ) start [2025-04-26 09:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993457', 'tblTempUsageDetail_20' ) end [2025-04-26 09:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 09:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 09:47:23] Production.INFO: ==1146== Releasing lock... [2025-04-26 09:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 09:47:23] Production.INFO: 33.25 MB #Memory Used# [2025-04-26 09:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 06:48:04 [end_date_ymd] => 2025-04-26 09:48:04 [RateCDR] => 1 ) [2025-04-26 09:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 06:48:04' and `end` < '2025-04-26 09:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 09:48:17] Production.INFO: count ==574 [2025-04-26 09:48:17] Production.ERROR: pbx CDR StartTime 2025-04-26 06:48:04 - End Time 2025-04-26 09:48:04 [2025-04-26 09:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 09:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993462', 'tblTempUsageDetail_20' ) start [2025-04-26 09:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993462', 'tblTempUsageDetail_20' ) end [2025-04-26 09:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993462', 'tblTempVendorCDR_20' ) start [2025-04-26 09:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993462', 'tblTempVendorCDR_20' ) end [2025-04-26 09:48:17] Production.INFO: ProcessCDR(1,14993462,1,1,2) [2025-04-26 09:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993462', 'tblTempUsageDetail_20' ) start [2025-04-26 09:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993462', 'tblTempUsageDetail_20' ) end [2025-04-26 09:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 09:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 09:48:21] Production.INFO: ==1222== Releasing lock... [2025-04-26 09:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 09:48:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-26 09:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 06:49:06 [end_date_ymd] => 2025-04-26 09:49:06 [RateCDR] => 1 ) [2025-04-26 09:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 06:49:06' and `end` < '2025-04-26 09:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 09:49:18] Production.INFO: count ==575 [2025-04-26 09:49:19] Production.ERROR: pbx CDR StartTime 2025-04-26 06:49:06 - End Time 2025-04-26 09:49:06 [2025-04-26 09:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993467', 'tblTempUsageDetail_20' ) start [2025-04-26 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993467', 'tblTempUsageDetail_20' ) end [2025-04-26 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993467', 'tblTempVendorCDR_20' ) start [2025-04-26 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993467', 'tblTempVendorCDR_20' ) end [2025-04-26 09:49:19] Production.INFO: ProcessCDR(1,14993467,1,1,2) [2025-04-26 09:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993467', 'tblTempUsageDetail_20' ) start [2025-04-26 09:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993467', 'tblTempUsageDetail_20' ) end [2025-04-26 09:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 09:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 09:49:23] Production.INFO: ==1307== Releasing lock... [2025-04-26 09:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 09:49:23] Production.INFO: 33 MB #Memory Used# [2025-04-26 09:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 06:50:05 [end_date_ymd] => 2025-04-26 09:50:05 [RateCDR] => 1 ) [2025-04-26 09:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 06:50:05' and `end` < '2025-04-26 09:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 09:50:18] Production.INFO: count ==586 [2025-04-26 09:50:18] Production.ERROR: pbx CDR StartTime 2025-04-26 06:50:05 - End Time 2025-04-26 09:50:05 [2025-04-26 09:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 09:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993473', 'tblTempUsageDetail_20' ) start [2025-04-26 09:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993473', 'tblTempUsageDetail_20' ) end [2025-04-26 09:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993473', 'tblTempVendorCDR_20' ) start [2025-04-26 09:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993473', 'tblTempVendorCDR_20' ) end [2025-04-26 09:50:18] Production.INFO: ProcessCDR(1,14993473,1,1,2) [2025-04-26 09:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993473', 'tblTempUsageDetail_20' ) start [2025-04-26 09:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993473', 'tblTempUsageDetail_20' ) end [2025-04-26 09:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 09:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 09:50:23] Production.INFO: ==1378== Releasing lock... [2025-04-26 09:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 09:50:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-26 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 06:51:05 [end_date_ymd] => 2025-04-26 09:51:05 [RateCDR] => 1 ) [2025-04-26 09:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 06:51:05' and `end` < '2025-04-26 09:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 09:51:18] Production.INFO: count ==618 [2025-04-26 09:51:18] Production.ERROR: pbx CDR StartTime 2025-04-26 06:51:05 - End Time 2025-04-26 09:51:05 [2025-04-26 09:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993478', 'tblTempUsageDetail_20' ) start [2025-04-26 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993478', 'tblTempUsageDetail_20' ) end [2025-04-26 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993478', 'tblTempVendorCDR_20' ) start [2025-04-26 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993478', 'tblTempVendorCDR_20' ) end [2025-04-26 09:51:18] Production.INFO: ProcessCDR(1,14993478,1,1,2) [2025-04-26 09:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993478', 'tblTempUsageDetail_20' ) start [2025-04-26 09:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993478', 'tblTempUsageDetail_20' ) end [2025-04-26 09:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 09:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 09:51:23] Production.INFO: ==1457== Releasing lock... [2025-04-26 09:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 09:51:23] Production.INFO: 33.25 MB #Memory Used# [2025-04-26 09:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 06:52:04 [end_date_ymd] => 2025-04-26 09:52:04 [RateCDR] => 1 ) [2025-04-26 09: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-04-26 06:52:04' and `end` < '2025-04-26 09: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-04-26 09:52:17] Production.INFO: count ==632 [2025-04-26 09:52:17] Production.ERROR: pbx CDR StartTime 2025-04-26 06:52:04 - End Time 2025-04-26 09:52:04 [2025-04-26 09:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 09:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993483', 'tblTempUsageDetail_20' ) start [2025-04-26 09:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993483', 'tblTempUsageDetail_20' ) end [2025-04-26 09:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993483', 'tblTempVendorCDR_20' ) start [2025-04-26 09:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993483', 'tblTempVendorCDR_20' ) end [2025-04-26 09:52:17] Production.INFO: ProcessCDR(1,14993483,1,1,2) [2025-04-26 09:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993483', 'tblTempUsageDetail_20' ) start [2025-04-26 09:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993483', 'tblTempUsageDetail_20' ) end [2025-04-26 09:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 09:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 09:52:21] Production.INFO: ==1560== Releasing lock... [2025-04-26 09:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 09:52:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-26 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 06:53:05 [end_date_ymd] => 2025-04-26 09:53:05 [RateCDR] => 1 ) [2025-04-26 09:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 06:53:05' and `end` < '2025-04-26 09:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 09:53:17] Production.INFO: count ==633 [2025-04-26 09:53:17] Production.ERROR: pbx CDR StartTime 2025-04-26 06:53:05 - End Time 2025-04-26 09:53:05 [2025-04-26 09:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 09:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993488', 'tblTempUsageDetail_20' ) start [2025-04-26 09:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993488', 'tblTempUsageDetail_20' ) end [2025-04-26 09:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993488', 'tblTempVendorCDR_20' ) start [2025-04-26 09:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993488', 'tblTempVendorCDR_20' ) end [2025-04-26 09:53:17] Production.INFO: ProcessCDR(1,14993488,1,1,2) [2025-04-26 09:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993488', 'tblTempUsageDetail_20' ) start [2025-04-26 09:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993488', 'tblTempUsageDetail_20' ) end [2025-04-26 09:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 09:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 09:53:21] Production.INFO: ==1636== Releasing lock... [2025-04-26 09:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 09:53:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-26 09:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 06:54:06 [end_date_ymd] => 2025-04-26 09:54:06 [RateCDR] => 1 ) [2025-04-26 09:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 06:54:06' and `end` < '2025-04-26 09:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 09:54:18] Production.INFO: count ==638 [2025-04-26 09:54:18] Production.ERROR: pbx CDR StartTime 2025-04-26 06:54:06 - End Time 2025-04-26 09:54:06 [2025-04-26 09:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993493', 'tblTempUsageDetail_20' ) start [2025-04-26 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993493', 'tblTempUsageDetail_20' ) end [2025-04-26 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993493', 'tblTempVendorCDR_20' ) start [2025-04-26 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993493', 'tblTempVendorCDR_20' ) end [2025-04-26 09:54:18] Production.INFO: ProcessCDR(1,14993493,1,1,2) [2025-04-26 09:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993493', 'tblTempUsageDetail_20' ) start [2025-04-26 09:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993493', 'tblTempUsageDetail_20' ) end [2025-04-26 09:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 09:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 09:54:22] Production.INFO: ==1710== Releasing lock... [2025-04-26 09:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 09:54:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-26 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 06:55:05 [end_date_ymd] => 2025-04-26 09:55:05 [RateCDR] => 1 ) [2025-04-26 09:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 06:55:05' and `end` < '2025-04-26 09:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 09:55:17] Production.INFO: count ==638 [2025-04-26 09:55:18] Production.ERROR: pbx CDR StartTime 2025-04-26 06:55:05 - End Time 2025-04-26 09:55:05 [2025-04-26 09:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993498', 'tblTempUsageDetail_20' ) start [2025-04-26 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993498', 'tblTempUsageDetail_20' ) end [2025-04-26 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993498', 'tblTempVendorCDR_20' ) start [2025-04-26 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993498', 'tblTempVendorCDR_20' ) end [2025-04-26 09:55:18] Production.INFO: ProcessCDR(1,14993498,1,1,2) [2025-04-26 09:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993498', 'tblTempUsageDetail_20' ) start [2025-04-26 09:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993498', 'tblTempUsageDetail_20' ) end [2025-04-26 09:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 09:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 09:55:21] Production.INFO: ==1787== Releasing lock... [2025-04-26 09:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 09:55:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-26 09:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 06:56:06 [end_date_ymd] => 2025-04-26 09:56:06 [RateCDR] => 1 ) [2025-04-26 09:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 06:56:06' and `end` < '2025-04-26 09:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 09:56:18] Production.INFO: count ==643 [2025-04-26 09:56:19] Production.ERROR: pbx CDR StartTime 2025-04-26 06:56:06 - End Time 2025-04-26 09:56:06 [2025-04-26 09:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993503', 'tblTempUsageDetail_20' ) start [2025-04-26 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993503', 'tblTempUsageDetail_20' ) end [2025-04-26 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993503', 'tblTempVendorCDR_20' ) start [2025-04-26 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993503', 'tblTempVendorCDR_20' ) end [2025-04-26 09:56:19] Production.INFO: ProcessCDR(1,14993503,1,1,2) [2025-04-26 09:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993503', 'tblTempUsageDetail_20' ) start [2025-04-26 09:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993503', 'tblTempUsageDetail_20' ) end [2025-04-26 09:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 09:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 09:56:23] Production.INFO: ==1865== Releasing lock... [2025-04-26 09:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 09:56:23] Production.INFO: 33 MB #Memory Used# [2025-04-26 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 06:57:05 [end_date_ymd] => 2025-04-26 09:57:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 06:57:05' and `end` < '2025-04-26 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-04-26 09:57:18] Production.INFO: count ==644 [2025-04-26 09:57:18] Production.ERROR: pbx CDR StartTime 2025-04-26 06:57:05 - End Time 2025-04-26 09:57:05 [2025-04-26 09:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993508', 'tblTempUsageDetail_20' ) start [2025-04-26 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993508', 'tblTempUsageDetail_20' ) end [2025-04-26 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993508', 'tblTempVendorCDR_20' ) start [2025-04-26 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993508', 'tblTempVendorCDR_20' ) end [2025-04-26 09:57:18] Production.INFO: ProcessCDR(1,14993508,1,1,2) [2025-04-26 09:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993508', 'tblTempUsageDetail_20' ) start [2025-04-26 09:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993508', 'tblTempUsageDetail_20' ) end [2025-04-26 09:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 09:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 09:57:22] Production.INFO: ==1938== Releasing lock... [2025-04-26 09:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 09:57:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-26 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 06:58:05 [end_date_ymd] => 2025-04-26 09:58:05 [RateCDR] => 1 ) [2025-04-26 09:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 06:58:05' and `end` < '2025-04-26 09:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 09:58:18] Production.INFO: count ==643 [2025-04-26 09:58:18] Production.ERROR: pbx CDR StartTime 2025-04-26 06:58:05 - End Time 2025-04-26 09:58:05 [2025-04-26 09:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993513', 'tblTempUsageDetail_20' ) start [2025-04-26 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993513', 'tblTempUsageDetail_20' ) end [2025-04-26 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993513', 'tblTempVendorCDR_20' ) start [2025-04-26 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993513', 'tblTempVendorCDR_20' ) end [2025-04-26 09:58:18] Production.INFO: ProcessCDR(1,14993513,1,1,2) [2025-04-26 09:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993513', 'tblTempUsageDetail_20' ) start [2025-04-26 09:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993513', 'tblTempUsageDetail_20' ) end [2025-04-26 09:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 09:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 09:58:21] Production.INFO: ==2010== Releasing lock... [2025-04-26 09:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 09:58:21] Production.INFO: 33 MB #Memory Used# [2025-04-26 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 06:59:05 [end_date_ymd] => 2025-04-26 09:59:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 06:59:05' and `end` < '2025-04-26 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-04-26 09:59:18] Production.INFO: count ==647 [2025-04-26 09:59:18] Production.ERROR: pbx CDR StartTime 2025-04-26 06:59:05 - End Time 2025-04-26 09:59:05 [2025-04-26 09:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993518', 'tblTempUsageDetail_20' ) start [2025-04-26 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993518', 'tblTempUsageDetail_20' ) end [2025-04-26 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993518', 'tblTempVendorCDR_20' ) start [2025-04-26 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993518', 'tblTempVendorCDR_20' ) end [2025-04-26 09:59:18] Production.INFO: ProcessCDR(1,14993518,1,1,2) [2025-04-26 09:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 09:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 09:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993518', 'tblTempUsageDetail_20' ) start [2025-04-26 09:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993518', 'tblTempUsageDetail_20' ) end [2025-04-26 09:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 09:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 09:59:23] Production.INFO: ==2126== Releasing lock... [2025-04-26 09:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 09:59:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-26 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 07:00:06 [end_date_ymd] => 2025-04-26 10:00:06 [RateCDR] => 1 ) [2025-04-26 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-04-26 07:00:06' and `end` < '2025-04-26 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-04-26 10:00:18] Production.INFO: count ==658 [2025-04-26 10:00:19] Production.ERROR: pbx CDR StartTime 2025-04-26 07:00:06 - End Time 2025-04-26 10:00:06 [2025-04-26 10:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993524', 'tblTempUsageDetail_20' ) start [2025-04-26 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993524', 'tblTempUsageDetail_20' ) end [2025-04-26 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993524', 'tblTempVendorCDR_20' ) start [2025-04-26 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993524', 'tblTempVendorCDR_20' ) end [2025-04-26 10:00:19] Production.INFO: ProcessCDR(1,14993524,1,1,2) [2025-04-26 10:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993524', 'tblTempUsageDetail_20' ) start [2025-04-26 10:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993524', 'tblTempUsageDetail_20' ) end [2025-04-26 10:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 10:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 10:00:24] Production.INFO: ==2205== Releasing lock... [2025-04-26 10:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 10:00:24] Production.INFO: 33.5 MB #Memory Used# [2025-04-26 10:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 07:01:06 [end_date_ymd] => 2025-04-26 10:01:06 [RateCDR] => 1 ) [2025-04-26 10:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 07:01:06' and `end` < '2025-04-26 10:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 10:01:18] Production.INFO: count ==667 [2025-04-26 10:01:19] Production.ERROR: pbx CDR StartTime 2025-04-26 07:01:06 - End Time 2025-04-26 10:01:06 [2025-04-26 10:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993529', 'tblTempUsageDetail_20' ) start [2025-04-26 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993529', 'tblTempUsageDetail_20' ) end [2025-04-26 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993529', 'tblTempVendorCDR_20' ) start [2025-04-26 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993529', 'tblTempVendorCDR_20' ) end [2025-04-26 10:01:19] Production.INFO: ProcessCDR(1,14993529,1,1,2) [2025-04-26 10:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993529', 'tblTempUsageDetail_20' ) start [2025-04-26 10:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993529', 'tblTempUsageDetail_20' ) end [2025-04-26 10:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 10:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 10:01:22] Production.INFO: ==2293== Releasing lock... [2025-04-26 10:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 10:01:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-26 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 07:02:05 [end_date_ymd] => 2025-04-26 10:02:05 [RateCDR] => 1 ) [2025-04-26 10:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 07:02:05' and `end` < '2025-04-26 10:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 10:02:18] Production.INFO: count ==672 [2025-04-26 10:02:18] Production.ERROR: pbx CDR StartTime 2025-04-26 07:02:05 - End Time 2025-04-26 10:02:05 [2025-04-26 10:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993534', 'tblTempUsageDetail_20' ) start [2025-04-26 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993534', 'tblTempUsageDetail_20' ) end [2025-04-26 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993534', 'tblTempVendorCDR_20' ) start [2025-04-26 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993534', 'tblTempVendorCDR_20' ) end [2025-04-26 10:02:18] Production.INFO: ProcessCDR(1,14993534,1,1,2) [2025-04-26 10:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993534', 'tblTempUsageDetail_20' ) start [2025-04-26 10:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993534', 'tblTempUsageDetail_20' ) end [2025-04-26 10:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 10:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 10:02:23] Production.INFO: ==2363== Releasing lock... [2025-04-26 10:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 10:02:23] Production.INFO: 33.25 MB #Memory Used# [2025-04-26 10:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 07:03:06 [end_date_ymd] => 2025-04-26 10:03:06 [RateCDR] => 1 ) [2025-04-26 10:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 07:03:06' and `end` < '2025-04-26 10:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 10:03:19] Production.INFO: count ==677 [2025-04-26 10:03:19] Production.ERROR: pbx CDR StartTime 2025-04-26 07:03:06 - End Time 2025-04-26 10:03:06 [2025-04-26 10:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993539', 'tblTempUsageDetail_20' ) start [2025-04-26 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993539', 'tblTempUsageDetail_20' ) end [2025-04-26 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993539', 'tblTempVendorCDR_20' ) start [2025-04-26 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993539', 'tblTempVendorCDR_20' ) end [2025-04-26 10:03:19] Production.INFO: ProcessCDR(1,14993539,1,1,2) [2025-04-26 10:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993539', 'tblTempUsageDetail_20' ) start [2025-04-26 10:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993539', 'tblTempUsageDetail_20' ) end [2025-04-26 10:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 10:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 10:03:22] Production.INFO: ==2434== Releasing lock... [2025-04-26 10:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 10:03:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-26 10:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 07:04:05 [end_date_ymd] => 2025-04-26 10:04:05 [RateCDR] => 1 ) [2025-04-26 10:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 07:04:05' and `end` < '2025-04-26 10:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 10:04:18] Production.INFO: count ==682 [2025-04-26 10:04:18] Production.ERROR: pbx CDR StartTime 2025-04-26 07:04:05 - End Time 2025-04-26 10:04:05 [2025-04-26 10:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993544', 'tblTempUsageDetail_20' ) start [2025-04-26 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993544', 'tblTempUsageDetail_20' ) end [2025-04-26 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993544', 'tblTempVendorCDR_20' ) start [2025-04-26 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993544', 'tblTempVendorCDR_20' ) end [2025-04-26 10:04:18] Production.INFO: ProcessCDR(1,14993544,1,1,2) [2025-04-26 10:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993544', 'tblTempUsageDetail_20' ) start [2025-04-26 10:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993544', 'tblTempUsageDetail_20' ) end [2025-04-26 10:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 10:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 10:04:22] Production.INFO: ==2503== Releasing lock... [2025-04-26 10:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 10:04:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-26 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 07:05:05 [end_date_ymd] => 2025-04-26 10:05:05 [RateCDR] => 1 ) [2025-04-26 10:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 07:05:05' and `end` < '2025-04-26 10:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 10:05:19] Production.INFO: count ==690 [2025-04-26 10:05:19] Production.ERROR: pbx CDR StartTime 2025-04-26 07:05:05 - End Time 2025-04-26 10:05:05 [2025-04-26 10:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993549', 'tblTempUsageDetail_20' ) start [2025-04-26 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993549', 'tblTempUsageDetail_20' ) end [2025-04-26 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993549', 'tblTempVendorCDR_20' ) start [2025-04-26 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993549', 'tblTempVendorCDR_20' ) end [2025-04-26 10:05:19] Production.INFO: ProcessCDR(1,14993549,1,1,2) [2025-04-26 10:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993549', 'tblTempUsageDetail_20' ) start [2025-04-26 10:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993549', 'tblTempUsageDetail_20' ) end [2025-04-26 10:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 10:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 10:05:22] Production.INFO: ==2585== Releasing lock... [2025-04-26 10:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 10:05:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-26 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 07:06:05 [end_date_ymd] => 2025-04-26 10:06:05 [RateCDR] => 1 ) [2025-04-26 10:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 07:06:05' and `end` < '2025-04-26 10:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 10:06:18] Production.INFO: count ==700 [2025-04-26 10:06:18] Production.ERROR: pbx CDR StartTime 2025-04-26 07:06:05 - End Time 2025-04-26 10:06:05 [2025-04-26 10:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993554', 'tblTempUsageDetail_20' ) start [2025-04-26 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993554', 'tblTempUsageDetail_20' ) end [2025-04-26 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993554', 'tblTempVendorCDR_20' ) start [2025-04-26 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993554', 'tblTempVendorCDR_20' ) end [2025-04-26 10:06:18] Production.INFO: ProcessCDR(1,14993554,1,1,2) [2025-04-26 10:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993554', 'tblTempUsageDetail_20' ) start [2025-04-26 10:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993554', 'tblTempUsageDetail_20' ) end [2025-04-26 10:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 10:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 10:06:22] Production.INFO: ==2663== Releasing lock... [2025-04-26 10:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 10:06:22] Production.INFO: 34 MB #Memory Used# [2025-04-26 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 07:07:05 [end_date_ymd] => 2025-04-26 10:07:05 [RateCDR] => 1 ) [2025-04-26 10:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 07:07:05' and `end` < '2025-04-26 10:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 10:07:18] Production.INFO: count ==704 [2025-04-26 10:07:18] Production.ERROR: pbx CDR StartTime 2025-04-26 07:07:05 - End Time 2025-04-26 10:07:05 [2025-04-26 10:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993559', 'tblTempUsageDetail_20' ) start [2025-04-26 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993559', 'tblTempUsageDetail_20' ) end [2025-04-26 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993559', 'tblTempVendorCDR_20' ) start [2025-04-26 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993559', 'tblTempVendorCDR_20' ) end [2025-04-26 10:07:18] Production.INFO: ProcessCDR(1,14993559,1,1,2) [2025-04-26 10:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993559', 'tblTempUsageDetail_20' ) start [2025-04-26 10:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993559', 'tblTempUsageDetail_20' ) end [2025-04-26 10:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 10:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 10:07:21] Production.INFO: ==2739== Releasing lock... [2025-04-26 10:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 10:07:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-26 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 07:08:05 [end_date_ymd] => 2025-04-26 10:08:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 07:08:05' and `end` < '2025-04-26 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-04-26 10:08:17] Production.INFO: count ==712 [2025-04-26 10:08:18] Production.ERROR: pbx CDR StartTime 2025-04-26 07:08:05 - End Time 2025-04-26 10:08:05 [2025-04-26 10:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993564', 'tblTempUsageDetail_20' ) start [2025-04-26 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993564', 'tblTempUsageDetail_20' ) end [2025-04-26 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993564', 'tblTempVendorCDR_20' ) start [2025-04-26 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993564', 'tblTempVendorCDR_20' ) end [2025-04-26 10:08:18] Production.INFO: ProcessCDR(1,14993564,1,1,2) [2025-04-26 10:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993564', 'tblTempUsageDetail_20' ) start [2025-04-26 10:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993564', 'tblTempUsageDetail_20' ) end [2025-04-26 10:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 10:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 10:08:21] Production.INFO: ==2810== Releasing lock... [2025-04-26 10:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 10:08:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-26 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 07:09:05 [end_date_ymd] => 2025-04-26 10:09:05 [RateCDR] => 1 ) [2025-04-26 10:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 07:09:05' and `end` < '2025-04-26 10:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 10:09:18] Production.INFO: count ==713 [2025-04-26 10:09:18] Production.ERROR: pbx CDR StartTime 2025-04-26 07:09:05 - End Time 2025-04-26 10:09:05 [2025-04-26 10:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993569', 'tblTempUsageDetail_20' ) start [2025-04-26 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993569', 'tblTempUsageDetail_20' ) end [2025-04-26 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993569', 'tblTempVendorCDR_20' ) start [2025-04-26 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993569', 'tblTempVendorCDR_20' ) end [2025-04-26 10:09:18] Production.INFO: ProcessCDR(1,14993569,1,1,2) [2025-04-26 10:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993569', 'tblTempUsageDetail_20' ) start [2025-04-26 10:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993569', 'tblTempUsageDetail_20' ) end [2025-04-26 10:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 10:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 10:09:22] Production.INFO: ==2880== Releasing lock... [2025-04-26 10:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 10:09:22] Production.INFO: 34 MB #Memory Used# [2025-04-26 10:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 07:10:07 [end_date_ymd] => 2025-04-26 10:10:07 [RateCDR] => 1 ) [2025-04-26 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-04-26 07:10:07' and `end` < '2025-04-26 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-04-26 10:10:19] Production.INFO: count ==743 [2025-04-26 10:10:20] Production.ERROR: pbx CDR StartTime 2025-04-26 07:10:07 - End Time 2025-04-26 10:10:07 [2025-04-26 10:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993575', 'tblTempUsageDetail_20' ) start [2025-04-26 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993575', 'tblTempUsageDetail_20' ) end [2025-04-26 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993575', 'tblTempVendorCDR_20' ) start [2025-04-26 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993575', 'tblTempVendorCDR_20' ) end [2025-04-26 10:10:20] Production.INFO: ProcessCDR(1,14993575,1,1,2) [2025-04-26 10:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993575', 'tblTempUsageDetail_20' ) start [2025-04-26 10:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993575', 'tblTempUsageDetail_20' ) end [2025-04-26 10:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 10:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 10:10:23] Production.INFO: ==2954== Releasing lock... [2025-04-26 10:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 10:10:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-26 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 07:11:05 [end_date_ymd] => 2025-04-26 10:11:05 [RateCDR] => 1 ) [2025-04-26 10:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 07:11:05' and `end` < '2025-04-26 10:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 10:11:18] Production.INFO: count ==785 [2025-04-26 10:11:18] Production.ERROR: pbx CDR StartTime 2025-04-26 07:11:05 - End Time 2025-04-26 10:11:05 [2025-04-26 10:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993580', 'tblTempUsageDetail_20' ) start [2025-04-26 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993580', 'tblTempUsageDetail_20' ) end [2025-04-26 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993580', 'tblTempVendorCDR_20' ) start [2025-04-26 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993580', 'tblTempVendorCDR_20' ) end [2025-04-26 10:11:19] Production.INFO: ProcessCDR(1,14993580,1,1,2) [2025-04-26 10:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993580', 'tblTempUsageDetail_20' ) start [2025-04-26 10:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993580', 'tblTempUsageDetail_20' ) end [2025-04-26 10:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 10:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 10:11:22] Production.INFO: ==3026== Releasing lock... [2025-04-26 10:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 10:11:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-26 10:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 07:12:06 [end_date_ymd] => 2025-04-26 10:12:06 [RateCDR] => 1 ) [2025-04-26 10:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 07:12:06' and `end` < '2025-04-26 10:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 10:12:18] Production.INFO: count ==789 [2025-04-26 10:12:19] Production.ERROR: pbx CDR StartTime 2025-04-26 07:12:06 - End Time 2025-04-26 10:12:06 [2025-04-26 10:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993585', 'tblTempUsageDetail_20' ) start [2025-04-26 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993585', 'tblTempUsageDetail_20' ) end [2025-04-26 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993585', 'tblTempVendorCDR_20' ) start [2025-04-26 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993585', 'tblTempVendorCDR_20' ) end [2025-04-26 10:12:19] Production.INFO: ProcessCDR(1,14993585,1,1,2) [2025-04-26 10:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993585', 'tblTempUsageDetail_20' ) start [2025-04-26 10:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993585', 'tblTempUsageDetail_20' ) end [2025-04-26 10:12:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 10:12:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 10:12:24] Production.INFO: ==3103== Releasing lock... [2025-04-26 10:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 10:12:24] Production.INFO: 34.25 MB #Memory Used# [2025-04-26 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 07:13:05 [end_date_ymd] => 2025-04-26 10:13:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 07:13:05' and `end` < '2025-04-26 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-04-26 10:13:17] Production.INFO: count ==791 [2025-04-26 10:13:18] Production.ERROR: pbx CDR StartTime 2025-04-26 07:13:05 - End Time 2025-04-26 10:13:05 [2025-04-26 10:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993590', 'tblTempUsageDetail_20' ) start [2025-04-26 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993590', 'tblTempUsageDetail_20' ) end [2025-04-26 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993590', 'tblTempVendorCDR_20' ) start [2025-04-26 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993590', 'tblTempVendorCDR_20' ) end [2025-04-26 10:13:18] Production.INFO: ProcessCDR(1,14993590,1,1,2) [2025-04-26 10:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993590', 'tblTempUsageDetail_20' ) start [2025-04-26 10:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993590', 'tblTempUsageDetail_20' ) end [2025-04-26 10:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 10:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 10:13:21] Production.INFO: ==3175== Releasing lock... [2025-04-26 10:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 10:13:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-26 10:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 07:14:06 [end_date_ymd] => 2025-04-26 10:14:06 [RateCDR] => 1 ) [2025-04-26 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-04-26 07:14:06' and `end` < '2025-04-26 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-04-26 10:14:19] Production.INFO: count ==784 [2025-04-26 10:14:19] Production.ERROR: pbx CDR StartTime 2025-04-26 07:14:06 - End Time 2025-04-26 10:14:06 [2025-04-26 10:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993595', 'tblTempUsageDetail_20' ) start [2025-04-26 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993595', 'tblTempUsageDetail_20' ) end [2025-04-26 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993595', 'tblTempVendorCDR_20' ) start [2025-04-26 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993595', 'tblTempVendorCDR_20' ) end [2025-04-26 10:14:19] Production.INFO: ProcessCDR(1,14993595,1,1,2) [2025-04-26 10:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993595', 'tblTempUsageDetail_20' ) start [2025-04-26 10:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993595', 'tblTempUsageDetail_20' ) end [2025-04-26 10:14:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 10:14:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 10:14:24] Production.INFO: ==3289== Releasing lock... [2025-04-26 10:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 10:14:24] Production.INFO: 34 MB #Memory Used# [2025-04-26 10:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 07:15:06 [end_date_ymd] => 2025-04-26 10:15:06 [RateCDR] => 1 ) [2025-04-26 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-04-26 07:15:06' and `end` < '2025-04-26 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-04-26 10:15:18] Production.INFO: count ==782 [2025-04-26 10:15:19] Production.ERROR: pbx CDR StartTime 2025-04-26 07:15:06 - End Time 2025-04-26 10:15:06 [2025-04-26 10:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993600', 'tblTempUsageDetail_20' ) start [2025-04-26 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993600', 'tblTempUsageDetail_20' ) end [2025-04-26 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993600', 'tblTempVendorCDR_20' ) start [2025-04-26 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993600', 'tblTempVendorCDR_20' ) end [2025-04-26 10:15:19] Production.INFO: ProcessCDR(1,14993600,1,1,2) [2025-04-26 10:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993600', 'tblTempUsageDetail_20' ) start [2025-04-26 10:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993600', 'tblTempUsageDetail_20' ) end [2025-04-26 10:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 10:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 10:15:22] Production.INFO: ==3362== Releasing lock... [2025-04-26 10:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 10:15:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-26 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 07:16:05 [end_date_ymd] => 2025-04-26 10:16:05 [RateCDR] => 1 ) [2025-04-26 10:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 07:16:05' and `end` < '2025-04-26 10:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 10:16:18] Production.INFO: count ==786 [2025-04-26 10:16:18] Production.ERROR: pbx CDR StartTime 2025-04-26 07:16:05 - End Time 2025-04-26 10:16:05 [2025-04-26 10:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993605', 'tblTempUsageDetail_20' ) start [2025-04-26 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993605', 'tblTempUsageDetail_20' ) end [2025-04-26 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993605', 'tblTempVendorCDR_20' ) start [2025-04-26 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993605', 'tblTempVendorCDR_20' ) end [2025-04-26 10:16:18] Production.INFO: ProcessCDR(1,14993605,1,1,2) [2025-04-26 10:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993605', 'tblTempUsageDetail_20' ) start [2025-04-26 10:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993605', 'tblTempUsageDetail_20' ) end [2025-04-26 10:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 10:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 10:16:23] Production.INFO: ==3435== Releasing lock... [2025-04-26 10:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 10:16:23] Production.INFO: 34 MB #Memory Used# [2025-04-26 10:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 07:17:05 [end_date_ymd] => 2025-04-26 10:17:05 [RateCDR] => 1 ) [2025-04-26 10:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 07:17:05' and `end` < '2025-04-26 10:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 10:17:17] Production.INFO: count ==786 [2025-04-26 10:17:18] Production.ERROR: pbx CDR StartTime 2025-04-26 07:17:05 - End Time 2025-04-26 10:17:05 [2025-04-26 10:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993610', 'tblTempUsageDetail_20' ) start [2025-04-26 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993610', 'tblTempUsageDetail_20' ) end [2025-04-26 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993610', 'tblTempVendorCDR_20' ) start [2025-04-26 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993610', 'tblTempVendorCDR_20' ) end [2025-04-26 10:17:18] Production.INFO: ProcessCDR(1,14993610,1,1,2) [2025-04-26 10:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993610', 'tblTempUsageDetail_20' ) start [2025-04-26 10:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993610', 'tblTempUsageDetail_20' ) end [2025-04-26 10:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 10:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 10:17:21] Production.INFO: ==3506== Releasing lock... [2025-04-26 10:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 10:17:21] Production.INFO: 34 MB #Memory Used# [2025-04-26 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 07:18:05 [end_date_ymd] => 2025-04-26 10:18:05 [RateCDR] => 1 ) [2025-04-26 10:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 07:18:05' and `end` < '2025-04-26 10:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 10:18:18] Production.INFO: count ==794 [2025-04-26 10:18:18] Production.ERROR: pbx CDR StartTime 2025-04-26 07:18:05 - End Time 2025-04-26 10:18:05 [2025-04-26 10:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993615', 'tblTempUsageDetail_20' ) start [2025-04-26 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993615', 'tblTempUsageDetail_20' ) end [2025-04-26 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993615', 'tblTempVendorCDR_20' ) start [2025-04-26 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993615', 'tblTempVendorCDR_20' ) end [2025-04-26 10:18:18] Production.INFO: ProcessCDR(1,14993615,1,1,2) [2025-04-26 10:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993615', 'tblTempUsageDetail_20' ) start [2025-04-26 10:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993615', 'tblTempUsageDetail_20' ) end [2025-04-26 10:18:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 10:18:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 10:18:23] Production.INFO: ==3576== Releasing lock... [2025-04-26 10:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 10:18:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-26 10:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 07:19:04 [end_date_ymd] => 2025-04-26 10:19:04 [RateCDR] => 1 ) [2025-04-26 10:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 07:19:04' and `end` < '2025-04-26 10:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 10:19:17] Production.INFO: count ==803 [2025-04-26 10:19:17] Production.ERROR: pbx CDR StartTime 2025-04-26 07:19:04 - End Time 2025-04-26 10:19:04 [2025-04-26 10:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 10:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993620', 'tblTempUsageDetail_20' ) start [2025-04-26 10:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993620', 'tblTempUsageDetail_20' ) end [2025-04-26 10:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993620', 'tblTempVendorCDR_20' ) start [2025-04-26 10:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993620', 'tblTempVendorCDR_20' ) end [2025-04-26 10:19:17] Production.INFO: ProcessCDR(1,14993620,1,1,2) [2025-04-26 10:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993620', 'tblTempUsageDetail_20' ) start [2025-04-26 10:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993620', 'tblTempUsageDetail_20' ) end [2025-04-26 10:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 10:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 10:19:21] Production.INFO: ==3647== Releasing lock... [2025-04-26 10:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 10:19:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-26 10:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 07:20:06 [end_date_ymd] => 2025-04-26 10:20:06 [RateCDR] => 1 ) [2025-04-26 10:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 07:20:06' and `end` < '2025-04-26 10:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 10:20:19] Production.INFO: count ==821 [2025-04-26 10:20:19] Production.ERROR: pbx CDR StartTime 2025-04-26 07:20:06 - End Time 2025-04-26 10:20:06 [2025-04-26 10:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993626', 'tblTempUsageDetail_20' ) start [2025-04-26 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993626', 'tblTempUsageDetail_20' ) end [2025-04-26 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993626', 'tblTempVendorCDR_20' ) start [2025-04-26 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993626', 'tblTempVendorCDR_20' ) end [2025-04-26 10:20:19] Production.INFO: ProcessCDR(1,14993626,1,1,2) [2025-04-26 10:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993626', 'tblTempUsageDetail_20' ) start [2025-04-26 10:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993626', 'tblTempUsageDetail_20' ) end [2025-04-26 10:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 10:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 10:20:23] Production.INFO: ==3724== Releasing lock... [2025-04-26 10:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 10:20:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-26 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 07:21:05 [end_date_ymd] => 2025-04-26 10:21:05 [RateCDR] => 1 ) [2025-04-26 10:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 07:21:05' and `end` < '2025-04-26 10:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 10:21:18] Production.INFO: count ==878 [2025-04-26 10:21:18] Production.ERROR: pbx CDR StartTime 2025-04-26 07:21:05 - End Time 2025-04-26 10:21:05 [2025-04-26 10:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993631', 'tblTempUsageDetail_20' ) start [2025-04-26 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993631', 'tblTempUsageDetail_20' ) end [2025-04-26 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993631', 'tblTempVendorCDR_20' ) start [2025-04-26 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993631', 'tblTempVendorCDR_20' ) end [2025-04-26 10:21:19] Production.INFO: ProcessCDR(1,14993631,1,1,2) [2025-04-26 10:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993631', 'tblTempUsageDetail_20' ) start [2025-04-26 10:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993631', 'tblTempUsageDetail_20' ) end [2025-04-26 10:21:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 10:21:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 10:21:23] Production.INFO: ==3798== Releasing lock... [2025-04-26 10:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 10:21:23] Production.INFO: 35 MB #Memory Used# [2025-04-26 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 07:22:05 [end_date_ymd] => 2025-04-26 10:22:05 [RateCDR] => 1 ) [2025-04-26 10:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 07:22:05' and `end` < '2025-04-26 10:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 10:22:18] Production.INFO: count ==885 [2025-04-26 10:22:18] Production.ERROR: pbx CDR StartTime 2025-04-26 07:22:05 - End Time 2025-04-26 10:22:05 [2025-04-26 10:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993636', 'tblTempUsageDetail_20' ) start [2025-04-26 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993636', 'tblTempUsageDetail_20' ) end [2025-04-26 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993636', 'tblTempVendorCDR_20' ) start [2025-04-26 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993636', 'tblTempVendorCDR_20' ) end [2025-04-26 10:22:18] Production.INFO: ProcessCDR(1,14993636,1,1,2) [2025-04-26 10:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993636', 'tblTempUsageDetail_20' ) start [2025-04-26 10:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993636', 'tblTempUsageDetail_20' ) end [2025-04-26 10:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 10:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 10:22:22] Production.INFO: ==3869== Releasing lock... [2025-04-26 10:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 10:22:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-26 10:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 07:23:05 [end_date_ymd] => 2025-04-26 10:23:05 [RateCDR] => 1 ) [2025-04-26 10:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 07:23:05' and `end` < '2025-04-26 10:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 10:23:18] Production.INFO: count ==891 [2025-04-26 10:23:18] Production.ERROR: pbx CDR StartTime 2025-04-26 07:23:05 - End Time 2025-04-26 10:23:05 [2025-04-26 10:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 10:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993641', 'tblTempUsageDetail_20' ) start [2025-04-26 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993641', 'tblTempUsageDetail_20' ) end [2025-04-26 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993641', 'tblTempVendorCDR_20' ) start [2025-04-26 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993641', 'tblTempVendorCDR_20' ) end [2025-04-26 10:23:19] Production.INFO: ProcessCDR(1,14993641,1,1,2) [2025-04-26 10:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993641', 'tblTempUsageDetail_20' ) start [2025-04-26 10:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993641', 'tblTempUsageDetail_20' ) end [2025-04-26 10:23:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 10:23:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 10:23:23] Production.INFO: ==3946== Releasing lock... [2025-04-26 10:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 10:23:23] Production.INFO: 35.25 MB #Memory Used# [2025-04-26 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 07:24:05 [end_date_ymd] => 2025-04-26 10:24:05 [RateCDR] => 1 ) [2025-04-26 10:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 07:24:05' and `end` < '2025-04-26 10:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 10:24:18] Production.INFO: count ==902 [2025-04-26 10:24:18] Production.ERROR: pbx CDR StartTime 2025-04-26 07:24:05 - End Time 2025-04-26 10:24:05 [2025-04-26 10:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993646', 'tblTempUsageDetail_20' ) start [2025-04-26 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993646', 'tblTempUsageDetail_20' ) end [2025-04-26 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993646', 'tblTempVendorCDR_20' ) start [2025-04-26 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993646', 'tblTempVendorCDR_20' ) end [2025-04-26 10:24:18] Production.INFO: ProcessCDR(1,14993646,1,1,2) [2025-04-26 10:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993646', 'tblTempUsageDetail_20' ) start [2025-04-26 10:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993646', 'tblTempUsageDetail_20' ) end [2025-04-26 10:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 10:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 10:24:22] Production.INFO: ==4021== Releasing lock... [2025-04-26 10:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 10:24:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-26 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 07:25:05 [end_date_ymd] => 2025-04-26 10:25:05 [RateCDR] => 1 ) [2025-04-26 10:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 07:25:05' and `end` < '2025-04-26 10:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 10:25:18] Production.INFO: count ==904 [2025-04-26 10:25:18] Production.ERROR: pbx CDR StartTime 2025-04-26 07:25:05 - End Time 2025-04-26 10:25:05 [2025-04-26 10:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993651', 'tblTempUsageDetail_20' ) start [2025-04-26 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993651', 'tblTempUsageDetail_20' ) end [2025-04-26 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993651', 'tblTempVendorCDR_20' ) start [2025-04-26 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993651', 'tblTempVendorCDR_20' ) end [2025-04-26 10:25:18] Production.INFO: ProcessCDR(1,14993651,1,1,2) [2025-04-26 10:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993651', 'tblTempUsageDetail_20' ) start [2025-04-26 10:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993651', 'tblTempUsageDetail_20' ) end [2025-04-26 10:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 10:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 10:25:22] Production.INFO: ==4094== Releasing lock... [2025-04-26 10:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 10:25:22] Production.INFO: 35 MB #Memory Used# [2025-04-26 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 07:26:05 [end_date_ymd] => 2025-04-26 10:26:05 [RateCDR] => 1 ) [2025-04-26 10:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 07:26:05' and `end` < '2025-04-26 10:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 10:26:18] Production.INFO: count ==906 [2025-04-26 10:26:18] Production.ERROR: pbx CDR StartTime 2025-04-26 07:26:05 - End Time 2025-04-26 10:26:05 [2025-04-26 10:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993656', 'tblTempUsageDetail_20' ) start [2025-04-26 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993656', 'tblTempUsageDetail_20' ) end [2025-04-26 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993656', 'tblTempVendorCDR_20' ) start [2025-04-26 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993656', 'tblTempVendorCDR_20' ) end [2025-04-26 10:26:18] Production.INFO: ProcessCDR(1,14993656,1,1,2) [2025-04-26 10:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993656', 'tblTempUsageDetail_20' ) start [2025-04-26 10:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993656', 'tblTempUsageDetail_20' ) end [2025-04-26 10:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 10:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 10:26:22] Production.INFO: ==4169== Releasing lock... [2025-04-26 10:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 10:26:22] Production.INFO: 35 MB #Memory Used# [2025-04-26 10:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 07:27:06 [end_date_ymd] => 2025-04-26 10:27:06 [RateCDR] => 1 ) [2025-04-26 10:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 07:27:06' and `end` < '2025-04-26 10:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 10:27:19] Production.INFO: count ==910 [2025-04-26 10:27:19] Production.ERROR: pbx CDR StartTime 2025-04-26 07:27:06 - End Time 2025-04-26 10:27:06 [2025-04-26 10:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993661', 'tblTempUsageDetail_20' ) start [2025-04-26 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993661', 'tblTempUsageDetail_20' ) end [2025-04-26 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993661', 'tblTempVendorCDR_20' ) start [2025-04-26 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993661', 'tblTempVendorCDR_20' ) end [2025-04-26 10:27:19] Production.INFO: ProcessCDR(1,14993661,1,1,2) [2025-04-26 10:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993661', 'tblTempUsageDetail_20' ) start [2025-04-26 10:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993661', 'tblTempUsageDetail_20' ) end [2025-04-26 10:27:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 10:27:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 10:27:24] Production.INFO: ==4244== Releasing lock... [2025-04-26 10:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 10:27:24] Production.INFO: 35.5 MB #Memory Used# [2025-04-26 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 07:28:05 [end_date_ymd] => 2025-04-26 10:28:05 [RateCDR] => 1 ) [2025-04-26 10:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 07:28:05' and `end` < '2025-04-26 10:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 10:28:17] Production.INFO: count ==914 [2025-04-26 10:28:18] Production.ERROR: pbx CDR StartTime 2025-04-26 07:28:05 - End Time 2025-04-26 10:28:05 [2025-04-26 10:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993666', 'tblTempUsageDetail_20' ) start [2025-04-26 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993666', 'tblTempUsageDetail_20' ) end [2025-04-26 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993666', 'tblTempVendorCDR_20' ) start [2025-04-26 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993666', 'tblTempVendorCDR_20' ) end [2025-04-26 10:28:18] Production.INFO: ProcessCDR(1,14993666,1,1,2) [2025-04-26 10:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993666', 'tblTempUsageDetail_20' ) start [2025-04-26 10:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993666', 'tblTempUsageDetail_20' ) end [2025-04-26 10:28:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 10:28:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 10:28:23] Production.INFO: ==4314== Releasing lock... [2025-04-26 10:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 10:28:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-26 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 07:29:05 [end_date_ymd] => 2025-04-26 10:29:05 [RateCDR] => 1 ) [2025-04-26 10:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 07:29:05' and `end` < '2025-04-26 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-04-26 10:29:18] Production.INFO: count ==920 [2025-04-26 10:29:18] Production.ERROR: pbx CDR StartTime 2025-04-26 07:29:05 - End Time 2025-04-26 10:29:05 [2025-04-26 10:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993671', 'tblTempUsageDetail_20' ) start [2025-04-26 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993671', 'tblTempUsageDetail_20' ) end [2025-04-26 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993671', 'tblTempVendorCDR_20' ) start [2025-04-26 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993671', 'tblTempVendorCDR_20' ) end [2025-04-26 10:29:18] Production.INFO: ProcessCDR(1,14993671,1,1,2) [2025-04-26 10:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993671', 'tblTempUsageDetail_20' ) start [2025-04-26 10:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993671', 'tblTempUsageDetail_20' ) end [2025-04-26 10:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 10:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 10:29:22] Production.INFO: ==4423== Releasing lock... [2025-04-26 10:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 10:29:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-26 10:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 07:30:05 [end_date_ymd] => 2025-04-26 10:30:05 [RateCDR] => 1 ) [2025-04-26 10:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 07:30:05' and `end` < '2025-04-26 10:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 10:30:18] Production.INFO: count ==922 [2025-04-26 10:30:18] Production.ERROR: pbx CDR StartTime 2025-04-26 07:30:05 - End Time 2025-04-26 10:30:05 [2025-04-26 10:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 10:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993677', 'tblTempUsageDetail_20' ) start [2025-04-26 10:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993677', 'tblTempUsageDetail_20' ) end [2025-04-26 10:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993677', 'tblTempVendorCDR_20' ) start [2025-04-26 10:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993677', 'tblTempVendorCDR_20' ) end [2025-04-26 10:30:18] Production.INFO: ProcessCDR(1,14993677,1,1,2) [2025-04-26 10:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993677', 'tblTempUsageDetail_20' ) start [2025-04-26 10:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993677', 'tblTempUsageDetail_20' ) end [2025-04-26 10:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 10:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 10:30:22] Production.INFO: ==4506== Releasing lock... [2025-04-26 10:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 10:30:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-26 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 07:31:05 [end_date_ymd] => 2025-04-26 10:31:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 07:31:05' and `end` < '2025-04-26 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-04-26 10:31:17] Production.INFO: count ==922 [2025-04-26 10:31:18] Production.ERROR: pbx CDR StartTime 2025-04-26 07:31:05 - End Time 2025-04-26 10:31:05 [2025-04-26 10:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 10:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993682', 'tblTempUsageDetail_20' ) start [2025-04-26 10:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993682', 'tblTempUsageDetail_20' ) end [2025-04-26 10:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993682', 'tblTempVendorCDR_20' ) start [2025-04-26 10:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993682', 'tblTempVendorCDR_20' ) end [2025-04-26 10:31:18] Production.INFO: ProcessCDR(1,14993682,1,1,2) [2025-04-26 10:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993682', 'tblTempUsageDetail_20' ) start [2025-04-26 10:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993682', 'tblTempUsageDetail_20' ) end [2025-04-26 10:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 10:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 10:31:21] Production.INFO: ==4585== Releasing lock... [2025-04-26 10:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 10:31:21] Production.INFO: 35.25 MB #Memory Used# [2025-04-26 10:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 07:32:06 [end_date_ymd] => 2025-04-26 10:32:06 [RateCDR] => 1 ) [2025-04-26 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-04-26 07:32:06' and `end` < '2025-04-26 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-04-26 10:32:18] Production.INFO: count ==924 [2025-04-26 10:32:19] Production.ERROR: pbx CDR StartTime 2025-04-26 07:32:06 - End Time 2025-04-26 10:32:06 [2025-04-26 10:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993687', 'tblTempUsageDetail_20' ) start [2025-04-26 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993687', 'tblTempUsageDetail_20' ) end [2025-04-26 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993687', 'tblTempVendorCDR_20' ) start [2025-04-26 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993687', 'tblTempVendorCDR_20' ) end [2025-04-26 10:32:19] Production.INFO: ProcessCDR(1,14993687,1,1,2) [2025-04-26 10:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993687', 'tblTempUsageDetail_20' ) start [2025-04-26 10:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993687', 'tblTempUsageDetail_20' ) end [2025-04-26 10:32:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 10:32:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 10:32:24] Production.INFO: ==4658== Releasing lock... [2025-04-26 10:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 10:32:24] Production.INFO: 35.25 MB #Memory Used# [2025-04-26 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 07:33:05 [end_date_ymd] => 2025-04-26 10:33:05 [RateCDR] => 1 ) [2025-04-26 10:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 07:33:05' and `end` < '2025-04-26 10:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 10:33:18] Production.INFO: count ==931 [2025-04-26 10:33:18] Production.ERROR: pbx CDR StartTime 2025-04-26 07:33:05 - End Time 2025-04-26 10:33:05 [2025-04-26 10:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 10:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993692', 'tblTempUsageDetail_20' ) start [2025-04-26 10:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993692', 'tblTempUsageDetail_20' ) end [2025-04-26 10:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993692', 'tblTempVendorCDR_20' ) start [2025-04-26 10:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993692', 'tblTempVendorCDR_20' ) end [2025-04-26 10:33:18] Production.INFO: ProcessCDR(1,14993692,1,1,2) [2025-04-26 10:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993692', 'tblTempUsageDetail_20' ) start [2025-04-26 10:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993692', 'tblTempUsageDetail_20' ) end [2025-04-26 10:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 10:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 10:33:22] Production.INFO: ==4731== Releasing lock... [2025-04-26 10:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 10:33:22] Production.INFO: 36 MB #Memory Used# [2025-04-26 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 07:34:05 [end_date_ymd] => 2025-04-26 10:34:05 [RateCDR] => 1 ) [2025-04-26 10:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 07:34:05' and `end` < '2025-04-26 10:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 10:34:18] Production.INFO: count ==933 [2025-04-26 10:34:18] Production.ERROR: pbx CDR StartTime 2025-04-26 07:34:05 - End Time 2025-04-26 10:34:05 [2025-04-26 10:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993697', 'tblTempUsageDetail_20' ) start [2025-04-26 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993697', 'tblTempUsageDetail_20' ) end [2025-04-26 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993697', 'tblTempVendorCDR_20' ) start [2025-04-26 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993697', 'tblTempVendorCDR_20' ) end [2025-04-26 10:34:18] Production.INFO: ProcessCDR(1,14993697,1,1,2) [2025-04-26 10:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993697', 'tblTempUsageDetail_20' ) start [2025-04-26 10:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993697', 'tblTempUsageDetail_20' ) end [2025-04-26 10:34:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 10:34:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 10:34:23] Production.INFO: ==4802== Releasing lock... [2025-04-26 10:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 10:34:23] Production.INFO: 36 MB #Memory Used# [2025-04-26 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 07:35:05 [end_date_ymd] => 2025-04-26 10:35:05 [RateCDR] => 1 ) [2025-04-26 10:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 07:35:05' and `end` < '2025-04-26 10:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 10:35:18] Production.INFO: count ==934 [2025-04-26 10:35:18] Production.ERROR: pbx CDR StartTime 2025-04-26 07:35:05 - End Time 2025-04-26 10:35:05 [2025-04-26 10:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 10:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993702', 'tblTempUsageDetail_20' ) start [2025-04-26 10:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993702', 'tblTempUsageDetail_20' ) end [2025-04-26 10:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993702', 'tblTempVendorCDR_20' ) start [2025-04-26 10:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993702', 'tblTempVendorCDR_20' ) end [2025-04-26 10:35:18] Production.INFO: ProcessCDR(1,14993702,1,1,2) [2025-04-26 10:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993702', 'tblTempUsageDetail_20' ) start [2025-04-26 10:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993702', 'tblTempUsageDetail_20' ) end [2025-04-26 10:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 10:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 10:35:22] Production.INFO: ==4874== Releasing lock... [2025-04-26 10:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 10:35:22] Production.INFO: 36 MB #Memory Used# [2025-04-26 10:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 07:36:05 [end_date_ymd] => 2025-04-26 10:36:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 07:36:05' and `end` < '2025-04-26 10:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 10:36:18] Production.INFO: count ==938 [2025-04-26 10:36:18] Production.ERROR: pbx CDR StartTime 2025-04-26 07:36:05 - End Time 2025-04-26 10:36:05 [2025-04-26 10:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993707', 'tblTempUsageDetail_20' ) start [2025-04-26 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993707', 'tblTempUsageDetail_20' ) end [2025-04-26 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993707', 'tblTempVendorCDR_20' ) start [2025-04-26 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993707', 'tblTempVendorCDR_20' ) end [2025-04-26 10:36:19] Production.INFO: ProcessCDR(1,14993707,1,1,2) [2025-04-26 10:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993707', 'tblTempUsageDetail_20' ) start [2025-04-26 10:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993707', 'tblTempUsageDetail_20' ) end [2025-04-26 10:36:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 10:36:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 10:36:24] Production.INFO: ==4945== Releasing lock... [2025-04-26 10:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 10:36:24] Production.INFO: 35.75 MB #Memory Used# [2025-04-26 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 07:37:05 [end_date_ymd] => 2025-04-26 10:37:05 [RateCDR] => 1 ) [2025-04-26 10:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 07:37:05' and `end` < '2025-04-26 10:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 10:37:17] Production.INFO: count ==943 [2025-04-26 10:37:18] Production.ERROR: pbx CDR StartTime 2025-04-26 07:37:05 - End Time 2025-04-26 10:37:05 [2025-04-26 10:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 10:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993712', 'tblTempUsageDetail_20' ) start [2025-04-26 10:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993712', 'tblTempUsageDetail_20' ) end [2025-04-26 10:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993712', 'tblTempVendorCDR_20' ) start [2025-04-26 10:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993712', 'tblTempVendorCDR_20' ) end [2025-04-26 10:37:18] Production.INFO: ProcessCDR(1,14993712,1,1,2) [2025-04-26 10:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993712', 'tblTempUsageDetail_20' ) start [2025-04-26 10:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993712', 'tblTempUsageDetail_20' ) end [2025-04-26 10:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 10:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 10:37:21] Production.INFO: ==5018== Releasing lock... [2025-04-26 10:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 10:37:21] Production.INFO: 35.5 MB #Memory Used# [2025-04-26 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 07:38:05 [end_date_ymd] => 2025-04-26 10:38:05 [RateCDR] => 1 ) [2025-04-26 10:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 07:38:05' and `end` < '2025-04-26 10:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 10:38:18] Production.INFO: count ==944 [2025-04-26 10:38:18] Production.ERROR: pbx CDR StartTime 2025-04-26 07:38:05 - End Time 2025-04-26 10:38:05 [2025-04-26 10:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993717', 'tblTempUsageDetail_20' ) start [2025-04-26 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993717', 'tblTempUsageDetail_20' ) end [2025-04-26 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993717', 'tblTempVendorCDR_20' ) start [2025-04-26 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993717', 'tblTempVendorCDR_20' ) end [2025-04-26 10:38:18] Production.INFO: ProcessCDR(1,14993717,1,1,2) [2025-04-26 10:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993717', 'tblTempUsageDetail_20' ) start [2025-04-26 10:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993717', 'tblTempUsageDetail_20' ) end [2025-04-26 10:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 10:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 10:38:21] Production.INFO: ==5089== Releasing lock... [2025-04-26 10:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 10:38:21] Production.INFO: 36.25 MB #Memory Used# [2025-04-26 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 07:39:05 [end_date_ymd] => 2025-04-26 10:39:05 [RateCDR] => 1 ) [2025-04-26 10:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 07:39:05' and `end` < '2025-04-26 10:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 10:39:17] Production.INFO: count ==953 [2025-04-26 10:39:17] Production.ERROR: pbx CDR StartTime 2025-04-26 07:39:05 - End Time 2025-04-26 10:39:05 [2025-04-26 10:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 10:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993722', 'tblTempUsageDetail_20' ) start [2025-04-26 10:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993722', 'tblTempUsageDetail_20' ) end [2025-04-26 10:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993722', 'tblTempVendorCDR_20' ) start [2025-04-26 10:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993722', 'tblTempVendorCDR_20' ) end [2025-04-26 10:39:18] Production.INFO: ProcessCDR(1,14993722,1,1,2) [2025-04-26 10:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993722', 'tblTempUsageDetail_20' ) start [2025-04-26 10:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993722', 'tblTempUsageDetail_20' ) end [2025-04-26 10:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 10:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 10:39:22] Production.INFO: ==5168== Releasing lock... [2025-04-26 10:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 10:39:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-26 10:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 07:40:05 [end_date_ymd] => 2025-04-26 10:40:05 [RateCDR] => 1 ) [2025-04-26 10:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 07:40:05' and `end` < '2025-04-26 10:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 10:40:18] Production.INFO: count ==969 [2025-04-26 10:40:19] Production.ERROR: pbx CDR StartTime 2025-04-26 07:40:05 - End Time 2025-04-26 10:40:05 [2025-04-26 10:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 10:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993728', 'tblTempUsageDetail_20' ) start [2025-04-26 10:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993728', 'tblTempUsageDetail_20' ) end [2025-04-26 10:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993728', 'tblTempVendorCDR_20' ) start [2025-04-26 10:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993728', 'tblTempVendorCDR_20' ) end [2025-04-26 10:40:19] Production.INFO: ProcessCDR(1,14993728,1,1,2) [2025-04-26 10:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993728', 'tblTempUsageDetail_20' ) start [2025-04-26 10:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993728', 'tblTempUsageDetail_20' ) end [2025-04-26 10:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 10:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 10:40:22] Production.INFO: ==5240== Releasing lock... [2025-04-26 10:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 10:40:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-26 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 07:41:05 [end_date_ymd] => 2025-04-26 10:41:05 [RateCDR] => 1 ) [2025-04-26 10:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 07:41:05' and `end` < '2025-04-26 10:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 10:41:18] Production.INFO: count ==1005 [2025-04-26 10:41:18] Production.ERROR: pbx CDR StartTime 2025-04-26 07:41:05 - End Time 2025-04-26 10:41:05 [2025-04-26 10:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 10:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993733', 'tblTempUsageDetail_20' ) start [2025-04-26 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993733', 'tblTempUsageDetail_20' ) end [2025-04-26 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993733', 'tblTempVendorCDR_20' ) start [2025-04-26 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993733', 'tblTempVendorCDR_20' ) end [2025-04-26 10:41:19] Production.INFO: ProcessCDR(1,14993733,1,1,2) [2025-04-26 10:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993733', 'tblTempUsageDetail_20' ) start [2025-04-26 10:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993733', 'tblTempUsageDetail_20' ) end [2025-04-26 10:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 10:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 10:41:22] Production.INFO: ==5317== Releasing lock... [2025-04-26 10:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 10:41:22] Production.INFO: 36 MB #Memory Used# [2025-04-26 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 07:42:05 [end_date_ymd] => 2025-04-26 10:42:05 [RateCDR] => 1 ) [2025-04-26 10:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 07:42:05' and `end` < '2025-04-26 10:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 10:42:18] Production.INFO: count ==1012 [2025-04-26 10:42:18] Production.ERROR: pbx CDR StartTime 2025-04-26 07:42:05 - End Time 2025-04-26 10:42:05 [2025-04-26 10:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993738', 'tblTempUsageDetail_20' ) start [2025-04-26 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993738', 'tblTempUsageDetail_20' ) end [2025-04-26 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993738', 'tblTempVendorCDR_20' ) start [2025-04-26 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993738', 'tblTempVendorCDR_20' ) end [2025-04-26 10:42:18] Production.INFO: ProcessCDR(1,14993738,1,1,2) [2025-04-26 10:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993738', 'tblTempUsageDetail_20' ) start [2025-04-26 10:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993738', 'tblTempUsageDetail_20' ) end [2025-04-26 10:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 10:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 10:42:23] Production.INFO: ==5389== Releasing lock... [2025-04-26 10:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 10:42:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-26 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 07:43:05 [end_date_ymd] => 2025-04-26 10:43:05 [RateCDR] => 1 ) [2025-04-26 10:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 07:43:05' and `end` < '2025-04-26 10:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 10:43:18] Production.INFO: count ==1016 [2025-04-26 10:43:19] Production.ERROR: pbx CDR StartTime 2025-04-26 07:43:05 - End Time 2025-04-26 10:43:05 [2025-04-26 10:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993743', 'tblTempUsageDetail_20' ) start [2025-04-26 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993743', 'tblTempUsageDetail_20' ) end [2025-04-26 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993743', 'tblTempVendorCDR_20' ) start [2025-04-26 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993743', 'tblTempVendorCDR_20' ) end [2025-04-26 10:43:19] Production.INFO: ProcessCDR(1,14993743,1,1,2) [2025-04-26 10:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993743', 'tblTempUsageDetail_20' ) start [2025-04-26 10:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993743', 'tblTempUsageDetail_20' ) end [2025-04-26 10:43:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 10:43:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 10:43:24] Production.INFO: ==5468== Releasing lock... [2025-04-26 10:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 10:43:24] Production.INFO: 36.5 MB #Memory Used# [2025-04-26 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 07:44:05 [end_date_ymd] => 2025-04-26 10:44:05 [RateCDR] => 1 ) [2025-04-26 10:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 07:44:05' and `end` < '2025-04-26 10:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 10:44:18] Production.INFO: count ==1020 [2025-04-26 10:44:18] Production.ERROR: pbx CDR StartTime 2025-04-26 07:44:05 - End Time 2025-04-26 10:44:05 [2025-04-26 10:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 10:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993748', 'tblTempUsageDetail_20' ) start [2025-04-26 10:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993748', 'tblTempUsageDetail_20' ) end [2025-04-26 10:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993748', 'tblTempVendorCDR_20' ) start [2025-04-26 10:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993748', 'tblTempVendorCDR_20' ) end [2025-04-26 10:44:18] Production.INFO: ProcessCDR(1,14993748,1,1,2) [2025-04-26 10:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993748', 'tblTempUsageDetail_20' ) start [2025-04-26 10:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993748', 'tblTempUsageDetail_20' ) end [2025-04-26 10:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 10:44:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 10:44:24] Production.INFO: ==5550== Releasing lock... [2025-04-26 10:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 10:44:24] Production.INFO: 36.5 MB #Memory Used# [2025-04-26 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 07:45:05 [end_date_ymd] => 2025-04-26 10:45:05 [RateCDR] => 1 ) [2025-04-26 10:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 07:45:05' and `end` < '2025-04-26 10:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 10:45:18] Production.INFO: count ==1032 [2025-04-26 10:45:18] Production.ERROR: pbx CDR StartTime 2025-04-26 07:45:05 - End Time 2025-04-26 10:45:05 [2025-04-26 10:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993753', 'tblTempUsageDetail_20' ) start [2025-04-26 10:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993753', 'tblTempUsageDetail_20' ) end [2025-04-26 10:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993753', 'tblTempVendorCDR_20' ) start [2025-04-26 10:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993753', 'tblTempVendorCDR_20' ) end [2025-04-26 10:45:19] Production.INFO: ProcessCDR(1,14993753,1,1,2) [2025-04-26 10:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993753', 'tblTempUsageDetail_20' ) start [2025-04-26 10:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993753', 'tblTempUsageDetail_20' ) end [2025-04-26 10:45:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 10:45:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 10:45:23] Production.INFO: ==5676== Releasing lock... [2025-04-26 10:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 10:45:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-26 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 07:46:05 [end_date_ymd] => 2025-04-26 10:46:05 [RateCDR] => 1 ) [2025-04-26 10:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 07:46:05' and `end` < '2025-04-26 10:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 10:46:18] Production.INFO: count ==1042 [2025-04-26 10:46:18] Production.ERROR: pbx CDR StartTime 2025-04-26 07:46:05 - End Time 2025-04-26 10:46:05 [2025-04-26 10:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993758', 'tblTempUsageDetail_20' ) start [2025-04-26 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993758', 'tblTempUsageDetail_20' ) end [2025-04-26 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993758', 'tblTempVendorCDR_20' ) start [2025-04-26 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993758', 'tblTempVendorCDR_20' ) end [2025-04-26 10:46:18] Production.INFO: ProcessCDR(1,14993758,1,1,2) [2025-04-26 10:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993758', 'tblTempUsageDetail_20' ) start [2025-04-26 10:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993758', 'tblTempUsageDetail_20' ) end [2025-04-26 10:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 10:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 10:46:21] Production.INFO: ==5762== Releasing lock... [2025-04-26 10:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 10:46:21] Production.INFO: 36.25 MB #Memory Used# [2025-04-26 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 07:47:05 [end_date_ymd] => 2025-04-26 10:47:05 [RateCDR] => 1 ) [2025-04-26 10:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 07:47:05' and `end` < '2025-04-26 10:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 10:47:18] Production.INFO: count ==1043 [2025-04-26 10:47:18] Production.ERROR: pbx CDR StartTime 2025-04-26 07:47:05 - End Time 2025-04-26 10:47:05 [2025-04-26 10:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 10:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993763', 'tblTempUsageDetail_20' ) start [2025-04-26 10:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993763', 'tblTempUsageDetail_20' ) end [2025-04-26 10:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993763', 'tblTempVendorCDR_20' ) start [2025-04-26 10:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993763', 'tblTempVendorCDR_20' ) end [2025-04-26 10:47:18] Production.INFO: ProcessCDR(1,14993763,1,1,2) [2025-04-26 10:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993763', 'tblTempUsageDetail_20' ) start [2025-04-26 10:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993763', 'tblTempUsageDetail_20' ) end [2025-04-26 10:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 10:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 10:47:22] Production.INFO: ==5847== Releasing lock... [2025-04-26 10:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 10:47:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-26 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 07:48:05 [end_date_ymd] => 2025-04-26 10:48:05 [RateCDR] => 1 ) [2025-04-26 10:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 07:48:05' and `end` < '2025-04-26 10:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 10:48:18] Production.INFO: count ==1044 [2025-04-26 10:48:19] Production.ERROR: pbx CDR StartTime 2025-04-26 07:48:05 - End Time 2025-04-26 10:48:05 [2025-04-26 10:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993768', 'tblTempUsageDetail_20' ) start [2025-04-26 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993768', 'tblTempUsageDetail_20' ) end [2025-04-26 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993768', 'tblTempVendorCDR_20' ) start [2025-04-26 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993768', 'tblTempVendorCDR_20' ) end [2025-04-26 10:48:19] Production.INFO: ProcessCDR(1,14993768,1,1,2) [2025-04-26 10:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993768', 'tblTempUsageDetail_20' ) start [2025-04-26 10:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993768', 'tblTempUsageDetail_20' ) end [2025-04-26 10:48:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 10:48:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 10:48:24] Production.INFO: ==5931== Releasing lock... [2025-04-26 10:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 10:48:24] Production.INFO: 36.5 MB #Memory Used# [2025-04-26 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 07:49:05 [end_date_ymd] => 2025-04-26 10:49:05 [RateCDR] => 1 ) [2025-04-26 10:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 07:49:05' and `end` < '2025-04-26 10:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 10:49:18] Production.INFO: count ==1047 [2025-04-26 10:49:18] Production.ERROR: pbx CDR StartTime 2025-04-26 07:49:05 - End Time 2025-04-26 10:49:05 [2025-04-26 10:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993773', 'tblTempUsageDetail_20' ) start [2025-04-26 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993773', 'tblTempUsageDetail_20' ) end [2025-04-26 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993773', 'tblTempVendorCDR_20' ) start [2025-04-26 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993773', 'tblTempVendorCDR_20' ) end [2025-04-26 10:49:18] Production.INFO: ProcessCDR(1,14993773,1,1,2) [2025-04-26 10:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993773', 'tblTempUsageDetail_20' ) start [2025-04-26 10:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993773', 'tblTempUsageDetail_20' ) end [2025-04-26 10:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 10:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 10:49:23] Production.INFO: ==6018== Releasing lock... [2025-04-26 10:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 10:49:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-26 10:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 07:50:07 [end_date_ymd] => 2025-04-26 10:50:07 [RateCDR] => 1 ) [2025-04-26 10:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 07:50:07' and `end` < '2025-04-26 10:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 10:50:20] Production.INFO: count ==1065 [2025-04-26 10:50:20] Production.ERROR: pbx CDR StartTime 2025-04-26 07:50:07 - End Time 2025-04-26 10:50:07 [2025-04-26 10:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993779', 'tblTempUsageDetail_20' ) start [2025-04-26 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993779', 'tblTempUsageDetail_20' ) end [2025-04-26 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993779', 'tblTempVendorCDR_20' ) start [2025-04-26 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993779', 'tblTempVendorCDR_20' ) end [2025-04-26 10:50:20] Production.INFO: ProcessCDR(1,14993779,1,1,2) [2025-04-26 10:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993779', 'tblTempUsageDetail_20' ) start [2025-04-26 10:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993779', 'tblTempUsageDetail_20' ) end [2025-04-26 10:50:25] Production.ERROR: pbx prc_insertCDR start [2025-04-26 10:50:25] Production.ERROR: pbx prc_insertCDR end [2025-04-26 10:50:25] Production.INFO: ==6093== Releasing lock... [2025-04-26 10:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 10:50:25] Production.INFO: 36.5 MB #Memory Used# [2025-04-26 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 07:51:05 [end_date_ymd] => 2025-04-26 10:51:05 [RateCDR] => 1 ) [2025-04-26 10:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 07:51:05' and `end` < '2025-04-26 10:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 10:51:18] Production.INFO: count ==1091 [2025-04-26 10:51:18] Production.ERROR: pbx CDR StartTime 2025-04-26 07:51:05 - End Time 2025-04-26 10:51:05 [2025-04-26 10:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 10:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993784', 'tblTempUsageDetail_20' ) start [2025-04-26 10:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993784', 'tblTempUsageDetail_20' ) end [2025-04-26 10:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993784', 'tblTempVendorCDR_20' ) start [2025-04-26 10:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993784', 'tblTempVendorCDR_20' ) end [2025-04-26 10:51:18] Production.INFO: ProcessCDR(1,14993784,1,1,2) [2025-04-26 10:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993784', 'tblTempUsageDetail_20' ) start [2025-04-26 10:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993784', 'tblTempUsageDetail_20' ) end [2025-04-26 10:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 10:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 10:51:23] Production.INFO: ==6171== Releasing lock... [2025-04-26 10:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 10:51:23] Production.INFO: 36.5 MB #Memory Used# [2025-04-26 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 07:52:05 [end_date_ymd] => 2025-04-26 10:52:05 [RateCDR] => 1 ) [2025-04-26 10:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 07:52:05' and `end` < '2025-04-26 10:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 10:52:18] Production.INFO: count ==1102 [2025-04-26 10:52:19] Production.ERROR: pbx CDR StartTime 2025-04-26 07:52:05 - End Time 2025-04-26 10:52:05 [2025-04-26 10:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993789', 'tblTempUsageDetail_20' ) start [2025-04-26 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993789', 'tblTempUsageDetail_20' ) end [2025-04-26 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993789', 'tblTempVendorCDR_20' ) start [2025-04-26 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993789', 'tblTempVendorCDR_20' ) end [2025-04-26 10:52:19] Production.INFO: ProcessCDR(1,14993789,1,1,2) [2025-04-26 10:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993789', 'tblTempUsageDetail_20' ) start [2025-04-26 10:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993789', 'tblTempUsageDetail_20' ) end [2025-04-26 10:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 10:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 10:52:22] Production.INFO: ==6244== Releasing lock... [2025-04-26 10:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 10:52:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-26 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 07:53:05 [end_date_ymd] => 2025-04-26 10:53:05 [RateCDR] => 1 ) [2025-04-26 10:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 07:53:05' and `end` < '2025-04-26 10:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 10:53:18] Production.INFO: count ==1120 [2025-04-26 10:53:18] Production.ERROR: pbx CDR StartTime 2025-04-26 07:53:05 - End Time 2025-04-26 10:53:05 [2025-04-26 10:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 10:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993794', 'tblTempUsageDetail_20' ) start [2025-04-26 10:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993794', 'tblTempUsageDetail_20' ) end [2025-04-26 10:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993794', 'tblTempVendorCDR_20' ) start [2025-04-26 10:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993794', 'tblTempVendorCDR_20' ) end [2025-04-26 10:53:18] Production.INFO: ProcessCDR(1,14993794,1,1,2) [2025-04-26 10:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993794', 'tblTempUsageDetail_20' ) start [2025-04-26 10:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993794', 'tblTempUsageDetail_20' ) end [2025-04-26 10:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 10:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 10:53:21] Production.INFO: ==6319== Releasing lock... [2025-04-26 10:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 10:53:21] Production.INFO: 37.25 MB #Memory Used# [2025-04-26 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 07:54:05 [end_date_ymd] => 2025-04-26 10:54:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 07:54:05' and `end` < '2025-04-26 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-04-26 10:54:18] Production.INFO: count ==1132 [2025-04-26 10:54:19] Production.ERROR: pbx CDR StartTime 2025-04-26 07:54:05 - End Time 2025-04-26 10:54:05 [2025-04-26 10:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 10:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993799', 'tblTempUsageDetail_20' ) start [2025-04-26 10:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993799', 'tblTempUsageDetail_20' ) end [2025-04-26 10:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993799', 'tblTempVendorCDR_20' ) start [2025-04-26 10:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993799', 'tblTempVendorCDR_20' ) end [2025-04-26 10:54:19] Production.INFO: ProcessCDR(1,14993799,1,1,2) [2025-04-26 10:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993799', 'tblTempUsageDetail_20' ) start [2025-04-26 10:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993799', 'tblTempUsageDetail_20' ) end [2025-04-26 10:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 10:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 10:54:23] Production.INFO: ==6394== Releasing lock... [2025-04-26 10:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 10:54:23] Production.INFO: 36.5 MB #Memory Used# [2025-04-26 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 07:55:05 [end_date_ymd] => 2025-04-26 10:55:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 07:55:05' and `end` < '2025-04-26 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-04-26 10:55:18] Production.INFO: count ==1148 [2025-04-26 10:55:18] Production.ERROR: pbx CDR StartTime 2025-04-26 07:55:05 - End Time 2025-04-26 10:55:05 [2025-04-26 10:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993804', 'tblTempUsageDetail_20' ) start [2025-04-26 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993804', 'tblTempUsageDetail_20' ) end [2025-04-26 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993804', 'tblTempVendorCDR_20' ) start [2025-04-26 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993804', 'tblTempVendorCDR_20' ) end [2025-04-26 10:55:18] Production.INFO: ProcessCDR(1,14993804,1,1,2) [2025-04-26 10:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993804', 'tblTempUsageDetail_20' ) start [2025-04-26 10:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993804', 'tblTempUsageDetail_20' ) end [2025-04-26 10:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 10:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 10:55:23] Production.INFO: ==6469== Releasing lock... [2025-04-26 10:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 10:55:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-26 10:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 07:56:06 [end_date_ymd] => 2025-04-26 10:56:06 [RateCDR] => 1 ) [2025-04-26 10:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 07:56:06' and `end` < '2025-04-26 10:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 10:56:18] Production.INFO: count ==1152 [2025-04-26 10:56:19] Production.ERROR: pbx CDR StartTime 2025-04-26 07:56:06 - End Time 2025-04-26 10:56:06 [2025-04-26 10:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993809', 'tblTempUsageDetail_20' ) start [2025-04-26 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993809', 'tblTempUsageDetail_20' ) end [2025-04-26 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993809', 'tblTempVendorCDR_20' ) start [2025-04-26 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993809', 'tblTempVendorCDR_20' ) end [2025-04-26 10:56:19] Production.INFO: ProcessCDR(1,14993809,1,1,2) [2025-04-26 10:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993809', 'tblTempUsageDetail_20' ) start [2025-04-26 10:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993809', 'tblTempUsageDetail_20' ) end [2025-04-26 10:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 10:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 10:56:22] Production.INFO: ==6546== Releasing lock... [2025-04-26 10:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 10:56:22] Production.INFO: 37 MB #Memory Used# [2025-04-26 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 07:57:05 [end_date_ymd] => 2025-04-26 10:57:05 [RateCDR] => 1 ) [2025-04-26 10:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 07:57:05' and `end` < '2025-04-26 10:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 10:57:18] Production.INFO: count ==1160 [2025-04-26 10:57:18] Production.ERROR: pbx CDR StartTime 2025-04-26 07:57:05 - End Time 2025-04-26 10:57:05 [2025-04-26 10:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 10:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993814', 'tblTempUsageDetail_20' ) start [2025-04-26 10:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993814', 'tblTempUsageDetail_20' ) end [2025-04-26 10:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993814', 'tblTempVendorCDR_20' ) start [2025-04-26 10:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993814', 'tblTempVendorCDR_20' ) end [2025-04-26 10:57:18] Production.INFO: ProcessCDR(1,14993814,1,1,2) [2025-04-26 10:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993814', 'tblTempUsageDetail_20' ) start [2025-04-26 10:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993814', 'tblTempUsageDetail_20' ) end [2025-04-26 10:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 10:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 10:57:22] Production.INFO: ==6616== Releasing lock... [2025-04-26 10:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 10:57:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-26 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 07:58:05 [end_date_ymd] => 2025-04-26 10:58:05 [RateCDR] => 1 ) [2025-04-26 10:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 07:58:05' and `end` < '2025-04-26 10:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 10:58:18] Production.INFO: count ==1170 [2025-04-26 10:58:19] Production.ERROR: pbx CDR StartTime 2025-04-26 07:58:05 - End Time 2025-04-26 10:58:05 [2025-04-26 10:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993819', 'tblTempUsageDetail_20' ) start [2025-04-26 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993819', 'tblTempUsageDetail_20' ) end [2025-04-26 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993819', 'tblTempVendorCDR_20' ) start [2025-04-26 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993819', 'tblTempVendorCDR_20' ) end [2025-04-26 10:58:19] Production.INFO: ProcessCDR(1,14993819,1,1,2) [2025-04-26 10:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993819', 'tblTempUsageDetail_20' ) start [2025-04-26 10:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993819', 'tblTempUsageDetail_20' ) end [2025-04-26 10:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 10:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 10:58:23] Production.INFO: ==6687== Releasing lock... [2025-04-26 10:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 10:58:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-26 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 07:59:05 [end_date_ymd] => 2025-04-26 10:59:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 07:59:05' and `end` < '2025-04-26 10:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 10:59:17] Production.INFO: count ==1178 [2025-04-26 10:59:18] Production.ERROR: pbx CDR StartTime 2025-04-26 07:59:05 - End Time 2025-04-26 10:59:05 [2025-04-26 10:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 10:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993824', 'tblTempUsageDetail_20' ) start [2025-04-26 10:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993824', 'tblTempUsageDetail_20' ) end [2025-04-26 10:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993824', 'tblTempVendorCDR_20' ) start [2025-04-26 10:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993824', 'tblTempVendorCDR_20' ) end [2025-04-26 10:59:18] Production.INFO: ProcessCDR(1,14993824,1,1,2) [2025-04-26 10:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 10:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 10:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993824', 'tblTempUsageDetail_20' ) start [2025-04-26 10:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993824', 'tblTempUsageDetail_20' ) end [2025-04-26 10:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 10:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 10:59:23] Production.INFO: ==6760== Releasing lock... [2025-04-26 10:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 10:59:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-26 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 08:00:06 [end_date_ymd] => 2025-04-26 11:00:06 [RateCDR] => 1 ) [2025-04-26 11:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 08:00:06' and `end` < '2025-04-26 11:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 11:00:19] Production.INFO: count ==1191 [2025-04-26 11:00:19] Production.ERROR: pbx CDR StartTime 2025-04-26 08:00:06 - End Time 2025-04-26 11:00:06 [2025-04-26 11:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993830', 'tblTempUsageDetail_20' ) start [2025-04-26 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993830', 'tblTempUsageDetail_20' ) end [2025-04-26 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993830', 'tblTempVendorCDR_20' ) start [2025-04-26 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993830', 'tblTempVendorCDR_20' ) end [2025-04-26 11:00:19] Production.INFO: ProcessCDR(1,14993830,1,1,2) [2025-04-26 11:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993830', 'tblTempUsageDetail_20' ) start [2025-04-26 11:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993830', 'tblTempUsageDetail_20' ) end [2025-04-26 11:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 11:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 11:00:23] Production.INFO: ==6880== Releasing lock... [2025-04-26 11:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 11:00:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-26 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 08:01:05 [end_date_ymd] => 2025-04-26 11:01:05 [RateCDR] => 1 ) [2025-04-26 11:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 08:01:05' and `end` < '2025-04-26 11:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 11:01:17] Production.INFO: count ==1230 [2025-04-26 11:01:18] Production.ERROR: pbx CDR StartTime 2025-04-26 08:01:05 - End Time 2025-04-26 11:01:05 [2025-04-26 11:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993835', 'tblTempUsageDetail_20' ) start [2025-04-26 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993835', 'tblTempUsageDetail_20' ) end [2025-04-26 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993835', 'tblTempVendorCDR_20' ) start [2025-04-26 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993835', 'tblTempVendorCDR_20' ) end [2025-04-26 11:01:18] Production.INFO: ProcessCDR(1,14993835,1,1,2) [2025-04-26 11:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993835', 'tblTempUsageDetail_20' ) start [2025-04-26 11:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993835', 'tblTempUsageDetail_20' ) end [2025-04-26 11:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 11:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 11:01:23] Production.INFO: ==7006== Releasing lock... [2025-04-26 11:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 11:01:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-26 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 08:02:05 [end_date_ymd] => 2025-04-26 11:02:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 08:02:05' and `end` < '2025-04-26 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-04-26 11:02:18] Production.INFO: count ==1233 [2025-04-26 11:02:19] Production.ERROR: pbx CDR StartTime 2025-04-26 08:02:05 - End Time 2025-04-26 11:02:05 [2025-04-26 11:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 11:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993840', 'tblTempUsageDetail_20' ) start [2025-04-26 11:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993840', 'tblTempUsageDetail_20' ) end [2025-04-26 11:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993840', 'tblTempVendorCDR_20' ) start [2025-04-26 11:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993840', 'tblTempVendorCDR_20' ) end [2025-04-26 11:02:19] Production.INFO: ProcessCDR(1,14993840,1,1,2) [2025-04-26 11:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993840', 'tblTempUsageDetail_20' ) start [2025-04-26 11:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993840', 'tblTempUsageDetail_20' ) end [2025-04-26 11:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 11:02:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 11:02:24] Production.INFO: ==7126== Releasing lock... [2025-04-26 11:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 11:02:24] Production.INFO: 37.75 MB #Memory Used# [2025-04-26 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 08:03:05 [end_date_ymd] => 2025-04-26 11:03:05 [RateCDR] => 1 ) [2025-04-26 11:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 08:03:05' and `end` < '2025-04-26 11:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 11:03:18] Production.INFO: count ==1239 [2025-04-26 11:03:18] Production.ERROR: pbx CDR StartTime 2025-04-26 08:03:05 - End Time 2025-04-26 11:03:05 [2025-04-26 11:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 11:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993845', 'tblTempUsageDetail_20' ) start [2025-04-26 11:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993845', 'tblTempUsageDetail_20' ) end [2025-04-26 11:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993845', 'tblTempVendorCDR_20' ) start [2025-04-26 11:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993845', 'tblTempVendorCDR_20' ) end [2025-04-26 11:03:18] Production.INFO: ProcessCDR(1,14993845,1,1,2) [2025-04-26 11:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993845', 'tblTempUsageDetail_20' ) start [2025-04-26 11:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993845', 'tblTempUsageDetail_20' ) end [2025-04-26 11:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 11:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 11:03:23] Production.INFO: ==7195== Releasing lock... [2025-04-26 11:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 11:03:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-26 11:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 08:04:05 [end_date_ymd] => 2025-04-26 11:04:05 [RateCDR] => 1 ) [2025-04-26 11:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 08:04:05' and `end` < '2025-04-26 11:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 11:04:18] Production.INFO: count ==1248 [2025-04-26 11:04:18] Production.ERROR: pbx CDR StartTime 2025-04-26 08:04:05 - End Time 2025-04-26 11:04:05 [2025-04-26 11:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 11:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993850', 'tblTempUsageDetail_20' ) start [2025-04-26 11:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993850', 'tblTempUsageDetail_20' ) end [2025-04-26 11:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993850', 'tblTempVendorCDR_20' ) start [2025-04-26 11:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993850', 'tblTempVendorCDR_20' ) end [2025-04-26 11:04:18] Production.INFO: ProcessCDR(1,14993850,1,1,2) [2025-04-26 11:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993850', 'tblTempUsageDetail_20' ) start [2025-04-26 11:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993850', 'tblTempUsageDetail_20' ) end [2025-04-26 11:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 11:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 11:04:23] Production.INFO: ==7271== Releasing lock... [2025-04-26 11:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 11:04:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-26 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 08:05:05 [end_date_ymd] => 2025-04-26 11:05:05 [RateCDR] => 1 ) [2025-04-26 11:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 08:05:05' and `end` < '2025-04-26 11:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 11:05:18] Production.INFO: count ==1261 [2025-04-26 11:05:19] Production.ERROR: pbx CDR StartTime 2025-04-26 08:05:05 - End Time 2025-04-26 11:05:05 [2025-04-26 11:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 11:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993855', 'tblTempUsageDetail_20' ) start [2025-04-26 11:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993855', 'tblTempUsageDetail_20' ) end [2025-04-26 11:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993855', 'tblTempVendorCDR_20' ) start [2025-04-26 11:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993855', 'tblTempVendorCDR_20' ) end [2025-04-26 11:05:19] Production.INFO: ProcessCDR(1,14993855,1,1,2) [2025-04-26 11:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993855', 'tblTempUsageDetail_20' ) start [2025-04-26 11:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993855', 'tblTempUsageDetail_20' ) end [2025-04-26 11:05:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 11:05:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 11:05:24] Production.INFO: ==7421== Releasing lock... [2025-04-26 11:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 11:05:24] Production.INFO: 38 MB #Memory Used# [2025-04-26 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 08:06:05 [end_date_ymd] => 2025-04-26 11:06:05 [RateCDR] => 1 ) [2025-04-26 11:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 08:06:05' and `end` < '2025-04-26 11:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 11:06:18] Production.INFO: count ==1267 [2025-04-26 11:06:18] Production.ERROR: pbx CDR StartTime 2025-04-26 08:06:05 - End Time 2025-04-26 11:06:05 [2025-04-26 11:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993860', 'tblTempUsageDetail_20' ) start [2025-04-26 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993860', 'tblTempUsageDetail_20' ) end [2025-04-26 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993860', 'tblTempVendorCDR_20' ) start [2025-04-26 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993860', 'tblTempVendorCDR_20' ) end [2025-04-26 11:06:18] Production.INFO: ProcessCDR(1,14993860,1,1,2) [2025-04-26 11:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993860', 'tblTempUsageDetail_20' ) start [2025-04-26 11:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993860', 'tblTempUsageDetail_20' ) end [2025-04-26 11:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 11:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 11:06:23] Production.INFO: ==7499== Releasing lock... [2025-04-26 11:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 11:06:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-26 11:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 08:07:06 [end_date_ymd] => 2025-04-26 11:07:06 [RateCDR] => 1 ) [2025-04-26 11:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 08:07:06' and `end` < '2025-04-26 11:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 11:07:19] Production.INFO: count ==1268 [2025-04-26 11:07:19] Production.ERROR: pbx CDR StartTime 2025-04-26 08:07:06 - End Time 2025-04-26 11:07:06 [2025-04-26 11:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 11:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993865', 'tblTempUsageDetail_20' ) start [2025-04-26 11:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993865', 'tblTempUsageDetail_20' ) end [2025-04-26 11:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993865', 'tblTempVendorCDR_20' ) start [2025-04-26 11:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993865', 'tblTempVendorCDR_20' ) end [2025-04-26 11:07:19] Production.INFO: ProcessCDR(1,14993865,1,1,2) [2025-04-26 11:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993865', 'tblTempUsageDetail_20' ) start [2025-04-26 11:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993865', 'tblTempUsageDetail_20' ) end [2025-04-26 11:07:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 11:07:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 11:07:24] Production.INFO: ==7575== Releasing lock... [2025-04-26 11:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 11:07:24] Production.INFO: 37.5 MB #Memory Used# [2025-04-26 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 08:08:05 [end_date_ymd] => 2025-04-26 11:08:05 [RateCDR] => 1 ) [2025-04-26 11:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 08:08:05' and `end` < '2025-04-26 11:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 11:08:18] Production.INFO: count ==1264 [2025-04-26 11:08:18] Production.ERROR: pbx CDR StartTime 2025-04-26 08:08:05 - End Time 2025-04-26 11:08:05 [2025-04-26 11:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993870', 'tblTempUsageDetail_20' ) start [2025-04-26 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993870', 'tblTempUsageDetail_20' ) end [2025-04-26 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993870', 'tblTempVendorCDR_20' ) start [2025-04-26 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993870', 'tblTempVendorCDR_20' ) end [2025-04-26 11:08:18] Production.INFO: ProcessCDR(1,14993870,1,1,2) [2025-04-26 11:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993870', 'tblTempUsageDetail_20' ) start [2025-04-26 11:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993870', 'tblTempUsageDetail_20' ) end [2025-04-26 11:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 11:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 11:08:22] Production.INFO: ==7725== Releasing lock... [2025-04-26 11:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 11:08:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-26 11:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 08:09:06 [end_date_ymd] => 2025-04-26 11:09:06 [RateCDR] => 1 ) [2025-04-26 11:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 08:09:06' and `end` < '2025-04-26 11:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 11:09:19] Production.INFO: count ==1264 [2025-04-26 11:09:19] Production.ERROR: pbx CDR StartTime 2025-04-26 08:09:06 - End Time 2025-04-26 11:09:06 [2025-04-26 11:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 11:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993875', 'tblTempUsageDetail_20' ) start [2025-04-26 11:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993875', 'tblTempUsageDetail_20' ) end [2025-04-26 11:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993875', 'tblTempVendorCDR_20' ) start [2025-04-26 11:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993875', 'tblTempVendorCDR_20' ) end [2025-04-26 11:09:19] Production.INFO: ProcessCDR(1,14993875,1,1,2) [2025-04-26 11:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993875', 'tblTempUsageDetail_20' ) start [2025-04-26 11:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993875', 'tblTempUsageDetail_20' ) end [2025-04-26 11:09:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 11:09:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 11:09:24] Production.INFO: ==7797== Releasing lock... [2025-04-26 11:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 11:09:24] Production.INFO: 37.75 MB #Memory Used# [2025-04-26 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 08:10:06 [end_date_ymd] => 2025-04-26 11:10:06 [RateCDR] => 1 ) [2025-04-26 11:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 08:10:06' and `end` < '2025-04-26 11:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 11:10:19] Production.INFO: count ==1265 [2025-04-26 11:10:19] Production.ERROR: pbx CDR StartTime 2025-04-26 08:10:06 - End Time 2025-04-26 11:10:06 [2025-04-26 11:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993881', 'tblTempUsageDetail_20' ) start [2025-04-26 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993881', 'tblTempUsageDetail_20' ) end [2025-04-26 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993881', 'tblTempVendorCDR_20' ) start [2025-04-26 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993881', 'tblTempVendorCDR_20' ) end [2025-04-26 11:10:19] Production.INFO: ProcessCDR(1,14993881,1,1,2) [2025-04-26 11:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993881', 'tblTempUsageDetail_20' ) start [2025-04-26 11:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993881', 'tblTempUsageDetail_20' ) end [2025-04-26 11:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 11:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 11:10:24] Production.INFO: ==7877== Releasing lock... [2025-04-26 11:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 11:10:24] Production.INFO: 38 MB #Memory Used# [2025-04-26 11:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 08:11:06 [end_date_ymd] => 2025-04-26 11:11:06 [RateCDR] => 1 ) [2025-04-26 11:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 08:11:06' and `end` < '2025-04-26 11:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 11:11:18] Production.INFO: count ==1313 [2025-04-26 11:11:19] Production.ERROR: pbx CDR StartTime 2025-04-26 08:11:06 - End Time 2025-04-26 11:11:06 [2025-04-26 11:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993886', 'tblTempUsageDetail_20' ) start [2025-04-26 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993886', 'tblTempUsageDetail_20' ) end [2025-04-26 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993886', 'tblTempVendorCDR_20' ) start [2025-04-26 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993886', 'tblTempVendorCDR_20' ) end [2025-04-26 11:11:19] Production.INFO: ProcessCDR(1,14993886,1,1,2) [2025-04-26 11:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993886', 'tblTempUsageDetail_20' ) start [2025-04-26 11:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993886', 'tblTempUsageDetail_20' ) end [2025-04-26 11:11:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 11:11:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 11:11:24] Production.INFO: ==7956== Releasing lock... [2025-04-26 11:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 11:11:24] Production.INFO: 38.25 MB #Memory Used# [2025-04-26 11:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 08:12:04 [end_date_ymd] => 2025-04-26 11:12:04 [RateCDR] => 1 ) [2025-04-26 11:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 08:12:04' and `end` < '2025-04-26 11:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 11:12:17] Production.INFO: count ==1319 [2025-04-26 11:12:18] Production.ERROR: pbx CDR StartTime 2025-04-26 08:12:04 - End Time 2025-04-26 11:12:04 [2025-04-26 11:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 11:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993891', 'tblTempUsageDetail_20' ) start [2025-04-26 11:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993891', 'tblTempUsageDetail_20' ) end [2025-04-26 11:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993891', 'tblTempVendorCDR_20' ) start [2025-04-26 11:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993891', 'tblTempVendorCDR_20' ) end [2025-04-26 11:12:18] Production.INFO: ProcessCDR(1,14993891,1,1,2) [2025-04-26 11:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993891', 'tblTempUsageDetail_20' ) start [2025-04-26 11:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993891', 'tblTempUsageDetail_20' ) end [2025-04-26 11:12:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 11:12:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 11:12:23] Production.INFO: ==8109== Releasing lock... [2025-04-26 11:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 11:12:23] Production.INFO: 38.25 MB #Memory Used# [2025-04-26 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 08:13:05 [end_date_ymd] => 2025-04-26 11:13:05 [RateCDR] => 1 ) [2025-04-26 11:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 08:13:05' and `end` < '2025-04-26 11:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 11:13:18] Production.INFO: count ==1319 [2025-04-26 11:13:18] Production.ERROR: pbx CDR StartTime 2025-04-26 08:13:05 - End Time 2025-04-26 11:13:05 [2025-04-26 11:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993896', 'tblTempUsageDetail_20' ) start [2025-04-26 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993896', 'tblTempUsageDetail_20' ) end [2025-04-26 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993896', 'tblTempVendorCDR_20' ) start [2025-04-26 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993896', 'tblTempVendorCDR_20' ) end [2025-04-26 11:13:18] Production.INFO: ProcessCDR(1,14993896,1,1,2) [2025-04-26 11:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993896', 'tblTempUsageDetail_20' ) start [2025-04-26 11:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993896', 'tblTempUsageDetail_20' ) end [2025-04-26 11:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 11:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 11:13:22] Production.INFO: ==8185== Releasing lock... [2025-04-26 11:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 11:13:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-26 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 08:14:05 [end_date_ymd] => 2025-04-26 11:14:05 [RateCDR] => 1 ) [2025-04-26 11:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 08:14:05' and `end` < '2025-04-26 11:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 11:14:18] Production.INFO: count ==1322 [2025-04-26 11:14:19] Production.ERROR: pbx CDR StartTime 2025-04-26 08:14:05 - End Time 2025-04-26 11:14:05 [2025-04-26 11:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 11:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993901', 'tblTempUsageDetail_20' ) start [2025-04-26 11:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993901', 'tblTempUsageDetail_20' ) end [2025-04-26 11:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993901', 'tblTempVendorCDR_20' ) start [2025-04-26 11:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993901', 'tblTempVendorCDR_20' ) end [2025-04-26 11:14:19] Production.INFO: ProcessCDR(1,14993901,1,1,2) [2025-04-26 11:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993901', 'tblTempUsageDetail_20' ) start [2025-04-26 11:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993901', 'tblTempUsageDetail_20' ) end [2025-04-26 11:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 11:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 11:14:22] Production.INFO: ==8256== Releasing lock... [2025-04-26 11:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 11:14:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-26 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 08:15:05 [end_date_ymd] => 2025-04-26 11:15:05 [RateCDR] => 1 ) [2025-04-26 11:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 08:15:05' and `end` < '2025-04-26 11:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 11:15:18] Production.INFO: count ==1325 [2025-04-26 11:15:18] Production.ERROR: pbx CDR StartTime 2025-04-26 08:15:05 - End Time 2025-04-26 11:15:05 [2025-04-26 11:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 11:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993906', 'tblTempUsageDetail_20' ) start [2025-04-26 11:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993906', 'tblTempUsageDetail_20' ) end [2025-04-26 11:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993906', 'tblTempVendorCDR_20' ) start [2025-04-26 11:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993906', 'tblTempVendorCDR_20' ) end [2025-04-26 11:15:18] Production.INFO: ProcessCDR(1,14993906,1,1,2) [2025-04-26 11:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993906', 'tblTempUsageDetail_20' ) start [2025-04-26 11:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993906', 'tblTempUsageDetail_20' ) end [2025-04-26 11:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 11:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 11:15:23] Production.INFO: ==8407== Releasing lock... [2025-04-26 11:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 11:15:23] Production.INFO: 38.25 MB #Memory Used# [2025-04-26 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 08:16:05 [end_date_ymd] => 2025-04-26 11:16:05 [RateCDR] => 1 ) [2025-04-26 11:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 08:16:05' and `end` < '2025-04-26 11:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 11:16:18] Production.INFO: count ==1324 [2025-04-26 11:16:19] Production.ERROR: pbx CDR StartTime 2025-04-26 08:16:05 - End Time 2025-04-26 11:16:05 [2025-04-26 11:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 11:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993911', 'tblTempUsageDetail_20' ) start [2025-04-26 11:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993911', 'tblTempUsageDetail_20' ) end [2025-04-26 11:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993911', 'tblTempVendorCDR_20' ) start [2025-04-26 11:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993911', 'tblTempVendorCDR_20' ) end [2025-04-26 11:16:19] Production.INFO: ProcessCDR(1,14993911,1,1,2) [2025-04-26 11:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993911', 'tblTempUsageDetail_20' ) start [2025-04-26 11:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993911', 'tblTempUsageDetail_20' ) end [2025-04-26 11:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 11:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 11:16:22] Production.INFO: ==8522== Releasing lock... [2025-04-26 11:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 11:16:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-26 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 08:17:05 [end_date_ymd] => 2025-04-26 11:17:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 08:17:05' and `end` < '2025-04-26 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-04-26 11:17:18] Production.INFO: count ==1331 [2025-04-26 11:17:18] Production.ERROR: pbx CDR StartTime 2025-04-26 08:17:05 - End Time 2025-04-26 11:17:05 [2025-04-26 11:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993916', 'tblTempUsageDetail_20' ) start [2025-04-26 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993916', 'tblTempUsageDetail_20' ) end [2025-04-26 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993916', 'tblTempVendorCDR_20' ) start [2025-04-26 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993916', 'tblTempVendorCDR_20' ) end [2025-04-26 11:17:18] Production.INFO: ProcessCDR(1,14993916,1,1,2) [2025-04-26 11:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993916', 'tblTempUsageDetail_20' ) start [2025-04-26 11:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993916', 'tblTempUsageDetail_20' ) end [2025-04-26 11:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 11:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 11:17:23] Production.INFO: ==8597== Releasing lock... [2025-04-26 11:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 11:17:23] Production.INFO: 38.75 MB #Memory Used# [2025-04-26 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 08:18:05 [end_date_ymd] => 2025-04-26 11:18:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 08:18:05' and `end` < '2025-04-26 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-04-26 11:18:18] Production.INFO: count ==1332 [2025-04-26 11:18:19] Production.ERROR: pbx CDR StartTime 2025-04-26 08:18:05 - End Time 2025-04-26 11:18:05 [2025-04-26 11:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 11:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993921', 'tblTempUsageDetail_20' ) start [2025-04-26 11:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993921', 'tblTempUsageDetail_20' ) end [2025-04-26 11:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993921', 'tblTempVendorCDR_20' ) start [2025-04-26 11:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993921', 'tblTempVendorCDR_20' ) end [2025-04-26 11:18:19] Production.INFO: ProcessCDR(1,14993921,1,1,2) [2025-04-26 11:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993921', 'tblTempUsageDetail_20' ) start [2025-04-26 11:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993921', 'tblTempUsageDetail_20' ) end [2025-04-26 11:18:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 11:18:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 11:18:24] Production.INFO: ==8670== Releasing lock... [2025-04-26 11:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 11:18:24] Production.INFO: 38.5 MB #Memory Used# [2025-04-26 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 08:19:05 [end_date_ymd] => 2025-04-26 11:19:05 [RateCDR] => 1 ) [2025-04-26 11:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 08:19:05' and `end` < '2025-04-26 11:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 11:19:18] Production.INFO: count ==1333 [2025-04-26 11:19:18] Production.ERROR: pbx CDR StartTime 2025-04-26 08:19:05 - End Time 2025-04-26 11:19:05 [2025-04-26 11:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993926', 'tblTempUsageDetail_20' ) start [2025-04-26 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993926', 'tblTempUsageDetail_20' ) end [2025-04-26 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993926', 'tblTempVendorCDR_20' ) start [2025-04-26 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993926', 'tblTempVendorCDR_20' ) end [2025-04-26 11:19:18] Production.INFO: ProcessCDR(1,14993926,1,1,2) [2025-04-26 11:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993926', 'tblTempUsageDetail_20' ) start [2025-04-26 11:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993926', 'tblTempUsageDetail_20' ) end [2025-04-26 11:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 11:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 11:19:23] Production.INFO: ==8744== Releasing lock... [2025-04-26 11:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 11:19:23] Production.INFO: 38.25 MB #Memory Used# [2025-04-26 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 08:20:06 [end_date_ymd] => 2025-04-26 11:20:06 [RateCDR] => 1 ) [2025-04-26 11:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 08:20:06' and `end` < '2025-04-26 11:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 11:20:19] Production.INFO: count ==1344 [2025-04-26 11:20:19] Production.ERROR: pbx CDR StartTime 2025-04-26 08:20:06 - End Time 2025-04-26 11:20:06 [2025-04-26 11:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 11:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993932', 'tblTempUsageDetail_20' ) start [2025-04-26 11:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993932', 'tblTempUsageDetail_20' ) end [2025-04-26 11:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993932', 'tblTempVendorCDR_20' ) start [2025-04-26 11:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993932', 'tblTempVendorCDR_20' ) end [2025-04-26 11:20:19] Production.INFO: ProcessCDR(1,14993932,1,1,2) [2025-04-26 11:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993932', 'tblTempUsageDetail_20' ) start [2025-04-26 11:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993932', 'tblTempUsageDetail_20' ) end [2025-04-26 11:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 11:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 11:20:24] Production.INFO: ==8825== Releasing lock... [2025-04-26 11:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 11:20:24] Production.INFO: 38.5 MB #Memory Used# [2025-04-26 11:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 08:21:04 [end_date_ymd] => 2025-04-26 11:21:04 [RateCDR] => 1 ) [2025-04-26 11:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 08:21:04' and `end` < '2025-04-26 11:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 11:21:17] Production.INFO: count ==1364 [2025-04-26 11:21:18] Production.ERROR: pbx CDR StartTime 2025-04-26 08:21:04 - End Time 2025-04-26 11:21:04 [2025-04-26 11:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993937', 'tblTempUsageDetail_20' ) start [2025-04-26 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993937', 'tblTempUsageDetail_20' ) end [2025-04-26 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993937', 'tblTempVendorCDR_20' ) start [2025-04-26 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993937', 'tblTempVendorCDR_20' ) end [2025-04-26 11:21:18] Production.INFO: ProcessCDR(1,14993937,1,1,2) [2025-04-26 11:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993937', 'tblTempUsageDetail_20' ) start [2025-04-26 11:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993937', 'tblTempUsageDetail_20' ) end [2025-04-26 11:21:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 11:21:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 11:21:23] Production.INFO: ==8905== Releasing lock... [2025-04-26 11:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 11:21:23] Production.INFO: 38.5 MB #Memory Used# [2025-04-26 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 08:22:05 [end_date_ymd] => 2025-04-26 11:22:05 [RateCDR] => 1 ) [2025-04-26 11:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 08:22:05' and `end` < '2025-04-26 11:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 11:22:18] Production.INFO: count ==1368 [2025-04-26 11:22:19] Production.ERROR: pbx CDR StartTime 2025-04-26 08:22:05 - End Time 2025-04-26 11:22:05 [2025-04-26 11:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 11:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993942', 'tblTempUsageDetail_20' ) start [2025-04-26 11:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993942', 'tblTempUsageDetail_20' ) end [2025-04-26 11:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993942', 'tblTempVendorCDR_20' ) start [2025-04-26 11:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993942', 'tblTempVendorCDR_20' ) end [2025-04-26 11:22:19] Production.INFO: ProcessCDR(1,14993942,1,1,2) [2025-04-26 11:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993942', 'tblTempUsageDetail_20' ) start [2025-04-26 11:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993942', 'tblTempUsageDetail_20' ) end [2025-04-26 11:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 11:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 11:22:22] Production.INFO: ==8978== Releasing lock... [2025-04-26 11:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 11:22:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-26 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 08:23:05 [end_date_ymd] => 2025-04-26 11:23:05 [RateCDR] => 1 ) [2025-04-26 11:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 08:23:05' and `end` < '2025-04-26 11:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 11:23:17] Production.INFO: count ==1367 [2025-04-26 11:23:18] Production.ERROR: pbx CDR StartTime 2025-04-26 08:23:05 - End Time 2025-04-26 11:23:05 [2025-04-26 11:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 11:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993947', 'tblTempUsageDetail_20' ) start [2025-04-26 11:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993947', 'tblTempUsageDetail_20' ) end [2025-04-26 11:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993947', 'tblTempVendorCDR_20' ) start [2025-04-26 11:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993947', 'tblTempVendorCDR_20' ) end [2025-04-26 11:23:18] Production.INFO: ProcessCDR(1,14993947,1,1,2) [2025-04-26 11:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993947', 'tblTempUsageDetail_20' ) start [2025-04-26 11:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993947', 'tblTempUsageDetail_20' ) end [2025-04-26 11:23:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 11:23:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 11:23:23] Production.INFO: ==9056== Releasing lock... [2025-04-26 11:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 11:23:23] Production.INFO: 38.75 MB #Memory Used# [2025-04-26 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 08:24:05 [end_date_ymd] => 2025-04-26 11:24:05 [RateCDR] => 1 ) [2025-04-26 11:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 08:24:05' and `end` < '2025-04-26 11:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 11:24:18] Production.INFO: count ==1383 [2025-04-26 11:24:18] Production.ERROR: pbx CDR StartTime 2025-04-26 08:24:05 - End Time 2025-04-26 11:24:05 [2025-04-26 11:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 11:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993952', 'tblTempUsageDetail_20' ) start [2025-04-26 11:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993952', 'tblTempUsageDetail_20' ) end [2025-04-26 11:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993952', 'tblTempVendorCDR_20' ) start [2025-04-26 11:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993952', 'tblTempVendorCDR_20' ) end [2025-04-26 11:24:18] Production.INFO: ProcessCDR(1,14993952,1,1,2) [2025-04-26 11:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993952', 'tblTempUsageDetail_20' ) start [2025-04-26 11:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993952', 'tblTempUsageDetail_20' ) end [2025-04-26 11:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 11:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 11:24:23] Production.INFO: ==9130== Releasing lock... [2025-04-26 11:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 11:24:23] Production.INFO: 39 MB #Memory Used# [2025-04-26 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 08:25:05 [end_date_ymd] => 2025-04-26 11:25:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 08:25:05' and `end` < '2025-04-26 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-04-26 11:25:18] Production.INFO: count ==1392 [2025-04-26 11:25:18] Production.ERROR: pbx CDR StartTime 2025-04-26 08:25:05 - End Time 2025-04-26 11:25:05 [2025-04-26 11:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993957', 'tblTempUsageDetail_20' ) start [2025-04-26 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993957', 'tblTempUsageDetail_20' ) end [2025-04-26 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993957', 'tblTempVendorCDR_20' ) start [2025-04-26 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993957', 'tblTempVendorCDR_20' ) end [2025-04-26 11:25:18] Production.INFO: ProcessCDR(1,14993957,1,1,2) [2025-04-26 11:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993957', 'tblTempUsageDetail_20' ) start [2025-04-26 11:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993957', 'tblTempUsageDetail_20' ) end [2025-04-26 11:25:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 11:25:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 11:25:23] Production.INFO: ==9208== Releasing lock... [2025-04-26 11:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 11:25:23] Production.INFO: 39.5 MB #Memory Used# [2025-04-26 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 08:26:05 [end_date_ymd] => 2025-04-26 11:26:05 [RateCDR] => 1 ) [2025-04-26 11:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 08:26:05' and `end` < '2025-04-26 11:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 11:26:17] Production.INFO: count ==1392 [2025-04-26 11:26:18] Production.ERROR: pbx CDR StartTime 2025-04-26 08:26:05 - End Time 2025-04-26 11:26:05 [2025-04-26 11:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993962', 'tblTempUsageDetail_20' ) start [2025-04-26 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993962', 'tblTempUsageDetail_20' ) end [2025-04-26 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993962', 'tblTempVendorCDR_20' ) start [2025-04-26 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993962', 'tblTempVendorCDR_20' ) end [2025-04-26 11:26:18] Production.INFO: ProcessCDR(1,14993962,1,1,2) [2025-04-26 11:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993962', 'tblTempUsageDetail_20' ) start [2025-04-26 11:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993962', 'tblTempUsageDetail_20' ) end [2025-04-26 11:26:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 11:26:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 11:26:23] Production.INFO: ==9277== Releasing lock... [2025-04-26 11:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 11:26:23] Production.INFO: 38.5 MB #Memory Used# [2025-04-26 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 08:27:05 [end_date_ymd] => 2025-04-26 11:27:05 [RateCDR] => 1 ) [2025-04-26 11:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 08:27:05' and `end` < '2025-04-26 11:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 11:27:18] Production.INFO: count ==1392 [2025-04-26 11:27:19] Production.ERROR: pbx CDR StartTime 2025-04-26 08:27:05 - End Time 2025-04-26 11:27:05 [2025-04-26 11:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 11:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993967', 'tblTempUsageDetail_20' ) start [2025-04-26 11:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993967', 'tblTempUsageDetail_20' ) end [2025-04-26 11:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993967', 'tblTempVendorCDR_20' ) start [2025-04-26 11:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993967', 'tblTempVendorCDR_20' ) end [2025-04-26 11:27:19] Production.INFO: ProcessCDR(1,14993967,1,1,2) [2025-04-26 11:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993967', 'tblTempUsageDetail_20' ) start [2025-04-26 11:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993967', 'tblTempUsageDetail_20' ) end [2025-04-26 11:27:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 11:27:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 11:27:24] Production.INFO: ==9353== Releasing lock... [2025-04-26 11:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 11:27:24] Production.INFO: 39 MB #Memory Used# [2025-04-26 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 08:28:05 [end_date_ymd] => 2025-04-26 11:28:05 [RateCDR] => 1 ) [2025-04-26 11:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 08:28:05' and `end` < '2025-04-26 11:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 11:28:17] Production.INFO: count ==1395 [2025-04-26 11:28:18] Production.ERROR: pbx CDR StartTime 2025-04-26 08:28:05 - End Time 2025-04-26 11:28:05 [2025-04-26 11:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993972', 'tblTempUsageDetail_20' ) start [2025-04-26 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993972', 'tblTempUsageDetail_20' ) end [2025-04-26 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993972', 'tblTempVendorCDR_20' ) start [2025-04-26 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993972', 'tblTempVendorCDR_20' ) end [2025-04-26 11:28:18] Production.INFO: ProcessCDR(1,14993972,1,1,2) [2025-04-26 11:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993972', 'tblTempUsageDetail_20' ) start [2025-04-26 11:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993972', 'tblTempUsageDetail_20' ) end [2025-04-26 11:28:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 11:28:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 11:28:23] Production.INFO: ==9427== Releasing lock... [2025-04-26 11:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 11:28:23] Production.INFO: 39 MB #Memory Used# [2025-04-26 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 08:29:05 [end_date_ymd] => 2025-04-26 11:29:05 [RateCDR] => 1 ) [2025-04-26 11:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 08:29:05' and `end` < '2025-04-26 11:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 11:29:18] Production.INFO: count ==1425 [2025-04-26 11:29:18] Production.ERROR: pbx CDR StartTime 2025-04-26 08:29:05 - End Time 2025-04-26 11:29:05 [2025-04-26 11:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 11:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993977', 'tblTempUsageDetail_20' ) start [2025-04-26 11:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993977', 'tblTempUsageDetail_20' ) end [2025-04-26 11:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993977', 'tblTempVendorCDR_20' ) start [2025-04-26 11:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993977', 'tblTempVendorCDR_20' ) end [2025-04-26 11:29:19] Production.INFO: ProcessCDR(1,14993977,1,1,2) [2025-04-26 11:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993977', 'tblTempUsageDetail_20' ) start [2025-04-26 11:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993977', 'tblTempUsageDetail_20' ) end [2025-04-26 11:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 11:29:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 11:29:24] Production.INFO: ==9503== Releasing lock... [2025-04-26 11:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 11:29:24] Production.INFO: 38.75 MB #Memory Used# [2025-04-26 11:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 08:30:05 [end_date_ymd] => 2025-04-26 11:30:05 [RateCDR] => 1 ) [2025-04-26 11:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 08:30:05' and `end` < '2025-04-26 11:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 11:30:18] Production.INFO: count ==1443 [2025-04-26 11:30:19] Production.ERROR: pbx CDR StartTime 2025-04-26 08:30:05 - End Time 2025-04-26 11:30:05 [2025-04-26 11:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 11:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993983', 'tblTempUsageDetail_20' ) start [2025-04-26 11:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993983', 'tblTempUsageDetail_20' ) end [2025-04-26 11:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993983', 'tblTempVendorCDR_20' ) start [2025-04-26 11:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993983', 'tblTempVendorCDR_20' ) end [2025-04-26 11:30:19] Production.INFO: ProcessCDR(1,14993983,1,1,2) [2025-04-26 11:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993983', 'tblTempUsageDetail_20' ) start [2025-04-26 11:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993983', 'tblTempUsageDetail_20' ) end [2025-04-26 11:30:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 11:30:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 11:30:24] Production.INFO: ==9580== Releasing lock... [2025-04-26 11:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 11:30:24] Production.INFO: 39 MB #Memory Used# [2025-04-26 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 08:31:05 [end_date_ymd] => 2025-04-26 11:31:05 [RateCDR] => 1 ) [2025-04-26 11:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 08:31:05' and `end` < '2025-04-26 11:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 11:31:18] Production.INFO: count ==1478 [2025-04-26 11:31:19] Production.ERROR: pbx CDR StartTime 2025-04-26 08:31:05 - End Time 2025-04-26 11:31:05 [2025-04-26 11:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 11:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993988', 'tblTempUsageDetail_20' ) start [2025-04-26 11:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993988', 'tblTempUsageDetail_20' ) end [2025-04-26 11:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993988', 'tblTempVendorCDR_20' ) start [2025-04-26 11:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993988', 'tblTempVendorCDR_20' ) end [2025-04-26 11:31:19] Production.INFO: ProcessCDR(1,14993988,1,1,2) [2025-04-26 11:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993988', 'tblTempUsageDetail_20' ) start [2025-04-26 11:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993988', 'tblTempUsageDetail_20' ) end [2025-04-26 11:31:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 11:31:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 11:31:24] Production.INFO: ==9693== Releasing lock... [2025-04-26 11:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 11:31:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-26 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 08:32:05 [end_date_ymd] => 2025-04-26 11:32:05 [RateCDR] => 1 ) [2025-04-26 11:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 08:32:05' and `end` < '2025-04-26 11:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 11:32:18] Production.INFO: count ==1473 [2025-04-26 11:32:18] Production.ERROR: pbx CDR StartTime 2025-04-26 08:32:05 - End Time 2025-04-26 11:32:05 [2025-04-26 11:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993993', 'tblTempUsageDetail_20' ) start [2025-04-26 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993993', 'tblTempUsageDetail_20' ) end [2025-04-26 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993993', 'tblTempVendorCDR_20' ) start [2025-04-26 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993993', 'tblTempVendorCDR_20' ) end [2025-04-26 11:32:18] Production.INFO: ProcessCDR(1,14993993,1,1,2) [2025-04-26 11:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993993', 'tblTempUsageDetail_20' ) start [2025-04-26 11:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993993', 'tblTempUsageDetail_20' ) end [2025-04-26 11:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 11:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 11:32:23] Production.INFO: ==9764== Releasing lock... [2025-04-26 11:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 11:32:23] Production.INFO: 39.5 MB #Memory Used# [2025-04-26 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 08:33:05 [end_date_ymd] => 2025-04-26 11:33:05 [RateCDR] => 1 ) [2025-04-26 11:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 08:33:05' and `end` < '2025-04-26 11:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 11:33:18] Production.INFO: count ==1480 [2025-04-26 11:33:19] Production.ERROR: pbx CDR StartTime 2025-04-26 08:33:05 - End Time 2025-04-26 11:33:05 [2025-04-26 11:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 11:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993998', 'tblTempUsageDetail_20' ) start [2025-04-26 11:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14993998', 'tblTempUsageDetail_20' ) end [2025-04-26 11:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993998', 'tblTempVendorCDR_20' ) start [2025-04-26 11:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14993998', 'tblTempVendorCDR_20' ) end [2025-04-26 11:33:19] Production.INFO: ProcessCDR(1,14993998,1,1,2) [2025-04-26 11:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14993998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14993998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14993998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14993998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993998', 'tblTempUsageDetail_20' ) start [2025-04-26 11:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14993998', 'tblTempUsageDetail_20' ) end [2025-04-26 11:33:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 11:33:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 11:33:24] Production.INFO: ==9835== Releasing lock... [2025-04-26 11:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 11:33:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-26 11:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 08:34:06 [end_date_ymd] => 2025-04-26 11:34:06 [RateCDR] => 1 ) [2025-04-26 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-04-26 08:34:06' and `end` < '2025-04-26 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-04-26 11:34:19] Production.INFO: count ==1484 [2025-04-26 11:34:19] Production.ERROR: pbx CDR StartTime 2025-04-26 08:34:06 - End Time 2025-04-26 11:34:06 [2025-04-26 11:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 11:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994003', 'tblTempUsageDetail_20' ) start [2025-04-26 11:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994003', 'tblTempUsageDetail_20' ) end [2025-04-26 11:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994003', 'tblTempVendorCDR_20' ) start [2025-04-26 11:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994003', 'tblTempVendorCDR_20' ) end [2025-04-26 11:34:19] Production.INFO: ProcessCDR(1,14994003,1,1,2) [2025-04-26 11:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994003', 'tblTempUsageDetail_20' ) start [2025-04-26 11:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994003', 'tblTempUsageDetail_20' ) end [2025-04-26 11:34:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 11:34:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 11:34:24] Production.INFO: ==9911== Releasing lock... [2025-04-26 11:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 11:34:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-26 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 08:35:05 [end_date_ymd] => 2025-04-26 11:35:05 [RateCDR] => 1 ) [2025-04-26 11:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 08:35:05' and `end` < '2025-04-26 11:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 11:35:18] Production.INFO: count ==1494 [2025-04-26 11:35:18] Production.ERROR: pbx CDR StartTime 2025-04-26 08:35:05 - End Time 2025-04-26 11:35:05 [2025-04-26 11:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994008', 'tblTempUsageDetail_20' ) start [2025-04-26 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994008', 'tblTempUsageDetail_20' ) end [2025-04-26 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994008', 'tblTempVendorCDR_20' ) start [2025-04-26 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994008', 'tblTempVendorCDR_20' ) end [2025-04-26 11:35:18] Production.INFO: ProcessCDR(1,14994008,1,1,2) [2025-04-26 11:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994008', 'tblTempUsageDetail_20' ) start [2025-04-26 11:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994008', 'tblTempUsageDetail_20' ) end [2025-04-26 11:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 11:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 11:35:23] Production.INFO: ==9985== Releasing lock... [2025-04-26 11:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 11:35:23] Production.INFO: 39 MB #Memory Used# [2025-04-26 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 08:36:05 [end_date_ymd] => 2025-04-26 11:36:05 [RateCDR] => 1 ) [2025-04-26 11:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 08:36:05' and `end` < '2025-04-26 11:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 11:36:18] Production.INFO: count ==1514 [2025-04-26 11:36:19] Production.ERROR: pbx CDR StartTime 2025-04-26 08:36:05 - End Time 2025-04-26 11:36:05 [2025-04-26 11:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 11:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994013', 'tblTempUsageDetail_20' ) start [2025-04-26 11:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994013', 'tblTempUsageDetail_20' ) end [2025-04-26 11:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994013', 'tblTempVendorCDR_20' ) start [2025-04-26 11:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994013', 'tblTempVendorCDR_20' ) end [2025-04-26 11:36:19] Production.INFO: ProcessCDR(1,14994013,1,1,2) [2025-04-26 11:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994013', 'tblTempUsageDetail_20' ) start [2025-04-26 11:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994013', 'tblTempUsageDetail_20' ) end [2025-04-26 11:36:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 11:36:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 11:36:24] Production.INFO: ==10063== Releasing lock... [2025-04-26 11:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 11:36:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-26 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 08:37:05 [end_date_ymd] => 2025-04-26 11:37:05 [RateCDR] => 1 ) [2025-04-26 11:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 08:37:05' and `end` < '2025-04-26 11:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 11:37:18] Production.INFO: count ==1526 [2025-04-26 11:37:18] Production.ERROR: pbx CDR StartTime 2025-04-26 08:37:05 - End Time 2025-04-26 11:37:05 [2025-04-26 11:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994018', 'tblTempUsageDetail_20' ) start [2025-04-26 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994018', 'tblTempUsageDetail_20' ) end [2025-04-26 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994018', 'tblTempVendorCDR_20' ) start [2025-04-26 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994018', 'tblTempVendorCDR_20' ) end [2025-04-26 11:37:18] Production.INFO: ProcessCDR(1,14994018,1,1,2) [2025-04-26 11:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994018', 'tblTempUsageDetail_20' ) start [2025-04-26 11:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994018', 'tblTempUsageDetail_20' ) end [2025-04-26 11:37:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 11:37:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 11:37:24] Production.INFO: ==10154== Releasing lock... [2025-04-26 11:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 11:37:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-26 11:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 08:38:06 [end_date_ymd] => 2025-04-26 11:38:06 [RateCDR] => 1 ) [2025-04-26 11:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 08:38:06' and `end` < '2025-04-26 11:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 11:38:19] Production.INFO: count ==1532 [2025-04-26 11:38:19] Production.ERROR: pbx CDR StartTime 2025-04-26 08:38:06 - End Time 2025-04-26 11:38:06 [2025-04-26 11:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 11:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994023', 'tblTempUsageDetail_20' ) start [2025-04-26 11:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994023', 'tblTempUsageDetail_20' ) end [2025-04-26 11:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994023', 'tblTempVendorCDR_20' ) start [2025-04-26 11:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994023', 'tblTempVendorCDR_20' ) end [2025-04-26 11:38:19] Production.INFO: ProcessCDR(1,14994023,1,1,2) [2025-04-26 11:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994023', 'tblTempUsageDetail_20' ) start [2025-04-26 11:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994023', 'tblTempUsageDetail_20' ) end [2025-04-26 11:38:25] Production.ERROR: pbx prc_insertCDR start [2025-04-26 11:38:25] Production.ERROR: pbx prc_insertCDR end [2025-04-26 11:38:25] Production.INFO: ==10226== Releasing lock... [2025-04-26 11:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 11:38:25] Production.INFO: 39.75 MB #Memory Used# [2025-04-26 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 08:39:05 [end_date_ymd] => 2025-04-26 11:39:05 [RateCDR] => 1 ) [2025-04-26 11:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 08:39:05' and `end` < '2025-04-26 11:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 11:39:18] Production.INFO: count ==1536 [2025-04-26 11:39:19] Production.ERROR: pbx CDR StartTime 2025-04-26 08:39:05 - End Time 2025-04-26 11:39:05 [2025-04-26 11:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 11:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994028', 'tblTempUsageDetail_20' ) start [2025-04-26 11:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994028', 'tblTempUsageDetail_20' ) end [2025-04-26 11:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994028', 'tblTempVendorCDR_20' ) start [2025-04-26 11:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994028', 'tblTempVendorCDR_20' ) end [2025-04-26 11:39:19] Production.INFO: ProcessCDR(1,14994028,1,1,2) [2025-04-26 11:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994028', 'tblTempUsageDetail_20' ) start [2025-04-26 11:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994028', 'tblTempUsageDetail_20' ) end [2025-04-26 11:39:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 11:39:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 11:39:24] Production.INFO: ==10301== Releasing lock... [2025-04-26 11:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 11:39:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-26 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 08:40:06 [end_date_ymd] => 2025-04-26 11:40:06 [RateCDR] => 1 ) [2025-04-26 11:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 08:40:06' and `end` < '2025-04-26 11:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 11:40:19] Production.INFO: count ==1539 [2025-04-26 11:40:19] Production.ERROR: pbx CDR StartTime 2025-04-26 08:40:06 - End Time 2025-04-26 11:40:06 [2025-04-26 11:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 11:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994034', 'tblTempUsageDetail_20' ) start [2025-04-26 11:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994034', 'tblTempUsageDetail_20' ) end [2025-04-26 11:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994034', 'tblTempVendorCDR_20' ) start [2025-04-26 11:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994034', 'tblTempVendorCDR_20' ) end [2025-04-26 11:40:19] Production.INFO: ProcessCDR(1,14994034,1,1,2) [2025-04-26 11:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994034', 'tblTempUsageDetail_20' ) start [2025-04-26 11:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994034', 'tblTempUsageDetail_20' ) end [2025-04-26 11:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 11:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 11:40:24] Production.INFO: ==10391== Releasing lock... [2025-04-26 11:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 11:40:24] Production.INFO: 40 MB #Memory Used# [2025-04-26 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 08:41:05 [end_date_ymd] => 2025-04-26 11:41:05 [RateCDR] => 1 ) [2025-04-26 11:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 08:41:05' and `end` < '2025-04-26 11:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 11:41:18] Production.INFO: count ==1555 [2025-04-26 11:41:18] Production.ERROR: pbx CDR StartTime 2025-04-26 08:41:05 - End Time 2025-04-26 11:41:05 [2025-04-26 11:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994039', 'tblTempUsageDetail_20' ) start [2025-04-26 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994039', 'tblTempUsageDetail_20' ) end [2025-04-26 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994039', 'tblTempVendorCDR_20' ) start [2025-04-26 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994039', 'tblTempVendorCDR_20' ) end [2025-04-26 11:41:18] Production.INFO: ProcessCDR(1,14994039,1,1,2) [2025-04-26 11:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994039', 'tblTempUsageDetail_20' ) start [2025-04-26 11:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994039', 'tblTempUsageDetail_20' ) end [2025-04-26 11:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 11:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 11:41:23] Production.INFO: ==10463== Releasing lock... [2025-04-26 11:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 11:41:23] Production.INFO: 39.75 MB #Memory Used# [2025-04-26 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 08:42:05 [end_date_ymd] => 2025-04-26 11:42:05 [RateCDR] => 1 ) [2025-04-26 11:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 08:42:05' and `end` < '2025-04-26 11:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 11:42:18] Production.INFO: count ==1562 [2025-04-26 11:42:19] Production.ERROR: pbx CDR StartTime 2025-04-26 08:42:05 - End Time 2025-04-26 11:42:05 [2025-04-26 11:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 11:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994044', 'tblTempUsageDetail_20' ) start [2025-04-26 11:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994044', 'tblTempUsageDetail_20' ) end [2025-04-26 11:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994044', 'tblTempVendorCDR_20' ) start [2025-04-26 11:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994044', 'tblTempVendorCDR_20' ) end [2025-04-26 11:42:19] Production.INFO: ProcessCDR(1,14994044,1,1,2) [2025-04-26 11:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994044', 'tblTempUsageDetail_20' ) start [2025-04-26 11:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994044', 'tblTempUsageDetail_20' ) end [2025-04-26 11:42:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 11:42:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 11:42:24] Production.INFO: ==10537== Releasing lock... [2025-04-26 11:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 11:42:24] Production.INFO: 40 MB #Memory Used# [2025-04-26 11:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 08:43:04 [end_date_ymd] => 2025-04-26 11:43:04 [RateCDR] => 1 ) [2025-04-26 11:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 08:43:04' and `end` < '2025-04-26 11:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 11:43:17] Production.INFO: count ==1571 [2025-04-26 11:43:18] Production.ERROR: pbx CDR StartTime 2025-04-26 08:43:04 - End Time 2025-04-26 11:43:04 [2025-04-26 11:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 11:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994049', 'tblTempUsageDetail_20' ) start [2025-04-26 11:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994049', 'tblTempUsageDetail_20' ) end [2025-04-26 11:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994049', 'tblTempVendorCDR_20' ) start [2025-04-26 11:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994049', 'tblTempVendorCDR_20' ) end [2025-04-26 11:43:18] Production.INFO: ProcessCDR(1,14994049,1,1,2) [2025-04-26 11:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994049', 'tblTempUsageDetail_20' ) start [2025-04-26 11:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994049', 'tblTempUsageDetail_20' ) end [2025-04-26 11:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 11:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 11:43:23] Production.INFO: ==10608== Releasing lock... [2025-04-26 11:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 11:43:23] Production.INFO: 40.25 MB #Memory Used# [2025-04-26 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 08:44:05 [end_date_ymd] => 2025-04-26 11:44:05 [RateCDR] => 1 ) [2025-04-26 11:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 08:44:05' and `end` < '2025-04-26 11:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 11:44:18] Production.INFO: count ==1581 [2025-04-26 11:44:19] Production.ERROR: pbx CDR StartTime 2025-04-26 08:44:05 - End Time 2025-04-26 11:44:05 [2025-04-26 11:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 11:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994054', 'tblTempUsageDetail_20' ) start [2025-04-26 11:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994054', 'tblTempUsageDetail_20' ) end [2025-04-26 11:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994054', 'tblTempVendorCDR_20' ) start [2025-04-26 11:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994054', 'tblTempVendorCDR_20' ) end [2025-04-26 11:44:19] Production.INFO: ProcessCDR(1,14994054,1,1,2) [2025-04-26 11:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994054', 'tblTempUsageDetail_20' ) start [2025-04-26 11:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994054', 'tblTempUsageDetail_20' ) end [2025-04-26 11:44:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 11:44:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 11:44:24] Production.INFO: ==10681== Releasing lock... [2025-04-26 11:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 11:44:24] Production.INFO: 40.25 MB #Memory Used# [2025-04-26 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 08:45:05 [end_date_ymd] => 2025-04-26 11:45:05 [RateCDR] => 1 ) [2025-04-26 11:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 08:45:05' and `end` < '2025-04-26 11:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 11:45:18] Production.INFO: count ==1585 [2025-04-26 11:45:18] Production.ERROR: pbx CDR StartTime 2025-04-26 08:45:05 - End Time 2025-04-26 11:45:05 [2025-04-26 11:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 11:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994059', 'tblTempUsageDetail_20' ) start [2025-04-26 11:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994059', 'tblTempUsageDetail_20' ) end [2025-04-26 11:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994059', 'tblTempVendorCDR_20' ) start [2025-04-26 11:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994059', 'tblTempVendorCDR_20' ) end [2025-04-26 11:45:18] Production.INFO: ProcessCDR(1,14994059,1,1,2) [2025-04-26 11:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994059', 'tblTempUsageDetail_20' ) start [2025-04-26 11:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994059', 'tblTempUsageDetail_20' ) end [2025-04-26 11:45:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 11:45:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 11:45:23] Production.INFO: ==10754== Releasing lock... [2025-04-26 11:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 11:45:23] Production.INFO: 40 MB #Memory Used# [2025-04-26 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 08:46:05 [end_date_ymd] => 2025-04-26 11:46:05 [RateCDR] => 1 ) [2025-04-26 11:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 08:46:05' and `end` < '2025-04-26 11:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 11:46:18] Production.INFO: count ==1600 [2025-04-26 11:46:19] Production.ERROR: pbx CDR StartTime 2025-04-26 08:46:05 - End Time 2025-04-26 11:46:05 [2025-04-26 11:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 11:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994064', 'tblTempUsageDetail_20' ) start [2025-04-26 11:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994064', 'tblTempUsageDetail_20' ) end [2025-04-26 11:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994064', 'tblTempVendorCDR_20' ) start [2025-04-26 11:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994064', 'tblTempVendorCDR_20' ) end [2025-04-26 11:46:19] Production.INFO: ProcessCDR(1,14994064,1,1,2) [2025-04-26 11:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994064', 'tblTempUsageDetail_20' ) start [2025-04-26 11:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994064', 'tblTempUsageDetail_20' ) end [2025-04-26 11:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 11:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 11:46:24] Production.INFO: ==10828== Releasing lock... [2025-04-26 11:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 11:46:24] Production.INFO: 40.25 MB #Memory Used# [2025-04-26 11:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 08:47:06 [end_date_ymd] => 2025-04-26 11:47:06 [RateCDR] => 1 ) [2025-04-26 11:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 08:47:06' and `end` < '2025-04-26 11:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 11:47:19] Production.INFO: count ==1612 [2025-04-26 11:47:19] Production.ERROR: pbx CDR StartTime 2025-04-26 08:47:06 - End Time 2025-04-26 11:47:06 [2025-04-26 11:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 11:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994069', 'tblTempUsageDetail_20' ) start [2025-04-26 11:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994069', 'tblTempUsageDetail_20' ) end [2025-04-26 11:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994069', 'tblTempVendorCDR_20' ) start [2025-04-26 11:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994069', 'tblTempVendorCDR_20' ) end [2025-04-26 11:47:19] Production.INFO: ProcessCDR(1,14994069,1,1,2) [2025-04-26 11:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994069', 'tblTempUsageDetail_20' ) start [2025-04-26 11:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994069', 'tblTempUsageDetail_20' ) end [2025-04-26 11:47:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 11:47:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 11:47:24] Production.INFO: ==10940== Releasing lock... [2025-04-26 11:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 11:47:24] Production.INFO: 40.5 MB #Memory Used# [2025-04-26 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 08:48:05 [end_date_ymd] => 2025-04-26 11:48:05 [RateCDR] => 1 ) [2025-04-26 11:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 08:48:05' and `end` < '2025-04-26 11:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 11:48:18] Production.INFO: count ==1618 [2025-04-26 11:48:19] Production.ERROR: pbx CDR StartTime 2025-04-26 08:48:05 - End Time 2025-04-26 11:48:05 [2025-04-26 11:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 11:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994074', 'tblTempUsageDetail_20' ) start [2025-04-26 11:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994074', 'tblTempUsageDetail_20' ) end [2025-04-26 11:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994074', 'tblTempVendorCDR_20' ) start [2025-04-26 11:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994074', 'tblTempVendorCDR_20' ) end [2025-04-26 11:48:19] Production.INFO: ProcessCDR(1,14994074,1,1,2) [2025-04-26 11:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994074', 'tblTempUsageDetail_20' ) start [2025-04-26 11:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994074', 'tblTempUsageDetail_20' ) end [2025-04-26 11:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 11:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 11:48:22] Production.INFO: ==11015== Releasing lock... [2025-04-26 11:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 11:48:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-26 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 08:49:05 [end_date_ymd] => 2025-04-26 11:49:05 [RateCDR] => 1 ) [2025-04-26 11:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 08:49:05' and `end` < '2025-04-26 11:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 11:49:18] Production.INFO: count ==1618 [2025-04-26 11:49:18] Production.ERROR: pbx CDR StartTime 2025-04-26 08:49:05 - End Time 2025-04-26 11:49:05 [2025-04-26 11:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 11:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994079', 'tblTempUsageDetail_20' ) start [2025-04-26 11:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994079', 'tblTempUsageDetail_20' ) end [2025-04-26 11:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994079', 'tblTempVendorCDR_20' ) start [2025-04-26 11:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994079', 'tblTempVendorCDR_20' ) end [2025-04-26 11:49:18] Production.INFO: ProcessCDR(1,14994079,1,1,2) [2025-04-26 11:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994079', 'tblTempUsageDetail_20' ) start [2025-04-26 11:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994079', 'tblTempUsageDetail_20' ) end [2025-04-26 11:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 11:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 11:49:22] Production.INFO: ==11092== Releasing lock... [2025-04-26 11:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 11:49:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-26 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 08:50:06 [end_date_ymd] => 2025-04-26 11:50:06 [RateCDR] => 1 ) [2025-04-26 11:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 08:50:06' and `end` < '2025-04-26 11:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 11:50:19] Production.INFO: count ==1615 [2025-04-26 11:50:19] Production.ERROR: pbx CDR StartTime 2025-04-26 08:50:06 - End Time 2025-04-26 11:50:06 [2025-04-26 11:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994085', 'tblTempUsageDetail_20' ) start [2025-04-26 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994085', 'tblTempUsageDetail_20' ) end [2025-04-26 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994085', 'tblTempVendorCDR_20' ) start [2025-04-26 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994085', 'tblTempVendorCDR_20' ) end [2025-04-26 11:50:19] Production.INFO: ProcessCDR(1,14994085,1,1,2) [2025-04-26 11:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994085', 'tblTempUsageDetail_20' ) start [2025-04-26 11:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994085', 'tblTempUsageDetail_20' ) end [2025-04-26 11:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 11:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 11:50:23] Production.INFO: ==11168== Releasing lock... [2025-04-26 11:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 11:50:23] Production.INFO: 40.75 MB #Memory Used# [2025-04-26 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 08:51:05 [end_date_ymd] => 2025-04-26 11:51:05 [RateCDR] => 1 ) [2025-04-26 11:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 08:51:05' and `end` < '2025-04-26 11:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 11:51:17] Production.INFO: count ==1638 [2025-04-26 11:51:18] Production.ERROR: pbx CDR StartTime 2025-04-26 08:51:05 - End Time 2025-04-26 11:51:05 [2025-04-26 11:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994090', 'tblTempUsageDetail_20' ) start [2025-04-26 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994090', 'tblTempUsageDetail_20' ) end [2025-04-26 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994090', 'tblTempVendorCDR_20' ) start [2025-04-26 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994090', 'tblTempVendorCDR_20' ) end [2025-04-26 11:51:18] Production.INFO: ProcessCDR(1,14994090,1,1,2) [2025-04-26 11:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994090', 'tblTempUsageDetail_20' ) start [2025-04-26 11:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994090', 'tblTempUsageDetail_20' ) end [2025-04-26 11:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 11:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 11:51:23] Production.INFO: ==11241== Releasing lock... [2025-04-26 11:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 11:51:23] Production.INFO: 40.5 MB #Memory Used# [2025-04-26 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 08:52:05 [end_date_ymd] => 2025-04-26 11:52:05 [RateCDR] => 1 ) [2025-04-26 11:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 08:52:05' and `end` < '2025-04-26 11:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 11:52:18] Production.INFO: count ==1639 [2025-04-26 11:52:18] Production.ERROR: pbx CDR StartTime 2025-04-26 08:52:05 - End Time 2025-04-26 11:52:05 [2025-04-26 11:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994095', 'tblTempUsageDetail_20' ) start [2025-04-26 11:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994095', 'tblTempUsageDetail_20' ) end [2025-04-26 11:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994095', 'tblTempVendorCDR_20' ) start [2025-04-26 11:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994095', 'tblTempVendorCDR_20' ) end [2025-04-26 11:52:19] Production.INFO: ProcessCDR(1,14994095,1,1,2) [2025-04-26 11:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994095', 'tblTempUsageDetail_20' ) start [2025-04-26 11:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994095', 'tblTempUsageDetail_20' ) end [2025-04-26 11:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 11:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 11:52:23] Production.INFO: ==11314== Releasing lock... [2025-04-26 11:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 11:52:23] Production.INFO: 40.5 MB #Memory Used# [2025-04-26 11:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 08:53:04 [end_date_ymd] => 2025-04-26 11:53:04 [RateCDR] => 1 ) [2025-04-26 11:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 08:53:04' and `end` < '2025-04-26 11:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 11:53:17] Production.INFO: count ==1651 [2025-04-26 11:53:18] Production.ERROR: pbx CDR StartTime 2025-04-26 08:53:04 - End Time 2025-04-26 11:53:04 [2025-04-26 11:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 11:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994100', 'tblTempUsageDetail_20' ) start [2025-04-26 11:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994100', 'tblTempUsageDetail_20' ) end [2025-04-26 11:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994100', 'tblTempVendorCDR_20' ) start [2025-04-26 11:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994100', 'tblTempVendorCDR_20' ) end [2025-04-26 11:53:18] Production.INFO: ProcessCDR(1,14994100,1,1,2) [2025-04-26 11:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994100', 'tblTempUsageDetail_20' ) start [2025-04-26 11:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994100', 'tblTempUsageDetail_20' ) end [2025-04-26 11:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 11:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 11:53:23] Production.INFO: ==11388== Releasing lock... [2025-04-26 11:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 11:53:23] Production.INFO: 40.75 MB #Memory Used# [2025-04-26 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 08:54:05 [end_date_ymd] => 2025-04-26 11:54:05 [RateCDR] => 1 ) [2025-04-26 11:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 08:54:05' and `end` < '2025-04-26 11:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 11:54:18] Production.INFO: count ==1670 [2025-04-26 11:54:18] Production.ERROR: pbx CDR StartTime 2025-04-26 08:54:05 - End Time 2025-04-26 11:54:05 [2025-04-26 11:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994105', 'tblTempUsageDetail_20' ) start [2025-04-26 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994105', 'tblTempUsageDetail_20' ) end [2025-04-26 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994105', 'tblTempVendorCDR_20' ) start [2025-04-26 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994105', 'tblTempVendorCDR_20' ) end [2025-04-26 11:54:18] Production.INFO: ProcessCDR(1,14994105,1,1,2) [2025-04-26 11:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994105', 'tblTempUsageDetail_20' ) start [2025-04-26 11:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994105', 'tblTempUsageDetail_20' ) end [2025-04-26 11:54:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 11:54:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 11:54:24] Production.INFO: ==11463== Releasing lock... [2025-04-26 11:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 11:54:24] Production.INFO: 41 MB #Memory Used# [2025-04-26 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 08:55:05 [end_date_ymd] => 2025-04-26 11:55:05 [RateCDR] => 1 ) [2025-04-26 11:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 08:55:05' and `end` < '2025-04-26 11:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 11:55:18] Production.INFO: count ==1676 [2025-04-26 11:55:19] Production.ERROR: pbx CDR StartTime 2025-04-26 08:55:05 - End Time 2025-04-26 11:55:05 [2025-04-26 11:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 11:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994110', 'tblTempUsageDetail_20' ) start [2025-04-26 11:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994110', 'tblTempUsageDetail_20' ) end [2025-04-26 11:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994110', 'tblTempVendorCDR_20' ) start [2025-04-26 11:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994110', 'tblTempVendorCDR_20' ) end [2025-04-26 11:55:19] Production.INFO: ProcessCDR(1,14994110,1,1,2) [2025-04-26 11:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994110', 'tblTempUsageDetail_20' ) start [2025-04-26 11:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994110', 'tblTempUsageDetail_20' ) end [2025-04-26 11:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 11:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 11:55:22] Production.INFO: ==11535== Releasing lock... [2025-04-26 11:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 11:55:22] Production.INFO: 41 MB #Memory Used# [2025-04-26 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 08:56:05 [end_date_ymd] => 2025-04-26 11:56:05 [RateCDR] => 1 ) [2025-04-26 11:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 08:56:05' and `end` < '2025-04-26 11:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 11:56:17] Production.INFO: count ==1681 [2025-04-26 11:56:18] Production.ERROR: pbx CDR StartTime 2025-04-26 08:56:05 - End Time 2025-04-26 11:56:05 [2025-04-26 11:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994115', 'tblTempUsageDetail_20' ) start [2025-04-26 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994115', 'tblTempUsageDetail_20' ) end [2025-04-26 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994115', 'tblTempVendorCDR_20' ) start [2025-04-26 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994115', 'tblTempVendorCDR_20' ) end [2025-04-26 11:56:18] Production.INFO: ProcessCDR(1,14994115,1,1,2) [2025-04-26 11:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994115', 'tblTempUsageDetail_20' ) start [2025-04-26 11:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994115', 'tblTempUsageDetail_20' ) end [2025-04-26 11:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 11:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 11:56:23] Production.INFO: ==11628== Releasing lock... [2025-04-26 11:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 11:56:23] Production.INFO: 41 MB #Memory Used# [2025-04-26 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 08:57:05 [end_date_ymd] => 2025-04-26 11:57:05 [RateCDR] => 1 ) [2025-04-26 11:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 08:57:05' and `end` < '2025-04-26 11:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 11:57:18] Production.INFO: count ==1684 [2025-04-26 11:57:19] Production.ERROR: pbx CDR StartTime 2025-04-26 08:57:05 - End Time 2025-04-26 11:57:05 [2025-04-26 11:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 11:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994120', 'tblTempUsageDetail_20' ) start [2025-04-26 11:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994120', 'tblTempUsageDetail_20' ) end [2025-04-26 11:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994120', 'tblTempVendorCDR_20' ) start [2025-04-26 11:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994120', 'tblTempVendorCDR_20' ) end [2025-04-26 11:57:19] Production.INFO: ProcessCDR(1,14994120,1,1,2) [2025-04-26 11:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994120', 'tblTempUsageDetail_20' ) start [2025-04-26 11:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994120', 'tblTempUsageDetail_20' ) end [2025-04-26 11:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 11:57:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 11:57:24] Production.INFO: ==11698== Releasing lock... [2025-04-26 11:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 11:57:24] Production.INFO: 41.25 MB #Memory Used# [2025-04-26 11:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 08:58:04 [end_date_ymd] => 2025-04-26 11:58:04 [RateCDR] => 1 ) [2025-04-26 11:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 08:58:04' and `end` < '2025-04-26 11:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 11:58:17] Production.INFO: count ==1693 [2025-04-26 11:58:18] Production.ERROR: pbx CDR StartTime 2025-04-26 08:58:04 - End Time 2025-04-26 11:58:04 [2025-04-26 11:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 11:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994125', 'tblTempUsageDetail_20' ) start [2025-04-26 11:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994125', 'tblTempUsageDetail_20' ) end [2025-04-26 11:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994125', 'tblTempVendorCDR_20' ) start [2025-04-26 11:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994125', 'tblTempVendorCDR_20' ) end [2025-04-26 11:58:18] Production.INFO: ProcessCDR(1,14994125,1,1,2) [2025-04-26 11:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994125', 'tblTempUsageDetail_20' ) start [2025-04-26 11:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994125', 'tblTempUsageDetail_20' ) end [2025-04-26 11:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 11:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 11:58:23] Production.INFO: ==11772== Releasing lock... [2025-04-26 11:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 11:58:23] Production.INFO: 41 MB #Memory Used# [2025-04-26 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 08:59:05 [end_date_ymd] => 2025-04-26 11:59:05 [RateCDR] => 1 ) [2025-04-26 11:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 08:59:05' and `end` < '2025-04-26 11:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 11:59:18] Production.INFO: count ==1686 [2025-04-26 11:59:19] Production.ERROR: pbx CDR StartTime 2025-04-26 08:59:05 - End Time 2025-04-26 11:59:05 [2025-04-26 11:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 11:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994130', 'tblTempUsageDetail_20' ) start [2025-04-26 11:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994130', 'tblTempUsageDetail_20' ) end [2025-04-26 11:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994130', 'tblTempVendorCDR_20' ) start [2025-04-26 11:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994130', 'tblTempVendorCDR_20' ) end [2025-04-26 11:59:19] Production.INFO: ProcessCDR(1,14994130,1,1,2) [2025-04-26 11:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 11:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 11:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994130', 'tblTempUsageDetail_20' ) start [2025-04-26 11:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994130', 'tblTempUsageDetail_20' ) end [2025-04-26 11:59:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 11:59:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 11:59:24] Production.INFO: ==11846== Releasing lock... [2025-04-26 11:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 11:59:24] Production.INFO: 41 MB #Memory Used# [2025-04-26 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 09:00:06 [end_date_ymd] => 2025-04-26 12:00:06 [RateCDR] => 1 ) [2025-04-26 12:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 09:00:06' and `end` < '2025-04-26 12:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 12:00:18] Production.INFO: count ==1683 [2025-04-26 12:00:19] Production.ERROR: pbx CDR StartTime 2025-04-26 09:00:06 - End Time 2025-04-26 12:00:06 [2025-04-26 12:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994136', 'tblTempUsageDetail_20' ) start [2025-04-26 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994136', 'tblTempUsageDetail_20' ) end [2025-04-26 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994136', 'tblTempVendorCDR_20' ) start [2025-04-26 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994136', 'tblTempVendorCDR_20' ) end [2025-04-26 12:00:19] Production.INFO: ProcessCDR(1,14994136,1,1,2) [2025-04-26 12:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994136', 'tblTempUsageDetail_20' ) start [2025-04-26 12:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994136', 'tblTempUsageDetail_20' ) end [2025-04-26 12:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 12:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 12:00:24] Production.INFO: ==11920== Releasing lock... [2025-04-26 12:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 12:00:24] Production.INFO: 41.25 MB #Memory Used# [2025-04-26 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 09:01:05 [end_date_ymd] => 2025-04-26 12:01:05 [RateCDR] => 1 ) [2025-04-26 12:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 09:01:05' and `end` < '2025-04-26 12:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 12:01:18] Production.INFO: count ==1709 [2025-04-26 12:01:19] Production.ERROR: pbx CDR StartTime 2025-04-26 09:01:05 - End Time 2025-04-26 12:01:05 [2025-04-26 12:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 12:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994141', 'tblTempUsageDetail_20' ) start [2025-04-26 12:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994141', 'tblTempUsageDetail_20' ) end [2025-04-26 12:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994141', 'tblTempVendorCDR_20' ) start [2025-04-26 12:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994141', 'tblTempVendorCDR_20' ) end [2025-04-26 12:01:19] Production.INFO: ProcessCDR(1,14994141,1,1,2) [2025-04-26 12:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994141', 'tblTempUsageDetail_20' ) start [2025-04-26 12:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994141', 'tblTempUsageDetail_20' ) end [2025-04-26 12:01:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 12:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 12:01:24] Production.INFO: ==12010== Releasing lock... [2025-04-26 12:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 12:01:24] Production.INFO: 41 MB #Memory Used# [2025-04-26 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 09:02:05 [end_date_ymd] => 2025-04-26 12:02:05 [RateCDR] => 1 ) [2025-04-26 12:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 09:02:05' and `end` < '2025-04-26 12:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 12:02:18] Production.INFO: count ==1709 [2025-04-26 12:02:18] Production.ERROR: pbx CDR StartTime 2025-04-26 09:02:05 - End Time 2025-04-26 12:02:05 [2025-04-26 12:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 12:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994146', 'tblTempUsageDetail_20' ) start [2025-04-26 12:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994146', 'tblTempUsageDetail_20' ) end [2025-04-26 12:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994146', 'tblTempVendorCDR_20' ) start [2025-04-26 12:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994146', 'tblTempVendorCDR_20' ) end [2025-04-26 12:02:18] Production.INFO: ProcessCDR(1,14994146,1,1,2) [2025-04-26 12:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994146', 'tblTempUsageDetail_20' ) start [2025-04-26 12:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994146', 'tblTempUsageDetail_20' ) end [2025-04-26 12:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 12:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 12:02:23] Production.INFO: ==12125== Releasing lock... [2025-04-26 12:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 12:02:23] Production.INFO: 41.25 MB #Memory Used# [2025-04-26 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 09:03:05 [end_date_ymd] => 2025-04-26 12:03:05 [RateCDR] => 1 ) [2025-04-26 12:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 09:03:05' and `end` < '2025-04-26 12:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 12:03:18] Production.INFO: count ==1722 [2025-04-26 12:03:19] Production.ERROR: pbx CDR StartTime 2025-04-26 09:03:05 - End Time 2025-04-26 12:03:05 [2025-04-26 12:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 12:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994151', 'tblTempUsageDetail_20' ) start [2025-04-26 12:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994151', 'tblTempUsageDetail_20' ) end [2025-04-26 12:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994151', 'tblTempVendorCDR_20' ) start [2025-04-26 12:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994151', 'tblTempVendorCDR_20' ) end [2025-04-26 12:03:19] Production.INFO: ProcessCDR(1,14994151,1,1,2) [2025-04-26 12:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994151', 'tblTempUsageDetail_20' ) start [2025-04-26 12:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994151', 'tblTempUsageDetail_20' ) end [2025-04-26 12:03:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 12:03:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 12:03:24] Production.INFO: ==12194== Releasing lock... [2025-04-26 12:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 12:03:24] Production.INFO: 41 MB #Memory Used# [2025-04-26 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 09:04:05 [end_date_ymd] => 2025-04-26 12:04:05 [RateCDR] => 1 ) [2025-04-26 12:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 09:04:05' and `end` < '2025-04-26 12:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 12:04:17] Production.INFO: count ==1725 [2025-04-26 12:04:18] Production.ERROR: pbx CDR StartTime 2025-04-26 09:04:05 - End Time 2025-04-26 12:04:05 [2025-04-26 12:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 12:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994156', 'tblTempUsageDetail_20' ) start [2025-04-26 12:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994156', 'tblTempUsageDetail_20' ) end [2025-04-26 12:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994156', 'tblTempVendorCDR_20' ) start [2025-04-26 12:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994156', 'tblTempVendorCDR_20' ) end [2025-04-26 12:04:18] Production.INFO: ProcessCDR(1,14994156,1,1,2) [2025-04-26 12:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994156', 'tblTempUsageDetail_20' ) start [2025-04-26 12:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994156', 'tblTempUsageDetail_20' ) end [2025-04-26 12:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 12:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 12:04:23] Production.INFO: ==12266== Releasing lock... [2025-04-26 12:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 12:04:23] Production.INFO: 41.25 MB #Memory Used# [2025-04-26 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 09:05:05 [end_date_ymd] => 2025-04-26 12:05:05 [RateCDR] => 1 ) [2025-04-26 12:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 09:05:05' and `end` < '2025-04-26 12:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 12:05:18] Production.INFO: count ==1721 [2025-04-26 12:05:19] Production.ERROR: pbx CDR StartTime 2025-04-26 09:05:05 - End Time 2025-04-26 12:05:05 [2025-04-26 12:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 12:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994161', 'tblTempUsageDetail_20' ) start [2025-04-26 12:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994161', 'tblTempUsageDetail_20' ) end [2025-04-26 12:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994161', 'tblTempVendorCDR_20' ) start [2025-04-26 12:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994161', 'tblTempVendorCDR_20' ) end [2025-04-26 12:05:19] Production.INFO: ProcessCDR(1,14994161,1,1,2) [2025-04-26 12:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994161', 'tblTempUsageDetail_20' ) start [2025-04-26 12:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994161', 'tblTempUsageDetail_20' ) end [2025-04-26 12:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 12:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 12:05:23] Production.INFO: ==12337== Releasing lock... [2025-04-26 12:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 12:05:23] Production.INFO: 41.25 MB #Memory Used# [2025-04-26 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 09:06:05 [end_date_ymd] => 2025-04-26 12:06:05 [RateCDR] => 1 ) [2025-04-26 12:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 09:06:05' and `end` < '2025-04-26 12:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 12:06:18] Production.INFO: count ==1716 [2025-04-26 12:06:19] Production.ERROR: pbx CDR StartTime 2025-04-26 09:06:05 - End Time 2025-04-26 12:06:05 [2025-04-26 12:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994166', 'tblTempUsageDetail_20' ) start [2025-04-26 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994166', 'tblTempUsageDetail_20' ) end [2025-04-26 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994166', 'tblTempVendorCDR_20' ) start [2025-04-26 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994166', 'tblTempVendorCDR_20' ) end [2025-04-26 12:06:19] Production.INFO: ProcessCDR(1,14994166,1,1,2) [2025-04-26 12:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994166', 'tblTempUsageDetail_20' ) start [2025-04-26 12:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994166', 'tblTempUsageDetail_20' ) end [2025-04-26 12:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 12:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 12:06:23] Production.INFO: ==12408== Releasing lock... [2025-04-26 12:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 12:06:23] Production.INFO: 41.25 MB #Memory Used# [2025-04-26 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 09:07:05 [end_date_ymd] => 2025-04-26 12:07:05 [RateCDR] => 1 ) [2025-04-26 12:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 09:07:05' and `end` < '2025-04-26 12:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 12:07:18] Production.INFO: count ==1725 [2025-04-26 12:07:18] Production.ERROR: pbx CDR StartTime 2025-04-26 09:07:05 - End Time 2025-04-26 12:07:05 [2025-04-26 12:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 12:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994171', 'tblTempUsageDetail_20' ) start [2025-04-26 12:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994171', 'tblTempUsageDetail_20' ) end [2025-04-26 12:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994171', 'tblTempVendorCDR_20' ) start [2025-04-26 12:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994171', 'tblTempVendorCDR_20' ) end [2025-04-26 12:07:18] Production.INFO: ProcessCDR(1,14994171,1,1,2) [2025-04-26 12:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994171', 'tblTempUsageDetail_20' ) start [2025-04-26 12:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994171', 'tblTempUsageDetail_20' ) end [2025-04-26 12:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 12:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 12:07:23] Production.INFO: ==12481== Releasing lock... [2025-04-26 12:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 12:07:23] Production.INFO: 41.5 MB #Memory Used# [2025-04-26 12:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 09:08:06 [end_date_ymd] => 2025-04-26 12:08:06 [RateCDR] => 1 ) [2025-04-26 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-04-26 09:08:06' and `end` < '2025-04-26 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-04-26 12:08:18] Production.INFO: count ==1717 [2025-04-26 12:08:19] Production.ERROR: pbx CDR StartTime 2025-04-26 09:08:06 - End Time 2025-04-26 12:08:06 [2025-04-26 12:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 12:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994176', 'tblTempUsageDetail_20' ) start [2025-04-26 12:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994176', 'tblTempUsageDetail_20' ) end [2025-04-26 12:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994176', 'tblTempVendorCDR_20' ) start [2025-04-26 12:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994176', 'tblTempVendorCDR_20' ) end [2025-04-26 12:08:19] Production.INFO: ProcessCDR(1,14994176,1,1,2) [2025-04-26 12:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994176', 'tblTempUsageDetail_20' ) start [2025-04-26 12:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994176', 'tblTempUsageDetail_20' ) end [2025-04-26 12:08:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 12:08:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 12:08:24] Production.INFO: ==12554== Releasing lock... [2025-04-26 12:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 12:08:24] Production.INFO: 41.25 MB #Memory Used# [2025-04-26 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 09:09:05 [end_date_ymd] => 2025-04-26 12:09:05 [RateCDR] => 1 ) [2025-04-26 12:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 09:09:05' and `end` < '2025-04-26 12:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 12:09:18] Production.INFO: count ==1720 [2025-04-26 12:09:18] Production.ERROR: pbx CDR StartTime 2025-04-26 09:09:05 - End Time 2025-04-26 12:09:05 [2025-04-26 12:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 12:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994181', 'tblTempUsageDetail_20' ) start [2025-04-26 12:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994181', 'tblTempUsageDetail_20' ) end [2025-04-26 12:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994181', 'tblTempVendorCDR_20' ) start [2025-04-26 12:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994181', 'tblTempVendorCDR_20' ) end [2025-04-26 12:09:18] Production.INFO: ProcessCDR(1,14994181,1,1,2) [2025-04-26 12:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994181', 'tblTempUsageDetail_20' ) start [2025-04-26 12:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994181', 'tblTempUsageDetail_20' ) end [2025-04-26 12:09:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 12:09:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 12:09:23] Production.INFO: ==12627== Releasing lock... [2025-04-26 12:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 12:09:23] Production.INFO: 41 MB #Memory Used# [2025-04-26 12:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 09:10:07 [end_date_ymd] => 2025-04-26 12:10:07 [RateCDR] => 1 ) [2025-04-26 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-04-26 09:10:07' and `end` < '2025-04-26 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-04-26 12:10:19] Production.INFO: count ==1715 [2025-04-26 12:10:20] Production.ERROR: pbx CDR StartTime 2025-04-26 09:10:07 - End Time 2025-04-26 12:10:07 [2025-04-26 12:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 12:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994187', 'tblTempUsageDetail_20' ) start [2025-04-26 12:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994187', 'tblTempUsageDetail_20' ) end [2025-04-26 12:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994187', 'tblTempVendorCDR_20' ) start [2025-04-26 12:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994187', 'tblTempVendorCDR_20' ) end [2025-04-26 12:10:20] Production.INFO: ProcessCDR(1,14994187,1,1,2) [2025-04-26 12:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994187', 'tblTempUsageDetail_20' ) start [2025-04-26 12:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994187', 'tblTempUsageDetail_20' ) end [2025-04-26 12:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 12:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 12:10:24] Production.INFO: ==12701== Releasing lock... [2025-04-26 12:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 12:10:24] Production.INFO: 41.25 MB #Memory Used# [2025-04-26 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 09:11:05 [end_date_ymd] => 2025-04-26 12:11:05 [RateCDR] => 1 ) [2025-04-26 12:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 09:11:05' and `end` < '2025-04-26 12:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 12:11:17] Production.INFO: count ==1717 [2025-04-26 12:11:18] Production.ERROR: pbx CDR StartTime 2025-04-26 09:11:05 - End Time 2025-04-26 12:11:05 [2025-04-26 12:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 12:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994192', 'tblTempUsageDetail_20' ) start [2025-04-26 12:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994192', 'tblTempUsageDetail_20' ) end [2025-04-26 12:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994192', 'tblTempVendorCDR_20' ) start [2025-04-26 12:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994192', 'tblTempVendorCDR_20' ) end [2025-04-26 12:11:18] Production.INFO: ProcessCDR(1,14994192,1,1,2) [2025-04-26 12:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994192', 'tblTempUsageDetail_20' ) start [2025-04-26 12:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994192', 'tblTempUsageDetail_20' ) end [2025-04-26 12:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 12:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 12:11:23] Production.INFO: ==12776== Releasing lock... [2025-04-26 12:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 12:11:23] Production.INFO: 41.25 MB #Memory Used# [2025-04-26 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 09:12:05 [end_date_ymd] => 2025-04-26 12:12:05 [RateCDR] => 1 ) [2025-04-26 12:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 09:12:05' and `end` < '2025-04-26 12:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 12:12:18] Production.INFO: count ==1718 [2025-04-26 12:12:19] Production.ERROR: pbx CDR StartTime 2025-04-26 09:12:05 - End Time 2025-04-26 12:12:05 [2025-04-26 12:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 12:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994197', 'tblTempUsageDetail_20' ) start [2025-04-26 12:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994197', 'tblTempUsageDetail_20' ) end [2025-04-26 12:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994197', 'tblTempVendorCDR_20' ) start [2025-04-26 12:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994197', 'tblTempVendorCDR_20' ) end [2025-04-26 12:12:19] Production.INFO: ProcessCDR(1,14994197,1,1,2) [2025-04-26 12:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994197', 'tblTempUsageDetail_20' ) start [2025-04-26 12:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994197', 'tblTempUsageDetail_20' ) end [2025-04-26 12:12:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 12:12:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 12:12:24] Production.INFO: ==12848== Releasing lock... [2025-04-26 12:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 12:12:24] Production.INFO: 41.25 MB #Memory Used# [2025-04-26 12:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 09:13:04 [end_date_ymd] => 2025-04-26 12:13:04 [RateCDR] => 1 ) [2025-04-26 12:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 09:13:04' and `end` < '2025-04-26 12:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 12:13:17] Production.INFO: count ==1706 [2025-04-26 12:13:18] Production.ERROR: pbx CDR StartTime 2025-04-26 09:13:04 - End Time 2025-04-26 12:13:04 [2025-04-26 12:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994202', 'tblTempUsageDetail_20' ) start [2025-04-26 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994202', 'tblTempUsageDetail_20' ) end [2025-04-26 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994202', 'tblTempVendorCDR_20' ) start [2025-04-26 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994202', 'tblTempVendorCDR_20' ) end [2025-04-26 12:13:18] Production.INFO: ProcessCDR(1,14994202,1,1,2) [2025-04-26 12:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994202', 'tblTempUsageDetail_20' ) start [2025-04-26 12:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994202', 'tblTempUsageDetail_20' ) end [2025-04-26 12:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 12:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 12:13:23] Production.INFO: ==12918== Releasing lock... [2025-04-26 12:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 12:13:23] Production.INFO: 41 MB #Memory Used# [2025-04-26 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 09:14:05 [end_date_ymd] => 2025-04-26 12:14:05 [RateCDR] => 1 ) [2025-04-26 12:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 09:14:05' and `end` < '2025-04-26 12:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 12:14:18] Production.INFO: count ==1729 [2025-04-26 12:14:18] Production.ERROR: pbx CDR StartTime 2025-04-26 09:14:05 - End Time 2025-04-26 12:14:05 [2025-04-26 12:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 12:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994207', 'tblTempUsageDetail_20' ) start [2025-04-26 12:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994207', 'tblTempUsageDetail_20' ) end [2025-04-26 12:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994207', 'tblTempVendorCDR_20' ) start [2025-04-26 12:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994207', 'tblTempVendorCDR_20' ) end [2025-04-26 12:14:19] Production.INFO: ProcessCDR(1,14994207,1,1,2) [2025-04-26 12:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994207', 'tblTempUsageDetail_20' ) start [2025-04-26 12:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994207', 'tblTempUsageDetail_20' ) end [2025-04-26 12:14:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 12:14:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 12:14:23] Production.INFO: ==12992== Releasing lock... [2025-04-26 12:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 12:14:23] Production.INFO: 41.25 MB #Memory Used# [2025-04-26 12:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 09:15:06 [end_date_ymd] => 2025-04-26 12:15:06 [RateCDR] => 1 ) [2025-04-26 12:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 09:15:06' and `end` < '2025-04-26 12:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 12:15:19] Production.INFO: count ==1729 [2025-04-26 12:15:20] Production.ERROR: pbx CDR StartTime 2025-04-26 09:15:06 - End Time 2025-04-26 12:15:06 [2025-04-26 12:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 12:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994212', 'tblTempUsageDetail_20' ) start [2025-04-26 12:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994212', 'tblTempUsageDetail_20' ) end [2025-04-26 12:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994212', 'tblTempVendorCDR_20' ) start [2025-04-26 12:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994212', 'tblTempVendorCDR_20' ) end [2025-04-26 12:15:20] Production.INFO: ProcessCDR(1,14994212,1,1,2) [2025-04-26 12:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994212', 'tblTempUsageDetail_20' ) start [2025-04-26 12:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994212', 'tblTempUsageDetail_20' ) end [2025-04-26 12:15:25] Production.ERROR: pbx prc_insertCDR start [2025-04-26 12:15:25] Production.ERROR: pbx prc_insertCDR end [2025-04-26 12:15:25] Production.INFO: ==13069== Releasing lock... [2025-04-26 12:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 12:15:25] Production.INFO: 41 MB #Memory Used# [2025-04-26 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 09:16:05 [end_date_ymd] => 2025-04-26 12:16:05 [RateCDR] => 1 ) [2025-04-26 12:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 09:16:05' and `end` < '2025-04-26 12:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 12:16:18] Production.INFO: count ==1732 [2025-04-26 12:16:19] Production.ERROR: pbx CDR StartTime 2025-04-26 09:16:05 - End Time 2025-04-26 12:16:05 [2025-04-26 12:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 12:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994217', 'tblTempUsageDetail_20' ) start [2025-04-26 12:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994217', 'tblTempUsageDetail_20' ) end [2025-04-26 12:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994217', 'tblTempVendorCDR_20' ) start [2025-04-26 12:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994217', 'tblTempVendorCDR_20' ) end [2025-04-26 12:16:19] Production.INFO: ProcessCDR(1,14994217,1,1,2) [2025-04-26 12:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994217', 'tblTempUsageDetail_20' ) start [2025-04-26 12:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994217', 'tblTempUsageDetail_20' ) end [2025-04-26 12:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 12:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 12:16:22] Production.INFO: ==13140== Releasing lock... [2025-04-26 12:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 12:16:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-26 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 09:17:05 [end_date_ymd] => 2025-04-26 12:17:05 [RateCDR] => 1 ) [2025-04-26 12:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 09:17:05' and `end` < '2025-04-26 12:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 12:17:18] Production.INFO: count ==1732 [2025-04-26 12:17:18] Production.ERROR: pbx CDR StartTime 2025-04-26 09:17:05 - End Time 2025-04-26 12:17:05 [2025-04-26 12:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 12:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994222', 'tblTempUsageDetail_20' ) start [2025-04-26 12:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994222', 'tblTempUsageDetail_20' ) end [2025-04-26 12:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994222', 'tblTempVendorCDR_20' ) start [2025-04-26 12:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994222', 'tblTempVendorCDR_20' ) end [2025-04-26 12:17:18] Production.INFO: ProcessCDR(1,14994222,1,1,2) [2025-04-26 12:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994222', 'tblTempUsageDetail_20' ) start [2025-04-26 12:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994222', 'tblTempUsageDetail_20' ) end [2025-04-26 12:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 12:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 12:17:22] Production.INFO: ==13220== Releasing lock... [2025-04-26 12:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 12:17:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-26 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 09:18:05 [end_date_ymd] => 2025-04-26 12:18:05 [RateCDR] => 1 ) [2025-04-26 12:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 09:18:05' and `end` < '2025-04-26 12:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 12:18:18] Production.INFO: count ==1719 [2025-04-26 12:18:19] Production.ERROR: pbx CDR StartTime 2025-04-26 09:18:05 - End Time 2025-04-26 12:18:05 [2025-04-26 12:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 12:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994227', 'tblTempUsageDetail_20' ) start [2025-04-26 12:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994227', 'tblTempUsageDetail_20' ) end [2025-04-26 12:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994227', 'tblTempVendorCDR_20' ) start [2025-04-26 12:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994227', 'tblTempVendorCDR_20' ) end [2025-04-26 12:18:19] Production.INFO: ProcessCDR(1,14994227,1,1,2) [2025-04-26 12:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994227', 'tblTempUsageDetail_20' ) start [2025-04-26 12:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994227', 'tblTempUsageDetail_20' ) end [2025-04-26 12:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 12:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 12:18:22] Production.INFO: ==13332== Releasing lock... [2025-04-26 12:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 12:18:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-26 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 09:19:05 [end_date_ymd] => 2025-04-26 12:19:05 [RateCDR] => 1 ) [2025-04-26 12:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 09:19:05' and `end` < '2025-04-26 12:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 12:19:18] Production.INFO: count ==1715 [2025-04-26 12:19:18] Production.ERROR: pbx CDR StartTime 2025-04-26 09:19:05 - End Time 2025-04-26 12:19:05 [2025-04-26 12:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994232', 'tblTempUsageDetail_20' ) start [2025-04-26 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994232', 'tblTempUsageDetail_20' ) end [2025-04-26 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994232', 'tblTempVendorCDR_20' ) start [2025-04-26 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994232', 'tblTempVendorCDR_20' ) end [2025-04-26 12:19:18] Production.INFO: ProcessCDR(1,14994232,1,1,2) [2025-04-26 12:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994232', 'tblTempUsageDetail_20' ) start [2025-04-26 12:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994232', 'tblTempUsageDetail_20' ) end [2025-04-26 12:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 12:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 12:19:22] Production.INFO: ==13405== Releasing lock... [2025-04-26 12:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 12:19:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-26 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 09:20:06 [end_date_ymd] => 2025-04-26 12:20:06 [RateCDR] => 1 ) [2025-04-26 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-04-26 09:20:06' and `end` < '2025-04-26 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-04-26 12:20:18] Production.INFO: count ==1715 [2025-04-26 12:20:19] Production.ERROR: pbx CDR StartTime 2025-04-26 09:20:06 - End Time 2025-04-26 12:20:06 [2025-04-26 12:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994238', 'tblTempUsageDetail_20' ) start [2025-04-26 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994238', 'tblTempUsageDetail_20' ) end [2025-04-26 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994238', 'tblTempVendorCDR_20' ) start [2025-04-26 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994238', 'tblTempVendorCDR_20' ) end [2025-04-26 12:20:19] Production.INFO: ProcessCDR(1,14994238,1,1,2) [2025-04-26 12:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994238', 'tblTempUsageDetail_20' ) start [2025-04-26 12:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994238', 'tblTempUsageDetail_20' ) end [2025-04-26 12:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 12:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 12:20:23] Production.INFO: ==13478== Releasing lock... [2025-04-26 12:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 12:20:23] Production.INFO: 41.25 MB #Memory Used# [2025-04-26 12:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 09:21:06 [end_date_ymd] => 2025-04-26 12:21:06 [RateCDR] => 1 ) [2025-04-26 12:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 09:21:06' and `end` < '2025-04-26 12:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 12:21:19] Production.INFO: count ==1741 [2025-04-26 12:21:19] Production.ERROR: pbx CDR StartTime 2025-04-26 09:21:06 - End Time 2025-04-26 12:21:06 [2025-04-26 12:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 12:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994243', 'tblTempUsageDetail_20' ) start [2025-04-26 12:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994243', 'tblTempUsageDetail_20' ) end [2025-04-26 12:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994243', 'tblTempVendorCDR_20' ) start [2025-04-26 12:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994243', 'tblTempVendorCDR_20' ) end [2025-04-26 12:21:19] Production.INFO: ProcessCDR(1,14994243,1,1,2) [2025-04-26 12:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994243', 'tblTempUsageDetail_20' ) start [2025-04-26 12:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994243', 'tblTempUsageDetail_20' ) end [2025-04-26 12:21:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 12:21:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 12:21:23] Production.INFO: ==13553== Releasing lock... [2025-04-26 12:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 12:21:23] Production.INFO: 41.75 MB #Memory Used# [2025-04-26 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 09:22:05 [end_date_ymd] => 2025-04-26 12:22:05 [RateCDR] => 1 ) [2025-04-26 12:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 09:22:05' and `end` < '2025-04-26 12:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 12:22:18] Production.INFO: count ==1738 [2025-04-26 12:22:18] Production.ERROR: pbx CDR StartTime 2025-04-26 09:22:05 - End Time 2025-04-26 12:22:05 [2025-04-26 12:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 12:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994248', 'tblTempUsageDetail_20' ) start [2025-04-26 12:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994248', 'tblTempUsageDetail_20' ) end [2025-04-26 12:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994248', 'tblTempVendorCDR_20' ) start [2025-04-26 12:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994248', 'tblTempVendorCDR_20' ) end [2025-04-26 12:22:19] Production.INFO: ProcessCDR(1,14994248,1,1,2) [2025-04-26 12:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994248', 'tblTempUsageDetail_20' ) start [2025-04-26 12:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994248', 'tblTempUsageDetail_20' ) end [2025-04-26 12:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 12:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 12:22:22] Production.INFO: ==13624== Releasing lock... [2025-04-26 12:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 12:22:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-26 12:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 09:23:06 [end_date_ymd] => 2025-04-26 12:23:06 [RateCDR] => 1 ) [2025-04-26 12:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 09:23:06' and `end` < '2025-04-26 12:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 12:23:19] Production.INFO: count ==1737 [2025-04-26 12:23:19] Production.ERROR: pbx CDR StartTime 2025-04-26 09:23:06 - End Time 2025-04-26 12:23:06 [2025-04-26 12:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 12:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994253', 'tblTempUsageDetail_20' ) start [2025-04-26 12:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994253', 'tblTempUsageDetail_20' ) end [2025-04-26 12:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994253', 'tblTempVendorCDR_20' ) start [2025-04-26 12:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994253', 'tblTempVendorCDR_20' ) end [2025-04-26 12:23:19] Production.INFO: ProcessCDR(1,14994253,1,1,2) [2025-04-26 12:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994253', 'tblTempUsageDetail_20' ) start [2025-04-26 12:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994253', 'tblTempUsageDetail_20' ) end [2025-04-26 12:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 12:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 12:23:24] Production.INFO: ==13695== Releasing lock... [2025-04-26 12:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 12:23:24] Production.INFO: 41.5 MB #Memory Used# [2025-04-26 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 09:24:05 [end_date_ymd] => 2025-04-26 12:24:05 [RateCDR] => 1 ) [2025-04-26 12:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 09:24:05' and `end` < '2025-04-26 12:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 12:24:18] Production.INFO: count ==1739 [2025-04-26 12:24:19] Production.ERROR: pbx CDR StartTime 2025-04-26 09:24:05 - End Time 2025-04-26 12:24:05 [2025-04-26 12:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 12:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994258', 'tblTempUsageDetail_20' ) start [2025-04-26 12:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994258', 'tblTempUsageDetail_20' ) end [2025-04-26 12:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994258', 'tblTempVendorCDR_20' ) start [2025-04-26 12:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994258', 'tblTempVendorCDR_20' ) end [2025-04-26 12:24:19] Production.INFO: ProcessCDR(1,14994258,1,1,2) [2025-04-26 12:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994258', 'tblTempUsageDetail_20' ) start [2025-04-26 12:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994258', 'tblTempUsageDetail_20' ) end [2025-04-26 12:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 12:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 12:24:22] Production.INFO: ==13767== Releasing lock... [2025-04-26 12:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 12:24:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-26 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 09:25:05 [end_date_ymd] => 2025-04-26 12:25:05 [RateCDR] => 1 ) [2025-04-26 12:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 09:25:05' and `end` < '2025-04-26 12:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 12:25:17] Production.INFO: count ==1742 [2025-04-26 12:25:18] Production.ERROR: pbx CDR StartTime 2025-04-26 09:25:05 - End Time 2025-04-26 12:25:05 [2025-04-26 12:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994263', 'tblTempUsageDetail_20' ) start [2025-04-26 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994263', 'tblTempUsageDetail_20' ) end [2025-04-26 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994263', 'tblTempVendorCDR_20' ) start [2025-04-26 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994263', 'tblTempVendorCDR_20' ) end [2025-04-26 12:25:18] Production.INFO: ProcessCDR(1,14994263,1,1,2) [2025-04-26 12:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994263', 'tblTempUsageDetail_20' ) start [2025-04-26 12:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994263', 'tblTempUsageDetail_20' ) end [2025-04-26 12:25:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 12:25:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 12:25:23] Production.INFO: ==13839== Releasing lock... [2025-04-26 12:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 12:25:23] Production.INFO: 41.25 MB #Memory Used# [2025-04-26 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 09:26:05 [end_date_ymd] => 2025-04-26 12:26:05 [RateCDR] => 1 ) [2025-04-26 12:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 09:26:05' and `end` < '2025-04-26 12:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 12:26:18] Production.INFO: count ==1751 [2025-04-26 12:26:19] Production.ERROR: pbx CDR StartTime 2025-04-26 09:26:05 - End Time 2025-04-26 12:26:05 [2025-04-26 12:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 12:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994268', 'tblTempUsageDetail_20' ) start [2025-04-26 12:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994268', 'tblTempUsageDetail_20' ) end [2025-04-26 12:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994268', 'tblTempVendorCDR_20' ) start [2025-04-26 12:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994268', 'tblTempVendorCDR_20' ) end [2025-04-26 12:26:19] Production.INFO: ProcessCDR(1,14994268,1,1,2) [2025-04-26 12:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994268', 'tblTempUsageDetail_20' ) start [2025-04-26 12:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994268', 'tblTempUsageDetail_20' ) end [2025-04-26 12:26:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 12:26:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 12:26:24] Production.INFO: ==13911== Releasing lock... [2025-04-26 12:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 12:26:24] Production.INFO: 41.75 MB #Memory Used# [2025-04-26 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 09:27:05 [end_date_ymd] => 2025-04-26 12:27:05 [RateCDR] => 1 ) [2025-04-26 12:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 09:27:05' and `end` < '2025-04-26 12:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 12:27:18] Production.INFO: count ==1766 [2025-04-26 12:27:19] Production.ERROR: pbx CDR StartTime 2025-04-26 09:27:05 - End Time 2025-04-26 12:27:05 [2025-04-26 12:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 12:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994273', 'tblTempUsageDetail_20' ) start [2025-04-26 12:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994273', 'tblTempUsageDetail_20' ) end [2025-04-26 12:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994273', 'tblTempVendorCDR_20' ) start [2025-04-26 12:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994273', 'tblTempVendorCDR_20' ) end [2025-04-26 12:27:19] Production.INFO: ProcessCDR(1,14994273,1,1,2) [2025-04-26 12:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994273', 'tblTempUsageDetail_20' ) start [2025-04-26 12:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994273', 'tblTempUsageDetail_20' ) end [2025-04-26 12:27:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 12:27:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 12:27:24] Production.INFO: ==13985== Releasing lock... [2025-04-26 12:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 12:27:24] Production.INFO: 41.5 MB #Memory Used# [2025-04-26 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 09:28:05 [end_date_ymd] => 2025-04-26 12:28:05 [RateCDR] => 1 ) [2025-04-26 12:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 09:28:05' and `end` < '2025-04-26 12:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 12:28:18] Production.INFO: count ==1766 [2025-04-26 12:28:19] Production.ERROR: pbx CDR StartTime 2025-04-26 09:28:05 - End Time 2025-04-26 12:28:05 [2025-04-26 12:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 12:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994278', 'tblTempUsageDetail_20' ) start [2025-04-26 12:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994278', 'tblTempUsageDetail_20' ) end [2025-04-26 12:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994278', 'tblTempVendorCDR_20' ) start [2025-04-26 12:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994278', 'tblTempVendorCDR_20' ) end [2025-04-26 12:28:19] Production.INFO: ProcessCDR(1,14994278,1,1,2) [2025-04-26 12:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994278', 'tblTempUsageDetail_20' ) start [2025-04-26 12:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994278', 'tblTempUsageDetail_20' ) end [2025-04-26 12:28:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 12:28:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 12:28:23] Production.INFO: ==14065== Releasing lock... [2025-04-26 12:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 12:28:23] Production.INFO: 41.25 MB #Memory Used# [2025-04-26 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 09:29:05 [end_date_ymd] => 2025-04-26 12:29:05 [RateCDR] => 1 ) [2025-04-26 12:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 09:29:05' and `end` < '2025-04-26 12:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 12:29:18] Production.INFO: count ==1757 [2025-04-26 12:29:19] Production.ERROR: pbx CDR StartTime 2025-04-26 09:29:05 - End Time 2025-04-26 12:29:05 [2025-04-26 12:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 12:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994283', 'tblTempUsageDetail_20' ) start [2025-04-26 12:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994283', 'tblTempUsageDetail_20' ) end [2025-04-26 12:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994283', 'tblTempVendorCDR_20' ) start [2025-04-26 12:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994283', 'tblTempVendorCDR_20' ) end [2025-04-26 12:29:19] Production.INFO: ProcessCDR(1,14994283,1,1,2) [2025-04-26 12:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994283', 'tblTempUsageDetail_20' ) start [2025-04-26 12:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994283', 'tblTempUsageDetail_20' ) end [2025-04-26 12:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 12:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 12:29:22] Production.INFO: ==14138== Releasing lock... [2025-04-26 12:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 12:29:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-26 12:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 09:30:05 [end_date_ymd] => 2025-04-26 12:30:05 [RateCDR] => 1 ) [2025-04-26 12:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 09:30:05' and `end` < '2025-04-26 12:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 12:30:18] Production.INFO: count ==1755 [2025-04-26 12:30:19] Production.ERROR: pbx CDR StartTime 2025-04-26 09:30:05 - End Time 2025-04-26 12:30:05 [2025-04-26 12:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994289', 'tblTempUsageDetail_20' ) start [2025-04-26 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994289', 'tblTempUsageDetail_20' ) end [2025-04-26 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994289', 'tblTempVendorCDR_20' ) start [2025-04-26 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994289', 'tblTempVendorCDR_20' ) end [2025-04-26 12:30:19] Production.INFO: ProcessCDR(1,14994289,1,1,2) [2025-04-26 12:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994289', 'tblTempUsageDetail_20' ) start [2025-04-26 12:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994289', 'tblTempUsageDetail_20' ) end [2025-04-26 12:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 12:30:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 12:30:24] Production.INFO: ==14210== Releasing lock... [2025-04-26 12:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 12:30:24] Production.INFO: 41.25 MB #Memory Used# [2025-04-26 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 09:31:05 [end_date_ymd] => 2025-04-26 12:31:05 [RateCDR] => 1 ) [2025-04-26 12:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 09:31:05' and `end` < '2025-04-26 12:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 12:31:17] Production.INFO: count ==1795 [2025-04-26 12:31:18] Production.ERROR: pbx CDR StartTime 2025-04-26 09:31:05 - End Time 2025-04-26 12:31:05 [2025-04-26 12:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 12:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994294', 'tblTempUsageDetail_20' ) start [2025-04-26 12:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994294', 'tblTempUsageDetail_20' ) end [2025-04-26 12:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994294', 'tblTempVendorCDR_20' ) start [2025-04-26 12:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994294', 'tblTempVendorCDR_20' ) end [2025-04-26 12:31:18] Production.INFO: ProcessCDR(1,14994294,1,1,2) [2025-04-26 12:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994294', 'tblTempUsageDetail_20' ) start [2025-04-26 12:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994294', 'tblTempUsageDetail_20' ) end [2025-04-26 12:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 12:31:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 12:31:24] Production.INFO: ==14285== Releasing lock... [2025-04-26 12:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 12:31:24] Production.INFO: 41.75 MB #Memory Used# [2025-04-26 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 09:32:05 [end_date_ymd] => 2025-04-26 12:32:05 [RateCDR] => 1 ) [2025-04-26 12:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 09:32:05' and `end` < '2025-04-26 12:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 12:32:18] Production.INFO: count ==1799 [2025-04-26 12:32:19] Production.ERROR: pbx CDR StartTime 2025-04-26 09:32:05 - End Time 2025-04-26 12:32:05 [2025-04-26 12:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 12:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994298', 'tblTempUsageDetail_20' ) start [2025-04-26 12:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994298', 'tblTempUsageDetail_20' ) end [2025-04-26 12:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994298', 'tblTempVendorCDR_20' ) start [2025-04-26 12:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994298', 'tblTempVendorCDR_20' ) end [2025-04-26 12:32:19] Production.INFO: ProcessCDR(1,14994298,1,1,2) [2025-04-26 12:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994298', 'tblTempUsageDetail_20' ) start [2025-04-26 12:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994298', 'tblTempUsageDetail_20' ) end [2025-04-26 12:32:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 12:32:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 12:32:24] Production.INFO: ==14356== Releasing lock... [2025-04-26 12:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 12:32:24] Production.INFO: 41.75 MB #Memory Used# [2025-04-26 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 09:33:05 [end_date_ymd] => 2025-04-26 12:33:05 [RateCDR] => 1 ) [2025-04-26 12:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 09:33:05' and `end` < '2025-04-26 12:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 12:33:18] Production.INFO: count ==1799 [2025-04-26 12:33:18] Production.ERROR: pbx CDR StartTime 2025-04-26 09:33:05 - End Time 2025-04-26 12:33:05 [2025-04-26 12:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 12:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994304', 'tblTempUsageDetail_20' ) start [2025-04-26 12:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994304', 'tblTempUsageDetail_20' ) end [2025-04-26 12:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994304', 'tblTempVendorCDR_20' ) start [2025-04-26 12:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994304', 'tblTempVendorCDR_20' ) end [2025-04-26 12:33:19] Production.INFO: ProcessCDR(1,14994304,1,1,2) [2025-04-26 12:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994304', 'tblTempUsageDetail_20' ) start [2025-04-26 12:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994304', 'tblTempUsageDetail_20' ) end [2025-04-26 12:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 12:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 12:33:22] Production.INFO: ==14469== Releasing lock... [2025-04-26 12:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 12:33:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-26 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 09:34:05 [end_date_ymd] => 2025-04-26 12:34:05 [RateCDR] => 1 ) [2025-04-26 12:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 09:34:05' and `end` < '2025-04-26 12:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 12:34:18] Production.INFO: count ==1803 [2025-04-26 12:34:19] Production.ERROR: pbx CDR StartTime 2025-04-26 09:34:05 - End Time 2025-04-26 12:34:05 [2025-04-26 12:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 12:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994309', 'tblTempUsageDetail_20' ) start [2025-04-26 12:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994309', 'tblTempUsageDetail_20' ) end [2025-04-26 12:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994309', 'tblTempVendorCDR_20' ) start [2025-04-26 12:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994309', 'tblTempVendorCDR_20' ) end [2025-04-26 12:34:19] Production.INFO: ProcessCDR(1,14994309,1,1,2) [2025-04-26 12:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994309', 'tblTempUsageDetail_20' ) start [2025-04-26 12:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994309', 'tblTempUsageDetail_20' ) end [2025-04-26 12:34:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 12:34:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 12:34:24] Production.INFO: ==14539== Releasing lock... [2025-04-26 12:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 12:34:24] Production.INFO: 41.5 MB #Memory Used# [2025-04-26 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 09:35:05 [end_date_ymd] => 2025-04-26 12:35:05 [RateCDR] => 1 ) [2025-04-26 12:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 09:35:05' and `end` < '2025-04-26 12:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 12:35:18] Production.INFO: count ==1812 [2025-04-26 12:35:18] Production.ERROR: pbx CDR StartTime 2025-04-26 09:35:05 - End Time 2025-04-26 12:35:05 [2025-04-26 12:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 12:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994314', 'tblTempUsageDetail_20' ) start [2025-04-26 12:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994314', 'tblTempUsageDetail_20' ) end [2025-04-26 12:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994314', 'tblTempVendorCDR_20' ) start [2025-04-26 12:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994314', 'tblTempVendorCDR_20' ) end [2025-04-26 12:35:18] Production.INFO: ProcessCDR(1,14994314,1,1,2) [2025-04-26 12:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994314', 'tblTempUsageDetail_20' ) start [2025-04-26 12:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994314', 'tblTempUsageDetail_20' ) end [2025-04-26 12:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 12:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 12:35:23] Production.INFO: ==14608== Releasing lock... [2025-04-26 12:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 12:35:23] Production.INFO: 41.75 MB #Memory Used# [2025-04-26 12:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 09:36:06 [end_date_ymd] => 2025-04-26 12:36:06 [RateCDR] => 1 ) [2025-04-26 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-04-26 09:36:06' and `end` < '2025-04-26 12:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 12:36:18] Production.INFO: count ==1817 [2025-04-26 12:36:19] Production.ERROR: pbx CDR StartTime 2025-04-26 09:36:06 - End Time 2025-04-26 12:36:06 [2025-04-26 12:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 12:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994319', 'tblTempUsageDetail_20' ) start [2025-04-26 12:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994319', 'tblTempUsageDetail_20' ) end [2025-04-26 12:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994319', 'tblTempVendorCDR_20' ) start [2025-04-26 12:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994319', 'tblTempVendorCDR_20' ) end [2025-04-26 12:36:19] Production.INFO: ProcessCDR(1,14994319,1,1,2) [2025-04-26 12:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994319', 'tblTempUsageDetail_20' ) start [2025-04-26 12:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994319', 'tblTempUsageDetail_20' ) end [2025-04-26 12:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 12:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 12:36:23] Production.INFO: ==14679== Releasing lock... [2025-04-26 12:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 12:36:23] Production.INFO: 41.75 MB #Memory Used# [2025-04-26 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 09:37:05 [end_date_ymd] => 2025-04-26 12:37:05 [RateCDR] => 1 ) [2025-04-26 12:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 09:37:05' and `end` < '2025-04-26 12:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 12:37:18] Production.INFO: count ==1825 [2025-04-26 12:37:19] Production.ERROR: pbx CDR StartTime 2025-04-26 09:37:05 - End Time 2025-04-26 12:37:05 [2025-04-26 12:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 12:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994324', 'tblTempUsageDetail_20' ) start [2025-04-26 12:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994324', 'tblTempUsageDetail_20' ) end [2025-04-26 12:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994324', 'tblTempVendorCDR_20' ) start [2025-04-26 12:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994324', 'tblTempVendorCDR_20' ) end [2025-04-26 12:37:19] Production.INFO: ProcessCDR(1,14994324,1,1,2) [2025-04-26 12:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994324', 'tblTempUsageDetail_20' ) start [2025-04-26 12:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994324', 'tblTempUsageDetail_20' ) end [2025-04-26 12:37:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 12:37:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 12:37:24] Production.INFO: ==14750== Releasing lock... [2025-04-26 12:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 12:37:24] Production.INFO: 41.75 MB #Memory Used# [2025-04-26 12:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 09:38:06 [end_date_ymd] => 2025-04-26 12:38:06 [RateCDR] => 1 ) [2025-04-26 12:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 09:38:06' and `end` < '2025-04-26 12:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 12:38:19] Production.INFO: count ==1817 [2025-04-26 12:38:19] Production.ERROR: pbx CDR StartTime 2025-04-26 09:38:06 - End Time 2025-04-26 12:38:06 [2025-04-26 12:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 12:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994329', 'tblTempUsageDetail_20' ) start [2025-04-26 12:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994329', 'tblTempUsageDetail_20' ) end [2025-04-26 12:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994329', 'tblTempVendorCDR_20' ) start [2025-04-26 12:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994329', 'tblTempVendorCDR_20' ) end [2025-04-26 12:38:19] Production.INFO: ProcessCDR(1,14994329,1,1,2) [2025-04-26 12:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994329', 'tblTempUsageDetail_20' ) start [2025-04-26 12:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994329', 'tblTempUsageDetail_20' ) end [2025-04-26 12:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 12:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 12:38:23] Production.INFO: ==14828== Releasing lock... [2025-04-26 12:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 12:38:23] Production.INFO: 42 MB #Memory Used# [2025-04-26 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 09:39:05 [end_date_ymd] => 2025-04-26 12:39:05 [RateCDR] => 1 ) [2025-04-26 12:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 09:39:05' and `end` < '2025-04-26 12:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 12:39:18] Production.INFO: count ==1822 [2025-04-26 12:39:18] Production.ERROR: pbx CDR StartTime 2025-04-26 09:39:05 - End Time 2025-04-26 12:39:05 [2025-04-26 12:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 12:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994334', 'tblTempUsageDetail_20' ) start [2025-04-26 12:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994334', 'tblTempUsageDetail_20' ) end [2025-04-26 12:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994334', 'tblTempVendorCDR_20' ) start [2025-04-26 12:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994334', 'tblTempVendorCDR_20' ) end [2025-04-26 12:39:19] Production.INFO: ProcessCDR(1,14994334,1,1,2) [2025-04-26 12:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994334', 'tblTempUsageDetail_20' ) start [2025-04-26 12:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994334', 'tblTempUsageDetail_20' ) end [2025-04-26 12:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 12:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 12:39:22] Production.INFO: ==14902== Releasing lock... [2025-04-26 12:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 12:39:22] Production.INFO: 41.75 MB #Memory Used# [2025-04-26 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 09:40:06 [end_date_ymd] => 2025-04-26 12:40:06 [RateCDR] => 1 ) [2025-04-26 12:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 09:40:06' and `end` < '2025-04-26 12:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 12:40:18] Production.INFO: count ==1822 [2025-04-26 12:40:19] Production.ERROR: pbx CDR StartTime 2025-04-26 09:40:06 - End Time 2025-04-26 12:40:06 [2025-04-26 12:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 12:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994340', 'tblTempUsageDetail_20' ) start [2025-04-26 12:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994340', 'tblTempUsageDetail_20' ) end [2025-04-26 12:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994340', 'tblTempVendorCDR_20' ) start [2025-04-26 12:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994340', 'tblTempVendorCDR_20' ) end [2025-04-26 12:40:19] Production.INFO: ProcessCDR(1,14994340,1,1,2) [2025-04-26 12:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994340', 'tblTempUsageDetail_20' ) start [2025-04-26 12:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994340', 'tblTempUsageDetail_20' ) end [2025-04-26 12:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 12:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 12:40:22] Production.INFO: ==14979== Releasing lock... [2025-04-26 12:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 12:40:22] Production.INFO: 41.75 MB #Memory Used# [2025-04-26 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 09:41:04 [end_date_ymd] => 2025-04-26 12:41:04 [RateCDR] => 1 ) [2025-04-26 12:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 09:41:04' and `end` < '2025-04-26 12:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 12:41:17] Production.INFO: count ==1878 [2025-04-26 12:41:18] Production.ERROR: pbx CDR StartTime 2025-04-26 09:41:04 - End Time 2025-04-26 12:41:04 [2025-04-26 12:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 12:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994345', 'tblTempUsageDetail_20' ) start [2025-04-26 12:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994345', 'tblTempUsageDetail_20' ) end [2025-04-26 12:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994345', 'tblTempVendorCDR_20' ) start [2025-04-26 12:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994345', 'tblTempVendorCDR_20' ) end [2025-04-26 12:41:18] Production.INFO: ProcessCDR(1,14994345,1,1,2) [2025-04-26 12:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994345', 'tblTempUsageDetail_20' ) start [2025-04-26 12:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994345', 'tblTempUsageDetail_20' ) end [2025-04-26 12:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 12:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 12:41:23] Production.INFO: ==15051== Releasing lock... [2025-04-26 12:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 12:41:23] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 12:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 09:42:06 [end_date_ymd] => 2025-04-26 12:42:06 [RateCDR] => 1 ) [2025-04-26 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-04-26 09:42:06' and `end` < '2025-04-26 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-04-26 12:42:18] Production.INFO: count ==1879 [2025-04-26 12:42:19] Production.ERROR: pbx CDR StartTime 2025-04-26 09:42:06 - End Time 2025-04-26 12:42:06 [2025-04-26 12:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 12:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994350', 'tblTempUsageDetail_20' ) start [2025-04-26 12:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994350', 'tblTempUsageDetail_20' ) end [2025-04-26 12:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994350', 'tblTempVendorCDR_20' ) start [2025-04-26 12:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994350', 'tblTempVendorCDR_20' ) end [2025-04-26 12:42:19] Production.INFO: ProcessCDR(1,14994350,1,1,2) [2025-04-26 12:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994350', 'tblTempUsageDetail_20' ) start [2025-04-26 12:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994350', 'tblTempUsageDetail_20' ) end [2025-04-26 12:42:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 12:42:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 12:42:24] Production.INFO: ==15130== Releasing lock... [2025-04-26 12:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 12:42:24] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 09:43:05 [end_date_ymd] => 2025-04-26 12:43:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 09:43:05' and `end` < '2025-04-26 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-04-26 12:43:18] Production.INFO: count ==1883 [2025-04-26 12:43:18] Production.ERROR: pbx CDR StartTime 2025-04-26 09:43:05 - End Time 2025-04-26 12:43:05 [2025-04-26 12:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994355', 'tblTempUsageDetail_20' ) start [2025-04-26 12:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994355', 'tblTempUsageDetail_20' ) end [2025-04-26 12:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994355', 'tblTempVendorCDR_20' ) start [2025-04-26 12:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994355', 'tblTempVendorCDR_20' ) end [2025-04-26 12:43:19] Production.INFO: ProcessCDR(1,14994355,1,1,2) [2025-04-26 12:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994355', 'tblTempUsageDetail_20' ) start [2025-04-26 12:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994355', 'tblTempUsageDetail_20' ) end [2025-04-26 12:43:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 12:43:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 12:43:24] Production.INFO: ==15202== Releasing lock... [2025-04-26 12:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 12:43:24] Production.INFO: 42.25 MB #Memory Used# [2025-04-26 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 09:44:05 [end_date_ymd] => 2025-04-26 12:44:05 [RateCDR] => 1 ) [2025-04-26 12:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 09:44:05' and `end` < '2025-04-26 12:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 12:44:18] Production.INFO: count ==1863 [2025-04-26 12:44:19] Production.ERROR: pbx CDR StartTime 2025-04-26 09:44:05 - End Time 2025-04-26 12:44:05 [2025-04-26 12:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 12:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994360', 'tblTempUsageDetail_20' ) start [2025-04-26 12:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994360', 'tblTempUsageDetail_20' ) end [2025-04-26 12:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994360', 'tblTempVendorCDR_20' ) start [2025-04-26 12:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994360', 'tblTempVendorCDR_20' ) end [2025-04-26 12:44:19] Production.INFO: ProcessCDR(1,14994360,1,1,2) [2025-04-26 12:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994360', 'tblTempUsageDetail_20' ) start [2025-04-26 12:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994360', 'tblTempUsageDetail_20' ) end [2025-04-26 12:44:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 12:44:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 12:44:24] Production.INFO: ==15273== Releasing lock... [2025-04-26 12:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 12:44:24] Production.INFO: 41.75 MB #Memory Used# [2025-04-26 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 09:45:05 [end_date_ymd] => 2025-04-26 12:45:05 [RateCDR] => 1 ) [2025-04-26 12:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 09:45:05' and `end` < '2025-04-26 12:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 12:45:18] Production.INFO: count ==1848 [2025-04-26 12:45:18] Production.ERROR: pbx CDR StartTime 2025-04-26 09:45:05 - End Time 2025-04-26 12:45:05 [2025-04-26 12:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 12:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994365', 'tblTempUsageDetail_20' ) start [2025-04-26 12:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994365', 'tblTempUsageDetail_20' ) end [2025-04-26 12:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994365', 'tblTempVendorCDR_20' ) start [2025-04-26 12:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994365', 'tblTempVendorCDR_20' ) end [2025-04-26 12:45:18] Production.INFO: ProcessCDR(1,14994365,1,1,2) [2025-04-26 12:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994365', 'tblTempUsageDetail_20' ) start [2025-04-26 12:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994365', 'tblTempUsageDetail_20' ) end [2025-04-26 12:45:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 12:45:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 12:45:24] Production.INFO: ==15345== Releasing lock... [2025-04-26 12:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 12:45:24] Production.INFO: 42 MB #Memory Used# [2025-04-26 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 09:46:05 [end_date_ymd] => 2025-04-26 12:46:05 [RateCDR] => 1 ) [2025-04-26 12:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 09:46:05' and `end` < '2025-04-26 12:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 12:46:18] Production.INFO: count ==1845 [2025-04-26 12:46:19] Production.ERROR: pbx CDR StartTime 2025-04-26 09:46:05 - End Time 2025-04-26 12:46:05 [2025-04-26 12:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 12:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994370', 'tblTempUsageDetail_20' ) start [2025-04-26 12:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994370', 'tblTempUsageDetail_20' ) end [2025-04-26 12:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994370', 'tblTempVendorCDR_20' ) start [2025-04-26 12:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994370', 'tblTempVendorCDR_20' ) end [2025-04-26 12:46:19] Production.INFO: ProcessCDR(1,14994370,1,1,2) [2025-04-26 12:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994370', 'tblTempUsageDetail_20' ) start [2025-04-26 12:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994370', 'tblTempUsageDetail_20' ) end [2025-04-26 12:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 12:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 12:46:24] Production.INFO: ==15421== Releasing lock... [2025-04-26 12:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 12:46:24] Production.INFO: 42 MB #Memory Used# [2025-04-26 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 09:47:05 [end_date_ymd] => 2025-04-26 12:47:05 [RateCDR] => 1 ) [2025-04-26 12:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 09:47:05' and `end` < '2025-04-26 12:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 12:47:18] Production.INFO: count ==1842 [2025-04-26 12:47:19] Production.ERROR: pbx CDR StartTime 2025-04-26 09:47:05 - End Time 2025-04-26 12:47:05 [2025-04-26 12:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 12:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994375', 'tblTempUsageDetail_20' ) start [2025-04-26 12:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994375', 'tblTempUsageDetail_20' ) end [2025-04-26 12:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994375', 'tblTempVendorCDR_20' ) start [2025-04-26 12:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994375', 'tblTempVendorCDR_20' ) end [2025-04-26 12:47:19] Production.INFO: ProcessCDR(1,14994375,1,1,2) [2025-04-26 12:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994375', 'tblTempUsageDetail_20' ) start [2025-04-26 12:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994375', 'tblTempUsageDetail_20' ) end [2025-04-26 12:47:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 12:47:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 12:47:24] Production.INFO: ==15502== Releasing lock... [2025-04-26 12:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 12:47:24] Production.INFO: 42.25 MB #Memory Used# [2025-04-26 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 09:48:05 [end_date_ymd] => 2025-04-26 12:48:05 [RateCDR] => 1 ) [2025-04-26 12:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 09:48:05' and `end` < '2025-04-26 12:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 12:48:18] Production.INFO: count ==1838 [2025-04-26 12:48:19] Production.ERROR: pbx CDR StartTime 2025-04-26 09:48:05 - End Time 2025-04-26 12:48:05 [2025-04-26 12:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 12:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994380', 'tblTempUsageDetail_20' ) start [2025-04-26 12:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994380', 'tblTempUsageDetail_20' ) end [2025-04-26 12:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994380', 'tblTempVendorCDR_20' ) start [2025-04-26 12:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994380', 'tblTempVendorCDR_20' ) end [2025-04-26 12:48:19] Production.INFO: ProcessCDR(1,14994380,1,1,2) [2025-04-26 12:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994380', 'tblTempUsageDetail_20' ) start [2025-04-26 12:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994380', 'tblTempUsageDetail_20' ) end [2025-04-26 12:48:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 12:48:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 12:48:24] Production.INFO: ==15582== Releasing lock... [2025-04-26 12:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 12:48:24] Production.INFO: 42.5 MB #Memory Used# [2025-04-26 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 09:49:05 [end_date_ymd] => 2025-04-26 12:49:05 [RateCDR] => 1 ) [2025-04-26 12:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 09:49:05' and `end` < '2025-04-26 12:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 12:49:19] Production.INFO: count ==1847 [2025-04-26 12:49:19] Production.ERROR: pbx CDR StartTime 2025-04-26 09:49:05 - End Time 2025-04-26 12:49:05 [2025-04-26 12:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 12:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994385', 'tblTempUsageDetail_20' ) start [2025-04-26 12:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994385', 'tblTempUsageDetail_20' ) end [2025-04-26 12:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994385', 'tblTempVendorCDR_20' ) start [2025-04-26 12:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994385', 'tblTempVendorCDR_20' ) end [2025-04-26 12:49:19] Production.INFO: ProcessCDR(1,14994385,1,1,2) [2025-04-26 12:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994385', 'tblTempUsageDetail_20' ) start [2025-04-26 12:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994385', 'tblTempUsageDetail_20' ) end [2025-04-26 12:49:25] Production.ERROR: pbx prc_insertCDR start [2025-04-26 12:49:25] Production.ERROR: pbx prc_insertCDR end [2025-04-26 12:49:25] Production.INFO: ==15701== Releasing lock... [2025-04-26 12:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 12:49:25] Production.INFO: 42 MB #Memory Used# [2025-04-26 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 09:50:06 [end_date_ymd] => 2025-04-26 12:50:06 [RateCDR] => 1 ) [2025-04-26 12:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 09:50:06' and `end` < '2025-04-26 12:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 12:50:19] Production.INFO: count ==1867 [2025-04-26 12:50:19] Production.ERROR: pbx CDR StartTime 2025-04-26 09:50:06 - End Time 2025-04-26 12:50:06 [2025-04-26 12:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994391', 'tblTempUsageDetail_20' ) start [2025-04-26 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994391', 'tblTempUsageDetail_20' ) end [2025-04-26 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994391', 'tblTempVendorCDR_20' ) start [2025-04-26 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994391', 'tblTempVendorCDR_20' ) end [2025-04-26 12:50:19] Production.INFO: ProcessCDR(1,14994391,1,1,2) [2025-04-26 12:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994391', 'tblTempUsageDetail_20' ) start [2025-04-26 12:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994391', 'tblTempUsageDetail_20' ) end [2025-04-26 12:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 12:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 12:50:24] Production.INFO: ==15779== Releasing lock... [2025-04-26 12:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 12:50:24] Production.INFO: 42 MB #Memory Used# [2025-04-26 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 09:51:05 [end_date_ymd] => 2025-04-26 12:51:05 [RateCDR] => 1 ) [2025-04-26 12:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 09:51:05' and `end` < '2025-04-26 12:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 12:51:18] Production.INFO: count ==1889 [2025-04-26 12:51:19] Production.ERROR: pbx CDR StartTime 2025-04-26 09:51:05 - End Time 2025-04-26 12:51:05 [2025-04-26 12:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 12:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994396', 'tblTempUsageDetail_20' ) start [2025-04-26 12:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994396', 'tblTempUsageDetail_20' ) end [2025-04-26 12:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994396', 'tblTempVendorCDR_20' ) start [2025-04-26 12:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994396', 'tblTempVendorCDR_20' ) end [2025-04-26 12:51:19] Production.INFO: ProcessCDR(1,14994396,1,1,2) [2025-04-26 12:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994396', 'tblTempUsageDetail_20' ) start [2025-04-26 12:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994396', 'tblTempUsageDetail_20' ) end [2025-04-26 12:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 12:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 12:51:23] Production.INFO: ==15857== Releasing lock... [2025-04-26 12:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 12:51:23] Production.INFO: 42.25 MB #Memory Used# [2025-04-26 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 09:52:05 [end_date_ymd] => 2025-04-26 12:52:05 [RateCDR] => 1 ) [2025-04-26 12:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 09:52:05' and `end` < '2025-04-26 12:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 12:52:18] Production.INFO: count ==1896 [2025-04-26 12:52:18] Production.ERROR: pbx CDR StartTime 2025-04-26 09:52:05 - End Time 2025-04-26 12:52:05 [2025-04-26 12:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 12:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994401', 'tblTempUsageDetail_20' ) start [2025-04-26 12:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994401', 'tblTempUsageDetail_20' ) end [2025-04-26 12:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994401', 'tblTempVendorCDR_20' ) start [2025-04-26 12:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994401', 'tblTempVendorCDR_20' ) end [2025-04-26 12:52:19] Production.INFO: ProcessCDR(1,14994401,1,1,2) [2025-04-26 12:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994401', 'tblTempUsageDetail_20' ) start [2025-04-26 12:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994401', 'tblTempUsageDetail_20' ) end [2025-04-26 12:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 12:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 12:52:22] Production.INFO: ==15929== Releasing lock... [2025-04-26 12:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 12:52:22] Production.INFO: 42.25 MB #Memory Used# [2025-04-26 12:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 09:53:06 [end_date_ymd] => 2025-04-26 12:53:06 [RateCDR] => 1 ) [2025-04-26 12:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 09:53:06' and `end` < '2025-04-26 12:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 12:53:19] Production.INFO: count ==1897 [2025-04-26 12:53:20] Production.ERROR: pbx CDR StartTime 2025-04-26 09:53:06 - End Time 2025-04-26 12:53:06 [2025-04-26 12:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 12:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994406', 'tblTempUsageDetail_20' ) start [2025-04-26 12:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994406', 'tblTempUsageDetail_20' ) end [2025-04-26 12:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994406', 'tblTempVendorCDR_20' ) start [2025-04-26 12:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994406', 'tblTempVendorCDR_20' ) end [2025-04-26 12:53:20] Production.INFO: ProcessCDR(1,14994406,1,1,2) [2025-04-26 12:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994406', 'tblTempUsageDetail_20' ) start [2025-04-26 12:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994406', 'tblTempUsageDetail_20' ) end [2025-04-26 12:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 12:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 12:53:23] Production.INFO: ==16006== Releasing lock... [2025-04-26 12:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 12:53:23] Production.INFO: 42.25 MB #Memory Used# [2025-04-26 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 09:54:05 [end_date_ymd] => 2025-04-26 12:54:05 [RateCDR] => 1 ) [2025-04-26 12:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 09:54:05' and `end` < '2025-04-26 12:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 12:54:18] Production.INFO: count ==1909 [2025-04-26 12:54:19] Production.ERROR: pbx CDR StartTime 2025-04-26 09:54:05 - End Time 2025-04-26 12:54:05 [2025-04-26 12:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 12:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994411', 'tblTempUsageDetail_20' ) start [2025-04-26 12:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994411', 'tblTempUsageDetail_20' ) end [2025-04-26 12:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994411', 'tblTempVendorCDR_20' ) start [2025-04-26 12:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994411', 'tblTempVendorCDR_20' ) end [2025-04-26 12:54:19] Production.INFO: ProcessCDR(1,14994411,1,1,2) [2025-04-26 12:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994411', 'tblTempUsageDetail_20' ) start [2025-04-26 12:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994411', 'tblTempUsageDetail_20' ) end [2025-04-26 12:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 12:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 12:54:22] Production.INFO: ==16079== Releasing lock... [2025-04-26 12:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 12:54:22] Production.INFO: 42.5 MB #Memory Used# [2025-04-26 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 09:55:05 [end_date_ymd] => 2025-04-26 12:55:05 [RateCDR] => 1 ) [2025-04-26 12:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 09:55:05' and `end` < '2025-04-26 12:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 12:55:18] Production.INFO: count ==1912 [2025-04-26 12:55:19] Production.ERROR: pbx CDR StartTime 2025-04-26 09:55:05 - End Time 2025-04-26 12:55:05 [2025-04-26 12:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 12:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994416', 'tblTempUsageDetail_20' ) start [2025-04-26 12:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994416', 'tblTempUsageDetail_20' ) end [2025-04-26 12:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994416', 'tblTempVendorCDR_20' ) start [2025-04-26 12:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994416', 'tblTempVendorCDR_20' ) end [2025-04-26 12:55:19] Production.INFO: ProcessCDR(1,14994416,1,1,2) [2025-04-26 12:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994416', 'tblTempUsageDetail_20' ) start [2025-04-26 12:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994416', 'tblTempUsageDetail_20' ) end [2025-04-26 12:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 12:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 12:55:23] Production.INFO: ==16155== Releasing lock... [2025-04-26 12:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 12:55:23] Production.INFO: 42.5 MB #Memory Used# [2025-04-26 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 09:56:05 [end_date_ymd] => 2025-04-26 12:56:05 [RateCDR] => 1 ) [2025-04-26 12:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 09:56:05' and `end` < '2025-04-26 12:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 12:56:18] Production.INFO: count ==1911 [2025-04-26 12:56:18] Production.ERROR: pbx CDR StartTime 2025-04-26 09:56:05 - End Time 2025-04-26 12:56:05 [2025-04-26 12:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 12:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994421', 'tblTempUsageDetail_20' ) start [2025-04-26 12:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994421', 'tblTempUsageDetail_20' ) end [2025-04-26 12:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994421', 'tblTempVendorCDR_20' ) start [2025-04-26 12:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994421', 'tblTempVendorCDR_20' ) end [2025-04-26 12:56:18] Production.INFO: ProcessCDR(1,14994421,1,1,2) [2025-04-26 12:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994421', 'tblTempUsageDetail_20' ) start [2025-04-26 12:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994421', 'tblTempUsageDetail_20' ) end [2025-04-26 12:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 12:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 12:56:23] Production.INFO: ==16235== Releasing lock... [2025-04-26 12:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 12:56:23] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 09:57:05 [end_date_ymd] => 2025-04-26 12:57:05 [RateCDR] => 1 ) [2025-04-26 12:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 09:57:05' and `end` < '2025-04-26 12:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 12:57:18] Production.INFO: count ==1917 [2025-04-26 12:57:18] Production.ERROR: pbx CDR StartTime 2025-04-26 09:57:05 - End Time 2025-04-26 12:57:05 [2025-04-26 12:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 12:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994426', 'tblTempUsageDetail_20' ) start [2025-04-26 12:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994426', 'tblTempUsageDetail_20' ) end [2025-04-26 12:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994426', 'tblTempVendorCDR_20' ) start [2025-04-26 12:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994426', 'tblTempVendorCDR_20' ) end [2025-04-26 12:57:18] Production.INFO: ProcessCDR(1,14994426,1,1,2) [2025-04-26 12:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994426', 'tblTempUsageDetail_20' ) start [2025-04-26 12:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994426', 'tblTempUsageDetail_20' ) end [2025-04-26 12:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 12:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 12:57:23] Production.INFO: ==16307== Releasing lock... [2025-04-26 12:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 12:57:23] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 09:58:05 [end_date_ymd] => 2025-04-26 12:58:05 [RateCDR] => 1 ) [2025-04-26 12:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 09:58:05' and `end` < '2025-04-26 12:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 12:58:18] Production.INFO: count ==1922 [2025-04-26 12:58:18] Production.ERROR: pbx CDR StartTime 2025-04-26 09:58:05 - End Time 2025-04-26 12:58:05 [2025-04-26 12:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994431', 'tblTempUsageDetail_20' ) start [2025-04-26 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994431', 'tblTempUsageDetail_20' ) end [2025-04-26 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994431', 'tblTempVendorCDR_20' ) start [2025-04-26 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994431', 'tblTempVendorCDR_20' ) end [2025-04-26 12:58:18] Production.INFO: ProcessCDR(1,14994431,1,1,2) [2025-04-26 12:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994431', 'tblTempUsageDetail_20' ) start [2025-04-26 12:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994431', 'tblTempUsageDetail_20' ) end [2025-04-26 12:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 12:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 12:58:23] Production.INFO: ==16379== Releasing lock... [2025-04-26 12:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 12:58:23] Production.INFO: 42.5 MB #Memory Used# [2025-04-26 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 09:59:05 [end_date_ymd] => 2025-04-26 12:59:05 [RateCDR] => 1 ) [2025-04-26 12:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 09:59:05' and `end` < '2025-04-26 12:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 12:59:18] Production.INFO: count ==1929 [2025-04-26 12:59:19] Production.ERROR: pbx CDR StartTime 2025-04-26 09:59:05 - End Time 2025-04-26 12:59:05 [2025-04-26 12:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 12:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994436', 'tblTempUsageDetail_20' ) start [2025-04-26 12:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994436', 'tblTempUsageDetail_20' ) end [2025-04-26 12:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994436', 'tblTempVendorCDR_20' ) start [2025-04-26 12:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994436', 'tblTempVendorCDR_20' ) end [2025-04-26 12:59:19] Production.INFO: ProcessCDR(1,14994436,1,1,2) [2025-04-26 12:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 12:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 12:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994436', 'tblTempUsageDetail_20' ) start [2025-04-26 12:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994436', 'tblTempUsageDetail_20' ) end [2025-04-26 12:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 12:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 12:59:22] Production.INFO: ==16451== Releasing lock... [2025-04-26 12:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 12:59:22] Production.INFO: 42.5 MB #Memory Used# [2025-04-26 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 10:00:06 [end_date_ymd] => 2025-04-26 13:00:06 [RateCDR] => 1 ) [2025-04-26 13:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 10:00:06' and `end` < '2025-04-26 13:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 13:00:19] Production.INFO: count ==1938 [2025-04-26 13:00:20] Production.ERROR: pbx CDR StartTime 2025-04-26 10:00:06 - End Time 2025-04-26 13:00:06 [2025-04-26 13:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 13:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994442', 'tblTempUsageDetail_20' ) start [2025-04-26 13:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994442', 'tblTempUsageDetail_20' ) end [2025-04-26 13:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994442', 'tblTempVendorCDR_20' ) start [2025-04-26 13:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994442', 'tblTempVendorCDR_20' ) end [2025-04-26 13:00:20] Production.INFO: ProcessCDR(1,14994442,1,1,2) [2025-04-26 13:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994442', 'tblTempUsageDetail_20' ) start [2025-04-26 13:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994442', 'tblTempUsageDetail_20' ) end [2025-04-26 13:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 13:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 13:00:24] Production.INFO: ==16527== Releasing lock... [2025-04-26 13:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 13:00:24] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 13:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 10:01:06 [end_date_ymd] => 2025-04-26 13:01:06 [RateCDR] => 1 ) [2025-04-26 13:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 10:01:06' and `end` < '2025-04-26 13:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 13:01:19] Production.INFO: count ==1968 [2025-04-26 13:01:20] Production.ERROR: pbx CDR StartTime 2025-04-26 10:01:06 - End Time 2025-04-26 13:01:06 [2025-04-26 13:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 13:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994447', 'tblTempUsageDetail_20' ) start [2025-04-26 13:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994447', 'tblTempUsageDetail_20' ) end [2025-04-26 13:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994447', 'tblTempVendorCDR_20' ) start [2025-04-26 13:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994447', 'tblTempVendorCDR_20' ) end [2025-04-26 13:01:20] Production.INFO: ProcessCDR(1,14994447,1,1,2) [2025-04-26 13:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994447', 'tblTempUsageDetail_20' ) start [2025-04-26 13:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994447', 'tblTempUsageDetail_20' ) end [2025-04-26 13:01:25] Production.ERROR: pbx prc_insertCDR start [2025-04-26 13:01:25] Production.ERROR: pbx prc_insertCDR end [2025-04-26 13:01:25] Production.INFO: ==16612== Releasing lock... [2025-04-26 13:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 13:01:25] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 10:02:05 [end_date_ymd] => 2025-04-26 13:02:05 [RateCDR] => 1 ) [2025-04-26 13:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 10:02:05' and `end` < '2025-04-26 13:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 13:02:18] Production.INFO: count ==1961 [2025-04-26 13:02:19] Production.ERROR: pbx CDR StartTime 2025-04-26 10:02:05 - End Time 2025-04-26 13:02:05 [2025-04-26 13:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 13:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994452', 'tblTempUsageDetail_20' ) start [2025-04-26 13:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994452', 'tblTempUsageDetail_20' ) end [2025-04-26 13:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994452', 'tblTempVendorCDR_20' ) start [2025-04-26 13:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994452', 'tblTempVendorCDR_20' ) end [2025-04-26 13:02:19] Production.INFO: ProcessCDR(1,14994452,1,1,2) [2025-04-26 13:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994452', 'tblTempUsageDetail_20' ) start [2025-04-26 13:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994452', 'tblTempUsageDetail_20' ) end [2025-04-26 13:02:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 13:02:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 13:02:24] Production.INFO: ==16684== Releasing lock... [2025-04-26 13:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 13:02:24] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 10:03:05 [end_date_ymd] => 2025-04-26 13:03:05 [RateCDR] => 1 ) [2025-04-26 13:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 10:03:05' and `end` < '2025-04-26 13:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 13:03:18] Production.INFO: count ==1946 [2025-04-26 13:03:19] Production.ERROR: pbx CDR StartTime 2025-04-26 10:03:05 - End Time 2025-04-26 13:03:05 [2025-04-26 13:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 13:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994457', 'tblTempUsageDetail_20' ) start [2025-04-26 13:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994457', 'tblTempUsageDetail_20' ) end [2025-04-26 13:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994457', 'tblTempVendorCDR_20' ) start [2025-04-26 13:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994457', 'tblTempVendorCDR_20' ) end [2025-04-26 13:03:19] Production.INFO: ProcessCDR(1,14994457,1,1,2) [2025-04-26 13:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994457', 'tblTempUsageDetail_20' ) start [2025-04-26 13:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994457', 'tblTempUsageDetail_20' ) end [2025-04-26 13:03:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 13:03:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 13:03:24] Production.INFO: ==16754== Releasing lock... [2025-04-26 13:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 13:03:24] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 13:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 10:04:06 [end_date_ymd] => 2025-04-26 13:04:06 [RateCDR] => 1 ) [2025-04-26 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-04-26 10:04:06' and `end` < '2025-04-26 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-04-26 13:04:19] Production.INFO: count ==1947 [2025-04-26 13:04:19] Production.ERROR: pbx CDR StartTime 2025-04-26 10:04:06 - End Time 2025-04-26 13:04:06 [2025-04-26 13:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994462', 'tblTempUsageDetail_20' ) start [2025-04-26 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994462', 'tblTempUsageDetail_20' ) end [2025-04-26 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994462', 'tblTempVendorCDR_20' ) start [2025-04-26 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994462', 'tblTempVendorCDR_20' ) end [2025-04-26 13:04:19] Production.INFO: ProcessCDR(1,14994462,1,1,2) [2025-04-26 13:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994462', 'tblTempUsageDetail_20' ) start [2025-04-26 13:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994462', 'tblTempUsageDetail_20' ) end [2025-04-26 13:04:25] Production.ERROR: pbx prc_insertCDR start [2025-04-26 13:04:25] Production.ERROR: pbx prc_insertCDR end [2025-04-26 13:04:25] Production.INFO: ==16867== Releasing lock... [2025-04-26 13:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 13:04:25] Production.INFO: 43 MB #Memory Used# [2025-04-26 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 10:05:05 [end_date_ymd] => 2025-04-26 13:05:05 [RateCDR] => 1 ) [2025-04-26 13:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 10:05:05' and `end` < '2025-04-26 13:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 13:05:18] Production.INFO: count ==1955 [2025-04-26 13:05:18] Production.ERROR: pbx CDR StartTime 2025-04-26 10:05:05 - End Time 2025-04-26 13:05:05 [2025-04-26 13:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 13:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994467', 'tblTempUsageDetail_20' ) start [2025-04-26 13:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994467', 'tblTempUsageDetail_20' ) end [2025-04-26 13:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994467', 'tblTempVendorCDR_20' ) start [2025-04-26 13:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994467', 'tblTempVendorCDR_20' ) end [2025-04-26 13:05:18] Production.INFO: ProcessCDR(1,14994467,1,1,2) [2025-04-26 13:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994467', 'tblTempUsageDetail_20' ) start [2025-04-26 13:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994467', 'tblTempUsageDetail_20' ) end [2025-04-26 13:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 13:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 13:05:23] Production.INFO: ==16939== Releasing lock... [2025-04-26 13:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 13:05:23] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 13:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 10:06:06 [end_date_ymd] => 2025-04-26 13:06:06 [RateCDR] => 1 ) [2025-04-26 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-04-26 10:06:06' and `end` < '2025-04-26 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-04-26 13:06:18] Production.INFO: count ==1956 [2025-04-26 13:06:19] Production.ERROR: pbx CDR StartTime 2025-04-26 10:06:06 - End Time 2025-04-26 13:06:06 [2025-04-26 13:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 13:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994472', 'tblTempUsageDetail_20' ) start [2025-04-26 13:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994472', 'tblTempUsageDetail_20' ) end [2025-04-26 13:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994472', 'tblTempVendorCDR_20' ) start [2025-04-26 13:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994472', 'tblTempVendorCDR_20' ) end [2025-04-26 13:06:19] Production.INFO: ProcessCDR(1,14994472,1,1,2) [2025-04-26 13:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994472', 'tblTempUsageDetail_20' ) start [2025-04-26 13:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994472', 'tblTempUsageDetail_20' ) end [2025-04-26 13:06:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 13:06:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 13:06:24] Production.INFO: ==17013== Releasing lock... [2025-04-26 13:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 13:06:24] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 13:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 10:07:05 [end_date_ymd] => 2025-04-26 13:07:05 [RateCDR] => 1 ) [2025-04-26 13:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 10:07:05' and `end` < '2025-04-26 13:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 13:07:18] Production.INFO: count ==1939 [2025-04-26 13:07:18] Production.ERROR: pbx CDR StartTime 2025-04-26 10:07:05 - End Time 2025-04-26 13:07:05 [2025-04-26 13:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 13:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994477', 'tblTempUsageDetail_20' ) start [2025-04-26 13:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994477', 'tblTempUsageDetail_20' ) end [2025-04-26 13:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994477', 'tblTempVendorCDR_20' ) start [2025-04-26 13:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994477', 'tblTempVendorCDR_20' ) end [2025-04-26 13:07:18] Production.INFO: ProcessCDR(1,14994477,1,1,2) [2025-04-26 13:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994477', 'tblTempUsageDetail_20' ) start [2025-04-26 13:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994477', 'tblTempUsageDetail_20' ) end [2025-04-26 13:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 13:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 13:07:22] Production.INFO: ==17083== Releasing lock... [2025-04-26 13:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 13:07:22] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 10:08:05 [end_date_ymd] => 2025-04-26 13:08:05 [RateCDR] => 1 ) [2025-04-26 13:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 10:08:05' and `end` < '2025-04-26 13:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 13:08:18] Production.INFO: count ==1932 [2025-04-26 13:08:18] Production.ERROR: pbx CDR StartTime 2025-04-26 10:08:05 - End Time 2025-04-26 13:08:05 [2025-04-26 13:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 13:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994482', 'tblTempUsageDetail_20' ) start [2025-04-26 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994482', 'tblTempUsageDetail_20' ) end [2025-04-26 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994482', 'tblTempVendorCDR_20' ) start [2025-04-26 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994482', 'tblTempVendorCDR_20' ) end [2025-04-26 13:08:19] Production.INFO: ProcessCDR(1,14994482,1,1,2) [2025-04-26 13:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994482', 'tblTempUsageDetail_20' ) start [2025-04-26 13:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994482', 'tblTempUsageDetail_20' ) end [2025-04-26 13:08:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 13:08:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 13:08:23] Production.INFO: ==17158== Releasing lock... [2025-04-26 13:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 13:08:23] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 10:09:05 [end_date_ymd] => 2025-04-26 13:09:05 [RateCDR] => 1 ) [2025-04-26 13:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 10:09:05' and `end` < '2025-04-26 13:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 13:09:18] Production.INFO: count ==1934 [2025-04-26 13:09:19] Production.ERROR: pbx CDR StartTime 2025-04-26 10:09:05 - End Time 2025-04-26 13:09:05 [2025-04-26 13:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 13:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994487', 'tblTempUsageDetail_20' ) start [2025-04-26 13:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994487', 'tblTempUsageDetail_20' ) end [2025-04-26 13:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994487', 'tblTempVendorCDR_20' ) start [2025-04-26 13:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994487', 'tblTempVendorCDR_20' ) end [2025-04-26 13:09:19] Production.INFO: ProcessCDR(1,14994487,1,1,2) [2025-04-26 13:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994487', 'tblTempUsageDetail_20' ) start [2025-04-26 13:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994487', 'tblTempUsageDetail_20' ) end [2025-04-26 13:09:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 13:09:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 13:09:23] Production.INFO: ==17235== Releasing lock... [2025-04-26 13:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 13:09:23] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 13:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 10:10:07 [end_date_ymd] => 2025-04-26 13:10:07 [RateCDR] => 1 ) [2025-04-26 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-04-26 10:10:07' and `end` < '2025-04-26 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-04-26 13:10:19] Production.INFO: count ==1937 [2025-04-26 13:10:20] Production.ERROR: pbx CDR StartTime 2025-04-26 10:10:07 - End Time 2025-04-26 13:10:07 [2025-04-26 13:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 13:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994493', 'tblTempUsageDetail_20' ) start [2025-04-26 13:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994493', 'tblTempUsageDetail_20' ) end [2025-04-26 13:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994493', 'tblTempVendorCDR_20' ) start [2025-04-26 13:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994493', 'tblTempVendorCDR_20' ) end [2025-04-26 13:10:20] Production.INFO: ProcessCDR(1,14994493,1,1,2) [2025-04-26 13:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994493', 'tblTempUsageDetail_20' ) start [2025-04-26 13:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994493', 'tblTempUsageDetail_20' ) end [2025-04-26 13:10:25] Production.ERROR: pbx prc_insertCDR start [2025-04-26 13:10:25] Production.ERROR: pbx prc_insertCDR end [2025-04-26 13:10:25] Production.INFO: ==17310== Releasing lock... [2025-04-26 13:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 13:10:25] Production.INFO: 43 MB #Memory Used# [2025-04-26 13:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 10:11:04 [end_date_ymd] => 2025-04-26 13:11:04 [RateCDR] => 1 ) [2025-04-26 13:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 10:11:04' and `end` < '2025-04-26 13:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 13:11:17] Production.INFO: count ==1940 [2025-04-26 13:11:18] Production.ERROR: pbx CDR StartTime 2025-04-26 10:11:04 - End Time 2025-04-26 13:11:04 [2025-04-26 13:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 13:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994498', 'tblTempUsageDetail_20' ) start [2025-04-26 13:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994498', 'tblTempUsageDetail_20' ) end [2025-04-26 13:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994498', 'tblTempVendorCDR_20' ) start [2025-04-26 13:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994498', 'tblTempVendorCDR_20' ) end [2025-04-26 13:11:18] Production.INFO: ProcessCDR(1,14994498,1,1,2) [2025-04-26 13:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994498', 'tblTempUsageDetail_20' ) start [2025-04-26 13:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994498', 'tblTempUsageDetail_20' ) end [2025-04-26 13:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 13:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 13:11:23] Production.INFO: ==17384== Releasing lock... [2025-04-26 13:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 13:11:23] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 10:12:05 [end_date_ymd] => 2025-04-26 13:12:05 [RateCDR] => 1 ) [2025-04-26 13:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 10:12:05' and `end` < '2025-04-26 13:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 13:12:17] Production.INFO: count ==1940 [2025-04-26 13:12:18] Production.ERROR: pbx CDR StartTime 2025-04-26 10:12:05 - End Time 2025-04-26 13:12:05 [2025-04-26 13:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 13:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994503', 'tblTempUsageDetail_20' ) start [2025-04-26 13:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994503', 'tblTempUsageDetail_20' ) end [2025-04-26 13:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994503', 'tblTempVendorCDR_20' ) start [2025-04-26 13:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994503', 'tblTempVendorCDR_20' ) end [2025-04-26 13:12:18] Production.INFO: ProcessCDR(1,14994503,1,1,2) [2025-04-26 13:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994503', 'tblTempUsageDetail_20' ) start [2025-04-26 13:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994503', 'tblTempUsageDetail_20' ) end [2025-04-26 13:12:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 13:12:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 13:12:23] Production.INFO: ==17456== Releasing lock... [2025-04-26 13:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 13:12:23] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 10:13:05 [end_date_ymd] => 2025-04-26 13:13:05 [RateCDR] => 1 ) [2025-04-26 13:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 10:13:05' and `end` < '2025-04-26 13:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 13:13:17] Production.INFO: count ==1949 [2025-04-26 13:13:18] Production.ERROR: pbx CDR StartTime 2025-04-26 10:13:05 - End Time 2025-04-26 13:13:05 [2025-04-26 13:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 13:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994508', 'tblTempUsageDetail_20' ) start [2025-04-26 13:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994508', 'tblTempUsageDetail_20' ) end [2025-04-26 13:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994508', 'tblTempVendorCDR_20' ) start [2025-04-26 13:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994508', 'tblTempVendorCDR_20' ) end [2025-04-26 13:13:18] Production.INFO: ProcessCDR(1,14994508,1,1,2) [2025-04-26 13:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994508', 'tblTempUsageDetail_20' ) start [2025-04-26 13:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994508', 'tblTempUsageDetail_20' ) end [2025-04-26 13:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 13:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 13:13:23] Production.INFO: ==17528== Releasing lock... [2025-04-26 13:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 13:13:23] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 13:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 10:14:04 [end_date_ymd] => 2025-04-26 13:14:04 [RateCDR] => 1 ) [2025-04-26 13: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-04-26 10:14:04' and `end` < '2025-04-26 13: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-04-26 13:14:17] Production.INFO: count ==1955 [2025-04-26 13:14:18] Production.ERROR: pbx CDR StartTime 2025-04-26 10:14:04 - End Time 2025-04-26 13:14:04 [2025-04-26 13:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 13:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994509', 'tblTempUsageDetail_20' ) start [2025-04-26 13:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994509', 'tblTempUsageDetail_20' ) end [2025-04-26 13:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994509', 'tblTempVendorCDR_20' ) start [2025-04-26 13:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994509', 'tblTempVendorCDR_20' ) end [2025-04-26 13:14:18] Production.INFO: ProcessCDR(1,14994509,1,1,2) [2025-04-26 13:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994509', 'tblTempUsageDetail_20' ) start [2025-04-26 13:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994509', 'tblTempUsageDetail_20' ) end [2025-04-26 13:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 13:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 13:14:21] Production.INFO: ==17603== Releasing lock... [2025-04-26 13:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 13:14:21] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 10:15:05 [end_date_ymd] => 2025-04-26 13:15:05 [RateCDR] => 1 ) [2025-04-26 13:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 10:15:05' and `end` < '2025-04-26 13:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 13:15:18] Production.INFO: count ==1966 [2025-04-26 13:15:19] Production.ERROR: pbx CDR StartTime 2025-04-26 10:15:05 - End Time 2025-04-26 13:15:05 [2025-04-26 13:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 13:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994518', 'tblTempUsageDetail_20' ) start [2025-04-26 13:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994518', 'tblTempUsageDetail_20' ) end [2025-04-26 13:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994518', 'tblTempVendorCDR_20' ) start [2025-04-26 13:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994518', 'tblTempVendorCDR_20' ) end [2025-04-26 13:15:19] Production.INFO: ProcessCDR(1,14994518,1,1,2) [2025-04-26 13:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994518', 'tblTempUsageDetail_20' ) start [2025-04-26 13:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994518', 'tblTempUsageDetail_20' ) end [2025-04-26 13:15:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 13:15:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 13:15:24] Production.INFO: ==17674== Releasing lock... [2025-04-26 13:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 13:15:24] Production.INFO: 43 MB #Memory Used# [2025-04-26 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 10:16:05 [end_date_ymd] => 2025-04-26 13:16:05 [RateCDR] => 1 ) [2025-04-26 13:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 10:16:05' and `end` < '2025-04-26 13:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 13:16:18] Production.INFO: count ==1966 [2025-04-26 13:16:19] Production.ERROR: pbx CDR StartTime 2025-04-26 10:16:05 - End Time 2025-04-26 13:16:05 [2025-04-26 13:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 13:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994523', 'tblTempUsageDetail_20' ) start [2025-04-26 13:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994523', 'tblTempUsageDetail_20' ) end [2025-04-26 13:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994523', 'tblTempVendorCDR_20' ) start [2025-04-26 13:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994523', 'tblTempVendorCDR_20' ) end [2025-04-26 13:16:19] Production.INFO: ProcessCDR(1,14994523,1,1,2) [2025-04-26 13:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994523', 'tblTempUsageDetail_20' ) start [2025-04-26 13:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994523', 'tblTempUsageDetail_20' ) end [2025-04-26 13:16:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 13:16:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 13:16:24] Production.INFO: ==17754== Releasing lock... [2025-04-26 13:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 13:16:24] Production.INFO: 43.25 MB #Memory Used# [2025-04-26 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 10:17:05 [end_date_ymd] => 2025-04-26 13:17:05 [RateCDR] => 1 ) [2025-04-26 13:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 10:17:05' and `end` < '2025-04-26 13:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 13:17:18] Production.INFO: count ==1967 [2025-04-26 13:17:19] Production.ERROR: pbx CDR StartTime 2025-04-26 10:17:05 - End Time 2025-04-26 13:17:05 [2025-04-26 13:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 13:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994528', 'tblTempUsageDetail_20' ) start [2025-04-26 13:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994528', 'tblTempUsageDetail_20' ) end [2025-04-26 13:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994528', 'tblTempVendorCDR_20' ) start [2025-04-26 13:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994528', 'tblTempVendorCDR_20' ) end [2025-04-26 13:17:19] Production.INFO: ProcessCDR(1,14994528,1,1,2) [2025-04-26 13:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994528', 'tblTempUsageDetail_20' ) start [2025-04-26 13:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994528', 'tblTempUsageDetail_20' ) end [2025-04-26 13:17:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 13:17:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 13:17:24] Production.INFO: ==17832== Releasing lock... [2025-04-26 13:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 13:17:24] Production.INFO: 43 MB #Memory Used# [2025-04-26 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 10:18:05 [end_date_ymd] => 2025-04-26 13:18:05 [RateCDR] => 1 ) [2025-04-26 13:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 10:18:05' and `end` < '2025-04-26 13:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 13:18:18] Production.INFO: count ==1969 [2025-04-26 13:18:19] Production.ERROR: pbx CDR StartTime 2025-04-26 10:18:05 - End Time 2025-04-26 13:18:05 [2025-04-26 13:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 13:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994533', 'tblTempUsageDetail_20' ) start [2025-04-26 13:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994533', 'tblTempUsageDetail_20' ) end [2025-04-26 13:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994533', 'tblTempVendorCDR_20' ) start [2025-04-26 13:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994533', 'tblTempVendorCDR_20' ) end [2025-04-26 13:18:19] Production.INFO: ProcessCDR(1,14994533,1,1,2) [2025-04-26 13:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994533', 'tblTempUsageDetail_20' ) start [2025-04-26 13:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994533', 'tblTempUsageDetail_20' ) end [2025-04-26 13:18:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 13:18:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 13:18:24] Production.INFO: ==17920== Releasing lock... [2025-04-26 13:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 13:18:24] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 10:19:05 [end_date_ymd] => 2025-04-26 13:19:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 10:19:05' and `end` < '2025-04-26 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-04-26 13:19:18] Production.INFO: count ==1959 [2025-04-26 13:19:19] Production.ERROR: pbx CDR StartTime 2025-04-26 10:19:05 - End Time 2025-04-26 13:19:05 [2025-04-26 13:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 13:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994538', 'tblTempUsageDetail_20' ) start [2025-04-26 13:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994538', 'tblTempUsageDetail_20' ) end [2025-04-26 13:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994538', 'tblTempVendorCDR_20' ) start [2025-04-26 13:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994538', 'tblTempVendorCDR_20' ) end [2025-04-26 13:19:19] Production.INFO: ProcessCDR(1,14994538,1,1,2) [2025-04-26 13:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994538', 'tblTempUsageDetail_20' ) start [2025-04-26 13:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994538', 'tblTempUsageDetail_20' ) end [2025-04-26 13:19:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 13:19:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 13:19:24] Production.INFO: ==17992== Releasing lock... [2025-04-26 13:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 13:19:24] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 13:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 10:20:05 [end_date_ymd] => 2025-04-26 13:20:05 [RateCDR] => 1 ) [2025-04-26 13:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 10:20:05' and `end` < '2025-04-26 13:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 13:20:18] Production.INFO: count ==1956 [2025-04-26 13:20:19] Production.ERROR: pbx CDR StartTime 2025-04-26 10:20:05 - End Time 2025-04-26 13:20:05 [2025-04-26 13:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 13:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994544', 'tblTempUsageDetail_20' ) start [2025-04-26 13:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994544', 'tblTempUsageDetail_20' ) end [2025-04-26 13:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994544', 'tblTempVendorCDR_20' ) start [2025-04-26 13:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994544', 'tblTempVendorCDR_20' ) end [2025-04-26 13:20:19] Production.INFO: ProcessCDR(1,14994544,1,1,2) [2025-04-26 13:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994544', 'tblTempUsageDetail_20' ) start [2025-04-26 13:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994544', 'tblTempUsageDetail_20' ) end [2025-04-26 13:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 13:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 13:20:24] Production.INFO: ==18105== Releasing lock... [2025-04-26 13:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 13:20:24] Production.INFO: 43 MB #Memory Used# [2025-04-26 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 10:21:05 [end_date_ymd] => 2025-04-26 13:21:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 10:21:05' and `end` < '2025-04-26 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-04-26 13:21:18] Production.INFO: count ==1953 [2025-04-26 13:21:19] Production.ERROR: pbx CDR StartTime 2025-04-26 10:21:05 - End Time 2025-04-26 13:21:05 [2025-04-26 13:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 13:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994549', 'tblTempUsageDetail_20' ) start [2025-04-26 13:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994549', 'tblTempUsageDetail_20' ) end [2025-04-26 13:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994549', 'tblTempVendorCDR_20' ) start [2025-04-26 13:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994549', 'tblTempVendorCDR_20' ) end [2025-04-26 13:21:19] Production.INFO: ProcessCDR(1,14994549,1,1,2) [2025-04-26 13:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994549', 'tblTempUsageDetail_20' ) start [2025-04-26 13:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994549', 'tblTempUsageDetail_20' ) end [2025-04-26 13:21:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 13:21:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 13:21:24] Production.INFO: ==18181== Releasing lock... [2025-04-26 13:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 13:21:24] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 10:22:05 [end_date_ymd] => 2025-04-26 13:22:05 [RateCDR] => 1 ) [2025-04-26 13:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 10:22:05' and `end` < '2025-04-26 13:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 13:22:18] Production.INFO: count ==1956 [2025-04-26 13:22:18] Production.ERROR: pbx CDR StartTime 2025-04-26 10:22:05 - End Time 2025-04-26 13:22:05 [2025-04-26 13:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 13:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994554', 'tblTempUsageDetail_20' ) start [2025-04-26 13:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994554', 'tblTempUsageDetail_20' ) end [2025-04-26 13:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994554', 'tblTempVendorCDR_20' ) start [2025-04-26 13:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994554', 'tblTempVendorCDR_20' ) end [2025-04-26 13:22:18] Production.INFO: ProcessCDR(1,14994554,1,1,2) [2025-04-26 13:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994554', 'tblTempUsageDetail_20' ) start [2025-04-26 13:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994554', 'tblTempUsageDetail_20' ) end [2025-04-26 13:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 13:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 13:22:23] Production.INFO: ==18253== Releasing lock... [2025-04-26 13:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 13:22:23] Production.INFO: 43.25 MB #Memory Used# [2025-04-26 13:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 10:23:06 [end_date_ymd] => 2025-04-26 13:23:06 [RateCDR] => 1 ) [2025-04-26 13:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 10:23:06' and `end` < '2025-04-26 13:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 13:23:19] Production.INFO: count ==1951 [2025-04-26 13:23:19] Production.ERROR: pbx CDR StartTime 2025-04-26 10:23:06 - End Time 2025-04-26 13:23:06 [2025-04-26 13:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 13:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994559', 'tblTempUsageDetail_20' ) start [2025-04-26 13:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994559', 'tblTempUsageDetail_20' ) end [2025-04-26 13:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994559', 'tblTempVendorCDR_20' ) start [2025-04-26 13:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994559', 'tblTempVendorCDR_20' ) end [2025-04-26 13:23:19] Production.INFO: ProcessCDR(1,14994559,1,1,2) [2025-04-26 13:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994559', 'tblTempUsageDetail_20' ) start [2025-04-26 13:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994559', 'tblTempUsageDetail_20' ) end [2025-04-26 13:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 13:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 13:23:24] Production.INFO: ==18329== Releasing lock... [2025-04-26 13:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 13:23:24] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 10:24:05 [end_date_ymd] => 2025-04-26 13:24:05 [RateCDR] => 1 ) [2025-04-26 13:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 10:24:05' and `end` < '2025-04-26 13:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 13:24:18] Production.INFO: count ==1949 [2025-04-26 13:24:18] Production.ERROR: pbx CDR StartTime 2025-04-26 10:24:05 - End Time 2025-04-26 13:24:05 [2025-04-26 13:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 13:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994564', 'tblTempUsageDetail_20' ) start [2025-04-26 13:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994564', 'tblTempUsageDetail_20' ) end [2025-04-26 13:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994564', 'tblTempVendorCDR_20' ) start [2025-04-26 13:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994564', 'tblTempVendorCDR_20' ) end [2025-04-26 13:24:18] Production.INFO: ProcessCDR(1,14994564,1,1,2) [2025-04-26 13:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994564', 'tblTempUsageDetail_20' ) start [2025-04-26 13:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994564', 'tblTempUsageDetail_20' ) end [2025-04-26 13:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 13:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 13:24:23] Production.INFO: ==18409== Releasing lock... [2025-04-26 13:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 13:24:23] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 13:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 10:25:06 [end_date_ymd] => 2025-04-26 13:25:06 [RateCDR] => 1 ) [2025-04-26 13:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 10:25:06' and `end` < '2025-04-26 13:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 13:25:19] Production.INFO: count ==1956 [2025-04-26 13:25:19] Production.ERROR: pbx CDR StartTime 2025-04-26 10:25:06 - End Time 2025-04-26 13:25:06 [2025-04-26 13:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994569', 'tblTempUsageDetail_20' ) start [2025-04-26 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994569', 'tblTempUsageDetail_20' ) end [2025-04-26 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994569', 'tblTempVendorCDR_20' ) start [2025-04-26 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994569', 'tblTempVendorCDR_20' ) end [2025-04-26 13:25:19] Production.INFO: ProcessCDR(1,14994569,1,1,2) [2025-04-26 13:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994569', 'tblTempUsageDetail_20' ) start [2025-04-26 13:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994569', 'tblTempUsageDetail_20' ) end [2025-04-26 13:25:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 13:25:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 13:25:24] Production.INFO: ==18486== Releasing lock... [2025-04-26 13:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 13:25:24] Production.INFO: 43 MB #Memory Used# [2025-04-26 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 10:26:05 [end_date_ymd] => 2025-04-26 13:26:05 [RateCDR] => 1 ) [2025-04-26 13:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 10:26:05' and `end` < '2025-04-26 13:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 13:26:18] Production.INFO: count ==1957 [2025-04-26 13:26:18] Production.ERROR: pbx CDR StartTime 2025-04-26 10:26:05 - End Time 2025-04-26 13:26:05 [2025-04-26 13:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994574', 'tblTempUsageDetail_20' ) start [2025-04-26 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994574', 'tblTempUsageDetail_20' ) end [2025-04-26 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994574', 'tblTempVendorCDR_20' ) start [2025-04-26 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994574', 'tblTempVendorCDR_20' ) end [2025-04-26 13:26:18] Production.INFO: ProcessCDR(1,14994574,1,1,2) [2025-04-26 13:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994574', 'tblTempUsageDetail_20' ) start [2025-04-26 13:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994574', 'tblTempUsageDetail_20' ) end [2025-04-26 13:26:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 13:26:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 13:26:24] Production.INFO: ==18564== Releasing lock... [2025-04-26 13:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 13:26:24] Production.INFO: 43.25 MB #Memory Used# [2025-04-26 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 10:27:05 [end_date_ymd] => 2025-04-26 13:27:05 [RateCDR] => 1 ) [2025-04-26 13:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 10:27:05' and `end` < '2025-04-26 13:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 13:27:18] Production.INFO: count ==1954 [2025-04-26 13:27:19] Production.ERROR: pbx CDR StartTime 2025-04-26 10:27:05 - End Time 2025-04-26 13:27:05 [2025-04-26 13:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 13:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994579', 'tblTempUsageDetail_20' ) start [2025-04-26 13:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994579', 'tblTempUsageDetail_20' ) end [2025-04-26 13:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994579', 'tblTempVendorCDR_20' ) start [2025-04-26 13:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994579', 'tblTempVendorCDR_20' ) end [2025-04-26 13:27:19] Production.INFO: ProcessCDR(1,14994579,1,1,2) [2025-04-26 13:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994579', 'tblTempUsageDetail_20' ) start [2025-04-26 13:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994579', 'tblTempUsageDetail_20' ) end [2025-04-26 13:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 13:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 13:27:22] Production.INFO: ==18634== Releasing lock... [2025-04-26 13:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 13:27:22] Production.INFO: 43.25 MB #Memory Used# [2025-04-26 13:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 10:28:06 [end_date_ymd] => 2025-04-26 13:28:06 [RateCDR] => 1 ) [2025-04-26 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-04-26 10:28:06' and `end` < '2025-04-26 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-04-26 13:28:19] Production.INFO: count ==1955 [2025-04-26 13:28:19] Production.ERROR: pbx CDR StartTime 2025-04-26 10:28:06 - End Time 2025-04-26 13:28:06 [2025-04-26 13:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 13:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994584', 'tblTempUsageDetail_20' ) start [2025-04-26 13:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994584', 'tblTempUsageDetail_20' ) end [2025-04-26 13:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994584', 'tblTempVendorCDR_20' ) start [2025-04-26 13:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994584', 'tblTempVendorCDR_20' ) end [2025-04-26 13:28:19] Production.INFO: ProcessCDR(1,14994584,1,1,2) [2025-04-26 13:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994584', 'tblTempUsageDetail_20' ) start [2025-04-26 13:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994584', 'tblTempUsageDetail_20' ) end [2025-04-26 13:28:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 13:28:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 13:28:24] Production.INFO: ==18705== Releasing lock... [2025-04-26 13:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 13:28:24] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 10:29:05 [end_date_ymd] => 2025-04-26 13:29:05 [RateCDR] => 1 ) [2025-04-26 13:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 10:29:05' and `end` < '2025-04-26 13:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 13:29:17] Production.INFO: count ==1957 [2025-04-26 13:29:18] Production.ERROR: pbx CDR StartTime 2025-04-26 10:29:05 - End Time 2025-04-26 13:29:05 [2025-04-26 13:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 13:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994589', 'tblTempUsageDetail_20' ) start [2025-04-26 13:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994589', 'tblTempUsageDetail_20' ) end [2025-04-26 13:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994589', 'tblTempVendorCDR_20' ) start [2025-04-26 13:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994589', 'tblTempVendorCDR_20' ) end [2025-04-26 13:29:18] Production.INFO: ProcessCDR(1,14994589,1,1,2) [2025-04-26 13:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994589', 'tblTempUsageDetail_20' ) start [2025-04-26 13:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994589', 'tblTempUsageDetail_20' ) end [2025-04-26 13:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 13:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 13:29:22] Production.INFO: ==18781== Releasing lock... [2025-04-26 13:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 13:29:22] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 10:30:06 [end_date_ymd] => 2025-04-26 13:30:06 [RateCDR] => 1 ) [2025-04-26 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-04-26 10:30:06' and `end` < '2025-04-26 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-04-26 13:30:19] Production.INFO: count ==1968 [2025-04-26 13:30:20] Production.ERROR: pbx CDR StartTime 2025-04-26 10:30:06 - End Time 2025-04-26 13:30:06 [2025-04-26 13:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 13:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994595', 'tblTempUsageDetail_20' ) start [2025-04-26 13:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994595', 'tblTempUsageDetail_20' ) end [2025-04-26 13:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994595', 'tblTempVendorCDR_20' ) start [2025-04-26 13:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994595', 'tblTempVendorCDR_20' ) end [2025-04-26 13:30:20] Production.INFO: ProcessCDR(1,14994595,1,1,2) [2025-04-26 13:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994595', 'tblTempUsageDetail_20' ) start [2025-04-26 13:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994595', 'tblTempUsageDetail_20' ) end [2025-04-26 13:30:25] Production.ERROR: pbx prc_insertCDR start [2025-04-26 13:30:25] Production.ERROR: pbx prc_insertCDR end [2025-04-26 13:30:25] Production.INFO: ==18856== Releasing lock... [2025-04-26 13:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 13:30:25] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 10:31:05 [end_date_ymd] => 2025-04-26 13:31:05 [RateCDR] => 1 ) [2025-04-26 13:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 10:31:05' and `end` < '2025-04-26 13:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 13:31:18] Production.INFO: count ==2037 [2025-04-26 13:31:19] Production.ERROR: pbx CDR StartTime 2025-04-26 10:31:05 - End Time 2025-04-26 13:31:05 [2025-04-26 13:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 13:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994600', 'tblTempUsageDetail_20' ) start [2025-04-26 13:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994600', 'tblTempUsageDetail_20' ) end [2025-04-26 13:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994600', 'tblTempVendorCDR_20' ) start [2025-04-26 13:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994600', 'tblTempVendorCDR_20' ) end [2025-04-26 13:31:19] Production.INFO: ProcessCDR(1,14994600,1,1,2) [2025-04-26 13:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994600', 'tblTempUsageDetail_20' ) start [2025-04-26 13:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994600', 'tblTempUsageDetail_20' ) end [2025-04-26 13:31:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 13:31:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 13:31:24] Production.INFO: ==18929== Releasing lock... [2025-04-26 13:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 13:31:24] Production.INFO: 43.75 MB #Memory Used# [2025-04-26 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 10:32:05 [end_date_ymd] => 2025-04-26 13:32:05 [RateCDR] => 1 ) [2025-04-26 13:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 10:32:05' and `end` < '2025-04-26 13:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 13:32:18] Production.INFO: count ==2030 [2025-04-26 13:32:18] Production.ERROR: pbx CDR StartTime 2025-04-26 10:32:05 - End Time 2025-04-26 13:32:05 [2025-04-26 13:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994605', 'tblTempUsageDetail_20' ) start [2025-04-26 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994605', 'tblTempUsageDetail_20' ) end [2025-04-26 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994605', 'tblTempVendorCDR_20' ) start [2025-04-26 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994605', 'tblTempVendorCDR_20' ) end [2025-04-26 13:32:18] Production.INFO: ProcessCDR(1,14994605,1,1,2) [2025-04-26 13:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994605', 'tblTempUsageDetail_20' ) start [2025-04-26 13:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994605', 'tblTempUsageDetail_20' ) end [2025-04-26 13:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 13:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 13:32:22] Production.INFO: ==19003== Releasing lock... [2025-04-26 13:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 13:32:22] Production.INFO: 43.25 MB #Memory Used# [2025-04-26 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 10:33:05 [end_date_ymd] => 2025-04-26 13:33:05 [RateCDR] => 1 ) [2025-04-26 13:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 10:33:05' and `end` < '2025-04-26 13:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 13:33:17] Production.INFO: count ==2032 [2025-04-26 13:33:18] Production.ERROR: pbx CDR StartTime 2025-04-26 10:33:05 - End Time 2025-04-26 13:33:05 [2025-04-26 13:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994610', 'tblTempUsageDetail_20' ) start [2025-04-26 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994610', 'tblTempUsageDetail_20' ) end [2025-04-26 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994610', 'tblTempVendorCDR_20' ) start [2025-04-26 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994610', 'tblTempVendorCDR_20' ) end [2025-04-26 13:33:18] Production.INFO: ProcessCDR(1,14994610,1,1,2) [2025-04-26 13:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994610', 'tblTempUsageDetail_20' ) start [2025-04-26 13:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994610', 'tblTempUsageDetail_20' ) end [2025-04-26 13:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 13:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 13:33:22] Production.INFO: ==19077== Releasing lock... [2025-04-26 13:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 13:33:22] Production.INFO: 43.25 MB #Memory Used# [2025-04-26 13:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 10:34:06 [end_date_ymd] => 2025-04-26 13:34:06 [RateCDR] => 1 ) [2025-04-26 13:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 10:34:06' and `end` < '2025-04-26 13:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 13:34:19] Production.INFO: count ==2034 [2025-04-26 13:34:20] Production.ERROR: pbx CDR StartTime 2025-04-26 10:34:06 - End Time 2025-04-26 13:34:06 [2025-04-26 13:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 13:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994615', 'tblTempUsageDetail_20' ) start [2025-04-26 13:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994615', 'tblTempUsageDetail_20' ) end [2025-04-26 13:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994615', 'tblTempVendorCDR_20' ) start [2025-04-26 13:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994615', 'tblTempVendorCDR_20' ) end [2025-04-26 13:34:20] Production.INFO: ProcessCDR(1,14994615,1,1,2) [2025-04-26 13:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994615', 'tblTempUsageDetail_20' ) start [2025-04-26 13:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994615', 'tblTempUsageDetail_20' ) end [2025-04-26 13:34:25] Production.ERROR: pbx prc_insertCDR start [2025-04-26 13:34:25] Production.ERROR: pbx prc_insertCDR end [2025-04-26 13:34:25] Production.INFO: ==19147== Releasing lock... [2025-04-26 13:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 13:34:25] Production.INFO: 43.25 MB #Memory Used# [2025-04-26 13:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 10:35:04 [end_date_ymd] => 2025-04-26 13:35:04 [RateCDR] => 1 ) [2025-04-26 13:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 10:35:04' and `end` < '2025-04-26 13:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 13:35:17] Production.INFO: count ==2035 [2025-04-26 13:35:18] Production.ERROR: pbx CDR StartTime 2025-04-26 10:35:04 - End Time 2025-04-26 13:35:04 [2025-04-26 13:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994620', 'tblTempUsageDetail_20' ) start [2025-04-26 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994620', 'tblTempUsageDetail_20' ) end [2025-04-26 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994620', 'tblTempVendorCDR_20' ) start [2025-04-26 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994620', 'tblTempVendorCDR_20' ) end [2025-04-26 13:35:18] Production.INFO: ProcessCDR(1,14994620,1,1,2) [2025-04-26 13:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994620', 'tblTempUsageDetail_20' ) start [2025-04-26 13:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994620', 'tblTempUsageDetail_20' ) end [2025-04-26 13:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 13:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 13:35:22] Production.INFO: ==19259== Releasing lock... [2025-04-26 13:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 13:35:22] Production.INFO: 43.25 MB #Memory Used# [2025-04-26 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 10:36:05 [end_date_ymd] => 2025-04-26 13:36:05 [RateCDR] => 1 ) [2025-04-26 13:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 10:36:05' and `end` < '2025-04-26 13:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 13:36:18] Production.INFO: count ==2042 [2025-04-26 13:36:19] Production.ERROR: pbx CDR StartTime 2025-04-26 10:36:05 - End Time 2025-04-26 13:36:05 [2025-04-26 13:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994625', 'tblTempUsageDetail_20' ) start [2025-04-26 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994625', 'tblTempUsageDetail_20' ) end [2025-04-26 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994625', 'tblTempVendorCDR_20' ) start [2025-04-26 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994625', 'tblTempVendorCDR_20' ) end [2025-04-26 13:36:19] Production.INFO: ProcessCDR(1,14994625,1,1,2) [2025-04-26 13:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994625', 'tblTempUsageDetail_20' ) start [2025-04-26 13:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994625', 'tblTempUsageDetail_20' ) end [2025-04-26 13:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 13:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 13:36:23] Production.INFO: ==19331== Releasing lock... [2025-04-26 13:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 13:36:23] Production.INFO: 43.5 MB #Memory Used# [2025-04-26 13:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 10:37:06 [end_date_ymd] => 2025-04-26 13:37:06 [RateCDR] => 1 ) [2025-04-26 13:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 10:37:06' and `end` < '2025-04-26 13:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 13:37:19] Production.INFO: count ==2037 [2025-04-26 13:37:19] Production.ERROR: pbx CDR StartTime 2025-04-26 10:37:06 - End Time 2025-04-26 13:37:06 [2025-04-26 13:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 13:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994630', 'tblTempUsageDetail_20' ) start [2025-04-26 13:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994630', 'tblTempUsageDetail_20' ) end [2025-04-26 13:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994630', 'tblTempVendorCDR_20' ) start [2025-04-26 13:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994630', 'tblTempVendorCDR_20' ) end [2025-04-26 13:37:20] Production.INFO: ProcessCDR(1,14994630,1,1,2) [2025-04-26 13:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994630', 'tblTempUsageDetail_20' ) start [2025-04-26 13:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994630', 'tblTempUsageDetail_20' ) end [2025-04-26 13:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 13:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 13:37:23] Production.INFO: ==19407== Releasing lock... [2025-04-26 13:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 13:37:23] Production.INFO: 43.75 MB #Memory Used# [2025-04-26 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 10:38:05 [end_date_ymd] => 2025-04-26 13:38:05 [RateCDR] => 1 ) [2025-04-26 13:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 10:38:05' and `end` < '2025-04-26 13:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 13:38:18] Production.INFO: count ==2041 [2025-04-26 13:38:19] Production.ERROR: pbx CDR StartTime 2025-04-26 10:38:05 - End Time 2025-04-26 13:38:05 [2025-04-26 13:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 13:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994635', 'tblTempUsageDetail_20' ) start [2025-04-26 13:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994635', 'tblTempUsageDetail_20' ) end [2025-04-26 13:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994635', 'tblTempVendorCDR_20' ) start [2025-04-26 13:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994635', 'tblTempVendorCDR_20' ) end [2025-04-26 13:38:19] Production.INFO: ProcessCDR(1,14994635,1,1,2) [2025-04-26 13:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994635', 'tblTempUsageDetail_20' ) start [2025-04-26 13:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994635', 'tblTempUsageDetail_20' ) end [2025-04-26 13:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 13:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 13:38:22] Production.INFO: ==19482== Releasing lock... [2025-04-26 13:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 13:38:22] Production.INFO: 43.5 MB #Memory Used# [2025-04-26 13:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 10:39:06 [end_date_ymd] => 2025-04-26 13:39:06 [RateCDR] => 1 ) [2025-04-26 13:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 10:39:06' and `end` < '2025-04-26 13:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 13:39:18] Production.INFO: count ==2043 [2025-04-26 13:39:19] Production.ERROR: pbx CDR StartTime 2025-04-26 10:39:06 - End Time 2025-04-26 13:39:06 [2025-04-26 13:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 13:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994640', 'tblTempUsageDetail_20' ) start [2025-04-26 13:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994640', 'tblTempUsageDetail_20' ) end [2025-04-26 13:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994640', 'tblTempVendorCDR_20' ) start [2025-04-26 13:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994640', 'tblTempVendorCDR_20' ) end [2025-04-26 13:39:19] Production.INFO: ProcessCDR(1,14994640,1,1,2) [2025-04-26 13:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994640', 'tblTempUsageDetail_20' ) start [2025-04-26 13:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994640', 'tblTempUsageDetail_20' ) end [2025-04-26 13:39:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 13:39:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 13:39:24] Production.INFO: ==19556== Releasing lock... [2025-04-26 13:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 13:39:24] Production.INFO: 43.5 MB #Memory Used# [2025-04-26 13:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 10:40:06 [end_date_ymd] => 2025-04-26 13:40:06 [RateCDR] => 1 ) [2025-04-26 13:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 10:40:06' and `end` < '2025-04-26 13:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 13:40:19] Production.INFO: count ==2037 [2025-04-26 13:40:20] Production.ERROR: pbx CDR StartTime 2025-04-26 10:40:06 - End Time 2025-04-26 13:40:06 [2025-04-26 13:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 13:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994646', 'tblTempUsageDetail_20' ) start [2025-04-26 13:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994646', 'tblTempUsageDetail_20' ) end [2025-04-26 13:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994646', 'tblTempVendorCDR_20' ) start [2025-04-26 13:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994646', 'tblTempVendorCDR_20' ) end [2025-04-26 13:40:20] Production.INFO: ProcessCDR(1,14994646,1,1,2) [2025-04-26 13:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994646', 'tblTempUsageDetail_20' ) start [2025-04-26 13:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994646', 'tblTempUsageDetail_20' ) end [2025-04-26 13:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 13:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 13:40:23] Production.INFO: ==19628== Releasing lock... [2025-04-26 13:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 13:40:23] Production.INFO: 43.5 MB #Memory Used# [2025-04-26 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 10:41:05 [end_date_ymd] => 2025-04-26 13:41:05 [RateCDR] => 1 ) [2025-04-26 13:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 10:41:05' and `end` < '2025-04-26 13:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 13:41:18] Production.INFO: count ==2037 [2025-04-26 13:41:19] Production.ERROR: pbx CDR StartTime 2025-04-26 10:41:05 - End Time 2025-04-26 13:41:05 [2025-04-26 13:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 13:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994651', 'tblTempUsageDetail_20' ) start [2025-04-26 13:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994651', 'tblTempUsageDetail_20' ) end [2025-04-26 13:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994651', 'tblTempVendorCDR_20' ) start [2025-04-26 13:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994651', 'tblTempVendorCDR_20' ) end [2025-04-26 13:41:19] Production.INFO: ProcessCDR(1,14994651,1,1,2) [2025-04-26 13:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994651', 'tblTempUsageDetail_20' ) start [2025-04-26 13:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994651', 'tblTempUsageDetail_20' ) end [2025-04-26 13:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 13:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 13:41:22] Production.INFO: ==19704== Releasing lock... [2025-04-26 13:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 13:41:22] Production.INFO: 43.75 MB #Memory Used# [2025-04-26 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 10:42:05 [end_date_ymd] => 2025-04-26 13:42:05 [RateCDR] => 1 ) [2025-04-26 13:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 10:42:05' and `end` < '2025-04-26 13:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 13:42:18] Production.INFO: count ==2043 [2025-04-26 13:42:18] Production.ERROR: pbx CDR StartTime 2025-04-26 10:42:05 - End Time 2025-04-26 13:42:05 [2025-04-26 13:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994656', 'tblTempUsageDetail_20' ) start [2025-04-26 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994656', 'tblTempUsageDetail_20' ) end [2025-04-26 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994656', 'tblTempVendorCDR_20' ) start [2025-04-26 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994656', 'tblTempVendorCDR_20' ) end [2025-04-26 13:42:18] Production.INFO: ProcessCDR(1,14994656,1,1,2) [2025-04-26 13:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994656', 'tblTempUsageDetail_20' ) start [2025-04-26 13:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994656', 'tblTempUsageDetail_20' ) end [2025-04-26 13:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 13:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 13:42:22] Production.INFO: ==19774== Releasing lock... [2025-04-26 13:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 13:42:22] Production.INFO: 43.25 MB #Memory Used# [2025-04-26 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 10:43:05 [end_date_ymd] => 2025-04-26 13:43:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 10:43:05' and `end` < '2025-04-26 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-04-26 13:43:18] Production.INFO: count ==2039 [2025-04-26 13:43:18] Production.ERROR: pbx CDR StartTime 2025-04-26 10:43:05 - End Time 2025-04-26 13:43:05 [2025-04-26 13:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 13:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994661', 'tblTempUsageDetail_20' ) start [2025-04-26 13:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994661', 'tblTempUsageDetail_20' ) end [2025-04-26 13:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994661', 'tblTempVendorCDR_20' ) start [2025-04-26 13:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994661', 'tblTempVendorCDR_20' ) end [2025-04-26 13:43:18] Production.INFO: ProcessCDR(1,14994661,1,1,2) [2025-04-26 13:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994661', 'tblTempUsageDetail_20' ) start [2025-04-26 13:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994661', 'tblTempUsageDetail_20' ) end [2025-04-26 13:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 13:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 13:43:22] Production.INFO: ==19850== Releasing lock... [2025-04-26 13:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 13:43:22] Production.INFO: 43.5 MB #Memory Used# [2025-04-26 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 10:44:05 [end_date_ymd] => 2025-04-26 13:44:05 [RateCDR] => 1 ) [2025-04-26 13:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 10:44:05' and `end` < '2025-04-26 13:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 13:44:18] Production.INFO: count ==2032 [2025-04-26 13:44:18] Production.ERROR: pbx CDR StartTime 2025-04-26 10:44:05 - End Time 2025-04-26 13:44:05 [2025-04-26 13:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994666', 'tblTempUsageDetail_20' ) start [2025-04-26 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994666', 'tblTempUsageDetail_20' ) end [2025-04-26 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994666', 'tblTempVendorCDR_20' ) start [2025-04-26 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994666', 'tblTempVendorCDR_20' ) end [2025-04-26 13:44:18] Production.INFO: ProcessCDR(1,14994666,1,1,2) [2025-04-26 13:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994666', 'tblTempUsageDetail_20' ) start [2025-04-26 13:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994666', 'tblTempUsageDetail_20' ) end [2025-04-26 13:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 13:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 13:44:22] Production.INFO: ==19920== Releasing lock... [2025-04-26 13:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 13:44:22] Production.INFO: 43.5 MB #Memory Used# [2025-04-26 13:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 10:45:06 [end_date_ymd] => 2025-04-26 13:45:06 [RateCDR] => 1 ) [2025-04-26 13:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 10:45:06' and `end` < '2025-04-26 13:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 13:45:19] Production.INFO: count ==2022 [2025-04-26 13:45:19] Production.ERROR: pbx CDR StartTime 2025-04-26 10:45:06 - End Time 2025-04-26 13:45:06 [2025-04-26 13:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 13:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994671', 'tblTempUsageDetail_20' ) start [2025-04-26 13:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994671', 'tblTempUsageDetail_20' ) end [2025-04-26 13:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994671', 'tblTempVendorCDR_20' ) start [2025-04-26 13:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994671', 'tblTempVendorCDR_20' ) end [2025-04-26 13:45:19] Production.INFO: ProcessCDR(1,14994671,1,1,2) [2025-04-26 13:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994671', 'tblTempUsageDetail_20' ) start [2025-04-26 13:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994671', 'tblTempUsageDetail_20' ) end [2025-04-26 13:45:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 13:45:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 13:45:23] Production.INFO: ==19991== Releasing lock... [2025-04-26 13:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 13:45:23] Production.INFO: 43.25 MB #Memory Used# [2025-04-26 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 10:46:05 [end_date_ymd] => 2025-04-26 13:46:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 10:46:05' and `end` < '2025-04-26 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-04-26 13:46:18] Production.INFO: count ==2021 [2025-04-26 13:46:19] Production.ERROR: pbx CDR StartTime 2025-04-26 10:46:05 - End Time 2025-04-26 13:46:05 [2025-04-26 13:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 13:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994676', 'tblTempUsageDetail_20' ) start [2025-04-26 13:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994676', 'tblTempUsageDetail_20' ) end [2025-04-26 13:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994676', 'tblTempVendorCDR_20' ) start [2025-04-26 13:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994676', 'tblTempVendorCDR_20' ) end [2025-04-26 13:46:19] Production.INFO: ProcessCDR(1,14994676,1,1,2) [2025-04-26 13:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994676', 'tblTempUsageDetail_20' ) start [2025-04-26 13:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994676', 'tblTempUsageDetail_20' ) end [2025-04-26 13:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 13:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 13:46:24] Production.INFO: ==20063== Releasing lock... [2025-04-26 13:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 13:46:24] Production.INFO: 43.5 MB #Memory Used# [2025-04-26 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 10:47:05 [end_date_ymd] => 2025-04-26 13:47:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 10:47:05' and `end` < '2025-04-26 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-04-26 13:47:17] Production.INFO: count ==2006 [2025-04-26 13:47:18] Production.ERROR: pbx CDR StartTime 2025-04-26 10:47:05 - End Time 2025-04-26 13:47:05 [2025-04-26 13:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 13:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994681', 'tblTempUsageDetail_20' ) start [2025-04-26 13:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994681', 'tblTempUsageDetail_20' ) end [2025-04-26 13:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994681', 'tblTempVendorCDR_20' ) start [2025-04-26 13:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994681', 'tblTempVendorCDR_20' ) end [2025-04-26 13:47:18] Production.INFO: ProcessCDR(1,14994681,1,1,2) [2025-04-26 13:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994681', 'tblTempUsageDetail_20' ) start [2025-04-26 13:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994681', 'tblTempUsageDetail_20' ) end [2025-04-26 13:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 13:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 13:47:22] Production.INFO: ==20135== Releasing lock... [2025-04-26 13:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 13:47:22] Production.INFO: 43.25 MB #Memory Used# [2025-04-26 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 10:48:05 [end_date_ymd] => 2025-04-26 13:48:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 10:48:05' and `end` < '2025-04-26 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-04-26 13:48:18] Production.INFO: count ==2008 [2025-04-26 13:48:19] Production.ERROR: pbx CDR StartTime 2025-04-26 10:48:05 - End Time 2025-04-26 13:48:05 [2025-04-26 13:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 13:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994686', 'tblTempUsageDetail_20' ) start [2025-04-26 13:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994686', 'tblTempUsageDetail_20' ) end [2025-04-26 13:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994686', 'tblTempVendorCDR_20' ) start [2025-04-26 13:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994686', 'tblTempVendorCDR_20' ) end [2025-04-26 13:48:19] Production.INFO: ProcessCDR(1,14994686,1,1,2) [2025-04-26 13:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994686', 'tblTempUsageDetail_20' ) start [2025-04-26 13:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994686', 'tblTempUsageDetail_20' ) end [2025-04-26 13:48:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 13:48:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 13:48:24] Production.INFO: ==20209== Releasing lock... [2025-04-26 13:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 13:48:24] Production.INFO: 43.5 MB #Memory Used# [2025-04-26 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 10:49:05 [end_date_ymd] => 2025-04-26 13:49:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 10:49:05' and `end` < '2025-04-26 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-04-26 13:49:17] Production.INFO: count ==2005 [2025-04-26 13:49:18] Production.ERROR: pbx CDR StartTime 2025-04-26 10:49:05 - End Time 2025-04-26 13:49:05 [2025-04-26 13:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 13:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994691', 'tblTempUsageDetail_20' ) start [2025-04-26 13:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994691', 'tblTempUsageDetail_20' ) end [2025-04-26 13:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994691', 'tblTempVendorCDR_20' ) start [2025-04-26 13:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994691', 'tblTempVendorCDR_20' ) end [2025-04-26 13:49:18] Production.INFO: ProcessCDR(1,14994691,1,1,2) [2025-04-26 13:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994691', 'tblTempUsageDetail_20' ) start [2025-04-26 13:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994691', 'tblTempUsageDetail_20' ) end [2025-04-26 13:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 13:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 13:49:22] Production.INFO: ==20281== Releasing lock... [2025-04-26 13:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 13:49:22] Production.INFO: 43.25 MB #Memory Used# [2025-04-26 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 10:50:06 [end_date_ymd] => 2025-04-26 13:50:06 [RateCDR] => 1 ) [2025-04-26 13:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 10:50:06' and `end` < '2025-04-26 13:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 13:50:19] Production.INFO: count ==2010 [2025-04-26 13:50:20] Production.ERROR: pbx CDR StartTime 2025-04-26 10:50:06 - End Time 2025-04-26 13:50:06 [2025-04-26 13:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 13:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994697', 'tblTempUsageDetail_20' ) start [2025-04-26 13:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994697', 'tblTempUsageDetail_20' ) end [2025-04-26 13:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994697', 'tblTempVendorCDR_20' ) start [2025-04-26 13:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994697', 'tblTempVendorCDR_20' ) end [2025-04-26 13:50:20] Production.INFO: ProcessCDR(1,14994697,1,1,2) [2025-04-26 13:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994697', 'tblTempUsageDetail_20' ) start [2025-04-26 13:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994697', 'tblTempUsageDetail_20' ) end [2025-04-26 13:50:25] Production.ERROR: pbx prc_insertCDR start [2025-04-26 13:50:25] Production.ERROR: pbx prc_insertCDR end [2025-04-26 13:50:25] Production.INFO: ==20398== Releasing lock... [2025-04-26 13:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 13:50:25] Production.INFO: 43.25 MB #Memory Used# [2025-04-26 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 10:51:05 [end_date_ymd] => 2025-04-26 13:51:05 [RateCDR] => 1 ) [2025-04-26 13:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 10:51:05' and `end` < '2025-04-26 13:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 13:51:18] Production.INFO: count ==2008 [2025-04-26 13:51:18] Production.ERROR: pbx CDR StartTime 2025-04-26 10:51:05 - End Time 2025-04-26 13:51:05 [2025-04-26 13:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 13:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994702', 'tblTempUsageDetail_20' ) start [2025-04-26 13:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994702', 'tblTempUsageDetail_20' ) end [2025-04-26 13:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994702', 'tblTempVendorCDR_20' ) start [2025-04-26 13:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994702', 'tblTempVendorCDR_20' ) end [2025-04-26 13:51:18] Production.INFO: ProcessCDR(1,14994702,1,1,2) [2025-04-26 13:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994702', 'tblTempUsageDetail_20' ) start [2025-04-26 13:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994702', 'tblTempUsageDetail_20' ) end [2025-04-26 13:51:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 13:51:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 13:51:24] Production.INFO: ==20470== Releasing lock... [2025-04-26 13:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 13:51:24] Production.INFO: 43.25 MB #Memory Used# [2025-04-26 13:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 10:52:06 [end_date_ymd] => 2025-04-26 13:52:06 [RateCDR] => 1 ) [2025-04-26 13:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 10:52:06' and `end` < '2025-04-26 13:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 13:52:19] Production.INFO: count ==2011 [2025-04-26 13:52:19] Production.ERROR: pbx CDR StartTime 2025-04-26 10:52:06 - End Time 2025-04-26 13:52:06 [2025-04-26 13:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 13:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994707', 'tblTempUsageDetail_20' ) start [2025-04-26 13:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994707', 'tblTempUsageDetail_20' ) end [2025-04-26 13:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994707', 'tblTempVendorCDR_20' ) start [2025-04-26 13:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994707', 'tblTempVendorCDR_20' ) end [2025-04-26 13:52:20] Production.INFO: ProcessCDR(1,14994707,1,1,2) [2025-04-26 13:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994707', 'tblTempUsageDetail_20' ) start [2025-04-26 13:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994707', 'tblTempUsageDetail_20' ) end [2025-04-26 13:52:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 13:52:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 13:52:25] Production.INFO: ==20542== Releasing lock... [2025-04-26 13:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 13:52:25] Production.INFO: 43.25 MB #Memory Used# [2025-04-26 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 10:53:05 [end_date_ymd] => 2025-04-26 13:53:05 [RateCDR] => 1 ) [2025-04-26 13:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 10:53:05' and `end` < '2025-04-26 13:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 13:53:18] Production.INFO: count ==2005 [2025-04-26 13:53:18] Production.ERROR: pbx CDR StartTime 2025-04-26 10:53:05 - End Time 2025-04-26 13:53:05 [2025-04-26 13:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 13:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994712', 'tblTempUsageDetail_20' ) start [2025-04-26 13:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994712', 'tblTempUsageDetail_20' ) end [2025-04-26 13:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994712', 'tblTempVendorCDR_20' ) start [2025-04-26 13:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994712', 'tblTempVendorCDR_20' ) end [2025-04-26 13:53:18] Production.INFO: ProcessCDR(1,14994712,1,1,2) [2025-04-26 13:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994712', 'tblTempUsageDetail_20' ) start [2025-04-26 13:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994712', 'tblTempUsageDetail_20' ) end [2025-04-26 13:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 13:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 13:53:23] Production.INFO: ==20616== Releasing lock... [2025-04-26 13:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 13:53:23] Production.INFO: 43.25 MB #Memory Used# [2025-04-26 13:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 10:54:06 [end_date_ymd] => 2025-04-26 13:54:06 [RateCDR] => 1 ) [2025-04-26 13:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 10:54:06' and `end` < '2025-04-26 13:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 13:54:19] Production.INFO: count ==2022 [2025-04-26 13:54:19] Production.ERROR: pbx CDR StartTime 2025-04-26 10:54:06 - End Time 2025-04-26 13:54:06 [2025-04-26 13:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 13:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994717', 'tblTempUsageDetail_20' ) start [2025-04-26 13:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994717', 'tblTempUsageDetail_20' ) end [2025-04-26 13:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994717', 'tblTempVendorCDR_20' ) start [2025-04-26 13:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994717', 'tblTempVendorCDR_20' ) end [2025-04-26 13:54:20] Production.INFO: ProcessCDR(1,14994717,1,1,2) [2025-04-26 13:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994717', 'tblTempUsageDetail_20' ) start [2025-04-26 13:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994717', 'tblTempUsageDetail_20' ) end [2025-04-26 13:54:25] Production.ERROR: pbx prc_insertCDR start [2025-04-26 13:54:25] Production.ERROR: pbx prc_insertCDR end [2025-04-26 13:54:25] Production.INFO: ==20690== Releasing lock... [2025-04-26 13:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 13:54:25] Production.INFO: 43.75 MB #Memory Used# [2025-04-26 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 10:55:05 [end_date_ymd] => 2025-04-26 13:55:05 [RateCDR] => 1 ) [2025-04-26 13:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 10:55:05' and `end` < '2025-04-26 13:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 13:55:18] Production.INFO: count ==2037 [2025-04-26 13:55:19] Production.ERROR: pbx CDR StartTime 2025-04-26 10:55:05 - End Time 2025-04-26 13:55:05 [2025-04-26 13:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994722', 'tblTempUsageDetail_20' ) start [2025-04-26 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994722', 'tblTempUsageDetail_20' ) end [2025-04-26 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994722', 'tblTempVendorCDR_20' ) start [2025-04-26 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994722', 'tblTempVendorCDR_20' ) end [2025-04-26 13:55:19] Production.INFO: ProcessCDR(1,14994722,1,1,2) [2025-04-26 13:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994722', 'tblTempUsageDetail_20' ) start [2025-04-26 13:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994722', 'tblTempUsageDetail_20' ) end [2025-04-26 13:55:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 13:55:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 13:55:24] Production.INFO: ==20763== Releasing lock... [2025-04-26 13:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 13:55:24] Production.INFO: 43.5 MB #Memory Used# [2025-04-26 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 10:56:05 [end_date_ymd] => 2025-04-26 13:56:05 [RateCDR] => 1 ) [2025-04-26 13:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 10:56:05' and `end` < '2025-04-26 13:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 13:56:18] Production.INFO: count ==2034 [2025-04-26 13:56:19] Production.ERROR: pbx CDR StartTime 2025-04-26 10:56:05 - End Time 2025-04-26 13:56:05 [2025-04-26 13:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994727', 'tblTempUsageDetail_20' ) start [2025-04-26 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994727', 'tblTempUsageDetail_20' ) end [2025-04-26 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994727', 'tblTempVendorCDR_20' ) start [2025-04-26 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994727', 'tblTempVendorCDR_20' ) end [2025-04-26 13:56:19] Production.INFO: ProcessCDR(1,14994727,1,1,2) [2025-04-26 13:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994727', 'tblTempUsageDetail_20' ) start [2025-04-26 13:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994727', 'tblTempUsageDetail_20' ) end [2025-04-26 13:56:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 13:56:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 13:56:24] Production.INFO: ==20836== Releasing lock... [2025-04-26 13:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 13:56:24] Production.INFO: 43.5 MB #Memory Used# [2025-04-26 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 10:57:05 [end_date_ymd] => 2025-04-26 13:57:05 [RateCDR] => 1 ) [2025-04-26 13:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 10:57:05' and `end` < '2025-04-26 13:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 13:57:18] Production.INFO: count ==2033 [2025-04-26 13:57:18] Production.ERROR: pbx CDR StartTime 2025-04-26 10:57:05 - End Time 2025-04-26 13:57:05 [2025-04-26 13:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994732', 'tblTempUsageDetail_20' ) start [2025-04-26 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994732', 'tblTempUsageDetail_20' ) end [2025-04-26 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994732', 'tblTempVendorCDR_20' ) start [2025-04-26 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994732', 'tblTempVendorCDR_20' ) end [2025-04-26 13:57:18] Production.INFO: ProcessCDR(1,14994732,1,1,2) [2025-04-26 13:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994732', 'tblTempUsageDetail_20' ) start [2025-04-26 13:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994732', 'tblTempUsageDetail_20' ) end [2025-04-26 13:57:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 13:57:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 13:57:24] Production.INFO: ==20908== Releasing lock... [2025-04-26 13:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 13:57:24] Production.INFO: 43.25 MB #Memory Used# [2025-04-26 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 10:58:05 [end_date_ymd] => 2025-04-26 13:58:05 [RateCDR] => 1 ) [2025-04-26 13:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 10:58:05' and `end` < '2025-04-26 13:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 13:58:18] Production.INFO: count ==2037 [2025-04-26 13:58:19] Production.ERROR: pbx CDR StartTime 2025-04-26 10:58:05 - End Time 2025-04-26 13:58:05 [2025-04-26 13:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994737', 'tblTempUsageDetail_20' ) start [2025-04-26 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994737', 'tblTempUsageDetail_20' ) end [2025-04-26 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994737', 'tblTempVendorCDR_20' ) start [2025-04-26 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994737', 'tblTempVendorCDR_20' ) end [2025-04-26 13:58:19] Production.INFO: ProcessCDR(1,14994737,1,1,2) [2025-04-26 13:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994737', 'tblTempUsageDetail_20' ) start [2025-04-26 13:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994737', 'tblTempUsageDetail_20' ) end [2025-04-26 13:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 13:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 13:58:22] Production.INFO: ==20980== Releasing lock... [2025-04-26 13:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 13:58:22] Production.INFO: 43.5 MB #Memory Used# [2025-04-26 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 10:59:05 [end_date_ymd] => 2025-04-26 13:59:05 [RateCDR] => 1 ) [2025-04-26 13:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 10:59:05' and `end` < '2025-04-26 13:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 13:59:18] Production.INFO: count ==2037 [2025-04-26 13:59:18] Production.ERROR: pbx CDR StartTime 2025-04-26 10:59:05 - End Time 2025-04-26 13:59:05 [2025-04-26 13:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 13:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994742', 'tblTempUsageDetail_20' ) start [2025-04-26 13:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994742', 'tblTempUsageDetail_20' ) end [2025-04-26 13:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994742', 'tblTempVendorCDR_20' ) start [2025-04-26 13:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994742', 'tblTempVendorCDR_20' ) end [2025-04-26 13:59:18] Production.INFO: ProcessCDR(1,14994742,1,1,2) [2025-04-26 13:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 13:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 13:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994742', 'tblTempUsageDetail_20' ) start [2025-04-26 13:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994742', 'tblTempUsageDetail_20' ) end [2025-04-26 13:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 13:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 13:59:23] Production.INFO: ==21051== Releasing lock... [2025-04-26 13:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 13:59:23] Production.INFO: 43.5 MB #Memory Used# [2025-04-26 14:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 11:00:05 [end_date_ymd] => 2025-04-26 14:00:05 [RateCDR] => 1 ) [2025-04-26 14:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 11:00:05' and `end` < '2025-04-26 14:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 14:00:18] Production.INFO: count ==2038 [2025-04-26 14:00:19] Production.ERROR: pbx CDR StartTime 2025-04-26 11:00:05 - End Time 2025-04-26 14:00:05 [2025-04-26 14:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994747', 'tblTempUsageDetail_20' ) start [2025-04-26 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994747', 'tblTempUsageDetail_20' ) end [2025-04-26 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994747', 'tblTempVendorCDR_20' ) start [2025-04-26 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994747', 'tblTempVendorCDR_20' ) end [2025-04-26 14:00:19] Production.INFO: ProcessCDR(1,14994747,1,1,2) [2025-04-26 14:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994747', 'tblTempUsageDetail_20' ) start [2025-04-26 14:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994747', 'tblTempUsageDetail_20' ) end [2025-04-26 14:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 14:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 14:00:24] Production.INFO: ==21126== Releasing lock... [2025-04-26 14:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 14:00:24] Production.INFO: 44 MB #Memory Used# [2025-04-26 14:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 11:01:06 [end_date_ymd] => 2025-04-26 14:01:06 [RateCDR] => 1 ) [2025-04-26 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-04-26 11:01:06' and `end` < '2025-04-26 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-04-26 14:01:19] Production.INFO: count ==2026 [2025-04-26 14:01:19] Production.ERROR: pbx CDR StartTime 2025-04-26 11:01:06 - End Time 2025-04-26 14:01:06 [2025-04-26 14:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994753', 'tblTempUsageDetail_20' ) start [2025-04-26 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994753', 'tblTempUsageDetail_20' ) end [2025-04-26 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994753', 'tblTempVendorCDR_20' ) start [2025-04-26 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994753', 'tblTempVendorCDR_20' ) end [2025-04-26 14:01:19] Production.INFO: ProcessCDR(1,14994753,1,1,2) [2025-04-26 14:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994753', 'tblTempUsageDetail_20' ) start [2025-04-26 14:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994753', 'tblTempUsageDetail_20' ) end [2025-04-26 14:01:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 14:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 14:01:24] Production.INFO: ==21215== Releasing lock... [2025-04-26 14:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 14:01:24] Production.INFO: 43.25 MB #Memory Used# [2025-04-26 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 11:02:05 [end_date_ymd] => 2025-04-26 14:02:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 11:02:05' and `end` < '2025-04-26 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-04-26 14:02:18] Production.INFO: count ==2026 [2025-04-26 14:02:18] Production.ERROR: pbx CDR StartTime 2025-04-26 11:02:05 - End Time 2025-04-26 14:02:05 [2025-04-26 14:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 14:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994758', 'tblTempUsageDetail_20' ) start [2025-04-26 14:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994758', 'tblTempUsageDetail_20' ) end [2025-04-26 14:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994758', 'tblTempVendorCDR_20' ) start [2025-04-26 14:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994758', 'tblTempVendorCDR_20' ) end [2025-04-26 14:02:19] Production.INFO: ProcessCDR(1,14994758,1,1,2) [2025-04-26 14:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994758', 'tblTempUsageDetail_20' ) start [2025-04-26 14:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994758', 'tblTempUsageDetail_20' ) end [2025-04-26 14:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 14:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 14:02:23] Production.INFO: ==21287== Releasing lock... [2025-04-26 14:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 14:02:23] Production.INFO: 43.25 MB #Memory Used# [2025-04-26 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 11:03:05 [end_date_ymd] => 2025-04-26 14:03:05 [RateCDR] => 1 ) [2025-04-26 14:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 11:03:05' and `end` < '2025-04-26 14:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 14:03:18] Production.INFO: count ==2031 [2025-04-26 14:03:19] Production.ERROR: pbx CDR StartTime 2025-04-26 11:03:05 - End Time 2025-04-26 14:03:05 [2025-04-26 14:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 14:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994763', 'tblTempUsageDetail_20' ) start [2025-04-26 14:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994763', 'tblTempUsageDetail_20' ) end [2025-04-26 14:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994763', 'tblTempVendorCDR_20' ) start [2025-04-26 14:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994763', 'tblTempVendorCDR_20' ) end [2025-04-26 14:03:19] Production.INFO: ProcessCDR(1,14994763,1,1,2) [2025-04-26 14:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994763', 'tblTempUsageDetail_20' ) start [2025-04-26 14:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994763', 'tblTempUsageDetail_20' ) end [2025-04-26 14:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 14:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 14:03:23] Production.INFO: ==21358== Releasing lock... [2025-04-26 14:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 14:03:23] Production.INFO: 43.25 MB #Memory Used# [2025-04-26 14:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 11:04:05 [end_date_ymd] => 2025-04-26 14:04:05 [RateCDR] => 1 ) [2025-04-26 14:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 11:04:05' and `end` < '2025-04-26 14:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 14:04:18] Production.INFO: count ==2039 [2025-04-26 14:04:19] Production.ERROR: pbx CDR StartTime 2025-04-26 11:04:05 - End Time 2025-04-26 14:04:05 [2025-04-26 14:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 14:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994768', 'tblTempUsageDetail_20' ) start [2025-04-26 14:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994768', 'tblTempUsageDetail_20' ) end [2025-04-26 14:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994768', 'tblTempVendorCDR_20' ) start [2025-04-26 14:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994768', 'tblTempVendorCDR_20' ) end [2025-04-26 14:04:19] Production.INFO: ProcessCDR(1,14994768,1,1,2) [2025-04-26 14:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994768', 'tblTempUsageDetail_20' ) start [2025-04-26 14:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994768', 'tblTempUsageDetail_20' ) end [2025-04-26 14:04:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 14:04:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 14:04:24] Production.INFO: ==21440== Releasing lock... [2025-04-26 14:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 14:04:24] Production.INFO: 43.5 MB #Memory Used# [2025-04-26 14:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 11:05:06 [end_date_ymd] => 2025-04-26 14:05:06 [RateCDR] => 1 ) [2025-04-26 14:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 11:05:06' and `end` < '2025-04-26 14:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 14:05:18] Production.INFO: count ==2053 [2025-04-26 14:05:19] Production.ERROR: pbx CDR StartTime 2025-04-26 11:05:06 - End Time 2025-04-26 14:05:06 [2025-04-26 14:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 14:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994773', 'tblTempUsageDetail_20' ) start [2025-04-26 14:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994773', 'tblTempUsageDetail_20' ) end [2025-04-26 14:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994773', 'tblTempVendorCDR_20' ) start [2025-04-26 14:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994773', 'tblTempVendorCDR_20' ) end [2025-04-26 14:05:19] Production.INFO: ProcessCDR(1,14994773,1,1,2) [2025-04-26 14:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994773', 'tblTempUsageDetail_20' ) start [2025-04-26 14:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994773', 'tblTempUsageDetail_20' ) end [2025-04-26 14:05:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 14:05:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 14:05:24] Production.INFO: ==21517== Releasing lock... [2025-04-26 14:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 14:05:24] Production.INFO: 43.5 MB #Memory Used# [2025-04-26 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 11:06:05 [end_date_ymd] => 2025-04-26 14:06:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 11:06:05' and `end` < '2025-04-26 14:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 14:06:18] Production.INFO: count ==2050 [2025-04-26 14:06:19] Production.ERROR: pbx CDR StartTime 2025-04-26 11:06:05 - End Time 2025-04-26 14:06:05 [2025-04-26 14:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 14:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994778', 'tblTempUsageDetail_20' ) start [2025-04-26 14:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994778', 'tblTempUsageDetail_20' ) end [2025-04-26 14:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994778', 'tblTempVendorCDR_20' ) start [2025-04-26 14:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994778', 'tblTempVendorCDR_20' ) end [2025-04-26 14:06:19] Production.INFO: ProcessCDR(1,14994778,1,1,2) [2025-04-26 14:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994778', 'tblTempUsageDetail_20' ) start [2025-04-26 14:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994778', 'tblTempUsageDetail_20' ) end [2025-04-26 14:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 14:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 14:06:22] Production.INFO: ==21629== Releasing lock... [2025-04-26 14:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 14:06:22] Production.INFO: 43.5 MB #Memory Used# [2025-04-26 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 11:07:05 [end_date_ymd] => 2025-04-26 14:07:05 [RateCDR] => 1 ) [2025-04-26 14:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 11:07:05' and `end` < '2025-04-26 14:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 14:07:18] Production.INFO: count ==2048 [2025-04-26 14:07:19] Production.ERROR: pbx CDR StartTime 2025-04-26 11:07:05 - End Time 2025-04-26 14:07:05 [2025-04-26 14:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 14:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994783', 'tblTempUsageDetail_20' ) start [2025-04-26 14:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994783', 'tblTempUsageDetail_20' ) end [2025-04-26 14:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994783', 'tblTempVendorCDR_20' ) start [2025-04-26 14:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994783', 'tblTempVendorCDR_20' ) end [2025-04-26 14:07:19] Production.INFO: ProcessCDR(1,14994783,1,1,2) [2025-04-26 14:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994783', 'tblTempUsageDetail_20' ) start [2025-04-26 14:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994783', 'tblTempUsageDetail_20' ) end [2025-04-26 14:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 14:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 14:07:23] Production.INFO: ==21704== Releasing lock... [2025-04-26 14:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 14:07:23] Production.INFO: 43.75 MB #Memory Used# [2025-04-26 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 11:08:05 [end_date_ymd] => 2025-04-26 14:08:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 11:08:05' and `end` < '2025-04-26 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-04-26 14:08:18] Production.INFO: count ==2049 [2025-04-26 14:08:19] Production.ERROR: pbx CDR StartTime 2025-04-26 11:08:05 - End Time 2025-04-26 14:08:05 [2025-04-26 14:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 14:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994788', 'tblTempUsageDetail_20' ) start [2025-04-26 14:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994788', 'tblTempUsageDetail_20' ) end [2025-04-26 14:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994788', 'tblTempVendorCDR_20' ) start [2025-04-26 14:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994788', 'tblTempVendorCDR_20' ) end [2025-04-26 14:08:19] Production.INFO: ProcessCDR(1,14994788,1,1,2) [2025-04-26 14:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994788', 'tblTempUsageDetail_20' ) start [2025-04-26 14:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994788', 'tblTempUsageDetail_20' ) end [2025-04-26 14:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 14:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 14:08:22] Production.INFO: ==21773== Releasing lock... [2025-04-26 14:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 14:08:22] Production.INFO: 43.5 MB #Memory Used# [2025-04-26 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 11:09:05 [end_date_ymd] => 2025-04-26 14:09:05 [RateCDR] => 1 ) [2025-04-26 14:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 11:09:05' and `end` < '2025-04-26 14:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 14:09:18] Production.INFO: count ==2052 [2025-04-26 14:09:19] Production.ERROR: pbx CDR StartTime 2025-04-26 11:09:05 - End Time 2025-04-26 14:09:05 [2025-04-26 14:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 14:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994793', 'tblTempUsageDetail_20' ) start [2025-04-26 14:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994793', 'tblTempUsageDetail_20' ) end [2025-04-26 14:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994793', 'tblTempVendorCDR_20' ) start [2025-04-26 14:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994793', 'tblTempVendorCDR_20' ) end [2025-04-26 14:09:19] Production.INFO: ProcessCDR(1,14994793,1,1,2) [2025-04-26 14:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994793', 'tblTempUsageDetail_20' ) start [2025-04-26 14:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994793', 'tblTempUsageDetail_20' ) end [2025-04-26 14:09:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 14:09:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 14:09:24] Production.INFO: ==21842== Releasing lock... [2025-04-26 14:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 14:09:24] Production.INFO: 43.5 MB #Memory Used# [2025-04-26 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 11:10:06 [end_date_ymd] => 2025-04-26 14:10:06 [RateCDR] => 1 ) [2025-04-26 14:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 11:10:06' and `end` < '2025-04-26 14:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 14:10:19] Production.INFO: count ==2056 [2025-04-26 14:10:19] Production.ERROR: pbx CDR StartTime 2025-04-26 11:10:06 - End Time 2025-04-26 14:10:06 [2025-04-26 14:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 14:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994799', 'tblTempUsageDetail_20' ) start [2025-04-26 14:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994799', 'tblTempUsageDetail_20' ) end [2025-04-26 14:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994799', 'tblTempVendorCDR_20' ) start [2025-04-26 14:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994799', 'tblTempVendorCDR_20' ) end [2025-04-26 14:10:19] Production.INFO: ProcessCDR(1,14994799,1,1,2) [2025-04-26 14:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994799', 'tblTempUsageDetail_20' ) start [2025-04-26 14:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994799', 'tblTempUsageDetail_20' ) end [2025-04-26 14:10:25] Production.ERROR: pbx prc_insertCDR start [2025-04-26 14:10:25] Production.ERROR: pbx prc_insertCDR end [2025-04-26 14:10:25] Production.INFO: ==21919== Releasing lock... [2025-04-26 14:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 14:10:25] Production.INFO: 43.5 MB #Memory Used# [2025-04-26 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 11:11:05 [end_date_ymd] => 2025-04-26 14:11:05 [RateCDR] => 1 ) [2025-04-26 14:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 11:11:05' and `end` < '2025-04-26 14:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 14:11:18] Production.INFO: count ==2023 [2025-04-26 14:11:19] Production.ERROR: pbx CDR StartTime 2025-04-26 11:11:05 - End Time 2025-04-26 14:11:05 [2025-04-26 14:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 14:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994804', 'tblTempUsageDetail_20' ) start [2025-04-26 14:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994804', 'tblTempUsageDetail_20' ) end [2025-04-26 14:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994804', 'tblTempVendorCDR_20' ) start [2025-04-26 14:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994804', 'tblTempVendorCDR_20' ) end [2025-04-26 14:11:19] Production.INFO: ProcessCDR(1,14994804,1,1,2) [2025-04-26 14:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994804', 'tblTempUsageDetail_20' ) start [2025-04-26 14:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994804', 'tblTempUsageDetail_20' ) end [2025-04-26 14:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 14:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 14:11:22] Production.INFO: ==21992== Releasing lock... [2025-04-26 14:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 14:11:22] Production.INFO: 43.25 MB #Memory Used# [2025-04-26 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 11:12:05 [end_date_ymd] => 2025-04-26 14:12:05 [RateCDR] => 1 ) [2025-04-26 14:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 11:12:05' and `end` < '2025-04-26 14:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 14:12:18] Production.INFO: count ==2023 [2025-04-26 14:12:19] Production.ERROR: pbx CDR StartTime 2025-04-26 11:12:05 - End Time 2025-04-26 14:12:05 [2025-04-26 14:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 14:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994809', 'tblTempUsageDetail_20' ) start [2025-04-26 14:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994809', 'tblTempUsageDetail_20' ) end [2025-04-26 14:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994809', 'tblTempVendorCDR_20' ) start [2025-04-26 14:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994809', 'tblTempVendorCDR_20' ) end [2025-04-26 14:12:19] Production.INFO: ProcessCDR(1,14994809,1,1,2) [2025-04-26 14:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994809', 'tblTempUsageDetail_20' ) start [2025-04-26 14:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994809', 'tblTempUsageDetail_20' ) end [2025-04-26 14:12:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 14:12:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 14:12:23] Production.INFO: ==22064== Releasing lock... [2025-04-26 14:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 14:12:23] Production.INFO: 43.25 MB #Memory Used# [2025-04-26 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 11:13:05 [end_date_ymd] => 2025-04-26 14:13:05 [RateCDR] => 1 ) [2025-04-26 14:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 11:13:05' and `end` < '2025-04-26 14:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 14:13:18] Production.INFO: count ==2024 [2025-04-26 14:13:19] Production.ERROR: pbx CDR StartTime 2025-04-26 11:13:05 - End Time 2025-04-26 14:13:05 [2025-04-26 14:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 14:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994814', 'tblTempUsageDetail_20' ) start [2025-04-26 14:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994814', 'tblTempUsageDetail_20' ) end [2025-04-26 14:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994814', 'tblTempVendorCDR_20' ) start [2025-04-26 14:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994814', 'tblTempVendorCDR_20' ) end [2025-04-26 14:13:19] Production.INFO: ProcessCDR(1,14994814,1,1,2) [2025-04-26 14:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994814', 'tblTempUsageDetail_20' ) start [2025-04-26 14:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994814', 'tblTempUsageDetail_20' ) end [2025-04-26 14:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 14:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 14:13:22] Production.INFO: ==22138== Releasing lock... [2025-04-26 14:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 14:13:22] Production.INFO: 43.25 MB #Memory Used# [2025-04-26 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 11:14:05 [end_date_ymd] => 2025-04-26 14:14:05 [RateCDR] => 1 ) [2025-04-26 14:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 11:14:05' and `end` < '2025-04-26 14:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 14:14:18] Production.INFO: count ==2039 [2025-04-26 14:14:19] Production.ERROR: pbx CDR StartTime 2025-04-26 11:14:05 - End Time 2025-04-26 14:14:05 [2025-04-26 14:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 14:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994819', 'tblTempUsageDetail_20' ) start [2025-04-26 14:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994819', 'tblTempUsageDetail_20' ) end [2025-04-26 14:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994819', 'tblTempVendorCDR_20' ) start [2025-04-26 14:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994819', 'tblTempVendorCDR_20' ) end [2025-04-26 14:14:19] Production.INFO: ProcessCDR(1,14994819,1,1,2) [2025-04-26 14:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994819', 'tblTempUsageDetail_20' ) start [2025-04-26 14:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994819', 'tblTempUsageDetail_20' ) end [2025-04-26 14:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 14:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 14:14:22] Production.INFO: ==22208== Releasing lock... [2025-04-26 14:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 14:14:22] Production.INFO: 43.5 MB #Memory Used# [2025-04-26 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 11:15:05 [end_date_ymd] => 2025-04-26 14:15:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 11:15:05' and `end` < '2025-04-26 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-04-26 14:15:18] Production.INFO: count ==2038 [2025-04-26 14:15:19] Production.ERROR: pbx CDR StartTime 2025-04-26 11:15:05 - End Time 2025-04-26 14:15:05 [2025-04-26 14:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 14:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994824', 'tblTempUsageDetail_20' ) start [2025-04-26 14:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994824', 'tblTempUsageDetail_20' ) end [2025-04-26 14:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994824', 'tblTempVendorCDR_20' ) start [2025-04-26 14:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994824', 'tblTempVendorCDR_20' ) end [2025-04-26 14:15:19] Production.INFO: ProcessCDR(1,14994824,1,1,2) [2025-04-26 14:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994824', 'tblTempUsageDetail_20' ) start [2025-04-26 14:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994824', 'tblTempUsageDetail_20' ) end [2025-04-26 14:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 14:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 14:15:23] Production.INFO: ==22278== Releasing lock... [2025-04-26 14:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 14:15:23] Production.INFO: 43.5 MB #Memory Used# [2025-04-26 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 11:16:05 [end_date_ymd] => 2025-04-26 14:16:05 [RateCDR] => 1 ) [2025-04-26 14:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 11:16:05' and `end` < '2025-04-26 14:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 14:16:18] Production.INFO: count ==2035 [2025-04-26 14:16:19] Production.ERROR: pbx CDR StartTime 2025-04-26 11:16:05 - End Time 2025-04-26 14:16:05 [2025-04-26 14:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 14:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994829', 'tblTempUsageDetail_20' ) start [2025-04-26 14:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994829', 'tblTempUsageDetail_20' ) end [2025-04-26 14:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994829', 'tblTempVendorCDR_20' ) start [2025-04-26 14:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994829', 'tblTempVendorCDR_20' ) end [2025-04-26 14:16:19] Production.INFO: ProcessCDR(1,14994829,1,1,2) [2025-04-26 14:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994829', 'tblTempUsageDetail_20' ) start [2025-04-26 14:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994829', 'tblTempUsageDetail_20' ) end [2025-04-26 14:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 14:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 14:16:22] Production.INFO: ==22352== Releasing lock... [2025-04-26 14:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 14:16:22] Production.INFO: 43.25 MB #Memory Used# [2025-04-26 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 11:17:05 [end_date_ymd] => 2025-04-26 14:17:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 11:17:05' and `end` < '2025-04-26 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-04-26 14:17:18] Production.INFO: count ==2035 [2025-04-26 14:17:19] Production.ERROR: pbx CDR StartTime 2025-04-26 11:17:05 - End Time 2025-04-26 14:17:05 [2025-04-26 14:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 14:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994834', 'tblTempUsageDetail_20' ) start [2025-04-26 14:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994834', 'tblTempUsageDetail_20' ) end [2025-04-26 14:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994834', 'tblTempVendorCDR_20' ) start [2025-04-26 14:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994834', 'tblTempVendorCDR_20' ) end [2025-04-26 14:17:19] Production.INFO: ProcessCDR(1,14994834,1,1,2) [2025-04-26 14:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994834', 'tblTempUsageDetail_20' ) start [2025-04-26 14:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994834', 'tblTempUsageDetail_20' ) end [2025-04-26 14:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 14:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 14:17:22] Production.INFO: ==22429== Releasing lock... [2025-04-26 14:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 14:17:22] Production.INFO: 43.25 MB #Memory Used# [2025-04-26 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 11:18:05 [end_date_ymd] => 2025-04-26 14:18:05 [RateCDR] => 1 ) [2025-04-26 14:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 11:18:05' and `end` < '2025-04-26 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-04-26 14:18:18] Production.INFO: count ==2036 [2025-04-26 14:18:19] Production.ERROR: pbx CDR StartTime 2025-04-26 11:18:05 - End Time 2025-04-26 14:18:05 [2025-04-26 14:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 14:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994839', 'tblTempUsageDetail_20' ) start [2025-04-26 14:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994839', 'tblTempUsageDetail_20' ) end [2025-04-26 14:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994839', 'tblTempVendorCDR_20' ) start [2025-04-26 14:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994839', 'tblTempVendorCDR_20' ) end [2025-04-26 14:18:19] Production.INFO: ProcessCDR(1,14994839,1,1,2) [2025-04-26 14:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994839', 'tblTempUsageDetail_20' ) start [2025-04-26 14:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994839', 'tblTempUsageDetail_20' ) end [2025-04-26 14:18:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 14:18:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 14:18:23] Production.INFO: ==22499== Releasing lock... [2025-04-26 14:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 14:18:23] Production.INFO: 43 MB #Memory Used# [2025-04-26 14:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 11:19:06 [end_date_ymd] => 2025-04-26 14:19:06 [RateCDR] => 1 ) [2025-04-26 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-04-26 11:19:06' and `end` < '2025-04-26 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-04-26 14:19:19] Production.INFO: count ==2033 [2025-04-26 14:19:19] Production.ERROR: pbx CDR StartTime 2025-04-26 11:19:06 - End Time 2025-04-26 14:19:06 [2025-04-26 14:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994844', 'tblTempUsageDetail_20' ) start [2025-04-26 14:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994844', 'tblTempUsageDetail_20' ) end [2025-04-26 14:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994844', 'tblTempVendorCDR_20' ) start [2025-04-26 14:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994844', 'tblTempVendorCDR_20' ) end [2025-04-26 14:19:20] Production.INFO: ProcessCDR(1,14994844,1,1,2) [2025-04-26 14:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994844', 'tblTempUsageDetail_20' ) start [2025-04-26 14:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994844', 'tblTempUsageDetail_20' ) end [2025-04-26 14:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 14:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 14:19:23] Production.INFO: ==22573== Releasing lock... [2025-04-26 14:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 14:19:23] Production.INFO: 43.25 MB #Memory Used# [2025-04-26 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 11:20:06 [end_date_ymd] => 2025-04-26 14:20:06 [RateCDR] => 1 ) [2025-04-26 14:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 11:20:06' and `end` < '2025-04-26 14:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 14:20:19] Production.INFO: count ==2063 [2025-04-26 14:20:19] Production.ERROR: pbx CDR StartTime 2025-04-26 11:20:06 - End Time 2025-04-26 14:20:06 [2025-04-26 14:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 14:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994850', 'tblTempUsageDetail_20' ) start [2025-04-26 14:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994850', 'tblTempUsageDetail_20' ) end [2025-04-26 14:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994850', 'tblTempVendorCDR_20' ) start [2025-04-26 14:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994850', 'tblTempVendorCDR_20' ) end [2025-04-26 14:20:19] Production.INFO: ProcessCDR(1,14994850,1,1,2) [2025-04-26 14:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994850', 'tblTempUsageDetail_20' ) start [2025-04-26 14:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994850', 'tblTempUsageDetail_20' ) end [2025-04-26 14:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 14:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 14:20:25] Production.INFO: ==22645== Releasing lock... [2025-04-26 14:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 14:20:25] Production.INFO: 43.5 MB #Memory Used# [2025-04-26 14:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 11:21:06 [end_date_ymd] => 2025-04-26 14:21:06 [RateCDR] => 1 ) [2025-04-26 14:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 11:21:06' and `end` < '2025-04-26 14:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 14:21:19] Production.INFO: count ==2063 [2025-04-26 14:21:19] Production.ERROR: pbx CDR StartTime 2025-04-26 11:21:06 - End Time 2025-04-26 14:21:06 [2025-04-26 14:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 14:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994855', 'tblTempUsageDetail_20' ) start [2025-04-26 14:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994855', 'tblTempUsageDetail_20' ) end [2025-04-26 14:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994855', 'tblTempVendorCDR_20' ) start [2025-04-26 14:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994855', 'tblTempVendorCDR_20' ) end [2025-04-26 14:21:19] Production.INFO: ProcessCDR(1,14994855,1,1,2) [2025-04-26 14:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994855', 'tblTempUsageDetail_20' ) start [2025-04-26 14:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994855', 'tblTempUsageDetail_20' ) end [2025-04-26 14:21:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 14:21:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 14:21:23] Production.INFO: ==22761== Releasing lock... [2025-04-26 14:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 14:21:23] Production.INFO: 43.75 MB #Memory Used# [2025-04-26 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 11:22:05 [end_date_ymd] => 2025-04-26 14:22:05 [RateCDR] => 1 ) [2025-04-26 14:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 11:22:05' and `end` < '2025-04-26 14:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 14:22:18] Production.INFO: count ==2064 [2025-04-26 14:22:18] Production.ERROR: pbx CDR StartTime 2025-04-26 11:22:05 - End Time 2025-04-26 14:22:05 [2025-04-26 14:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994860', 'tblTempUsageDetail_20' ) start [2025-04-26 14:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994860', 'tblTempUsageDetail_20' ) end [2025-04-26 14:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994860', 'tblTempVendorCDR_20' ) start [2025-04-26 14:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994860', 'tblTempVendorCDR_20' ) end [2025-04-26 14:22:19] Production.INFO: ProcessCDR(1,14994860,1,1,2) [2025-04-26 14:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994860', 'tblTempUsageDetail_20' ) start [2025-04-26 14:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994860', 'tblTempUsageDetail_20' ) end [2025-04-26 14:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 14:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 14:22:24] Production.INFO: ==22834== Releasing lock... [2025-04-26 14:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 14:22:24] Production.INFO: 43.5 MB #Memory Used# [2025-04-26 14:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 11:23:06 [end_date_ymd] => 2025-04-26 14:23:06 [RateCDR] => 1 ) [2025-04-26 14:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 11:23:06' and `end` < '2025-04-26 14:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 14:23:18] Production.INFO: count ==2061 [2025-04-26 14:23:19] Production.ERROR: pbx CDR StartTime 2025-04-26 11:23:06 - End Time 2025-04-26 14:23:06 [2025-04-26 14:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994865', 'tblTempUsageDetail_20' ) start [2025-04-26 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994865', 'tblTempUsageDetail_20' ) end [2025-04-26 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994865', 'tblTempVendorCDR_20' ) start [2025-04-26 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994865', 'tblTempVendorCDR_20' ) end [2025-04-26 14:23:19] Production.INFO: ProcessCDR(1,14994865,1,1,2) [2025-04-26 14:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994865', 'tblTempUsageDetail_20' ) start [2025-04-26 14:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994865', 'tblTempUsageDetail_20' ) end [2025-04-26 14:23:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 14:23:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 14:23:23] Production.INFO: ==22904== Releasing lock... [2025-04-26 14:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 14:23:23] Production.INFO: 43.75 MB #Memory Used# [2025-04-26 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 11:24:05 [end_date_ymd] => 2025-04-26 14:24:05 [RateCDR] => 1 ) [2025-04-26 14:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 11:24:05' and `end` < '2025-04-26 14:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 14:24:18] Production.INFO: count ==2048 [2025-04-26 14:24:18] Production.ERROR: pbx CDR StartTime 2025-04-26 11:24:05 - End Time 2025-04-26 14:24:05 [2025-04-26 14:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994870', 'tblTempUsageDetail_20' ) start [2025-04-26 14:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994870', 'tblTempUsageDetail_20' ) end [2025-04-26 14:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994870', 'tblTempVendorCDR_20' ) start [2025-04-26 14:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994870', 'tblTempVendorCDR_20' ) end [2025-04-26 14:24:19] Production.INFO: ProcessCDR(1,14994870,1,1,2) [2025-04-26 14:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994870', 'tblTempUsageDetail_20' ) start [2025-04-26 14:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994870', 'tblTempUsageDetail_20' ) end [2025-04-26 14:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 14:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 14:24:22] Production.INFO: ==22975== Releasing lock... [2025-04-26 14:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 14:24:22] Production.INFO: 43.5 MB #Memory Used# [2025-04-26 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 11:25:05 [end_date_ymd] => 2025-04-26 14:25:05 [RateCDR] => 1 ) [2025-04-26 14:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 11:25:05' and `end` < '2025-04-26 14:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 14:25:18] Production.INFO: count ==2037 [2025-04-26 14:25:19] Production.ERROR: pbx CDR StartTime 2025-04-26 11:25:05 - End Time 2025-04-26 14:25:05 [2025-04-26 14:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994875', 'tblTempUsageDetail_20' ) start [2025-04-26 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994875', 'tblTempUsageDetail_20' ) end [2025-04-26 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994875', 'tblTempVendorCDR_20' ) start [2025-04-26 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994875', 'tblTempVendorCDR_20' ) end [2025-04-26 14:25:19] Production.INFO: ProcessCDR(1,14994875,1,1,2) [2025-04-26 14:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994875', 'tblTempUsageDetail_20' ) start [2025-04-26 14:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994875', 'tblTempUsageDetail_20' ) end [2025-04-26 14:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 14:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 14:25:22] Production.INFO: ==23056== Releasing lock... [2025-04-26 14:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 14:25:22] Production.INFO: 43.25 MB #Memory Used# [2025-04-26 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 11:26:05 [end_date_ymd] => 2025-04-26 14:26:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 11:26:05' and `end` < '2025-04-26 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-04-26 14:26:17] Production.INFO: count ==2033 [2025-04-26 14:26:18] Production.ERROR: pbx CDR StartTime 2025-04-26 11:26:05 - End Time 2025-04-26 14:26:05 [2025-04-26 14:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 14:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994880', 'tblTempUsageDetail_20' ) start [2025-04-26 14:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994880', 'tblTempUsageDetail_20' ) end [2025-04-26 14:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994880', 'tblTempVendorCDR_20' ) start [2025-04-26 14:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994880', 'tblTempVendorCDR_20' ) end [2025-04-26 14:26:18] Production.INFO: ProcessCDR(1,14994880,1,1,2) [2025-04-26 14:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994880', 'tblTempUsageDetail_20' ) start [2025-04-26 14:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994880', 'tblTempUsageDetail_20' ) end [2025-04-26 14:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 14:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 14:26:22] Production.INFO: ==23130== Releasing lock... [2025-04-26 14:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 14:26:22] Production.INFO: 43.5 MB #Memory Used# [2025-04-26 14:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 11:27:06 [end_date_ymd] => 2025-04-26 14:27:06 [RateCDR] => 1 ) [2025-04-26 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-04-26 11:27:06' and `end` < '2025-04-26 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-04-26 14:27:19] Production.INFO: count ==2036 [2025-04-26 14:27:19] Production.ERROR: pbx CDR StartTime 2025-04-26 11:27:06 - End Time 2025-04-26 14:27:06 [2025-04-26 14:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 14:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994885', 'tblTempUsageDetail_20' ) start [2025-04-26 14:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994885', 'tblTempUsageDetail_20' ) end [2025-04-26 14:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994885', 'tblTempVendorCDR_20' ) start [2025-04-26 14:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994885', 'tblTempVendorCDR_20' ) end [2025-04-26 14:27:19] Production.INFO: ProcessCDR(1,14994885,1,1,2) [2025-04-26 14:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994885', 'tblTempUsageDetail_20' ) start [2025-04-26 14:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994885', 'tblTempUsageDetail_20' ) end [2025-04-26 14:27:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 14:27:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 14:27:23] Production.INFO: ==23204== Releasing lock... [2025-04-26 14:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 14:27:23] Production.INFO: 43.5 MB #Memory Used# [2025-04-26 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 11:28:05 [end_date_ymd] => 2025-04-26 14:28:05 [RateCDR] => 1 ) [2025-04-26 14:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 11:28:05' and `end` < '2025-04-26 14:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 14:28:18] Production.INFO: count ==2031 [2025-04-26 14:28:19] Production.ERROR: pbx CDR StartTime 2025-04-26 11:28:05 - End Time 2025-04-26 14:28:05 [2025-04-26 14:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 14:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994890', 'tblTempUsageDetail_20' ) start [2025-04-26 14:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994890', 'tblTempUsageDetail_20' ) end [2025-04-26 14:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994890', 'tblTempVendorCDR_20' ) start [2025-04-26 14:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994890', 'tblTempVendorCDR_20' ) end [2025-04-26 14:28:19] Production.INFO: ProcessCDR(1,14994890,1,1,2) [2025-04-26 14:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994890', 'tblTempUsageDetail_20' ) start [2025-04-26 14:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994890', 'tblTempUsageDetail_20' ) end [2025-04-26 14:28:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 14:28:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 14:28:24] Production.INFO: ==23273== Releasing lock... [2025-04-26 14:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 14:28:24] Production.INFO: 43.75 MB #Memory Used# [2025-04-26 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 11:29:05 [end_date_ymd] => 2025-04-26 14:29:05 [RateCDR] => 1 ) [2025-04-26 14:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 11:29:05' and `end` < '2025-04-26 14:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 14:29:18] Production.INFO: count ==2010 [2025-04-26 14:29:19] Production.ERROR: pbx CDR StartTime 2025-04-26 11:29:05 - End Time 2025-04-26 14:29:05 [2025-04-26 14:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 14:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994895', 'tblTempUsageDetail_20' ) start [2025-04-26 14:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994895', 'tblTempUsageDetail_20' ) end [2025-04-26 14:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994895', 'tblTempVendorCDR_20' ) start [2025-04-26 14:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994895', 'tblTempVendorCDR_20' ) end [2025-04-26 14:29:19] Production.INFO: ProcessCDR(1,14994895,1,1,2) [2025-04-26 14:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994895', 'tblTempUsageDetail_20' ) start [2025-04-26 14:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994895', 'tblTempUsageDetail_20' ) end [2025-04-26 14:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 14:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 14:29:22] Production.INFO: ==23344== Releasing lock... [2025-04-26 14:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 14:29:22] Production.INFO: 43.25 MB #Memory Used# [2025-04-26 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 11:30:06 [end_date_ymd] => 2025-04-26 14:30:06 [RateCDR] => 1 ) [2025-04-26 14:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 11:30:06' and `end` < '2025-04-26 14:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 14:30:18] Production.INFO: count ==2004 [2025-04-26 14:30:19] Production.ERROR: pbx CDR StartTime 2025-04-26 11:30:06 - End Time 2025-04-26 14:30:06 [2025-04-26 14:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994901', 'tblTempUsageDetail_20' ) start [2025-04-26 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994901', 'tblTempUsageDetail_20' ) end [2025-04-26 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994901', 'tblTempVendorCDR_20' ) start [2025-04-26 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994901', 'tblTempVendorCDR_20' ) end [2025-04-26 14:30:19] Production.INFO: ProcessCDR(1,14994901,1,1,2) [2025-04-26 14:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994901', 'tblTempUsageDetail_20' ) start [2025-04-26 14:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994901', 'tblTempUsageDetail_20' ) end [2025-04-26 14:30:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 14:30:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 14:30:24] Production.INFO: ==23423== Releasing lock... [2025-04-26 14:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 14:30:24] Production.INFO: 43.5 MB #Memory Used# [2025-04-26 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 11:31:05 [end_date_ymd] => 2025-04-26 14:31:05 [RateCDR] => 1 ) [2025-04-26 14:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 11:31:05' and `end` < '2025-04-26 14:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 14:31:18] Production.INFO: count ==1987 [2025-04-26 14:31:19] Production.ERROR: pbx CDR StartTime 2025-04-26 11:31:05 - End Time 2025-04-26 14:31:05 [2025-04-26 14:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 14:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994906', 'tblTempUsageDetail_20' ) start [2025-04-26 14:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994906', 'tblTempUsageDetail_20' ) end [2025-04-26 14:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994906', 'tblTempVendorCDR_20' ) start [2025-04-26 14:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994906', 'tblTempVendorCDR_20' ) end [2025-04-26 14:31:19] Production.INFO: ProcessCDR(1,14994906,1,1,2) [2025-04-26 14:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994906', 'tblTempUsageDetail_20' ) start [2025-04-26 14:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994906', 'tblTempUsageDetail_20' ) end [2025-04-26 14:31:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 14:31:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 14:31:24] Production.INFO: ==23501== Releasing lock... [2025-04-26 14:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 14:31:24] Production.INFO: 43.25 MB #Memory Used# [2025-04-26 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 11:32:05 [end_date_ymd] => 2025-04-26 14:32:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 11:32:05' and `end` < '2025-04-26 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-04-26 14:32:18] Production.INFO: count ==1990 [2025-04-26 14:32:19] Production.ERROR: pbx CDR StartTime 2025-04-26 11:32:05 - End Time 2025-04-26 14:32:05 [2025-04-26 14:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 14:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994911', 'tblTempUsageDetail_20' ) start [2025-04-26 14:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994911', 'tblTempUsageDetail_20' ) end [2025-04-26 14:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994911', 'tblTempVendorCDR_20' ) start [2025-04-26 14:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994911', 'tblTempVendorCDR_20' ) end [2025-04-26 14:32:19] Production.INFO: ProcessCDR(1,14994911,1,1,2) [2025-04-26 14:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994911', 'tblTempUsageDetail_20' ) start [2025-04-26 14:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994911', 'tblTempUsageDetail_20' ) end [2025-04-26 14:32:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 14:32:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 14:32:24] Production.INFO: ==23571== Releasing lock... [2025-04-26 14:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 14:32:24] Production.INFO: 43 MB #Memory Used# [2025-04-26 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 11:33:05 [end_date_ymd] => 2025-04-26 14:33:05 [RateCDR] => 1 ) [2025-04-26 14:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 11:33:05' and `end` < '2025-04-26 14:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 14:33:18] Production.INFO: count ==1990 [2025-04-26 14:33:19] Production.ERROR: pbx CDR StartTime 2025-04-26 11:33:05 - End Time 2025-04-26 14:33:05 [2025-04-26 14:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994916', 'tblTempUsageDetail_20' ) start [2025-04-26 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994916', 'tblTempUsageDetail_20' ) end [2025-04-26 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994916', 'tblTempVendorCDR_20' ) start [2025-04-26 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994916', 'tblTempVendorCDR_20' ) end [2025-04-26 14:33:19] Production.INFO: ProcessCDR(1,14994916,1,1,2) [2025-04-26 14:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994916', 'tblTempUsageDetail_20' ) start [2025-04-26 14:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994916', 'tblTempUsageDetail_20' ) end [2025-04-26 14:33:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 14:33:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 14:33:24] Production.INFO: ==23642== Releasing lock... [2025-04-26 14:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 14:33:24] Production.INFO: 43 MB #Memory Used# [2025-04-26 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 11:34:05 [end_date_ymd] => 2025-04-26 14:34:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 11:34:05' and `end` < '2025-04-26 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-04-26 14:34:18] Production.INFO: count ==1968 [2025-04-26 14:34:19] Production.ERROR: pbx CDR StartTime 2025-04-26 11:34:05 - End Time 2025-04-26 14:34:05 [2025-04-26 14:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 14:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994921', 'tblTempUsageDetail_20' ) start [2025-04-26 14:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994921', 'tblTempUsageDetail_20' ) end [2025-04-26 14:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994921', 'tblTempVendorCDR_20' ) start [2025-04-26 14:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994921', 'tblTempVendorCDR_20' ) end [2025-04-26 14:34:19] Production.INFO: ProcessCDR(1,14994921,1,1,2) [2025-04-26 14:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994921', 'tblTempUsageDetail_20' ) start [2025-04-26 14:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994921', 'tblTempUsageDetail_20' ) end [2025-04-26 14:34:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 14:34:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 14:34:24] Production.INFO: ==23712== Releasing lock... [2025-04-26 14:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 14:34:24] Production.INFO: 43 MB #Memory Used# [2025-04-26 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 11:35:05 [end_date_ymd] => 2025-04-26 14:35:05 [RateCDR] => 1 ) [2025-04-26 14:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 11:35:05' and `end` < '2025-04-26 14:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 14:35:18] Production.INFO: count ==1968 [2025-04-26 14:35:19] Production.ERROR: pbx CDR StartTime 2025-04-26 11:35:05 - End Time 2025-04-26 14:35:05 [2025-04-26 14:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 14:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994926', 'tblTempUsageDetail_20' ) start [2025-04-26 14:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994926', 'tblTempUsageDetail_20' ) end [2025-04-26 14:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994926', 'tblTempVendorCDR_20' ) start [2025-04-26 14:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994926', 'tblTempVendorCDR_20' ) end [2025-04-26 14:35:19] Production.INFO: ProcessCDR(1,14994926,1,1,2) [2025-04-26 14:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994926', 'tblTempUsageDetail_20' ) start [2025-04-26 14:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994926', 'tblTempUsageDetail_20' ) end [2025-04-26 14:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 14:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 14:35:22] Production.INFO: ==23782== Releasing lock... [2025-04-26 14:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 14:35:22] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 14:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 11:36:06 [end_date_ymd] => 2025-04-26 14:36:06 [RateCDR] => 1 ) [2025-04-26 14:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 11:36:06' and `end` < '2025-04-26 14:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 14:36:19] Production.INFO: count ==1961 [2025-04-26 14:36:19] Production.ERROR: pbx CDR StartTime 2025-04-26 11:36:06 - End Time 2025-04-26 14:36:06 [2025-04-26 14:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 14:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994931', 'tblTempUsageDetail_20' ) start [2025-04-26 14:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994931', 'tblTempUsageDetail_20' ) end [2025-04-26 14:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994931', 'tblTempVendorCDR_20' ) start [2025-04-26 14:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994931', 'tblTempVendorCDR_20' ) end [2025-04-26 14:36:19] Production.INFO: ProcessCDR(1,14994931,1,1,2) [2025-04-26 14:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994931', 'tblTempUsageDetail_20' ) start [2025-04-26 14:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994931', 'tblTempUsageDetail_20' ) end [2025-04-26 14:36:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 14:36:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 14:36:24] Production.INFO: ==23853== Releasing lock... [2025-04-26 14:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 14:36:24] Production.INFO: 43.25 MB #Memory Used# [2025-04-26 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 11:37:05 [end_date_ymd] => 2025-04-26 14:37:05 [RateCDR] => 1 ) [2025-04-26 14:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 11:37:05' and `end` < '2025-04-26 14:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 14:37:18] Production.INFO: count ==1957 [2025-04-26 14:37:18] Production.ERROR: pbx CDR StartTime 2025-04-26 11:37:05 - End Time 2025-04-26 14:37:05 [2025-04-26 14:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 14:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994936', 'tblTempUsageDetail_20' ) start [2025-04-26 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994936', 'tblTempUsageDetail_20' ) end [2025-04-26 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994936', 'tblTempVendorCDR_20' ) start [2025-04-26 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994936', 'tblTempVendorCDR_20' ) end [2025-04-26 14:37:19] Production.INFO: ProcessCDR(1,14994936,1,1,2) [2025-04-26 14:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994936', 'tblTempUsageDetail_20' ) start [2025-04-26 14:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994936', 'tblTempUsageDetail_20' ) end [2025-04-26 14:37:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 14:37:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 14:37:24] Production.INFO: ==23969== Releasing lock... [2025-04-26 14:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 14:37:24] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 11:38:05 [end_date_ymd] => 2025-04-26 14:38:05 [RateCDR] => 1 ) [2025-04-26 14:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 11:38:05' and `end` < '2025-04-26 14:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 14:38:18] Production.INFO: count ==1959 [2025-04-26 14:38:19] Production.ERROR: pbx CDR StartTime 2025-04-26 11:38:05 - End Time 2025-04-26 14:38:05 [2025-04-26 14:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 14:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994941', 'tblTempUsageDetail_20' ) start [2025-04-26 14:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994941', 'tblTempUsageDetail_20' ) end [2025-04-26 14:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994941', 'tblTempVendorCDR_20' ) start [2025-04-26 14:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994941', 'tblTempVendorCDR_20' ) end [2025-04-26 14:38:19] Production.INFO: ProcessCDR(1,14994941,1,1,2) [2025-04-26 14:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994941', 'tblTempUsageDetail_20' ) start [2025-04-26 14:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994941', 'tblTempUsageDetail_20' ) end [2025-04-26 14:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 14:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 14:38:22] Production.INFO: ==24041== Releasing lock... [2025-04-26 14:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 14:38:22] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 11:39:05 [end_date_ymd] => 2025-04-26 14:39:05 [RateCDR] => 1 ) [2025-04-26 14:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 11:39:05' and `end` < '2025-04-26 14:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 14:39:17] Production.INFO: count ==1961 [2025-04-26 14:39:18] Production.ERROR: pbx CDR StartTime 2025-04-26 11:39:05 - End Time 2025-04-26 14:39:05 [2025-04-26 14:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 14:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994946', 'tblTempUsageDetail_20' ) start [2025-04-26 14:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994946', 'tblTempUsageDetail_20' ) end [2025-04-26 14:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994946', 'tblTempVendorCDR_20' ) start [2025-04-26 14:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994946', 'tblTempVendorCDR_20' ) end [2025-04-26 14:39:18] Production.INFO: ProcessCDR(1,14994946,1,1,2) [2025-04-26 14:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994946', 'tblTempUsageDetail_20' ) start [2025-04-26 14:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994946', 'tblTempUsageDetail_20' ) end [2025-04-26 14:39:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 14:39:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 14:39:23] Production.INFO: ==24113== Releasing lock... [2025-04-26 14:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 14:39:23] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 11:40:06 [end_date_ymd] => 2025-04-26 14:40:06 [RateCDR] => 1 ) [2025-04-26 14:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 11:40:06' and `end` < '2025-04-26 14:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 14:40:19] Production.INFO: count ==1961 [2025-04-26 14:40:20] Production.ERROR: pbx CDR StartTime 2025-04-26 11:40:06 - End Time 2025-04-26 14:40:06 [2025-04-26 14:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 14:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994951', 'tblTempUsageDetail_20' ) start [2025-04-26 14:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994951', 'tblTempUsageDetail_20' ) end [2025-04-26 14:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994951', 'tblTempVendorCDR_20' ) start [2025-04-26 14:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994951', 'tblTempVendorCDR_20' ) end [2025-04-26 14:40:20] Production.INFO: ProcessCDR(1,14994951,1,1,2) [2025-04-26 14:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994951', 'tblTempUsageDetail_20' ) start [2025-04-26 14:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994951', 'tblTempUsageDetail_20' ) end [2025-04-26 14:40:25] Production.ERROR: pbx prc_insertCDR start [2025-04-26 14:40:25] Production.ERROR: pbx prc_insertCDR end [2025-04-26 14:40:25] Production.INFO: ==24189== Releasing lock... [2025-04-26 14:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 14:40:25] Production.INFO: 43 MB #Memory Used# [2025-04-26 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 11:41:05 [end_date_ymd] => 2025-04-26 14:41:05 [RateCDR] => 1 ) [2025-04-26 14:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 11:41:05' and `end` < '2025-04-26 14:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 14:41:18] Production.INFO: count ==1990 [2025-04-26 14:41:18] Production.ERROR: pbx CDR StartTime 2025-04-26 11:41:05 - End Time 2025-04-26 14:41:05 [2025-04-26 14:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 14:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994957', 'tblTempUsageDetail_20' ) start [2025-04-26 14:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994957', 'tblTempUsageDetail_20' ) end [2025-04-26 14:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994957', 'tblTempVendorCDR_20' ) start [2025-04-26 14:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994957', 'tblTempVendorCDR_20' ) end [2025-04-26 14:41:18] Production.INFO: ProcessCDR(1,14994957,1,1,2) [2025-04-26 14:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994957', 'tblTempUsageDetail_20' ) start [2025-04-26 14:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994957', 'tblTempUsageDetail_20' ) end [2025-04-26 14:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 14:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 14:41:22] Production.INFO: ==24261== Releasing lock... [2025-04-26 14:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 14:41:22] Production.INFO: 43 MB #Memory Used# [2025-04-26 14:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 11:42:06 [end_date_ymd] => 2025-04-26 14:42:06 [RateCDR] => 1 ) [2025-04-26 14:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 11:42:06' and `end` < '2025-04-26 14:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 14:42:19] Production.INFO: count ==2002 [2025-04-26 14:42:19] Production.ERROR: pbx CDR StartTime 2025-04-26 11:42:06 - End Time 2025-04-26 14:42:06 [2025-04-26 14:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994962', 'tblTempUsageDetail_20' ) start [2025-04-26 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994962', 'tblTempUsageDetail_20' ) end [2025-04-26 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994962', 'tblTempVendorCDR_20' ) start [2025-04-26 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994962', 'tblTempVendorCDR_20' ) end [2025-04-26 14:42:19] Production.INFO: ProcessCDR(1,14994962,1,1,2) [2025-04-26 14:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994962', 'tblTempUsageDetail_20' ) start [2025-04-26 14:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994962', 'tblTempUsageDetail_20' ) end [2025-04-26 14:42:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 14:42:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 14:42:24] Production.INFO: ==24331== Releasing lock... [2025-04-26 14:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 14:42:24] Production.INFO: 43 MB #Memory Used# [2025-04-26 14:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 11:43:04 [end_date_ymd] => 2025-04-26 14:43:04 [RateCDR] => 1 ) [2025-04-26 14:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 11:43:04' and `end` < '2025-04-26 14:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 14:43:17] Production.INFO: count ==1991 [2025-04-26 14:43:18] Production.ERROR: pbx CDR StartTime 2025-04-26 11:43:04 - End Time 2025-04-26 14:43:04 [2025-04-26 14:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 14:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994967', 'tblTempUsageDetail_20' ) start [2025-04-26 14:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994967', 'tblTempUsageDetail_20' ) end [2025-04-26 14:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994967', 'tblTempVendorCDR_20' ) start [2025-04-26 14:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994967', 'tblTempVendorCDR_20' ) end [2025-04-26 14:43:18] Production.INFO: ProcessCDR(1,14994967,1,1,2) [2025-04-26 14:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994967', 'tblTempUsageDetail_20' ) start [2025-04-26 14:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994967', 'tblTempUsageDetail_20' ) end [2025-04-26 14:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 14:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 14:43:22] Production.INFO: ==24403== Releasing lock... [2025-04-26 14:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 14:43:22] Production.INFO: 43 MB #Memory Used# [2025-04-26 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 11:44:05 [end_date_ymd] => 2025-04-26 14:44:05 [RateCDR] => 1 ) [2025-04-26 14:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 11:44:05' and `end` < '2025-04-26 14:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 14:44:18] Production.INFO: count ==1994 [2025-04-26 14:44:18] Production.ERROR: pbx CDR StartTime 2025-04-26 11:44:05 - End Time 2025-04-26 14:44:05 [2025-04-26 14:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 14:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994972', 'tblTempUsageDetail_20' ) start [2025-04-26 14:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994972', 'tblTempUsageDetail_20' ) end [2025-04-26 14:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994972', 'tblTempVendorCDR_20' ) start [2025-04-26 14:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994972', 'tblTempVendorCDR_20' ) end [2025-04-26 14:44:18] Production.INFO: ProcessCDR(1,14994972,1,1,2) [2025-04-26 14:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994972', 'tblTempUsageDetail_20' ) start [2025-04-26 14:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994972', 'tblTempUsageDetail_20' ) end [2025-04-26 14:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 14:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 14:44:23] Production.INFO: ==24474== Releasing lock... [2025-04-26 14:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 14:44:23] Production.INFO: 43.25 MB #Memory Used# [2025-04-26 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 11:45:05 [end_date_ymd] => 2025-04-26 14:45:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 11:45:05' and `end` < '2025-04-26 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-04-26 14:45:18] Production.INFO: count ==1976 [2025-04-26 14:45:19] Production.ERROR: pbx CDR StartTime 2025-04-26 11:45:05 - End Time 2025-04-26 14:45:05 [2025-04-26 14:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 14:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994977', 'tblTempUsageDetail_20' ) start [2025-04-26 14:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994977', 'tblTempUsageDetail_20' ) end [2025-04-26 14:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994977', 'tblTempVendorCDR_20' ) start [2025-04-26 14:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994977', 'tblTempVendorCDR_20' ) end [2025-04-26 14:45:19] Production.INFO: ProcessCDR(1,14994977,1,1,2) [2025-04-26 14:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994977', 'tblTempUsageDetail_20' ) start [2025-04-26 14:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994977', 'tblTempUsageDetail_20' ) end [2025-04-26 14:45:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 14:45:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 14:45:23] Production.INFO: ==24550== Releasing lock... [2025-04-26 14:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 14:45:23] Production.INFO: 43 MB #Memory Used# [2025-04-26 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 11:46:05 [end_date_ymd] => 2025-04-26 14:46:05 [RateCDR] => 1 ) [2025-04-26 14:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 11:46:05' and `end` < '2025-04-26 14:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 14:46:18] Production.INFO: count ==1961 [2025-04-26 14:46:19] Production.ERROR: pbx CDR StartTime 2025-04-26 11:46:05 - End Time 2025-04-26 14:46:05 [2025-04-26 14:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 14:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994982', 'tblTempUsageDetail_20' ) start [2025-04-26 14:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994982', 'tblTempUsageDetail_20' ) end [2025-04-26 14:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994982', 'tblTempVendorCDR_20' ) start [2025-04-26 14:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994982', 'tblTempVendorCDR_20' ) end [2025-04-26 14:46:19] Production.INFO: ProcessCDR(1,14994982,1,1,2) [2025-04-26 14:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994982', 'tblTempUsageDetail_20' ) start [2025-04-26 14:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994982', 'tblTempUsageDetail_20' ) end [2025-04-26 14:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 14:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 14:46:22] Production.INFO: ==24620== Releasing lock... [2025-04-26 14:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 14:46:22] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 14:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 11:47:06 [end_date_ymd] => 2025-04-26 14:47:06 [RateCDR] => 1 ) [2025-04-26 14:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 11:47:06' and `end` < '2025-04-26 14:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 14:47:18] Production.INFO: count ==1963 [2025-04-26 14:47:19] Production.ERROR: pbx CDR StartTime 2025-04-26 11:47:06 - End Time 2025-04-26 14:47:06 [2025-04-26 14:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994987', 'tblTempUsageDetail_20' ) start [2025-04-26 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994987', 'tblTempUsageDetail_20' ) end [2025-04-26 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994987', 'tblTempVendorCDR_20' ) start [2025-04-26 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994987', 'tblTempVendorCDR_20' ) end [2025-04-26 14:47:19] Production.INFO: ProcessCDR(1,14994987,1,1,2) [2025-04-26 14:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994987', 'tblTempUsageDetail_20' ) start [2025-04-26 14:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994987', 'tblTempUsageDetail_20' ) end [2025-04-26 14:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 14:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 14:47:23] Production.INFO: ==24691== Releasing lock... [2025-04-26 14:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 14:47:23] Production.INFO: 43 MB #Memory Used# [2025-04-26 14:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 11:48:05 [end_date_ymd] => 2025-04-26 14:48:05 [RateCDR] => 1 ) [2025-04-26 14:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 11:48:05' and `end` < '2025-04-26 14:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 14:48:18] Production.INFO: count ==1951 [2025-04-26 14:48:19] Production.ERROR: pbx CDR StartTime 2025-04-26 11:48:05 - End Time 2025-04-26 14:48:05 [2025-04-26 14:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994992', 'tblTempUsageDetail_20' ) start [2025-04-26 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994992', 'tblTempUsageDetail_20' ) end [2025-04-26 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994992', 'tblTempVendorCDR_20' ) start [2025-04-26 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994992', 'tblTempVendorCDR_20' ) end [2025-04-26 14:48:19] Production.INFO: ProcessCDR(1,14994992,1,1,2) [2025-04-26 14:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994992', 'tblTempUsageDetail_20' ) start [2025-04-26 14:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994992', 'tblTempUsageDetail_20' ) end [2025-04-26 14:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 14:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 14:48:22] Production.INFO: ==24762== Releasing lock... [2025-04-26 14:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 14:48:22] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 11:49:05 [end_date_ymd] => 2025-04-26 14:49:05 [RateCDR] => 1 ) [2025-04-26 14:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 11:49:05' and `end` < '2025-04-26 14:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 14:49:18] Production.INFO: count ==1960 [2025-04-26 14:49:19] Production.ERROR: pbx CDR StartTime 2025-04-26 11:49:05 - End Time 2025-04-26 14:49:05 [2025-04-26 14:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 14:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994997', 'tblTempUsageDetail_20' ) start [2025-04-26 14:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14994997', 'tblTempUsageDetail_20' ) end [2025-04-26 14:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994997', 'tblTempVendorCDR_20' ) start [2025-04-26 14:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14994997', 'tblTempVendorCDR_20' ) end [2025-04-26 14:49:19] Production.INFO: ProcessCDR(1,14994997,1,1,2) [2025-04-26 14:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14994997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14994997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14994997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14994997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994997', 'tblTempUsageDetail_20' ) start [2025-04-26 14:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14994997', 'tblTempUsageDetail_20' ) end [2025-04-26 14:49:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 14:49:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 14:49:24] Production.INFO: ==24833== Releasing lock... [2025-04-26 14:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 14:49:24] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 11:50:06 [end_date_ymd] => 2025-04-26 14:50:06 [RateCDR] => 1 ) [2025-04-26 14:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 11:50:06' and `end` < '2025-04-26 14:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 14:50:18] Production.INFO: count ==1963 [2025-04-26 14:50:19] Production.ERROR: pbx CDR StartTime 2025-04-26 11:50:06 - End Time 2025-04-26 14:50:06 [2025-04-26 14:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 14:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995002', 'tblTempUsageDetail_20' ) start [2025-04-26 14:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995002', 'tblTempUsageDetail_20' ) end [2025-04-26 14:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995002', 'tblTempVendorCDR_20' ) start [2025-04-26 14:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995002', 'tblTempVendorCDR_20' ) end [2025-04-26 14:50:19] Production.INFO: ProcessCDR(1,14995002,1,1,2) [2025-04-26 14:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995002', 'tblTempUsageDetail_20' ) start [2025-04-26 14:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995002', 'tblTempUsageDetail_20' ) end [2025-04-26 14:50:25] Production.ERROR: pbx prc_insertCDR start [2025-04-26 14:50:25] Production.ERROR: pbx prc_insertCDR end [2025-04-26 14:50:25] Production.INFO: ==24906== Releasing lock... [2025-04-26 14:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 14:50:25] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 11:51:05 [end_date_ymd] => 2025-04-26 14:51:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 11:51:05' and `end` < '2025-04-26 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-04-26 14:51:18] Production.INFO: count ==1956 [2025-04-26 14:51:19] Production.ERROR: pbx CDR StartTime 2025-04-26 11:51:05 - End Time 2025-04-26 14:51:05 [2025-04-26 14:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 14:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995008', 'tblTempUsageDetail_20' ) start [2025-04-26 14:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995008', 'tblTempUsageDetail_20' ) end [2025-04-26 14:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995008', 'tblTempVendorCDR_20' ) start [2025-04-26 14:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995008', 'tblTempVendorCDR_20' ) end [2025-04-26 14:51:19] Production.INFO: ProcessCDR(1,14995008,1,1,2) [2025-04-26 14:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995008', 'tblTempUsageDetail_20' ) start [2025-04-26 14:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995008', 'tblTempUsageDetail_20' ) end [2025-04-26 14:51:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 14:51:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 14:51:24] Production.INFO: ==24980== Releasing lock... [2025-04-26 14:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 14:51:24] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 11:52:05 [end_date_ymd] => 2025-04-26 14:52:05 [RateCDR] => 1 ) [2025-04-26 14:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 11:52:05' and `end` < '2025-04-26 14:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 14:52:18] Production.INFO: count ==1954 [2025-04-26 14:52:19] Production.ERROR: pbx CDR StartTime 2025-04-26 11:52:05 - End Time 2025-04-26 14:52:05 [2025-04-26 14:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995013', 'tblTempUsageDetail_20' ) start [2025-04-26 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995013', 'tblTempUsageDetail_20' ) end [2025-04-26 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995013', 'tblTempVendorCDR_20' ) start [2025-04-26 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995013', 'tblTempVendorCDR_20' ) end [2025-04-26 14:52:19] Production.INFO: ProcessCDR(1,14995013,1,1,2) [2025-04-26 14:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995013', 'tblTempUsageDetail_20' ) start [2025-04-26 14:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995013', 'tblTempUsageDetail_20' ) end [2025-04-26 14:52:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 14:52:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 14:52:24] Production.INFO: ==25093== Releasing lock... [2025-04-26 14:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 14:52:24] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 11:53:05 [end_date_ymd] => 2025-04-26 14:53:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 11:53:05' and `end` < '2025-04-26 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-04-26 14:53:18] Production.INFO: count ==1935 [2025-04-26 14:53:19] Production.ERROR: pbx CDR StartTime 2025-04-26 11:53:05 - End Time 2025-04-26 14:53:05 [2025-04-26 14:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 14:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995018', 'tblTempUsageDetail_20' ) start [2025-04-26 14:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995018', 'tblTempUsageDetail_20' ) end [2025-04-26 14:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995018', 'tblTempVendorCDR_20' ) start [2025-04-26 14:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995018', 'tblTempVendorCDR_20' ) end [2025-04-26 14:53:19] Production.INFO: ProcessCDR(1,14995018,1,1,2) [2025-04-26 14:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995018', 'tblTempUsageDetail_20' ) start [2025-04-26 14:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995018', 'tblTempUsageDetail_20' ) end [2025-04-26 14:53:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 14:53:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 14:53:24] Production.INFO: ==25171== Releasing lock... [2025-04-26 14:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 14:53:24] Production.INFO: 42.5 MB #Memory Used# [2025-04-26 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 11:54:05 [end_date_ymd] => 2025-04-26 14:54:05 [RateCDR] => 1 ) [2025-04-26 14:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 11:54:05' and `end` < '2025-04-26 14:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 14:54:18] Production.INFO: count ==1940 [2025-04-26 14:54:18] Production.ERROR: pbx CDR StartTime 2025-04-26 11:54:05 - End Time 2025-04-26 14:54:05 [2025-04-26 14:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 14:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995023', 'tblTempUsageDetail_20' ) start [2025-04-26 14:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995023', 'tblTempUsageDetail_20' ) end [2025-04-26 14:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995023', 'tblTempVendorCDR_20' ) start [2025-04-26 14:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995023', 'tblTempVendorCDR_20' ) end [2025-04-26 14:54:18] Production.INFO: ProcessCDR(1,14995023,1,1,2) [2025-04-26 14:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995023', 'tblTempUsageDetail_20' ) start [2025-04-26 14:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995023', 'tblTempUsageDetail_20' ) end [2025-04-26 14:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 14:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 14:54:22] Production.INFO: ==25251== Releasing lock... [2025-04-26 14:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 14:54:22] Production.INFO: 43 MB #Memory Used# [2025-04-26 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 11:55:05 [end_date_ymd] => 2025-04-26 14:55:05 [RateCDR] => 1 ) [2025-04-26 14:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 11:55:05' and `end` < '2025-04-26 14:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 14:55:18] Production.INFO: count ==1936 [2025-04-26 14:55:19] Production.ERROR: pbx CDR StartTime 2025-04-26 11:55:05 - End Time 2025-04-26 14:55:05 [2025-04-26 14:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995028', 'tblTempUsageDetail_20' ) start [2025-04-26 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995028', 'tblTempUsageDetail_20' ) end [2025-04-26 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995028', 'tblTempVendorCDR_20' ) start [2025-04-26 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995028', 'tblTempVendorCDR_20' ) end [2025-04-26 14:55:19] Production.INFO: ProcessCDR(1,14995028,1,1,2) [2025-04-26 14:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995028', 'tblTempUsageDetail_20' ) start [2025-04-26 14:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995028', 'tblTempUsageDetail_20' ) end [2025-04-26 14:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 14:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 14:55:23] Production.INFO: ==25323== Releasing lock... [2025-04-26 14:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 14:55:23] Production.INFO: 42.5 MB #Memory Used# [2025-04-26 14:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 11:56:05 [end_date_ymd] => 2025-04-26 14:56:05 [RateCDR] => 1 ) [2025-04-26 14:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 11:56:05' and `end` < '2025-04-26 14:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 14:56:18] Production.INFO: count ==1938 [2025-04-26 14:56:19] Production.ERROR: pbx CDR StartTime 2025-04-26 11:56:05 - End Time 2025-04-26 14:56:05 [2025-04-26 14:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 14:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995033', 'tblTempUsageDetail_20' ) start [2025-04-26 14:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995033', 'tblTempUsageDetail_20' ) end [2025-04-26 14:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995033', 'tblTempVendorCDR_20' ) start [2025-04-26 14:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995033', 'tblTempVendorCDR_20' ) end [2025-04-26 14:56:19] Production.INFO: ProcessCDR(1,14995033,1,1,2) [2025-04-26 14:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995033', 'tblTempUsageDetail_20' ) start [2025-04-26 14:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995033', 'tblTempUsageDetail_20' ) end [2025-04-26 14:56:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 14:56:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 14:56:24] Production.INFO: ==25395== Releasing lock... [2025-04-26 14:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 14:56:24] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 11:57:05 [end_date_ymd] => 2025-04-26 14:57:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 11:57:05' and `end` < '2025-04-26 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-04-26 14:57:18] Production.INFO: count ==1957 [2025-04-26 14:57:19] Production.ERROR: pbx CDR StartTime 2025-04-26 11:57:05 - End Time 2025-04-26 14:57:05 [2025-04-26 14:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995038', 'tblTempUsageDetail_20' ) start [2025-04-26 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995038', 'tblTempUsageDetail_20' ) end [2025-04-26 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995038', 'tblTempVendorCDR_20' ) start [2025-04-26 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995038', 'tblTempVendorCDR_20' ) end [2025-04-26 14:57:19] Production.INFO: ProcessCDR(1,14995038,1,1,2) [2025-04-26 14:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995038', 'tblTempUsageDetail_20' ) start [2025-04-26 14:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995038', 'tblTempUsageDetail_20' ) end [2025-04-26 14:57:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 14:57:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 14:57:24] Production.INFO: ==25464== Releasing lock... [2025-04-26 14:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 14:57:24] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 14:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 11:58:06 [end_date_ymd] => 2025-04-26 14:58:06 [RateCDR] => 1 ) [2025-04-26 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-04-26 11:58:06' and `end` < '2025-04-26 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-04-26 14:58:19] Production.INFO: count ==1957 [2025-04-26 14:58:19] Production.ERROR: pbx CDR StartTime 2025-04-26 11:58:06 - End Time 2025-04-26 14:58:06 [2025-04-26 14:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 14:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995043', 'tblTempUsageDetail_20' ) start [2025-04-26 14:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995043', 'tblTempUsageDetail_20' ) end [2025-04-26 14:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995043', 'tblTempVendorCDR_20' ) start [2025-04-26 14:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995043', 'tblTempVendorCDR_20' ) end [2025-04-26 14:58:19] Production.INFO: ProcessCDR(1,14995043,1,1,2) [2025-04-26 14:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995043', 'tblTempUsageDetail_20' ) start [2025-04-26 14:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995043', 'tblTempUsageDetail_20' ) end [2025-04-26 14:58:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 14:58:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 14:58:24] Production.INFO: ==25542== Releasing lock... [2025-04-26 14:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 14:58:24] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 11:59:05 [end_date_ymd] => 2025-04-26 14:59:05 [RateCDR] => 1 ) [2025-04-26 14:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 11:59:05' and `end` < '2025-04-26 14:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 14:59:18] Production.INFO: count ==1967 [2025-04-26 14:59:18] Production.ERROR: pbx CDR StartTime 2025-04-26 11:59:05 - End Time 2025-04-26 14:59:05 [2025-04-26 14:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 14:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995048', 'tblTempUsageDetail_20' ) start [2025-04-26 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995048', 'tblTempUsageDetail_20' ) end [2025-04-26 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995048', 'tblTempVendorCDR_20' ) start [2025-04-26 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995048', 'tblTempVendorCDR_20' ) end [2025-04-26 14:59:19] Production.INFO: ProcessCDR(1,14995048,1,1,2) [2025-04-26 14:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 14:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 14:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995048', 'tblTempUsageDetail_20' ) start [2025-04-26 14:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995048', 'tblTempUsageDetail_20' ) end [2025-04-26 14:59:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 14:59:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 14:59:24] Production.INFO: ==25613== Releasing lock... [2025-04-26 14:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 14:59:24] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 12:00:06 [end_date_ymd] => 2025-04-26 15:00:06 [RateCDR] => 1 ) [2025-04-26 15:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 12:00:06' and `end` < '2025-04-26 15:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 15:00:19] Production.INFO: count ==1970 [2025-04-26 15:00:20] Production.ERROR: pbx CDR StartTime 2025-04-26 12:00:06 - End Time 2025-04-26 15:00:06 [2025-04-26 15:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 15:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995054', 'tblTempUsageDetail_20' ) start [2025-04-26 15:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995054', 'tblTempUsageDetail_20' ) end [2025-04-26 15:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995054', 'tblTempVendorCDR_20' ) start [2025-04-26 15:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995054', 'tblTempVendorCDR_20' ) end [2025-04-26 15:00:20] Production.INFO: ProcessCDR(1,14995054,1,1,2) [2025-04-26 15:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995054', 'tblTempUsageDetail_20' ) start [2025-04-26 15:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995054', 'tblTempUsageDetail_20' ) end [2025-04-26 15:00:25] Production.ERROR: pbx prc_insertCDR start [2025-04-26 15:00:25] Production.ERROR: pbx prc_insertCDR end [2025-04-26 15:00:25] Production.INFO: ==25687== Releasing lock... [2025-04-26 15:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 15:00:25] Production.INFO: 43 MB #Memory Used# [2025-04-26 15:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 12:01:04 [end_date_ymd] => 2025-04-26 15:01:04 [RateCDR] => 1 ) [2025-04-26 15:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 12:01:04' and `end` < '2025-04-26 15:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 15:01:17] Production.INFO: count ==1970 [2025-04-26 15:01:18] Production.ERROR: pbx CDR StartTime 2025-04-26 12:01:04 - End Time 2025-04-26 15:01:04 [2025-04-26 15:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 15:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995059', 'tblTempUsageDetail_20' ) start [2025-04-26 15:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995059', 'tblTempUsageDetail_20' ) end [2025-04-26 15:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995059', 'tblTempVendorCDR_20' ) start [2025-04-26 15:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995059', 'tblTempVendorCDR_20' ) end [2025-04-26 15:01:18] Production.INFO: ProcessCDR(1,14995059,1,1,2) [2025-04-26 15:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995059', 'tblTempUsageDetail_20' ) start [2025-04-26 15:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995059', 'tblTempUsageDetail_20' ) end [2025-04-26 15:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 15:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 15:01:23] Production.INFO: ==25852== Releasing lock... [2025-04-26 15:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 15:01:23] Production.INFO: 43 MB #Memory Used# [2025-04-26 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 12:02:05 [end_date_ymd] => 2025-04-26 15:02:05 [RateCDR] => 1 ) [2025-04-26 15:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 12:02:05' and `end` < '2025-04-26 15:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 15:02:18] Production.INFO: count ==1970 [2025-04-26 15:02:19] Production.ERROR: pbx CDR StartTime 2025-04-26 12:02:05 - End Time 2025-04-26 15:02:05 [2025-04-26 15:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 15:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995064', 'tblTempUsageDetail_20' ) start [2025-04-26 15:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995064', 'tblTempUsageDetail_20' ) end [2025-04-26 15:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995064', 'tblTempVendorCDR_20' ) start [2025-04-26 15:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995064', 'tblTempVendorCDR_20' ) end [2025-04-26 15:02:19] Production.INFO: ProcessCDR(1,14995064,1,1,2) [2025-04-26 15:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995064', 'tblTempUsageDetail_20' ) start [2025-04-26 15:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995064', 'tblTempUsageDetail_20' ) end [2025-04-26 15:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 15:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 15:02:23] Production.INFO: ==25924== Releasing lock... [2025-04-26 15:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 15:02:23] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 12:03:05 [end_date_ymd] => 2025-04-26 15:03:05 [RateCDR] => 1 ) [2025-04-26 15:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 12:03:05' and `end` < '2025-04-26 15:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 15:03:18] Production.INFO: count ==1982 [2025-04-26 15:03:19] Production.ERROR: pbx CDR StartTime 2025-04-26 12:03:05 - End Time 2025-04-26 15:03:05 [2025-04-26 15:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 15:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995069', 'tblTempUsageDetail_20' ) start [2025-04-26 15:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995069', 'tblTempUsageDetail_20' ) end [2025-04-26 15:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995069', 'tblTempVendorCDR_20' ) start [2025-04-26 15:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995069', 'tblTempVendorCDR_20' ) end [2025-04-26 15:03:19] Production.INFO: ProcessCDR(1,14995069,1,1,2) [2025-04-26 15:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995069', 'tblTempUsageDetail_20' ) start [2025-04-26 15:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995069', 'tblTempUsageDetail_20' ) end [2025-04-26 15:03:25] Production.ERROR: pbx prc_insertCDR start [2025-04-26 15:03:25] Production.ERROR: pbx prc_insertCDR end [2025-04-26 15:03:25] Production.INFO: ==25993== Releasing lock... [2025-04-26 15:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 15:03:25] Production.INFO: 43 MB #Memory Used# [2025-04-26 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 12:04:05 [end_date_ymd] => 2025-04-26 15:04:05 [RateCDR] => 1 ) [2025-04-26 15:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 12:04:05' and `end` < '2025-04-26 15:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 15:04:18] Production.INFO: count ==1984 [2025-04-26 15:04:19] Production.ERROR: pbx CDR StartTime 2025-04-26 12:04:05 - End Time 2025-04-26 15:04:05 [2025-04-26 15:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 15:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995074', 'tblTempUsageDetail_20' ) start [2025-04-26 15:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995074', 'tblTempUsageDetail_20' ) end [2025-04-26 15:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995074', 'tblTempVendorCDR_20' ) start [2025-04-26 15:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995074', 'tblTempVendorCDR_20' ) end [2025-04-26 15:04:19] Production.INFO: ProcessCDR(1,14995074,1,1,2) [2025-04-26 15:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995074', 'tblTempUsageDetail_20' ) start [2025-04-26 15:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995074', 'tblTempUsageDetail_20' ) end [2025-04-26 15:04:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 15:04:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 15:04:24] Production.INFO: ==26062== Releasing lock... [2025-04-26 15:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 15:04:24] Production.INFO: 43 MB #Memory Used# [2025-04-26 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 12:05:05 [end_date_ymd] => 2025-04-26 15:05:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 12:05:05' and `end` < '2025-04-26 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-04-26 15:05:18] Production.INFO: count ==1984 [2025-04-26 15:05:18] Production.ERROR: pbx CDR StartTime 2025-04-26 12:05:05 - End Time 2025-04-26 15:05:05 [2025-04-26 15:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 15:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995079', 'tblTempUsageDetail_20' ) start [2025-04-26 15:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995079', 'tblTempUsageDetail_20' ) end [2025-04-26 15:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995079', 'tblTempVendorCDR_20' ) start [2025-04-26 15:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995079', 'tblTempVendorCDR_20' ) end [2025-04-26 15:05:19] Production.INFO: ProcessCDR(1,14995079,1,1,2) [2025-04-26 15:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995079', 'tblTempUsageDetail_20' ) start [2025-04-26 15:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995079', 'tblTempUsageDetail_20' ) end [2025-04-26 15:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 15:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 15:05:22] Production.INFO: ==26211== Releasing lock... [2025-04-26 15:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 15:05:22] Production.INFO: 43 MB #Memory Used# [2025-04-26 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 12:06:05 [end_date_ymd] => 2025-04-26 15:06:05 [RateCDR] => 1 ) [2025-04-26 15:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 12:06:05' and `end` < '2025-04-26 15:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 15:06:18] Production.INFO: count ==1996 [2025-04-26 15:06:18] Production.ERROR: pbx CDR StartTime 2025-04-26 12:06:05 - End Time 2025-04-26 15:06:05 [2025-04-26 15:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 15:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995084', 'tblTempUsageDetail_20' ) start [2025-04-26 15:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995084', 'tblTempUsageDetail_20' ) end [2025-04-26 15:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995084', 'tblTempVendorCDR_20' ) start [2025-04-26 15:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995084', 'tblTempVendorCDR_20' ) end [2025-04-26 15:06:18] Production.INFO: ProcessCDR(1,14995084,1,1,2) [2025-04-26 15:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995084', 'tblTempUsageDetail_20' ) start [2025-04-26 15:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995084', 'tblTempUsageDetail_20' ) end [2025-04-26 15:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 15:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 15:06:23] Production.INFO: ==26282== Releasing lock... [2025-04-26 15:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 15:06:23] Production.INFO: 43 MB #Memory Used# [2025-04-26 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 12:07:05 [end_date_ymd] => 2025-04-26 15:07:05 [RateCDR] => 1 ) [2025-04-26 15:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 12:07:05' and `end` < '2025-04-26 15:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 15:07:18] Production.INFO: count ==1999 [2025-04-26 15:07:18] Production.ERROR: pbx CDR StartTime 2025-04-26 12:07:05 - End Time 2025-04-26 15:07:05 [2025-04-26 15:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 15:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995089', 'tblTempUsageDetail_20' ) start [2025-04-26 15:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995089', 'tblTempUsageDetail_20' ) end [2025-04-26 15:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995089', 'tblTempVendorCDR_20' ) start [2025-04-26 15:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995089', 'tblTempVendorCDR_20' ) end [2025-04-26 15:07:18] Production.INFO: ProcessCDR(1,14995089,1,1,2) [2025-04-26 15:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995089', 'tblTempUsageDetail_20' ) start [2025-04-26 15:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995089', 'tblTempUsageDetail_20' ) end [2025-04-26 15:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 15:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 15:07:23] Production.INFO: ==26354== Releasing lock... [2025-04-26 15:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 15:07:23] Production.INFO: 43 MB #Memory Used# [2025-04-26 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 12:08:05 [end_date_ymd] => 2025-04-26 15:08:05 [RateCDR] => 1 ) [2025-04-26 15:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 12:08:05' and `end` < '2025-04-26 15:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 15:08:18] Production.INFO: count ==1997 [2025-04-26 15:08:19] Production.ERROR: pbx CDR StartTime 2025-04-26 12:08:05 - End Time 2025-04-26 15:08:05 [2025-04-26 15:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 15:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995094', 'tblTempUsageDetail_20' ) start [2025-04-26 15:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995094', 'tblTempUsageDetail_20' ) end [2025-04-26 15:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995094', 'tblTempVendorCDR_20' ) start [2025-04-26 15:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995094', 'tblTempVendorCDR_20' ) end [2025-04-26 15:08:19] Production.INFO: ProcessCDR(1,14995094,1,1,2) [2025-04-26 15:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995094', 'tblTempUsageDetail_20' ) start [2025-04-26 15:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995094', 'tblTempUsageDetail_20' ) end [2025-04-26 15:08:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 15:08:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 15:08:24] Production.INFO: ==26542== Releasing lock... [2025-04-26 15:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 15:08:24] Production.INFO: 43 MB #Memory Used# [2025-04-26 15:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 12:09:06 [end_date_ymd] => 2025-04-26 15:09:06 [RateCDR] => 1 ) [2025-04-26 15:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 12:09:06' and `end` < '2025-04-26 15:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 15:09:19] Production.INFO: count ==1992 [2025-04-26 15:09:19] Production.ERROR: pbx CDR StartTime 2025-04-26 12:09:06 - End Time 2025-04-26 15:09:06 [2025-04-26 15:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995099', 'tblTempUsageDetail_20' ) start [2025-04-26 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995099', 'tblTempUsageDetail_20' ) end [2025-04-26 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995099', 'tblTempVendorCDR_20' ) start [2025-04-26 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995099', 'tblTempVendorCDR_20' ) end [2025-04-26 15:09:19] Production.INFO: ProcessCDR(1,14995099,1,1,2) [2025-04-26 15:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995099', 'tblTempUsageDetail_20' ) start [2025-04-26 15:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995099', 'tblTempUsageDetail_20' ) end [2025-04-26 15:09:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 15:09:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 15:09:23] Production.INFO: ==26611== Releasing lock... [2025-04-26 15:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 15:09:23] Production.INFO: 43 MB #Memory Used# [2025-04-26 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 12:10:06 [end_date_ymd] => 2025-04-26 15:10:06 [RateCDR] => 1 ) [2025-04-26 15:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 12:10:06' and `end` < '2025-04-26 15:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 15:10:19] Production.INFO: count ==1996 [2025-04-26 15:10:19] Production.ERROR: pbx CDR StartTime 2025-04-26 12:10:06 - End Time 2025-04-26 15:10:06 [2025-04-26 15:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 15:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995105', 'tblTempUsageDetail_20' ) start [2025-04-26 15:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995105', 'tblTempUsageDetail_20' ) end [2025-04-26 15:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995105', 'tblTempVendorCDR_20' ) start [2025-04-26 15:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995105', 'tblTempVendorCDR_20' ) end [2025-04-26 15:10:20] Production.INFO: ProcessCDR(1,14995105,1,1,2) [2025-04-26 15:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995105', 'tblTempUsageDetail_20' ) start [2025-04-26 15:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995105', 'tblTempUsageDetail_20' ) end [2025-04-26 15:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 15:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 15:10:23] Production.INFO: ==26690== Releasing lock... [2025-04-26 15:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 15:10:23] Production.INFO: 43 MB #Memory Used# [2025-04-26 15:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 12:11:04 [end_date_ymd] => 2025-04-26 15:11:04 [RateCDR] => 1 ) [2025-04-26 15:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 12:11:04' and `end` < '2025-04-26 15:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 15:11:17] Production.INFO: count ==1973 [2025-04-26 15:11:18] Production.ERROR: pbx CDR StartTime 2025-04-26 12:11:04 - End Time 2025-04-26 15:11:04 [2025-04-26 15:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 15:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995110', 'tblTempUsageDetail_20' ) start [2025-04-26 15:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995110', 'tblTempUsageDetail_20' ) end [2025-04-26 15:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995110', 'tblTempVendorCDR_20' ) start [2025-04-26 15:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995110', 'tblTempVendorCDR_20' ) end [2025-04-26 15:11:18] Production.INFO: ProcessCDR(1,14995110,1,1,2) [2025-04-26 15:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995110', 'tblTempUsageDetail_20' ) start [2025-04-26 15:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995110', 'tblTempUsageDetail_20' ) end [2025-04-26 15:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 15:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 15:11:22] Production.INFO: ==26765== Releasing lock... [2025-04-26 15:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 15:11:22] Production.INFO: 43 MB #Memory Used# [2025-04-26 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 12:12:05 [end_date_ymd] => 2025-04-26 15:12:05 [RateCDR] => 1 ) [2025-04-26 15:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 12:12:05' and `end` < '2025-04-26 15:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 15:12:18] Production.INFO: count ==1966 [2025-04-26 15:12:19] Production.ERROR: pbx CDR StartTime 2025-04-26 12:12:05 - End Time 2025-04-26 15:12:05 [2025-04-26 15:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 15:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995115', 'tblTempUsageDetail_20' ) start [2025-04-26 15:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995115', 'tblTempUsageDetail_20' ) end [2025-04-26 15:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995115', 'tblTempVendorCDR_20' ) start [2025-04-26 15:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995115', 'tblTempVendorCDR_20' ) end [2025-04-26 15:12:19] Production.INFO: ProcessCDR(1,14995115,1,1,2) [2025-04-26 15:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995115', 'tblTempUsageDetail_20' ) start [2025-04-26 15:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995115', 'tblTempUsageDetail_20' ) end [2025-04-26 15:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 15:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 15:12:22] Production.INFO: ==26920== Releasing lock... [2025-04-26 15:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 15:12:22] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 12:13:05 [end_date_ymd] => 2025-04-26 15:13:05 [RateCDR] => 1 ) [2025-04-26 15:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 12:13:05' and `end` < '2025-04-26 15:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 15:13:18] Production.INFO: count ==1964 [2025-04-26 15:13:18] Production.ERROR: pbx CDR StartTime 2025-04-26 12:13:05 - End Time 2025-04-26 15:13:05 [2025-04-26 15:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 15:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995120', 'tblTempUsageDetail_20' ) start [2025-04-26 15:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995120', 'tblTempUsageDetail_20' ) end [2025-04-26 15:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995120', 'tblTempVendorCDR_20' ) start [2025-04-26 15:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995120', 'tblTempVendorCDR_20' ) end [2025-04-26 15:13:18] Production.INFO: ProcessCDR(1,14995120,1,1,2) [2025-04-26 15:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995120', 'tblTempUsageDetail_20' ) start [2025-04-26 15:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995120', 'tblTempUsageDetail_20' ) end [2025-04-26 15:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 15:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 15:13:22] Production.INFO: ==26992== Releasing lock... [2025-04-26 15:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 15:13:22] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 12:14:05 [end_date_ymd] => 2025-04-26 15:14:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 12:14:05' and `end` < '2025-04-26 15:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 15:14:18] Production.INFO: count ==1958 [2025-04-26 15:14:19] Production.ERROR: pbx CDR StartTime 2025-04-26 12:14:05 - End Time 2025-04-26 15:14:05 [2025-04-26 15:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 15:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995125', 'tblTempUsageDetail_20' ) start [2025-04-26 15:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995125', 'tblTempUsageDetail_20' ) end [2025-04-26 15:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995125', 'tblTempVendorCDR_20' ) start [2025-04-26 15:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995125', 'tblTempVendorCDR_20' ) end [2025-04-26 15:14:19] Production.INFO: ProcessCDR(1,14995125,1,1,2) [2025-04-26 15:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995125', 'tblTempUsageDetail_20' ) start [2025-04-26 15:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995125', 'tblTempUsageDetail_20' ) end [2025-04-26 15:14:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 15:14:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 15:14:23] Production.INFO: ==27063== Releasing lock... [2025-04-26 15:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 15:14:23] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 12:15:05 [end_date_ymd] => 2025-04-26 15:15:05 [RateCDR] => 1 ) [2025-04-26 15:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 12:15:05' and `end` < '2025-04-26 15:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 15:15:18] Production.INFO: count ==1961 [2025-04-26 15:15:19] Production.ERROR: pbx CDR StartTime 2025-04-26 12:15:05 - End Time 2025-04-26 15:15:05 [2025-04-26 15:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 15:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995130', 'tblTempUsageDetail_20' ) start [2025-04-26 15:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995130', 'tblTempUsageDetail_20' ) end [2025-04-26 15:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995130', 'tblTempVendorCDR_20' ) start [2025-04-26 15:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995130', 'tblTempVendorCDR_20' ) end [2025-04-26 15:15:19] Production.INFO: ProcessCDR(1,14995130,1,1,2) [2025-04-26 15:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995130', 'tblTempUsageDetail_20' ) start [2025-04-26 15:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995130', 'tblTempUsageDetail_20' ) end [2025-04-26 15:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 15:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 15:15:22] Production.INFO: ==27212== Releasing lock... [2025-04-26 15:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 15:15:22] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 12:16:05 [end_date_ymd] => 2025-04-26 15:16:05 [RateCDR] => 1 ) [2025-04-26 15:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 12:16:05' and `end` < '2025-04-26 15:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 15:16:18] Production.INFO: count ==1966 [2025-04-26 15:16:19] Production.ERROR: pbx CDR StartTime 2025-04-26 12:16:05 - End Time 2025-04-26 15:16:05 [2025-04-26 15:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995135', 'tblTempUsageDetail_20' ) start [2025-04-26 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995135', 'tblTempUsageDetail_20' ) end [2025-04-26 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995135', 'tblTempVendorCDR_20' ) start [2025-04-26 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995135', 'tblTempVendorCDR_20' ) end [2025-04-26 15:16:19] Production.INFO: ProcessCDR(1,14995135,1,1,2) [2025-04-26 15:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995135', 'tblTempUsageDetail_20' ) start [2025-04-26 15:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995135', 'tblTempUsageDetail_20' ) end [2025-04-26 15:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 15:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 15:16:22] Production.INFO: ==27284== Releasing lock... [2025-04-26 15:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 15:16:22] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 15:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 12:17:04 [end_date_ymd] => 2025-04-26 15:17:04 [RateCDR] => 1 ) [2025-04-26 15:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 12:17:04' and `end` < '2025-04-26 15:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 15:17:17] Production.INFO: count ==1970 [2025-04-26 15:17:18] Production.ERROR: pbx CDR StartTime 2025-04-26 12:17:04 - End Time 2025-04-26 15:17:04 [2025-04-26 15:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 15:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995140', 'tblTempUsageDetail_20' ) start [2025-04-26 15:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995140', 'tblTempUsageDetail_20' ) end [2025-04-26 15:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995140', 'tblTempVendorCDR_20' ) start [2025-04-26 15:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995140', 'tblTempVendorCDR_20' ) end [2025-04-26 15:17:18] Production.INFO: ProcessCDR(1,14995140,1,1,2) [2025-04-26 15:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995140', 'tblTempUsageDetail_20' ) start [2025-04-26 15:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995140', 'tblTempUsageDetail_20' ) end [2025-04-26 15:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 15:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 15:17:23] Production.INFO: ==27358== Releasing lock... [2025-04-26 15:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 15:17:23] Production.INFO: 43 MB #Memory Used# [2025-04-26 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 12:18:05 [end_date_ymd] => 2025-04-26 15:18:05 [RateCDR] => 1 ) [2025-04-26 15:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 12:18:05' and `end` < '2025-04-26 15:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 15:18:18] Production.INFO: count ==1968 [2025-04-26 15:18:19] Production.ERROR: pbx CDR StartTime 2025-04-26 12:18:05 - End Time 2025-04-26 15:18:05 [2025-04-26 15:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 15:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995145', 'tblTempUsageDetail_20' ) start [2025-04-26 15:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995145', 'tblTempUsageDetail_20' ) end [2025-04-26 15:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995145', 'tblTempVendorCDR_20' ) start [2025-04-26 15:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995145', 'tblTempVendorCDR_20' ) end [2025-04-26 15:18:19] Production.INFO: ProcessCDR(1,14995145,1,1,2) [2025-04-26 15:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995145', 'tblTempUsageDetail_20' ) start [2025-04-26 15:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995145', 'tblTempUsageDetail_20' ) end [2025-04-26 15:18:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 15:18:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 15:18:24] Production.INFO: ==27430== Releasing lock... [2025-04-26 15:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 15:18:24] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 12:19:05 [end_date_ymd] => 2025-04-26 15:19:05 [RateCDR] => 1 ) [2025-04-26 15:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 12:19:05' and `end` < '2025-04-26 15:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 15:19:17] Production.INFO: count ==1970 [2025-04-26 15:19:18] Production.ERROR: pbx CDR StartTime 2025-04-26 12:19:05 - End Time 2025-04-26 15:19:05 [2025-04-26 15:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995150', 'tblTempUsageDetail_20' ) start [2025-04-26 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995150', 'tblTempUsageDetail_20' ) end [2025-04-26 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995150', 'tblTempVendorCDR_20' ) start [2025-04-26 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995150', 'tblTempVendorCDR_20' ) end [2025-04-26 15:19:18] Production.INFO: ProcessCDR(1,14995150,1,1,2) [2025-04-26 15:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995150', 'tblTempUsageDetail_20' ) start [2025-04-26 15:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995150', 'tblTempUsageDetail_20' ) end [2025-04-26 15:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 15:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 15:19:23] Production.INFO: ==27500== Releasing lock... [2025-04-26 15:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 15:19:23] Production.INFO: 43.25 MB #Memory Used# [2025-04-26 15:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 12:20:06 [end_date_ymd] => 2025-04-26 15:20:06 [RateCDR] => 1 ) [2025-04-26 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-04-26 12:20:06' and `end` < '2025-04-26 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-04-26 15:20:19] Production.INFO: count ==1963 [2025-04-26 15:20:20] Production.ERROR: pbx CDR StartTime 2025-04-26 12:20:06 - End Time 2025-04-26 15:20:06 [2025-04-26 15:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 15:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995156', 'tblTempUsageDetail_20' ) start [2025-04-26 15:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995156', 'tblTempUsageDetail_20' ) end [2025-04-26 15:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995156', 'tblTempVendorCDR_20' ) start [2025-04-26 15:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995156', 'tblTempVendorCDR_20' ) end [2025-04-26 15:20:20] Production.INFO: ProcessCDR(1,14995156,1,1,2) [2025-04-26 15:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995156', 'tblTempUsageDetail_20' ) start [2025-04-26 15:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995156', 'tblTempUsageDetail_20' ) end [2025-04-26 15:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 15:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 15:20:24] Production.INFO: ==27572== Releasing lock... [2025-04-26 15:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 15:20:24] Production.INFO: 43 MB #Memory Used# [2025-04-26 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 12:21:05 [end_date_ymd] => 2025-04-26 15:21:05 [RateCDR] => 1 ) [2025-04-26 15:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 12:21:05' and `end` < '2025-04-26 15:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 15:21:17] Production.INFO: count ==1958 [2025-04-26 15:21:18] Production.ERROR: pbx CDR StartTime 2025-04-26 12:21:05 - End Time 2025-04-26 15:21:05 [2025-04-26 15:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 15:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995161', 'tblTempUsageDetail_20' ) start [2025-04-26 15:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995161', 'tblTempUsageDetail_20' ) end [2025-04-26 15:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995161', 'tblTempVendorCDR_20' ) start [2025-04-26 15:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995161', 'tblTempVendorCDR_20' ) end [2025-04-26 15:21:18] Production.INFO: ProcessCDR(1,14995161,1,1,2) [2025-04-26 15:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995161', 'tblTempUsageDetail_20' ) start [2025-04-26 15:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995161', 'tblTempUsageDetail_20' ) end [2025-04-26 15:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 15:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 15:21:21] Production.INFO: ==27647== Releasing lock... [2025-04-26 15:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 15:21:21] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 12:22:05 [end_date_ymd] => 2025-04-26 15:22:05 [RateCDR] => 1 ) [2025-04-26 15:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 12:22:05' and `end` < '2025-04-26 15:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 15:22:18] Production.INFO: count ==1963 [2025-04-26 15:22:18] Production.ERROR: pbx CDR StartTime 2025-04-26 12:22:05 - End Time 2025-04-26 15:22:05 [2025-04-26 15:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 15:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995166', 'tblTempUsageDetail_20' ) start [2025-04-26 15:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995166', 'tblTempUsageDetail_20' ) end [2025-04-26 15:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995166', 'tblTempVendorCDR_20' ) start [2025-04-26 15:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995166', 'tblTempVendorCDR_20' ) end [2025-04-26 15:22:18] Production.INFO: ProcessCDR(1,14995166,1,1,2) [2025-04-26 15:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995166', 'tblTempUsageDetail_20' ) start [2025-04-26 15:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995166', 'tblTempUsageDetail_20' ) end [2025-04-26 15:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 15:22:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 15:22:24] Production.INFO: ==27718== Releasing lock... [2025-04-26 15:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 15:22:24] Production.INFO: 43.25 MB #Memory Used# [2025-04-26 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 12:23:05 [end_date_ymd] => 2025-04-26 15:23:05 [RateCDR] => 1 ) [2025-04-26 15:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 12:23:05' and `end` < '2025-04-26 15:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 15:23:18] Production.INFO: count ==1955 [2025-04-26 15:23:19] Production.ERROR: pbx CDR StartTime 2025-04-26 12:23:05 - End Time 2025-04-26 15:23:05 [2025-04-26 15:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 15:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995171', 'tblTempUsageDetail_20' ) start [2025-04-26 15:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995171', 'tblTempUsageDetail_20' ) end [2025-04-26 15:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995171', 'tblTempVendorCDR_20' ) start [2025-04-26 15:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995171', 'tblTempVendorCDR_20' ) end [2025-04-26 15:23:19] Production.INFO: ProcessCDR(1,14995171,1,1,2) [2025-04-26 15:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995171', 'tblTempUsageDetail_20' ) start [2025-04-26 15:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995171', 'tblTempUsageDetail_20' ) end [2025-04-26 15:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 15:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 15:23:24] Production.INFO: ==27830== Releasing lock... [2025-04-26 15:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 15:23:24] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 12:24:05 [end_date_ymd] => 2025-04-26 15:24:05 [RateCDR] => 1 ) [2025-04-26 15:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 12:24:05' and `end` < '2025-04-26 15:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 15:24:18] Production.INFO: count ==1965 [2025-04-26 15:24:19] Production.ERROR: pbx CDR StartTime 2025-04-26 12:24:05 - End Time 2025-04-26 15:24:05 [2025-04-26 15:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 15:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995176', 'tblTempUsageDetail_20' ) start [2025-04-26 15:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995176', 'tblTempUsageDetail_20' ) end [2025-04-26 15:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995176', 'tblTempVendorCDR_20' ) start [2025-04-26 15:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995176', 'tblTempVendorCDR_20' ) end [2025-04-26 15:24:19] Production.INFO: ProcessCDR(1,14995176,1,1,2) [2025-04-26 15:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995176', 'tblTempUsageDetail_20' ) start [2025-04-26 15:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995176', 'tblTempUsageDetail_20' ) end [2025-04-26 15:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 15:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 15:24:23] Production.INFO: ==27901== Releasing lock... [2025-04-26 15:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 15:24:23] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 12:25:05 [end_date_ymd] => 2025-04-26 15:25:05 [RateCDR] => 1 ) [2025-04-26 15:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 12:25:05' and `end` < '2025-04-26 15:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 15:25:18] Production.INFO: count ==1967 [2025-04-26 15:25:19] Production.ERROR: pbx CDR StartTime 2025-04-26 12:25:05 - End Time 2025-04-26 15:25:05 [2025-04-26 15:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995181', 'tblTempUsageDetail_20' ) start [2025-04-26 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995181', 'tblTempUsageDetail_20' ) end [2025-04-26 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995181', 'tblTempVendorCDR_20' ) start [2025-04-26 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995181', 'tblTempVendorCDR_20' ) end [2025-04-26 15:25:19] Production.INFO: ProcessCDR(1,14995181,1,1,2) [2025-04-26 15:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995181', 'tblTempUsageDetail_20' ) start [2025-04-26 15:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995181', 'tblTempUsageDetail_20' ) end [2025-04-26 15:25:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 15:25:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 15:25:24] Production.INFO: ==27981== Releasing lock... [2025-04-26 15:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 15:25:24] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 12:26:05 [end_date_ymd] => 2025-04-26 15:26:05 [RateCDR] => 1 ) [2025-04-26 15:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 12:26:05' and `end` < '2025-04-26 15:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 15:26:18] Production.INFO: count ==1964 [2025-04-26 15:26:19] Production.ERROR: pbx CDR StartTime 2025-04-26 12:26:05 - End Time 2025-04-26 15:26:05 [2025-04-26 15:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 15:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995186', 'tblTempUsageDetail_20' ) start [2025-04-26 15:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995186', 'tblTempUsageDetail_20' ) end [2025-04-26 15:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995186', 'tblTempVendorCDR_20' ) start [2025-04-26 15:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995186', 'tblTempVendorCDR_20' ) end [2025-04-26 15:26:19] Production.INFO: ProcessCDR(1,14995186,1,1,2) [2025-04-26 15:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995186', 'tblTempUsageDetail_20' ) start [2025-04-26 15:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995186', 'tblTempUsageDetail_20' ) end [2025-04-26 15:26:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 15:26:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 15:26:24] Production.INFO: ==28063== Releasing lock... [2025-04-26 15:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 15:26:24] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 12:27:05 [end_date_ymd] => 2025-04-26 15:27:05 [RateCDR] => 1 ) [2025-04-26 15:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 12:27:05' and `end` < '2025-04-26 15:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 15:27:18] Production.INFO: count ==1945 [2025-04-26 15:27:18] Production.ERROR: pbx CDR StartTime 2025-04-26 12:27:05 - End Time 2025-04-26 15:27:05 [2025-04-26 15:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 15:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995191', 'tblTempUsageDetail_20' ) start [2025-04-26 15:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995191', 'tblTempUsageDetail_20' ) end [2025-04-26 15:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995191', 'tblTempVendorCDR_20' ) start [2025-04-26 15:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995191', 'tblTempVendorCDR_20' ) end [2025-04-26 15:27:18] Production.INFO: ProcessCDR(1,14995191,1,1,2) [2025-04-26 15:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995191', 'tblTempUsageDetail_20' ) start [2025-04-26 15:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995191', 'tblTempUsageDetail_20' ) end [2025-04-26 15:27:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 15:27:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 15:27:23] Production.INFO: ==28142== Releasing lock... [2025-04-26 15:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 15:27:23] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 12:28:05 [end_date_ymd] => 2025-04-26 15:28:05 [RateCDR] => 1 ) [2025-04-26 15:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 12:28:05' and `end` < '2025-04-26 15:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 15:28:18] Production.INFO: count ==1947 [2025-04-26 15:28:18] Production.ERROR: pbx CDR StartTime 2025-04-26 12:28:05 - End Time 2025-04-26 15:28:05 [2025-04-26 15:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 15:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995196', 'tblTempUsageDetail_20' ) start [2025-04-26 15:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995196', 'tblTempUsageDetail_20' ) end [2025-04-26 15:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995196', 'tblTempVendorCDR_20' ) start [2025-04-26 15:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995196', 'tblTempVendorCDR_20' ) end [2025-04-26 15:28:18] Production.INFO: ProcessCDR(1,14995196,1,1,2) [2025-04-26 15:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995196', 'tblTempUsageDetail_20' ) start [2025-04-26 15:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995196', 'tblTempUsageDetail_20' ) end [2025-04-26 15:28:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 15:28:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 15:28:23] Production.INFO: ==28213== Releasing lock... [2025-04-26 15:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 15:28:23] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 12:29:05 [end_date_ymd] => 2025-04-26 15:29:05 [RateCDR] => 1 ) [2025-04-26 15:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 12:29:05' and `end` < '2025-04-26 15:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 15:29:18] Production.INFO: count ==1939 [2025-04-26 15:29:18] Production.ERROR: pbx CDR StartTime 2025-04-26 12:29:05 - End Time 2025-04-26 15:29:05 [2025-04-26 15:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 15:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995201', 'tblTempUsageDetail_20' ) start [2025-04-26 15:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995201', 'tblTempUsageDetail_20' ) end [2025-04-26 15:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995201', 'tblTempVendorCDR_20' ) start [2025-04-26 15:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995201', 'tblTempVendorCDR_20' ) end [2025-04-26 15:29:19] Production.INFO: ProcessCDR(1,14995201,1,1,2) [2025-04-26 15:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995201', 'tblTempUsageDetail_20' ) start [2025-04-26 15:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995201', 'tblTempUsageDetail_20' ) end [2025-04-26 15:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 15:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 15:29:22] Production.INFO: ==28288== Releasing lock... [2025-04-26 15:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 15:29:22] Production.INFO: 43.25 MB #Memory Used# [2025-04-26 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 12:30:06 [end_date_ymd] => 2025-04-26 15:30:06 [RateCDR] => 1 ) [2025-04-26 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-04-26 12:30:06' and `end` < '2025-04-26 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-04-26 15:30:19] Production.INFO: count ==1933 [2025-04-26 15:30:20] Production.ERROR: pbx CDR StartTime 2025-04-26 12:30:06 - End Time 2025-04-26 15:30:06 [2025-04-26 15:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 15:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995207', 'tblTempUsageDetail_20' ) start [2025-04-26 15:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995207', 'tblTempUsageDetail_20' ) end [2025-04-26 15:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995207', 'tblTempVendorCDR_20' ) start [2025-04-26 15:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995207', 'tblTempVendorCDR_20' ) end [2025-04-26 15:30:20] Production.INFO: ProcessCDR(1,14995207,1,1,2) [2025-04-26 15:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995207', 'tblTempUsageDetail_20' ) start [2025-04-26 15:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995207', 'tblTempUsageDetail_20' ) end [2025-04-26 15:30:25] Production.ERROR: pbx prc_insertCDR start [2025-04-26 15:30:25] Production.ERROR: pbx prc_insertCDR end [2025-04-26 15:30:25] Production.INFO: ==28373== Releasing lock... [2025-04-26 15:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 15:30:25] Production.INFO: 42.5 MB #Memory Used# [2025-04-26 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 12:31:05 [end_date_ymd] => 2025-04-26 15:31:05 [RateCDR] => 1 ) [2025-04-26 15:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 12:31:05' and `end` < '2025-04-26 15:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 15:31:18] Production.INFO: count ==1903 [2025-04-26 15:31:18] Production.ERROR: pbx CDR StartTime 2025-04-26 12:31:05 - End Time 2025-04-26 15:31:05 [2025-04-26 15:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 15:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995212', 'tblTempUsageDetail_20' ) start [2025-04-26 15:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995212', 'tblTempUsageDetail_20' ) end [2025-04-26 15:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995212', 'tblTempVendorCDR_20' ) start [2025-04-26 15:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995212', 'tblTempVendorCDR_20' ) end [2025-04-26 15:31:18] Production.INFO: ProcessCDR(1,14995212,1,1,2) [2025-04-26 15:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995212', 'tblTempUsageDetail_20' ) start [2025-04-26 15:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995212', 'tblTempUsageDetail_20' ) end [2025-04-26 15:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 15:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 15:31:22] Production.INFO: ==28446== Releasing lock... [2025-04-26 15:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 15:31:22] Production.INFO: 43 MB #Memory Used# [2025-04-26 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 12:32:05 [end_date_ymd] => 2025-04-26 15:32:05 [RateCDR] => 1 ) [2025-04-26 15:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 12:32:05' and `end` < '2025-04-26 15:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 15:32:18] Production.INFO: count ==1900 [2025-04-26 15:32:19] Production.ERROR: pbx CDR StartTime 2025-04-26 12:32:05 - End Time 2025-04-26 15:32:05 [2025-04-26 15:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 15:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995217', 'tblTempUsageDetail_20' ) start [2025-04-26 15:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995217', 'tblTempUsageDetail_20' ) end [2025-04-26 15:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995217', 'tblTempVendorCDR_20' ) start [2025-04-26 15:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995217', 'tblTempVendorCDR_20' ) end [2025-04-26 15:32:19] Production.INFO: ProcessCDR(1,14995217,1,1,2) [2025-04-26 15:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995217', 'tblTempUsageDetail_20' ) start [2025-04-26 15:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995217', 'tblTempUsageDetail_20' ) end [2025-04-26 15:32:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 15:32:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 15:32:24] Production.INFO: ==28518== Releasing lock... [2025-04-26 15:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 15:32:24] Production.INFO: 42.25 MB #Memory Used# [2025-04-26 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 12:33:05 [end_date_ymd] => 2025-04-26 15:33:05 [RateCDR] => 1 ) [2025-04-26 15:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 12:33:05' and `end` < '2025-04-26 15:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 15:33:18] Production.INFO: count ==1909 [2025-04-26 15:33:18] Production.ERROR: pbx CDR StartTime 2025-04-26 12:33:05 - End Time 2025-04-26 15:33:05 [2025-04-26 15:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 15:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995222', 'tblTempUsageDetail_20' ) start [2025-04-26 15:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995222', 'tblTempUsageDetail_20' ) end [2025-04-26 15:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995222', 'tblTempVendorCDR_20' ) start [2025-04-26 15:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995222', 'tblTempVendorCDR_20' ) end [2025-04-26 15:33:19] Production.INFO: ProcessCDR(1,14995222,1,1,2) [2025-04-26 15:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995222', 'tblTempUsageDetail_20' ) start [2025-04-26 15:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995222', 'tblTempUsageDetail_20' ) end [2025-04-26 15:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 15:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 15:33:23] Production.INFO: ==28587== Releasing lock... [2025-04-26 15:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 15:33:23] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 12:34:05 [end_date_ymd] => 2025-04-26 15:34:05 [RateCDR] => 1 ) [2025-04-26 15:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 12:34:05' and `end` < '2025-04-26 15:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 15:34:18] Production.INFO: count ==1903 [2025-04-26 15:34:19] Production.ERROR: pbx CDR StartTime 2025-04-26 12:34:05 - End Time 2025-04-26 15:34:05 [2025-04-26 15:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 15:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995227', 'tblTempUsageDetail_20' ) start [2025-04-26 15:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995227', 'tblTempUsageDetail_20' ) end [2025-04-26 15:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995227', 'tblTempVendorCDR_20' ) start [2025-04-26 15:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995227', 'tblTempVendorCDR_20' ) end [2025-04-26 15:34:19] Production.INFO: ProcessCDR(1,14995227,1,1,2) [2025-04-26 15:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995227', 'tblTempUsageDetail_20' ) start [2025-04-26 15:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995227', 'tblTempUsageDetail_20' ) end [2025-04-26 15:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 15:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 15:34:22] Production.INFO: ==28663== Releasing lock... [2025-04-26 15:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 15:34:22] Production.INFO: 42.5 MB #Memory Used# [2025-04-26 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 12:35:05 [end_date_ymd] => 2025-04-26 15:35:05 [RateCDR] => 1 ) [2025-04-26 15:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 12:35:05' and `end` < '2025-04-26 15:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 15:35:18] Production.INFO: count ==1898 [2025-04-26 15:35:18] Production.ERROR: pbx CDR StartTime 2025-04-26 12:35:05 - End Time 2025-04-26 15:35:05 [2025-04-26 15:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 15:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995232', 'tblTempUsageDetail_20' ) start [2025-04-26 15:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995232', 'tblTempUsageDetail_20' ) end [2025-04-26 15:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995232', 'tblTempVendorCDR_20' ) start [2025-04-26 15:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995232', 'tblTempVendorCDR_20' ) end [2025-04-26 15:35:19] Production.INFO: ProcessCDR(1,14995232,1,1,2) [2025-04-26 15:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995232', 'tblTempUsageDetail_20' ) start [2025-04-26 15:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995232', 'tblTempUsageDetail_20' ) end [2025-04-26 15:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 15:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 15:35:23] Production.INFO: ==28749== Releasing lock... [2025-04-26 15:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 15:35:23] Production.INFO: 42.25 MB #Memory Used# [2025-04-26 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 12:36:05 [end_date_ymd] => 2025-04-26 15:36:05 [RateCDR] => 1 ) [2025-04-26 15:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 12:36:05' and `end` < '2025-04-26 15:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 15:36:18] Production.INFO: count ==1899 [2025-04-26 15:36:19] Production.ERROR: pbx CDR StartTime 2025-04-26 12:36:05 - End Time 2025-04-26 15:36:05 [2025-04-26 15:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 15:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995237', 'tblTempUsageDetail_20' ) start [2025-04-26 15:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995237', 'tblTempUsageDetail_20' ) end [2025-04-26 15:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995237', 'tblTempVendorCDR_20' ) start [2025-04-26 15:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995237', 'tblTempVendorCDR_20' ) end [2025-04-26 15:36:19] Production.INFO: ProcessCDR(1,14995237,1,1,2) [2025-04-26 15:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995237', 'tblTempUsageDetail_20' ) start [2025-04-26 15:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995237', 'tblTempUsageDetail_20' ) end [2025-04-26 15:36:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 15:36:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 15:36:24] Production.INFO: ==28840== Releasing lock... [2025-04-26 15:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 15:36:24] Production.INFO: 42.25 MB #Memory Used# [2025-04-26 15:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 12:37:04 [end_date_ymd] => 2025-04-26 15:37:04 [RateCDR] => 1 ) [2025-04-26 15: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-04-26 12:37:04' and `end` < '2025-04-26 15: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-04-26 15:37:17] Production.INFO: count ==1909 [2025-04-26 15:37:18] Production.ERROR: pbx CDR StartTime 2025-04-26 12:37:04 - End Time 2025-04-26 15:37:04 [2025-04-26 15:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 15:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995242', 'tblTempUsageDetail_20' ) start [2025-04-26 15:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995242', 'tblTempUsageDetail_20' ) end [2025-04-26 15:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995242', 'tblTempVendorCDR_20' ) start [2025-04-26 15:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995242', 'tblTempVendorCDR_20' ) end [2025-04-26 15:37:18] Production.INFO: ProcessCDR(1,14995242,1,1,2) [2025-04-26 15:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995242', 'tblTempUsageDetail_20' ) start [2025-04-26 15:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995242', 'tblTempUsageDetail_20' ) end [2025-04-26 15:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 15:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 15:37:23] Production.INFO: ==28941== Releasing lock... [2025-04-26 15:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 15:37:23] Production.INFO: 43 MB #Memory Used# [2025-04-26 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 12:38:05 [end_date_ymd] => 2025-04-26 15:38:05 [RateCDR] => 1 ) [2025-04-26 15:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 12:38:05' and `end` < '2025-04-26 15:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 15:38:18] Production.INFO: count ==1896 [2025-04-26 15:38:18] Production.ERROR: pbx CDR StartTime 2025-04-26 12:38:05 - End Time 2025-04-26 15:38:05 [2025-04-26 15:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 15:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995247', 'tblTempUsageDetail_20' ) start [2025-04-26 15:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995247', 'tblTempUsageDetail_20' ) end [2025-04-26 15:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995247', 'tblTempVendorCDR_20' ) start [2025-04-26 15:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995247', 'tblTempVendorCDR_20' ) end [2025-04-26 15:38:18] Production.INFO: ProcessCDR(1,14995247,1,1,2) [2025-04-26 15:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995247', 'tblTempUsageDetail_20' ) start [2025-04-26 15:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995247', 'tblTempUsageDetail_20' ) end [2025-04-26 15:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 15:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 15:38:22] Production.INFO: ==29039== Releasing lock... [2025-04-26 15:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 15:38:22] Production.INFO: 42.25 MB #Memory Used# [2025-04-26 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 12:39:05 [end_date_ymd] => 2025-04-26 15:39:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 12:39:05' and `end` < '2025-04-26 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-04-26 15:39:18] Production.INFO: count ==1898 [2025-04-26 15:39:18] Production.ERROR: pbx CDR StartTime 2025-04-26 12:39:05 - End Time 2025-04-26 15:39:05 [2025-04-26 15:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 15:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995252', 'tblTempUsageDetail_20' ) start [2025-04-26 15:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995252', 'tblTempUsageDetail_20' ) end [2025-04-26 15:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995252', 'tblTempVendorCDR_20' ) start [2025-04-26 15:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995252', 'tblTempVendorCDR_20' ) end [2025-04-26 15:39:19] Production.INFO: ProcessCDR(1,14995252,1,1,2) [2025-04-26 15:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995252', 'tblTempUsageDetail_20' ) start [2025-04-26 15:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995252', 'tblTempUsageDetail_20' ) end [2025-04-26 15:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 15:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 15:39:22] Production.INFO: ==29186== Releasing lock... [2025-04-26 15:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 15:39:22] Production.INFO: 42.25 MB #Memory Used# [2025-04-26 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 12:40:06 [end_date_ymd] => 2025-04-26 15:40:06 [RateCDR] => 1 ) [2025-04-26 15:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 12:40:06' and `end` < '2025-04-26 15:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 15:40:19] Production.INFO: count ==1895 [2025-04-26 15:40:19] Production.ERROR: pbx CDR StartTime 2025-04-26 12:40:06 - End Time 2025-04-26 15:40:06 [2025-04-26 15:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995258', 'tblTempUsageDetail_20' ) start [2025-04-26 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995258', 'tblTempUsageDetail_20' ) end [2025-04-26 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995258', 'tblTempVendorCDR_20' ) start [2025-04-26 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995258', 'tblTempVendorCDR_20' ) end [2025-04-26 15:40:19] Production.INFO: ProcessCDR(1,14995258,1,1,2) [2025-04-26 15:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995258', 'tblTempUsageDetail_20' ) start [2025-04-26 15:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995258', 'tblTempUsageDetail_20' ) end [2025-04-26 15:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 15:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 15:40:24] Production.INFO: ==29301== Releasing lock... [2025-04-26 15:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 15:40:24] Production.INFO: 42.25 MB #Memory Used# [2025-04-26 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 12:41:05 [end_date_ymd] => 2025-04-26 15:41:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 12:41:05' and `end` < '2025-04-26 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-04-26 15:41:18] Production.INFO: count ==1860 [2025-04-26 15:41:19] Production.ERROR: pbx CDR StartTime 2025-04-26 12:41:05 - End Time 2025-04-26 15:41:05 [2025-04-26 15:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 15:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995263', 'tblTempUsageDetail_20' ) start [2025-04-26 15:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995263', 'tblTempUsageDetail_20' ) end [2025-04-26 15:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995263', 'tblTempVendorCDR_20' ) start [2025-04-26 15:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995263', 'tblTempVendorCDR_20' ) end [2025-04-26 15:41:19] Production.INFO: ProcessCDR(1,14995263,1,1,2) [2025-04-26 15:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995263', 'tblTempUsageDetail_20' ) start [2025-04-26 15:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995263', 'tblTempUsageDetail_20' ) end [2025-04-26 15:41:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 15:41:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 15:41:24] Production.INFO: ==29402== Releasing lock... [2025-04-26 15:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 15:41:24] Production.INFO: 42 MB #Memory Used# [2025-04-26 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 12:42:05 [end_date_ymd] => 2025-04-26 15:42:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 12:42:05' and `end` < '2025-04-26 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-04-26 15:42:18] Production.INFO: count ==1867 [2025-04-26 15:42:18] Production.ERROR: pbx CDR StartTime 2025-04-26 12:42:05 - End Time 2025-04-26 15:42:05 [2025-04-26 15:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 15:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995268', 'tblTempUsageDetail_20' ) start [2025-04-26 15:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995268', 'tblTempUsageDetail_20' ) end [2025-04-26 15:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995268', 'tblTempVendorCDR_20' ) start [2025-04-26 15:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995268', 'tblTempVendorCDR_20' ) end [2025-04-26 15:42:18] Production.INFO: ProcessCDR(1,14995268,1,1,2) [2025-04-26 15:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995268', 'tblTempUsageDetail_20' ) start [2025-04-26 15:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995268', 'tblTempUsageDetail_20' ) end [2025-04-26 15:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 15:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 15:42:23] Production.INFO: ==29502== Releasing lock... [2025-04-26 15:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 15:42:23] Production.INFO: 42 MB #Memory Used# [2025-04-26 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 12:43:05 [end_date_ymd] => 2025-04-26 15:43:05 [RateCDR] => 1 ) [2025-04-26 15:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 12:43:05' and `end` < '2025-04-26 15:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 15:43:18] Production.INFO: count ==1863 [2025-04-26 15:43:19] Production.ERROR: pbx CDR StartTime 2025-04-26 12:43:05 - End Time 2025-04-26 15:43:05 [2025-04-26 15:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 15:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995273', 'tblTempUsageDetail_20' ) start [2025-04-26 15:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995273', 'tblTempUsageDetail_20' ) end [2025-04-26 15:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995273', 'tblTempVendorCDR_20' ) start [2025-04-26 15:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995273', 'tblTempVendorCDR_20' ) end [2025-04-26 15:43:19] Production.INFO: ProcessCDR(1,14995273,1,1,2) [2025-04-26 15:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995273', 'tblTempUsageDetail_20' ) start [2025-04-26 15:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995273', 'tblTempUsageDetail_20' ) end [2025-04-26 15:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 15:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 15:43:23] Production.INFO: ==29607== Releasing lock... [2025-04-26 15:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 15:43:23] Production.INFO: 42 MB #Memory Used# [2025-04-26 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 12:44:05 [end_date_ymd] => 2025-04-26 15:44:05 [RateCDR] => 1 ) [2025-04-26 15:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 12:44:05' and `end` < '2025-04-26 15:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 15:44:18] Production.INFO: count ==1868 [2025-04-26 15:44:18] Production.ERROR: pbx CDR StartTime 2025-04-26 12:44:05 - End Time 2025-04-26 15:44:05 [2025-04-26 15:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 15:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995278', 'tblTempUsageDetail_20' ) start [2025-04-26 15:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995278', 'tblTempUsageDetail_20' ) end [2025-04-26 15:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995278', 'tblTempVendorCDR_20' ) start [2025-04-26 15:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995278', 'tblTempVendorCDR_20' ) end [2025-04-26 15:44:18] Production.INFO: ProcessCDR(1,14995278,1,1,2) [2025-04-26 15:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995278', 'tblTempUsageDetail_20' ) start [2025-04-26 15:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995278', 'tblTempUsageDetail_20' ) end [2025-04-26 15:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 15:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 15:44:22] Production.INFO: ==29704== Releasing lock... [2025-04-26 15:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 15:44:22] Production.INFO: 42 MB #Memory Used# [2025-04-26 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 12:45:05 [end_date_ymd] => 2025-04-26 15:45:05 [RateCDR] => 1 ) [2025-04-26 15:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 12:45:05' and `end` < '2025-04-26 15:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 15:45:18] Production.INFO: count ==1867 [2025-04-26 15:45:19] Production.ERROR: pbx CDR StartTime 2025-04-26 12:45:05 - End Time 2025-04-26 15:45:05 [2025-04-26 15:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 15:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995283', 'tblTempUsageDetail_20' ) start [2025-04-26 15:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995283', 'tblTempUsageDetail_20' ) end [2025-04-26 15:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995283', 'tblTempVendorCDR_20' ) start [2025-04-26 15:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995283', 'tblTempVendorCDR_20' ) end [2025-04-26 15:45:19] Production.INFO: ProcessCDR(1,14995283,1,1,2) [2025-04-26 15:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995283', 'tblTempUsageDetail_20' ) start [2025-04-26 15:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995283', 'tblTempUsageDetail_20' ) end [2025-04-26 15:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 15:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 15:45:22] Production.INFO: ==29807== Releasing lock... [2025-04-26 15:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 15:45:22] Production.INFO: 42.25 MB #Memory Used# [2025-04-26 15:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 12:46:04 [end_date_ymd] => 2025-04-26 15:46:04 [RateCDR] => 1 ) [2025-04-26 15: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-04-26 12:46:04' and `end` < '2025-04-26 15: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-04-26 15:46:17] Production.INFO: count ==1866 [2025-04-26 15:46:18] Production.ERROR: pbx CDR StartTime 2025-04-26 12:46:04 - End Time 2025-04-26 15:46:04 [2025-04-26 15:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 15:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995288', 'tblTempUsageDetail_20' ) start [2025-04-26 15:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995288', 'tblTempUsageDetail_20' ) end [2025-04-26 15:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995288', 'tblTempVendorCDR_20' ) start [2025-04-26 15:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995288', 'tblTempVendorCDR_20' ) end [2025-04-26 15:46:18] Production.INFO: ProcessCDR(1,14995288,1,1,2) [2025-04-26 15:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995288', 'tblTempUsageDetail_20' ) start [2025-04-26 15:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995288', 'tblTempUsageDetail_20' ) end [2025-04-26 15:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 15:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 15:46:21] Production.INFO: ==29910== Releasing lock... [2025-04-26 15:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 15:46:21] Production.INFO: 42 MB #Memory Used# [2025-04-26 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 12:47:05 [end_date_ymd] => 2025-04-26 15:47:05 [RateCDR] => 1 ) [2025-04-26 15:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 12:47:05' and `end` < '2025-04-26 15:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 15:47:17] Production.INFO: count ==1861 [2025-04-26 15:47:18] Production.ERROR: pbx CDR StartTime 2025-04-26 12:47:05 - End Time 2025-04-26 15:47:05 [2025-04-26 15:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 15:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995293', 'tblTempUsageDetail_20' ) start [2025-04-26 15:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995293', 'tblTempUsageDetail_20' ) end [2025-04-26 15:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995293', 'tblTempVendorCDR_20' ) start [2025-04-26 15:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995293', 'tblTempVendorCDR_20' ) end [2025-04-26 15:47:18] Production.INFO: ProcessCDR(1,14995293,1,1,2) [2025-04-26 15:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995293', 'tblTempUsageDetail_20' ) start [2025-04-26 15:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995293', 'tblTempUsageDetail_20' ) end [2025-04-26 15:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 15:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 15:47:22] Production.INFO: ==30009== Releasing lock... [2025-04-26 15:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 15:47:22] Production.INFO: 41.75 MB #Memory Used# [2025-04-26 15:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 12:48:06 [end_date_ymd] => 2025-04-26 15:48:06 [RateCDR] => 1 ) [2025-04-26 15:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 12:48:06' and `end` < '2025-04-26 15:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 15:48:19] Production.INFO: count ==1857 [2025-04-26 15:48:19] Production.ERROR: pbx CDR StartTime 2025-04-26 12:48:06 - End Time 2025-04-26 15:48:06 [2025-04-26 15:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995298', 'tblTempUsageDetail_20' ) start [2025-04-26 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995298', 'tblTempUsageDetail_20' ) end [2025-04-26 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995298', 'tblTempVendorCDR_20' ) start [2025-04-26 15:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995298', 'tblTempVendorCDR_20' ) end [2025-04-26 15:48:20] Production.INFO: ProcessCDR(1,14995298,1,1,2) [2025-04-26 15:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995298', 'tblTempUsageDetail_20' ) start [2025-04-26 15:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995298', 'tblTempUsageDetail_20' ) end [2025-04-26 15:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 15:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 15:48:23] Production.INFO: ==30108== Releasing lock... [2025-04-26 15:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 15:48:23] Production.INFO: 42 MB #Memory Used# [2025-04-26 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 12:49:05 [end_date_ymd] => 2025-04-26 15:49:05 [RateCDR] => 1 ) [2025-04-26 15:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 12:49:05' and `end` < '2025-04-26 15:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 15:49:18] Production.INFO: count ==1846 [2025-04-26 15:49:19] Production.ERROR: pbx CDR StartTime 2025-04-26 12:49:05 - End Time 2025-04-26 15:49:05 [2025-04-26 15:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 15:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995303', 'tblTempUsageDetail_20' ) start [2025-04-26 15:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995303', 'tblTempUsageDetail_20' ) end [2025-04-26 15:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995303', 'tblTempVendorCDR_20' ) start [2025-04-26 15:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995303', 'tblTempVendorCDR_20' ) end [2025-04-26 15:49:19] Production.INFO: ProcessCDR(1,14995303,1,1,2) [2025-04-26 15:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995303', 'tblTempUsageDetail_20' ) start [2025-04-26 15:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995303', 'tblTempUsageDetail_20' ) end [2025-04-26 15:49:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 15:49:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 15:49:24] Production.INFO: ==30207== Releasing lock... [2025-04-26 15:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 15:49:24] Production.INFO: 42.25 MB #Memory Used# [2025-04-26 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 12:50:06 [end_date_ymd] => 2025-04-26 15:50:06 [RateCDR] => 1 ) [2025-04-26 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-04-26 12:50:06' and `end` < '2025-04-26 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-04-26 15:50:19] Production.INFO: count ==1834 [2025-04-26 15:50:20] Production.ERROR: pbx CDR StartTime 2025-04-26 12:50:06 - End Time 2025-04-26 15:50:06 [2025-04-26 15:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 15:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995309', 'tblTempUsageDetail_20' ) start [2025-04-26 15:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995309', 'tblTempUsageDetail_20' ) end [2025-04-26 15:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995309', 'tblTempVendorCDR_20' ) start [2025-04-26 15:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995309', 'tblTempVendorCDR_20' ) end [2025-04-26 15:50:20] Production.INFO: ProcessCDR(1,14995309,1,1,2) [2025-04-26 15:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995309', 'tblTempUsageDetail_20' ) start [2025-04-26 15:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995309', 'tblTempUsageDetail_20' ) end [2025-04-26 15:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 15:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 15:50:23] Production.INFO: ==30314== Releasing lock... [2025-04-26 15:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 15:50:23] Production.INFO: 41.75 MB #Memory Used# [2025-04-26 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 12:51:05 [end_date_ymd] => 2025-04-26 15:51:05 [RateCDR] => 1 ) [2025-04-26 15:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 12:51:05' and `end` < '2025-04-26 15:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 15:51:18] Production.INFO: count ==1846 [2025-04-26 15:51:18] Production.ERROR: pbx CDR StartTime 2025-04-26 12:51:05 - End Time 2025-04-26 15:51:05 [2025-04-26 15:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 15:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995314', 'tblTempUsageDetail_20' ) start [2025-04-26 15:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995314', 'tblTempUsageDetail_20' ) end [2025-04-26 15:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995314', 'tblTempVendorCDR_20' ) start [2025-04-26 15:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995314', 'tblTempVendorCDR_20' ) end [2025-04-26 15:51:18] Production.INFO: ProcessCDR(1,14995314,1,1,2) [2025-04-26 15:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995314', 'tblTempUsageDetail_20' ) start [2025-04-26 15:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995314', 'tblTempUsageDetail_20' ) end [2025-04-26 15:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 15:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 15:51:23] Production.INFO: ==30415== Releasing lock... [2025-04-26 15:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 15:51:23] Production.INFO: 42 MB #Memory Used# [2025-04-26 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 12:52:05 [end_date_ymd] => 2025-04-26 15:52:05 [RateCDR] => 1 ) [2025-04-26 15:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 12:52:05' and `end` < '2025-04-26 15:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 15:52:18] Production.INFO: count ==1840 [2025-04-26 15:52:19] Production.ERROR: pbx CDR StartTime 2025-04-26 12:52:05 - End Time 2025-04-26 15:52:05 [2025-04-26 15:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 15:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995319', 'tblTempUsageDetail_20' ) start [2025-04-26 15:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995319', 'tblTempUsageDetail_20' ) end [2025-04-26 15:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995319', 'tblTempVendorCDR_20' ) start [2025-04-26 15:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995319', 'tblTempVendorCDR_20' ) end [2025-04-26 15:52:19] Production.INFO: ProcessCDR(1,14995319,1,1,2) [2025-04-26 15:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995319', 'tblTempUsageDetail_20' ) start [2025-04-26 15:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995319', 'tblTempUsageDetail_20' ) end [2025-04-26 15:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 15:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 15:52:22] Production.INFO: ==30518== Releasing lock... [2025-04-26 15:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 15:52:22] Production.INFO: 42 MB #Memory Used# [2025-04-26 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 12:53:05 [end_date_ymd] => 2025-04-26 15:53:05 [RateCDR] => 1 ) [2025-04-26 15:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 12:53:05' and `end` < '2025-04-26 15:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 15:53:18] Production.INFO: count ==1850 [2025-04-26 15:53:18] Production.ERROR: pbx CDR StartTime 2025-04-26 12:53:05 - End Time 2025-04-26 15:53:05 [2025-04-26 15:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995324', 'tblTempUsageDetail_20' ) start [2025-04-26 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995324', 'tblTempUsageDetail_20' ) end [2025-04-26 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995324', 'tblTempVendorCDR_20' ) start [2025-04-26 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995324', 'tblTempVendorCDR_20' ) end [2025-04-26 15:53:18] Production.INFO: ProcessCDR(1,14995324,1,1,2) [2025-04-26 15:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995324', 'tblTempUsageDetail_20' ) start [2025-04-26 15:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995324', 'tblTempUsageDetail_20' ) end [2025-04-26 15:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 15:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 15:53:23] Production.INFO: ==30612== Releasing lock... [2025-04-26 15:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 15:53:23] Production.INFO: 42 MB #Memory Used# [2025-04-26 15:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 12:54:06 [end_date_ymd] => 2025-04-26 15:54:06 [RateCDR] => 1 ) [2025-04-26 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-04-26 12:54:06' and `end` < '2025-04-26 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-04-26 15:54:18] Production.INFO: count ==1843 [2025-04-26 15:54:19] Production.ERROR: pbx CDR StartTime 2025-04-26 12:54:06 - End Time 2025-04-26 15:54:06 [2025-04-26 15:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 15:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995329', 'tblTempUsageDetail_20' ) start [2025-04-26 15:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995329', 'tblTempUsageDetail_20' ) end [2025-04-26 15:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995329', 'tblTempVendorCDR_20' ) start [2025-04-26 15:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995329', 'tblTempVendorCDR_20' ) end [2025-04-26 15:54:19] Production.INFO: ProcessCDR(1,14995329,1,1,2) [2025-04-26 15:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995329', 'tblTempUsageDetail_20' ) start [2025-04-26 15:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995329', 'tblTempUsageDetail_20' ) end [2025-04-26 15:54:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 15:54:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 15:54:24] Production.INFO: ==30728== Releasing lock... [2025-04-26 15:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 15:54:24] Production.INFO: 42 MB #Memory Used# [2025-04-26 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 12:55:05 [end_date_ymd] => 2025-04-26 15:55:05 [RateCDR] => 1 ) [2025-04-26 15:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 12:55:05' and `end` < '2025-04-26 15:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 15:55:17] Production.INFO: count ==1842 [2025-04-26 15:55:18] Production.ERROR: pbx CDR StartTime 2025-04-26 12:55:05 - End Time 2025-04-26 15:55:05 [2025-04-26 15:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 15:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995334', 'tblTempUsageDetail_20' ) start [2025-04-26 15:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995334', 'tblTempUsageDetail_20' ) end [2025-04-26 15:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995334', 'tblTempVendorCDR_20' ) start [2025-04-26 15:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995334', 'tblTempVendorCDR_20' ) end [2025-04-26 15:55:18] Production.INFO: ProcessCDR(1,14995334,1,1,2) [2025-04-26 15:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995334', 'tblTempUsageDetail_20' ) start [2025-04-26 15:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995334', 'tblTempUsageDetail_20' ) end [2025-04-26 15:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 15:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 15:55:23] Production.INFO: ==30801== Releasing lock... [2025-04-26 15:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 15:55:23] Production.INFO: 42 MB #Memory Used# [2025-04-26 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 12:56:05 [end_date_ymd] => 2025-04-26 15:56:05 [RateCDR] => 1 ) [2025-04-26 15:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 12:56:05' and `end` < '2025-04-26 15:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 15:56:18] Production.INFO: count ==1838 [2025-04-26 15:56:19] Production.ERROR: pbx CDR StartTime 2025-04-26 12:56:05 - End Time 2025-04-26 15:56:05 [2025-04-26 15:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 15:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995339', 'tblTempUsageDetail_20' ) start [2025-04-26 15:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995339', 'tblTempUsageDetail_20' ) end [2025-04-26 15:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995339', 'tblTempVendorCDR_20' ) start [2025-04-26 15:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995339', 'tblTempVendorCDR_20' ) end [2025-04-26 15:56:19] Production.INFO: ProcessCDR(1,14995339,1,1,2) [2025-04-26 15:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995339', 'tblTempUsageDetail_20' ) start [2025-04-26 15:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995339', 'tblTempUsageDetail_20' ) end [2025-04-26 15:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 15:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 15:56:22] Production.INFO: ==30877== Releasing lock... [2025-04-26 15:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 15:56:22] Production.INFO: 42 MB #Memory Used# [2025-04-26 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 12:57:05 [end_date_ymd] => 2025-04-26 15:57:05 [RateCDR] => 1 ) [2025-04-26 15:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 12:57:05' and `end` < '2025-04-26 15:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 15:57:18] Production.INFO: count ==1836 [2025-04-26 15:57:19] Production.ERROR: pbx CDR StartTime 2025-04-26 12:57:05 - End Time 2025-04-26 15:57:05 [2025-04-26 15:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 15:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995344', 'tblTempUsageDetail_20' ) start [2025-04-26 15:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995344', 'tblTempUsageDetail_20' ) end [2025-04-26 15:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995344', 'tblTempVendorCDR_20' ) start [2025-04-26 15:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995344', 'tblTempVendorCDR_20' ) end [2025-04-26 15:57:19] Production.INFO: ProcessCDR(1,14995344,1,1,2) [2025-04-26 15:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995344', 'tblTempUsageDetail_20' ) start [2025-04-26 15:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995344', 'tblTempUsageDetail_20' ) end [2025-04-26 15:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 15:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 15:57:22] Production.INFO: ==30952== Releasing lock... [2025-04-26 15:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 15:57:22] Production.INFO: 42.25 MB #Memory Used# [2025-04-26 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 12:58:05 [end_date_ymd] => 2025-04-26 15:58:05 [RateCDR] => 1 ) [2025-04-26 15:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 12:58:05' and `end` < '2025-04-26 15:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 15:58:18] Production.INFO: count ==1834 [2025-04-26 15:58:19] Production.ERROR: pbx CDR StartTime 2025-04-26 12:58:05 - End Time 2025-04-26 15:58:05 [2025-04-26 15:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995349', 'tblTempUsageDetail_20' ) start [2025-04-26 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995349', 'tblTempUsageDetail_20' ) end [2025-04-26 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995349', 'tblTempVendorCDR_20' ) start [2025-04-26 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995349', 'tblTempVendorCDR_20' ) end [2025-04-26 15:58:19] Production.INFO: ProcessCDR(1,14995349,1,1,2) [2025-04-26 15:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995349', 'tblTempUsageDetail_20' ) start [2025-04-26 15:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995349', 'tblTempUsageDetail_20' ) end [2025-04-26 15:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 15:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 15:58:22] Production.INFO: ==31022== Releasing lock... [2025-04-26 15:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 15:58:22] Production.INFO: 41.75 MB #Memory Used# [2025-04-26 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 12:59:05 [end_date_ymd] => 2025-04-26 15:59:05 [RateCDR] => 1 ) [2025-04-26 15:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 12:59:05' and `end` < '2025-04-26 15:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 15:59:18] Production.INFO: count ==1831 [2025-04-26 15:59:19] Production.ERROR: pbx CDR StartTime 2025-04-26 12:59:05 - End Time 2025-04-26 15:59:05 [2025-04-26 15:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 15:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995354', 'tblTempUsageDetail_20' ) start [2025-04-26 15:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995354', 'tblTempUsageDetail_20' ) end [2025-04-26 15:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995354', 'tblTempVendorCDR_20' ) start [2025-04-26 15:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995354', 'tblTempVendorCDR_20' ) end [2025-04-26 15:59:19] Production.INFO: ProcessCDR(1,14995354,1,1,2) [2025-04-26 15:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 15:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 15:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995354', 'tblTempUsageDetail_20' ) start [2025-04-26 15:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995354', 'tblTempUsageDetail_20' ) end [2025-04-26 15:59:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 15:59:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 15:59:24] Production.INFO: ==31100== Releasing lock... [2025-04-26 15:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 15:59:24] Production.INFO: 42 MB #Memory Used# [2025-04-26 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 13:00:06 [end_date_ymd] => 2025-04-26 16:00:06 [RateCDR] => 1 ) [2025-04-26 16:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 13:00:06' and `end` < '2025-04-26 16:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 16:00:19] Production.INFO: count ==1829 [2025-04-26 16:00:20] Production.ERROR: pbx CDR StartTime 2025-04-26 13:00:06 - End Time 2025-04-26 16:00:06 [2025-04-26 16:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 16:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995360', 'tblTempUsageDetail_20' ) start [2025-04-26 16:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995360', 'tblTempUsageDetail_20' ) end [2025-04-26 16:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995360', 'tblTempVendorCDR_20' ) start [2025-04-26 16:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995360', 'tblTempVendorCDR_20' ) end [2025-04-26 16:00:20] Production.INFO: ProcessCDR(1,14995360,1,1,2) [2025-04-26 16:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995360', 'tblTempUsageDetail_20' ) start [2025-04-26 16:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995360', 'tblTempUsageDetail_20' ) end [2025-04-26 16:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 16:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 16:00:23] Production.INFO: ==31178== Releasing lock... [2025-04-26 16:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 16:00:23] Production.INFO: 42 MB #Memory Used# [2025-04-26 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 13:01:05 [end_date_ymd] => 2025-04-26 16:01:05 [RateCDR] => 1 ) [2025-04-26 16:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 13:01:05' and `end` < '2025-04-26 16:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 16:01:18] Production.INFO: count ==1824 [2025-04-26 16:01:19] Production.ERROR: pbx CDR StartTime 2025-04-26 13:01:05 - End Time 2025-04-26 16:01:05 [2025-04-26 16:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 16:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995365', 'tblTempUsageDetail_20' ) start [2025-04-26 16:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995365', 'tblTempUsageDetail_20' ) end [2025-04-26 16:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995365', 'tblTempVendorCDR_20' ) start [2025-04-26 16:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995365', 'tblTempVendorCDR_20' ) end [2025-04-26 16:01:19] Production.INFO: ProcessCDR(1,14995365,1,1,2) [2025-04-26 16:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995365', 'tblTempUsageDetail_20' ) start [2025-04-26 16:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995365', 'tblTempUsageDetail_20' ) end [2025-04-26 16:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 16:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 16:01:22] Production.INFO: ==31268== Releasing lock... [2025-04-26 16:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 16:01:22] Production.INFO: 42.25 MB #Memory Used# [2025-04-26 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 13:02:05 [end_date_ymd] => 2025-04-26 16:02:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 13:02:05' and `end` < '2025-04-26 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-04-26 16:02:17] Production.INFO: count ==1822 [2025-04-26 16:02:18] Production.ERROR: pbx CDR StartTime 2025-04-26 13:02:05 - End Time 2025-04-26 16:02:05 [2025-04-26 16:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 16:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995370', 'tblTempUsageDetail_20' ) start [2025-04-26 16:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995370', 'tblTempUsageDetail_20' ) end [2025-04-26 16:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995370', 'tblTempVendorCDR_20' ) start [2025-04-26 16:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995370', 'tblTempVendorCDR_20' ) end [2025-04-26 16:02:18] Production.INFO: ProcessCDR(1,14995370,1,1,2) [2025-04-26 16:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995370', 'tblTempUsageDetail_20' ) start [2025-04-26 16:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995370', 'tblTempUsageDetail_20' ) end [2025-04-26 16:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 16:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 16:02:21] Production.INFO: ==31338== Releasing lock... [2025-04-26 16:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 16:02:21] Production.INFO: 41.75 MB #Memory Used# [2025-04-26 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 13:03:05 [end_date_ymd] => 2025-04-26 16:03:05 [RateCDR] => 1 ) [2025-04-26 16:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 13:03:05' and `end` < '2025-04-26 16:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 16:03:18] Production.INFO: count ==1828 [2025-04-26 16:03:18] Production.ERROR: pbx CDR StartTime 2025-04-26 13:03:05 - End Time 2025-04-26 16:03:05 [2025-04-26 16:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995375', 'tblTempUsageDetail_20' ) start [2025-04-26 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995375', 'tblTempUsageDetail_20' ) end [2025-04-26 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995375', 'tblTempVendorCDR_20' ) start [2025-04-26 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995375', 'tblTempVendorCDR_20' ) end [2025-04-26 16:03:18] Production.INFO: ProcessCDR(1,14995375,1,1,2) [2025-04-26 16:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995375', 'tblTempUsageDetail_20' ) start [2025-04-26 16:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995375', 'tblTempUsageDetail_20' ) end [2025-04-26 16:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 16:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 16:03:22] Production.INFO: ==31414== Releasing lock... [2025-04-26 16:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 16:03:22] Production.INFO: 41.75 MB #Memory Used# [2025-04-26 16:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 13:04:06 [end_date_ymd] => 2025-04-26 16:04:06 [RateCDR] => 1 ) [2025-04-26 16:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 13:04:06' and `end` < '2025-04-26 16:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 16:04:19] Production.INFO: count ==1824 [2025-04-26 16:04:19] Production.ERROR: pbx CDR StartTime 2025-04-26 13:04:06 - End Time 2025-04-26 16:04:06 [2025-04-26 16:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 16:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995380', 'tblTempUsageDetail_20' ) start [2025-04-26 16:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995380', 'tblTempUsageDetail_20' ) end [2025-04-26 16:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995380', 'tblTempVendorCDR_20' ) start [2025-04-26 16:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995380', 'tblTempVendorCDR_20' ) end [2025-04-26 16:04:20] Production.INFO: ProcessCDR(1,14995380,1,1,2) [2025-04-26 16:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995380', 'tblTempUsageDetail_20' ) start [2025-04-26 16:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995380', 'tblTempUsageDetail_20' ) end [2025-04-26 16:04:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 16:04:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 16:04:24] Production.INFO: ==31485== Releasing lock... [2025-04-26 16:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 16:04:24] Production.INFO: 42 MB #Memory Used# [2025-04-26 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 13:05:05 [end_date_ymd] => 2025-04-26 16:05:05 [RateCDR] => 1 ) [2025-04-26 16:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 13:05:05' and `end` < '2025-04-26 16:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 16:05:18] Production.INFO: count ==1817 [2025-04-26 16:05:19] Production.ERROR: pbx CDR StartTime 2025-04-26 13:05:05 - End Time 2025-04-26 16:05:05 [2025-04-26 16:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 16:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995385', 'tblTempUsageDetail_20' ) start [2025-04-26 16:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995385', 'tblTempUsageDetail_20' ) end [2025-04-26 16:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995385', 'tblTempVendorCDR_20' ) start [2025-04-26 16:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995385', 'tblTempVendorCDR_20' ) end [2025-04-26 16:05:19] Production.INFO: ProcessCDR(1,14995385,1,1,2) [2025-04-26 16:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995385', 'tblTempUsageDetail_20' ) start [2025-04-26 16:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995385', 'tblTempUsageDetail_20' ) end [2025-04-26 16:05:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 16:05:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 16:05:24] Production.INFO: ==31559== Releasing lock... [2025-04-26 16:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 16:05:24] Production.INFO: 41.75 MB #Memory Used# [2025-04-26 16:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 13:06:06 [end_date_ymd] => 2025-04-26 16:06:06 [RateCDR] => 1 ) [2025-04-26 16:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 13:06:06' and `end` < '2025-04-26 16:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 16:06:19] Production.INFO: count ==1816 [2025-04-26 16:06:19] Production.ERROR: pbx CDR StartTime 2025-04-26 13:06:06 - End Time 2025-04-26 16:06:06 [2025-04-26 16:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 16:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995390', 'tblTempUsageDetail_20' ) start [2025-04-26 16:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995390', 'tblTempUsageDetail_20' ) end [2025-04-26 16:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995390', 'tblTempVendorCDR_20' ) start [2025-04-26 16:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995390', 'tblTempVendorCDR_20' ) end [2025-04-26 16:06:19] Production.INFO: ProcessCDR(1,14995390,1,1,2) [2025-04-26 16:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995390', 'tblTempUsageDetail_20' ) start [2025-04-26 16:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995390', 'tblTempUsageDetail_20' ) end [2025-04-26 16:06:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 16:06:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 16:06:24] Production.INFO: ==31639== Releasing lock... [2025-04-26 16:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 16:06:24] Production.INFO: 41.75 MB #Memory Used# [2025-04-26 16:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 13:07:05 [end_date_ymd] => 2025-04-26 16:07:05 [RateCDR] => 1 ) [2025-04-26 16:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 13:07:05' and `end` < '2025-04-26 16:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 16:07:18] Production.INFO: count ==1825 [2025-04-26 16:07:18] Production.ERROR: pbx CDR StartTime 2025-04-26 13:07:05 - End Time 2025-04-26 16:07:05 [2025-04-26 16:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 16:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995395', 'tblTempUsageDetail_20' ) start [2025-04-26 16:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995395', 'tblTempUsageDetail_20' ) end [2025-04-26 16:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995395', 'tblTempVendorCDR_20' ) start [2025-04-26 16:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995395', 'tblTempVendorCDR_20' ) end [2025-04-26 16:07:18] Production.INFO: ProcessCDR(1,14995395,1,1,2) [2025-04-26 16:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995395', 'tblTempUsageDetail_20' ) start [2025-04-26 16:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995395', 'tblTempUsageDetail_20' ) end [2025-04-26 16:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 16:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 16:07:23] Production.INFO: ==31716== Releasing lock... [2025-04-26 16:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 16:07:23] Production.INFO: 42.25 MB #Memory Used# [2025-04-26 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 13:08:05 [end_date_ymd] => 2025-04-26 16:08:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 13:08:05' and `end` < '2025-04-26 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-04-26 16:08:18] Production.INFO: count ==1834 [2025-04-26 16:08:19] Production.ERROR: pbx CDR StartTime 2025-04-26 13:08:05 - End Time 2025-04-26 16:08:05 [2025-04-26 16:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995400', 'tblTempUsageDetail_20' ) start [2025-04-26 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995400', 'tblTempUsageDetail_20' ) end [2025-04-26 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995400', 'tblTempVendorCDR_20' ) start [2025-04-26 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995400', 'tblTempVendorCDR_20' ) end [2025-04-26 16:08:19] Production.INFO: ProcessCDR(1,14995400,1,1,2) [2025-04-26 16:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995400', 'tblTempUsageDetail_20' ) start [2025-04-26 16:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995400', 'tblTempUsageDetail_20' ) end [2025-04-26 16:08:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 16:08:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 16:08:24] Production.INFO: ==31791== Releasing lock... [2025-04-26 16:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 16:08:24] Production.INFO: 41.75 MB #Memory Used# [2025-04-26 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 13:09:05 [end_date_ymd] => 2025-04-26 16:09:05 [RateCDR] => 1 ) [2025-04-26 16:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 13:09:05' and `end` < '2025-04-26 16:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 16:09:18] Production.INFO: count ==1837 [2025-04-26 16:09:18] Production.ERROR: pbx CDR StartTime 2025-04-26 13:09:05 - End Time 2025-04-26 16:09:05 [2025-04-26 16:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 16:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995405', 'tblTempUsageDetail_20' ) start [2025-04-26 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995405', 'tblTempUsageDetail_20' ) end [2025-04-26 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995405', 'tblTempVendorCDR_20' ) start [2025-04-26 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995405', 'tblTempVendorCDR_20' ) end [2025-04-26 16:09:19] Production.INFO: ProcessCDR(1,14995405,1,1,2) [2025-04-26 16:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995405', 'tblTempUsageDetail_20' ) start [2025-04-26 16:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995405', 'tblTempUsageDetail_20' ) end [2025-04-26 16:09:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 16:09:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 16:09:24] Production.INFO: ==31866== Releasing lock... [2025-04-26 16:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 16:09:24] Production.INFO: 42 MB #Memory Used# [2025-04-26 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 13:10:06 [end_date_ymd] => 2025-04-26 16:10:06 [RateCDR] => 1 ) [2025-04-26 16:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 13:10:06' and `end` < '2025-04-26 16:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 16:10:19] Production.INFO: count ==1829 [2025-04-26 16:10:19] Production.ERROR: pbx CDR StartTime 2025-04-26 13:10:06 - End Time 2025-04-26 16:10:06 [2025-04-26 16:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 16:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995411', 'tblTempUsageDetail_20' ) start [2025-04-26 16:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995411', 'tblTempUsageDetail_20' ) end [2025-04-26 16:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995411', 'tblTempVendorCDR_20' ) start [2025-04-26 16:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995411', 'tblTempVendorCDR_20' ) end [2025-04-26 16:10:20] Production.INFO: ProcessCDR(1,14995411,1,1,2) [2025-04-26 16:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995411', 'tblTempUsageDetail_20' ) start [2025-04-26 16:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995411', 'tblTempUsageDetail_20' ) end [2025-04-26 16:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 16:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 16:10:24] Production.INFO: ==31977== Releasing lock... [2025-04-26 16:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 16:10:24] Production.INFO: 42.25 MB #Memory Used# [2025-04-26 16:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 13:11:06 [end_date_ymd] => 2025-04-26 16:11:06 [RateCDR] => 1 ) [2025-04-26 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-04-26 13:11:06' and `end` < '2025-04-26 16:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 16:11:19] Production.INFO: count ==1871 [2025-04-26 16:11:20] Production.ERROR: pbx CDR StartTime 2025-04-26 13:11:06 - End Time 2025-04-26 16:11:06 [2025-04-26 16:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 16:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995416', 'tblTempUsageDetail_20' ) start [2025-04-26 16:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995416', 'tblTempUsageDetail_20' ) end [2025-04-26 16:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995416', 'tblTempVendorCDR_20' ) start [2025-04-26 16:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995416', 'tblTempVendorCDR_20' ) end [2025-04-26 16:11:20] Production.INFO: ProcessCDR(1,14995416,1,1,2) [2025-04-26 16:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995416', 'tblTempUsageDetail_20' ) start [2025-04-26 16:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995416', 'tblTempUsageDetail_20' ) end [2025-04-26 16:11:25] Production.ERROR: pbx prc_insertCDR start [2025-04-26 16:11:25] Production.ERROR: pbx prc_insertCDR end [2025-04-26 16:11:25] Production.INFO: ==32058== Releasing lock... [2025-04-26 16:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 16:11:25] Production.INFO: 42.25 MB #Memory Used# [2025-04-26 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 13:12:05 [end_date_ymd] => 2025-04-26 16:12:05 [RateCDR] => 1 ) [2025-04-26 16:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 13:12:05' and `end` < '2025-04-26 16:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 16:12:18] Production.INFO: count ==1870 [2025-04-26 16:12:19] Production.ERROR: pbx CDR StartTime 2025-04-26 13:12:05 - End Time 2025-04-26 16:12:05 [2025-04-26 16:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 16:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995421', 'tblTempUsageDetail_20' ) start [2025-04-26 16:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995421', 'tblTempUsageDetail_20' ) end [2025-04-26 16:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995421', 'tblTempVendorCDR_20' ) start [2025-04-26 16:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995421', 'tblTempVendorCDR_20' ) end [2025-04-26 16:12:19] Production.INFO: ProcessCDR(1,14995421,1,1,2) [2025-04-26 16:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995421', 'tblTempUsageDetail_20' ) start [2025-04-26 16:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995421', 'tblTempUsageDetail_20' ) end [2025-04-26 16:12:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 16:12:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 16:12:24] Production.INFO: ==32134== Releasing lock... [2025-04-26 16:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 16:12:24] Production.INFO: 42.25 MB #Memory Used# [2025-04-26 16:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 13:13:04 [end_date_ymd] => 2025-04-26 16:13:04 [RateCDR] => 1 ) [2025-04-26 16:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 13:13:04' and `end` < '2025-04-26 16:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 16:13:17] Production.INFO: count ==1871 [2025-04-26 16:13:18] Production.ERROR: pbx CDR StartTime 2025-04-26 13:13:04 - End Time 2025-04-26 16:13:04 [2025-04-26 16:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 16:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995426', 'tblTempUsageDetail_20' ) start [2025-04-26 16:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995426', 'tblTempUsageDetail_20' ) end [2025-04-26 16:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995426', 'tblTempVendorCDR_20' ) start [2025-04-26 16:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995426', 'tblTempVendorCDR_20' ) end [2025-04-26 16:13:18] Production.INFO: ProcessCDR(1,14995426,1,1,2) [2025-04-26 16:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995426', 'tblTempUsageDetail_20' ) start [2025-04-26 16:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995426', 'tblTempUsageDetail_20' ) end [2025-04-26 16:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 16:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 16:13:23] Production.INFO: ==32203== Releasing lock... [2025-04-26 16:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 16:13:23] Production.INFO: 42.25 MB #Memory Used# [2025-04-26 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 13:14:05 [end_date_ymd] => 2025-04-26 16:14:05 [RateCDR] => 1 ) [2025-04-26 16:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 13:14:05' and `end` < '2025-04-26 16:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 16:14:18] Production.INFO: count ==1867 [2025-04-26 16:14:19] Production.ERROR: pbx CDR StartTime 2025-04-26 13:14:05 - End Time 2025-04-26 16:14:05 [2025-04-26 16:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 16:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995431', 'tblTempUsageDetail_20' ) start [2025-04-26 16:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995431', 'tblTempUsageDetail_20' ) end [2025-04-26 16:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995431', 'tblTempVendorCDR_20' ) start [2025-04-26 16:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995431', 'tblTempVendorCDR_20' ) end [2025-04-26 16:14:19] Production.INFO: ProcessCDR(1,14995431,1,1,2) [2025-04-26 16:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995431', 'tblTempUsageDetail_20' ) start [2025-04-26 16:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995431', 'tblTempUsageDetail_20' ) end [2025-04-26 16:14:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 16:14:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 16:14:24] Production.INFO: ==32274== Releasing lock... [2025-04-26 16:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 16:14:24] Production.INFO: 42.25 MB #Memory Used# [2025-04-26 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 13:15:05 [end_date_ymd] => 2025-04-26 16:15:05 [RateCDR] => 1 ) [2025-04-26 16:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 13:15:05' and `end` < '2025-04-26 16:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 16:15:18] Production.INFO: count ==1861 [2025-04-26 16:15:19] Production.ERROR: pbx CDR StartTime 2025-04-26 13:15:05 - End Time 2025-04-26 16:15:05 [2025-04-26 16:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 16:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995436', 'tblTempUsageDetail_20' ) start [2025-04-26 16:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995436', 'tblTempUsageDetail_20' ) end [2025-04-26 16:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995436', 'tblTempVendorCDR_20' ) start [2025-04-26 16:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995436', 'tblTempVendorCDR_20' ) end [2025-04-26 16:15:19] Production.INFO: ProcessCDR(1,14995436,1,1,2) [2025-04-26 16:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995436', 'tblTempUsageDetail_20' ) start [2025-04-26 16:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995436', 'tblTempUsageDetail_20' ) end [2025-04-26 16:15:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 16:15:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 16:15:24] Production.INFO: ==32365== Releasing lock... [2025-04-26 16:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 16:15:24] Production.INFO: 42 MB #Memory Used# [2025-04-26 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 13:16:05 [end_date_ymd] => 2025-04-26 16:16:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 13:16:05' and `end` < '2025-04-26 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-04-26 16:16:18] Production.INFO: count ==1865 [2025-04-26 16:16:18] Production.ERROR: pbx CDR StartTime 2025-04-26 13:16:05 - End Time 2025-04-26 16:16:05 [2025-04-26 16:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 16:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995441', 'tblTempUsageDetail_20' ) start [2025-04-26 16:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995441', 'tblTempUsageDetail_20' ) end [2025-04-26 16:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995441', 'tblTempVendorCDR_20' ) start [2025-04-26 16:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995441', 'tblTempVendorCDR_20' ) end [2025-04-26 16:16:18] Production.INFO: ProcessCDR(1,14995441,1,1,2) [2025-04-26 16:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995441', 'tblTempUsageDetail_20' ) start [2025-04-26 16:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995441', 'tblTempUsageDetail_20' ) end [2025-04-26 16:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 16:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 16:16:23] Production.INFO: ==32443== Releasing lock... [2025-04-26 16:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 16:16:23] Production.INFO: 42.5 MB #Memory Used# [2025-04-26 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 13:17:05 [end_date_ymd] => 2025-04-26 16:17:05 [RateCDR] => 1 ) [2025-04-26 16:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 13:17:05' and `end` < '2025-04-26 16:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 16:17:18] Production.INFO: count ==1866 [2025-04-26 16:17:18] Production.ERROR: pbx CDR StartTime 2025-04-26 13:17:05 - End Time 2025-04-26 16:17:05 [2025-04-26 16:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 16:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995446', 'tblTempUsageDetail_20' ) start [2025-04-26 16:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995446', 'tblTempUsageDetail_20' ) end [2025-04-26 16:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995446', 'tblTempVendorCDR_20' ) start [2025-04-26 16:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995446', 'tblTempVendorCDR_20' ) end [2025-04-26 16:17:18] Production.INFO: ProcessCDR(1,14995446,1,1,2) [2025-04-26 16:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995446', 'tblTempUsageDetail_20' ) start [2025-04-26 16:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995446', 'tblTempUsageDetail_20' ) end [2025-04-26 16:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 16:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 16:17:23] Production.INFO: ==32521== Releasing lock... [2025-04-26 16:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 16:17:23] Production.INFO: 42.25 MB #Memory Used# [2025-04-26 16:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 13:18:04 [end_date_ymd] => 2025-04-26 16:18:04 [RateCDR] => 1 ) [2025-04-26 16: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-04-26 13:18:04' and `end` < '2025-04-26 16:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 16:18:17] Production.INFO: count ==1871 [2025-04-26 16:18:18] Production.ERROR: pbx CDR StartTime 2025-04-26 13:18:04 - End Time 2025-04-26 16:18:04 [2025-04-26 16:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 16:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995451', 'tblTempUsageDetail_20' ) start [2025-04-26 16:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995451', 'tblTempUsageDetail_20' ) end [2025-04-26 16:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995451', 'tblTempVendorCDR_20' ) start [2025-04-26 16:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995451', 'tblTempVendorCDR_20' ) end [2025-04-26 16:18:18] Production.INFO: ProcessCDR(1,14995451,1,1,2) [2025-04-26 16:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995451', 'tblTempUsageDetail_20' ) start [2025-04-26 16:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995451', 'tblTempUsageDetail_20' ) end [2025-04-26 16:18:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 16:18:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 16:18:23] Production.INFO: ==32595== Releasing lock... [2025-04-26 16:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 16:18:23] Production.INFO: 42.5 MB #Memory Used# [2025-04-26 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 13:19:05 [end_date_ymd] => 2025-04-26 16:19:05 [RateCDR] => 1 ) [2025-04-26 16:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 13:19:05' and `end` < '2025-04-26 16:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 16:19:18] Production.INFO: count ==1871 [2025-04-26 16:19:19] Production.ERROR: pbx CDR StartTime 2025-04-26 13:19:05 - End Time 2025-04-26 16:19:05 [2025-04-26 16:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 16:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995456', 'tblTempUsageDetail_20' ) start [2025-04-26 16:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995456', 'tblTempUsageDetail_20' ) end [2025-04-26 16:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995456', 'tblTempVendorCDR_20' ) start [2025-04-26 16:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995456', 'tblTempVendorCDR_20' ) end [2025-04-26 16:19:19] Production.INFO: ProcessCDR(1,14995456,1,1,2) [2025-04-26 16:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995456', 'tblTempUsageDetail_20' ) start [2025-04-26 16:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995456', 'tblTempUsageDetail_20' ) end [2025-04-26 16:19:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 16:19:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 16:19:24] Production.INFO: ==32670== Releasing lock... [2025-04-26 16:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 16:19:24] Production.INFO: 42.5 MB #Memory Used# [2025-04-26 16:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 13:20:05 [end_date_ymd] => 2025-04-26 16:20:05 [RateCDR] => 1 ) [2025-04-26 16:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 13:20:05' and `end` < '2025-04-26 16:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 16:20:18] Production.INFO: count ==1868 [2025-04-26 16:20:18] Production.ERROR: pbx CDR StartTime 2025-04-26 13:20:05 - End Time 2025-04-26 16:20:05 [2025-04-26 16:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 16:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995462', 'tblTempUsageDetail_20' ) start [2025-04-26 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995462', 'tblTempUsageDetail_20' ) end [2025-04-26 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995462', 'tblTempVendorCDR_20' ) start [2025-04-26 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995462', 'tblTempVendorCDR_20' ) end [2025-04-26 16:20:19] Production.INFO: ProcessCDR(1,14995462,1,1,2) [2025-04-26 16:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995462', 'tblTempUsageDetail_20' ) start [2025-04-26 16:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995462', 'tblTempUsageDetail_20' ) end [2025-04-26 16:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 16:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 16:20:23] Production.INFO: ==32748== Releasing lock... [2025-04-26 16:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 16:20:23] Production.INFO: 42 MB #Memory Used# [2025-04-26 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 13:21:05 [end_date_ymd] => 2025-04-26 16:21:05 [RateCDR] => 1 ) [2025-04-26 16:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 13:21:05' and `end` < '2025-04-26 16:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 16:21:18] Production.INFO: count ==1877 [2025-04-26 16:21:18] Production.ERROR: pbx CDR StartTime 2025-04-26 13:21:05 - End Time 2025-04-26 16:21:05 [2025-04-26 16:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995467', 'tblTempUsageDetail_20' ) start [2025-04-26 16:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995467', 'tblTempUsageDetail_20' ) end [2025-04-26 16:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995467', 'tblTempVendorCDR_20' ) start [2025-04-26 16:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995467', 'tblTempVendorCDR_20' ) end [2025-04-26 16:21:19] Production.INFO: ProcessCDR(1,14995467,1,1,2) [2025-04-26 16:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995467', 'tblTempUsageDetail_20' ) start [2025-04-26 16:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995467', 'tblTempUsageDetail_20' ) end [2025-04-26 16:21:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 16:21:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 16:21:23] Production.INFO: ==378== Releasing lock... [2025-04-26 16:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 16:21:23] Production.INFO: 42.25 MB #Memory Used# [2025-04-26 16:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 13:22:06 [end_date_ymd] => 2025-04-26 16:22:06 [RateCDR] => 1 ) [2025-04-26 16:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 13:22:06' and `end` < '2025-04-26 16:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 16:22:19] Production.INFO: count ==1879 [2025-04-26 16:22:20] Production.ERROR: pbx CDR StartTime 2025-04-26 13:22:06 - End Time 2025-04-26 16:22:06 [2025-04-26 16:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 16:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995472', 'tblTempUsageDetail_20' ) start [2025-04-26 16:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995472', 'tblTempUsageDetail_20' ) end [2025-04-26 16:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995472', 'tblTempVendorCDR_20' ) start [2025-04-26 16:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995472', 'tblTempVendorCDR_20' ) end [2025-04-26 16:22:20] Production.INFO: ProcessCDR(1,14995472,1,1,2) [2025-04-26 16:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995472', 'tblTempUsageDetail_20' ) start [2025-04-26 16:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995472', 'tblTempUsageDetail_20' ) end [2025-04-26 16:22:25] Production.ERROR: pbx prc_insertCDR start [2025-04-26 16:22:25] Production.ERROR: pbx prc_insertCDR end [2025-04-26 16:22:25] Production.INFO: ==452== Releasing lock... [2025-04-26 16:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 16:22:25] Production.INFO: 42.25 MB #Memory Used# [2025-04-26 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 13:23:05 [end_date_ymd] => 2025-04-26 16:23:05 [RateCDR] => 1 ) [2025-04-26 16:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 13:23:05' and `end` < '2025-04-26 16:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 16:23:18] Production.INFO: count ==1882 [2025-04-26 16:23:19] Production.ERROR: pbx CDR StartTime 2025-04-26 13:23:05 - End Time 2025-04-26 16:23:05 [2025-04-26 16:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 16:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995477', 'tblTempUsageDetail_20' ) start [2025-04-26 16:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995477', 'tblTempUsageDetail_20' ) end [2025-04-26 16:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995477', 'tblTempVendorCDR_20' ) start [2025-04-26 16:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995477', 'tblTempVendorCDR_20' ) end [2025-04-26 16:23:19] Production.INFO: ProcessCDR(1,14995477,1,1,2) [2025-04-26 16:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995477', 'tblTempUsageDetail_20' ) start [2025-04-26 16:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995477', 'tblTempUsageDetail_20' ) end [2025-04-26 16:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 16:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 16:23:24] Production.INFO: ==528== Releasing lock... [2025-04-26 16:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 16:23:24] Production.INFO: 42.5 MB #Memory Used# [2025-04-26 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 13:24:05 [end_date_ymd] => 2025-04-26 16:24:05 [RateCDR] => 1 ) [2025-04-26 16:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 13:24:05' and `end` < '2025-04-26 16:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 16:24:18] Production.INFO: count ==1895 [2025-04-26 16:24:19] Production.ERROR: pbx CDR StartTime 2025-04-26 13:24:05 - End Time 2025-04-26 16:24:05 [2025-04-26 16:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 16:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995482', 'tblTempUsageDetail_20' ) start [2025-04-26 16:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995482', 'tblTempUsageDetail_20' ) end [2025-04-26 16:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995482', 'tblTempVendorCDR_20' ) start [2025-04-26 16:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995482', 'tblTempVendorCDR_20' ) end [2025-04-26 16:24:19] Production.INFO: ProcessCDR(1,14995482,1,1,2) [2025-04-26 16:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995482', 'tblTempUsageDetail_20' ) start [2025-04-26 16:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995482', 'tblTempUsageDetail_20' ) end [2025-04-26 16:24:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 16:24:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 16:24:24] Production.INFO: ==606== Releasing lock... [2025-04-26 16:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 16:24:24] Production.INFO: 42.25 MB #Memory Used# [2025-04-26 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 13:25:05 [end_date_ymd] => 2025-04-26 16:25:05 [RateCDR] => 1 ) [2025-04-26 16:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 13:25:05' and `end` < '2025-04-26 16:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 16:25:19] Production.INFO: count ==1892 [2025-04-26 16:25:19] Production.ERROR: pbx CDR StartTime 2025-04-26 13:25:05 - End Time 2025-04-26 16:25:05 [2025-04-26 16:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995487', 'tblTempUsageDetail_20' ) start [2025-04-26 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995487', 'tblTempUsageDetail_20' ) end [2025-04-26 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995487', 'tblTempVendorCDR_20' ) start [2025-04-26 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995487', 'tblTempVendorCDR_20' ) end [2025-04-26 16:25:19] Production.INFO: ProcessCDR(1,14995487,1,1,2) [2025-04-26 16:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995487', 'tblTempUsageDetail_20' ) start [2025-04-26 16:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995487', 'tblTempUsageDetail_20' ) end [2025-04-26 16:25:25] Production.ERROR: pbx prc_insertCDR start [2025-04-26 16:25:25] Production.ERROR: pbx prc_insertCDR end [2025-04-26 16:25:25] Production.INFO: ==754== Releasing lock... [2025-04-26 16:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 16:25:25] Production.INFO: 42.25 MB #Memory Used# [2025-04-26 16:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 13:26:06 [end_date_ymd] => 2025-04-26 16:26:06 [RateCDR] => 1 ) [2025-04-26 16:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 13:26:06' and `end` < '2025-04-26 16:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 16:26:19] Production.INFO: count ==1900 [2025-04-26 16:26:19] Production.ERROR: pbx CDR StartTime 2025-04-26 13:26:06 - End Time 2025-04-26 16:26:06 [2025-04-26 16:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 16:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995492', 'tblTempUsageDetail_20' ) start [2025-04-26 16:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995492', 'tblTempUsageDetail_20' ) end [2025-04-26 16:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995492', 'tblTempVendorCDR_20' ) start [2025-04-26 16:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995492', 'tblTempVendorCDR_20' ) end [2025-04-26 16:26:19] Production.INFO: ProcessCDR(1,14995492,1,1,2) [2025-04-26 16:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995492', 'tblTempUsageDetail_20' ) start [2025-04-26 16:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995492', 'tblTempUsageDetail_20' ) end [2025-04-26 16:26:25] Production.ERROR: pbx prc_insertCDR start [2025-04-26 16:26:25] Production.ERROR: pbx prc_insertCDR end [2025-04-26 16:26:25] Production.INFO: ==840== Releasing lock... [2025-04-26 16:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 16:26:25] Production.INFO: 42.25 MB #Memory Used# [2025-04-26 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 13:27:05 [end_date_ymd] => 2025-04-26 16:27:05 [RateCDR] => 1 ) [2025-04-26 16:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 13:27:05' and `end` < '2025-04-26 16:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 16:27:18] Production.INFO: count ==1911 [2025-04-26 16:27:18] Production.ERROR: pbx CDR StartTime 2025-04-26 13:27:05 - End Time 2025-04-26 16:27:05 [2025-04-26 16:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 16:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995497', 'tblTempUsageDetail_20' ) start [2025-04-26 16:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995497', 'tblTempUsageDetail_20' ) end [2025-04-26 16:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995497', 'tblTempVendorCDR_20' ) start [2025-04-26 16:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995497', 'tblTempVendorCDR_20' ) end [2025-04-26 16:27:19] Production.INFO: ProcessCDR(1,14995497,1,1,2) [2025-04-26 16:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995497', 'tblTempUsageDetail_20' ) start [2025-04-26 16:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995497', 'tblTempUsageDetail_20' ) end [2025-04-26 16:27:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 16:27:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 16:27:24] Production.INFO: ==918== Releasing lock... [2025-04-26 16:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 16:27:24] Production.INFO: 42.5 MB #Memory Used# [2025-04-26 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 13:28:05 [end_date_ymd] => 2025-04-26 16:28:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 13:28:05' and `end` < '2025-04-26 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-04-26 16:28:18] Production.INFO: count ==1916 [2025-04-26 16:28:19] Production.ERROR: pbx CDR StartTime 2025-04-26 13:28:05 - End Time 2025-04-26 16:28:05 [2025-04-26 16:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 16:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995502', 'tblTempUsageDetail_20' ) start [2025-04-26 16:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995502', 'tblTempUsageDetail_20' ) end [2025-04-26 16:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995502', 'tblTempVendorCDR_20' ) start [2025-04-26 16:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995502', 'tblTempVendorCDR_20' ) end [2025-04-26 16:28:19] Production.INFO: ProcessCDR(1,14995502,1,1,2) [2025-04-26 16:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995502', 'tblTempUsageDetail_20' ) start [2025-04-26 16:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995502', 'tblTempUsageDetail_20' ) end [2025-04-26 16:28:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 16:28:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 16:28:24] Production.INFO: ==997== Releasing lock... [2025-04-26 16:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 16:28:24] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 16:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 13:29:04 [end_date_ymd] => 2025-04-26 16:29:04 [RateCDR] => 1 ) [2025-04-26 16:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 13:29:04' and `end` < '2025-04-26 16:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 16:29:18] Production.INFO: count ==1919 [2025-04-26 16:29:18] Production.ERROR: pbx CDR StartTime 2025-04-26 13:29:04 - End Time 2025-04-26 16:29:04 [2025-04-26 16:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 16:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995507', 'tblTempUsageDetail_20' ) start [2025-04-26 16:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995507', 'tblTempUsageDetail_20' ) end [2025-04-26 16:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995507', 'tblTempVendorCDR_20' ) start [2025-04-26 16:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995507', 'tblTempVendorCDR_20' ) end [2025-04-26 16:29:18] Production.INFO: ProcessCDR(1,14995507,1,1,2) [2025-04-26 16:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995507', 'tblTempUsageDetail_20' ) start [2025-04-26 16:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995507', 'tblTempUsageDetail_20' ) end [2025-04-26 16:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 16:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 16:29:23] Production.INFO: ==1069== Releasing lock... [2025-04-26 16:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 16:29:23] Production.INFO: 42.5 MB #Memory Used# [2025-04-26 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 13:30:06 [end_date_ymd] => 2025-04-26 16:30:06 [RateCDR] => 1 ) [2025-04-26 16:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 13:30:06' and `end` < '2025-04-26 16:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 16:30:19] Production.INFO: count ==1921 [2025-04-26 16:30:20] Production.ERROR: pbx CDR StartTime 2025-04-26 13:30:06 - End Time 2025-04-26 16:30:06 [2025-04-26 16:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 16:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995513', 'tblTempUsageDetail_20' ) start [2025-04-26 16:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995513', 'tblTempUsageDetail_20' ) end [2025-04-26 16:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995513', 'tblTempVendorCDR_20' ) start [2025-04-26 16:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995513', 'tblTempVendorCDR_20' ) end [2025-04-26 16:30:20] Production.INFO: ProcessCDR(1,14995513,1,1,2) [2025-04-26 16:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995513', 'tblTempUsageDetail_20' ) start [2025-04-26 16:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995513', 'tblTempUsageDetail_20' ) end [2025-04-26 16:30:25] Production.ERROR: pbx prc_insertCDR start [2025-04-26 16:30:25] Production.ERROR: pbx prc_insertCDR end [2025-04-26 16:30:25] Production.INFO: ==1150== Releasing lock... [2025-04-26 16:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 16:30:25] Production.INFO: 42.5 MB #Memory Used# [2025-04-26 16:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 13:31:04 [end_date_ymd] => 2025-04-26 16:31:04 [RateCDR] => 1 ) [2025-04-26 16: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-04-26 13:31:04' and `end` < '2025-04-26 16: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-04-26 16:31:17] Production.INFO: count ==1944 [2025-04-26 16:31:18] Production.ERROR: pbx CDR StartTime 2025-04-26 13:31:04 - End Time 2025-04-26 16:31:04 [2025-04-26 16:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 16:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995518', 'tblTempUsageDetail_20' ) start [2025-04-26 16:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995518', 'tblTempUsageDetail_20' ) end [2025-04-26 16:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995518', 'tblTempVendorCDR_20' ) start [2025-04-26 16:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995518', 'tblTempVendorCDR_20' ) end [2025-04-26 16:31:18] Production.INFO: ProcessCDR(1,14995518,1,1,2) [2025-04-26 16:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995518', 'tblTempUsageDetail_20' ) start [2025-04-26 16:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995518', 'tblTempUsageDetail_20' ) end [2025-04-26 16:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 16:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 16:31:23] Production.INFO: ==1228== Releasing lock... [2025-04-26 16:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 16:31:23] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 16:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 13:32:04 [end_date_ymd] => 2025-04-26 16:32:04 [RateCDR] => 1 ) [2025-04-26 16:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 13:32:04' and `end` < '2025-04-26 16:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 16:32:17] Production.INFO: count ==1947 [2025-04-26 16:32:18] Production.ERROR: pbx CDR StartTime 2025-04-26 13:32:04 - End Time 2025-04-26 16:32:04 [2025-04-26 16:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 16:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995523', 'tblTempUsageDetail_20' ) start [2025-04-26 16:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995523', 'tblTempUsageDetail_20' ) end [2025-04-26 16:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995523', 'tblTempVendorCDR_20' ) start [2025-04-26 16:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995523', 'tblTempVendorCDR_20' ) end [2025-04-26 16:32:18] Production.INFO: ProcessCDR(1,14995523,1,1,2) [2025-04-26 16:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995523', 'tblTempUsageDetail_20' ) start [2025-04-26 16:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995523', 'tblTempUsageDetail_20' ) end [2025-04-26 16:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 16:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 16:32:23] Production.INFO: ==1321== Releasing lock... [2025-04-26 16:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 16:32:23] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 13:33:05 [end_date_ymd] => 2025-04-26 16:33:05 [RateCDR] => 1 ) [2025-04-26 16:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 13:33:05' and `end` < '2025-04-26 16:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 16:33:18] Production.INFO: count ==1948 [2025-04-26 16:33:19] Production.ERROR: pbx CDR StartTime 2025-04-26 13:33:05 - End Time 2025-04-26 16:33:05 [2025-04-26 16:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 16:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995528', 'tblTempUsageDetail_20' ) start [2025-04-26 16:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995528', 'tblTempUsageDetail_20' ) end [2025-04-26 16:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995528', 'tblTempVendorCDR_20' ) start [2025-04-26 16:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995528', 'tblTempVendorCDR_20' ) end [2025-04-26 16:33:19] Production.INFO: ProcessCDR(1,14995528,1,1,2) [2025-04-26 16:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995528', 'tblTempUsageDetail_20' ) start [2025-04-26 16:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995528', 'tblTempUsageDetail_20' ) end [2025-04-26 16:33:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 16:33:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 16:33:24] Production.INFO: ==1395== Releasing lock... [2025-04-26 16:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 16:33:24] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 13:34:05 [end_date_ymd] => 2025-04-26 16:34:05 [RateCDR] => 1 ) [2025-04-26 16:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 13:34:05' and `end` < '2025-04-26 16:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 16:34:18] Production.INFO: count ==1949 [2025-04-26 16:34:19] Production.ERROR: pbx CDR StartTime 2025-04-26 13:34:05 - End Time 2025-04-26 16:34:05 [2025-04-26 16:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 16:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995533', 'tblTempUsageDetail_20' ) start [2025-04-26 16:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995533', 'tblTempUsageDetail_20' ) end [2025-04-26 16:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995533', 'tblTempVendorCDR_20' ) start [2025-04-26 16:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995533', 'tblTempVendorCDR_20' ) end [2025-04-26 16:34:19] Production.INFO: ProcessCDR(1,14995533,1,1,2) [2025-04-26 16:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995533', 'tblTempUsageDetail_20' ) start [2025-04-26 16:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995533', 'tblTempUsageDetail_20' ) end [2025-04-26 16:34:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 16:34:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 16:34:24] Production.INFO: ==1477== Releasing lock... [2025-04-26 16:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 16:34:24] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 16:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 13:35:06 [end_date_ymd] => 2025-04-26 16:35:06 [RateCDR] => 1 ) [2025-04-26 16:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 13:35:06' and `end` < '2025-04-26 16:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 16:35:18] Production.INFO: count ==1953 [2025-04-26 16:35:19] Production.ERROR: pbx CDR StartTime 2025-04-26 13:35:06 - End Time 2025-04-26 16:35:06 [2025-04-26 16:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 16:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995538', 'tblTempUsageDetail_20' ) start [2025-04-26 16:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995538', 'tblTempUsageDetail_20' ) end [2025-04-26 16:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995538', 'tblTempVendorCDR_20' ) start [2025-04-26 16:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995538', 'tblTempVendorCDR_20' ) end [2025-04-26 16:35:19] Production.INFO: ProcessCDR(1,14995538,1,1,2) [2025-04-26 16:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995538', 'tblTempUsageDetail_20' ) start [2025-04-26 16:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995538', 'tblTempUsageDetail_20' ) end [2025-04-26 16:35:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 16:35:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 16:35:24] Production.INFO: ==1587== Releasing lock... [2025-04-26 16:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 16:35:24] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 13:36:05 [end_date_ymd] => 2025-04-26 16:36:05 [RateCDR] => 1 ) [2025-04-26 16:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 13:36:05' and `end` < '2025-04-26 16:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 16:36:18] Production.INFO: count ==1952 [2025-04-26 16:36:19] Production.ERROR: pbx CDR StartTime 2025-04-26 13:36:05 - End Time 2025-04-26 16:36:05 [2025-04-26 16:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 16:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995543', 'tblTempUsageDetail_20' ) start [2025-04-26 16:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995543', 'tblTempUsageDetail_20' ) end [2025-04-26 16:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995543', 'tblTempVendorCDR_20' ) start [2025-04-26 16:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995543', 'tblTempVendorCDR_20' ) end [2025-04-26 16:36:19] Production.INFO: ProcessCDR(1,14995543,1,1,2) [2025-04-26 16:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995543', 'tblTempUsageDetail_20' ) start [2025-04-26 16:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995543', 'tblTempUsageDetail_20' ) end [2025-04-26 16:36:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 16:36:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 16:36:24] Production.INFO: ==1657== Releasing lock... [2025-04-26 16:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 16:36:24] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 13:37:05 [end_date_ymd] => 2025-04-26 16:37:05 [RateCDR] => 1 ) [2025-04-26 16:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 13:37:05' and `end` < '2025-04-26 16:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 16:37:18] Production.INFO: count ==1963 [2025-04-26 16:37:19] Production.ERROR: pbx CDR StartTime 2025-04-26 13:37:05 - End Time 2025-04-26 16:37:05 [2025-04-26 16:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 16:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995548', 'tblTempUsageDetail_20' ) start [2025-04-26 16:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995548', 'tblTempUsageDetail_20' ) end [2025-04-26 16:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995548', 'tblTempVendorCDR_20' ) start [2025-04-26 16:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995548', 'tblTempVendorCDR_20' ) end [2025-04-26 16:37:19] Production.INFO: ProcessCDR(1,14995548,1,1,2) [2025-04-26 16:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995548', 'tblTempUsageDetail_20' ) start [2025-04-26 16:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995548', 'tblTempUsageDetail_20' ) end [2025-04-26 16:37:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 16:37:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 16:37:24] Production.INFO: ==1730== Releasing lock... [2025-04-26 16:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 16:37:24] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 13:38:05 [end_date_ymd] => 2025-04-26 16:38:05 [RateCDR] => 1 ) [2025-04-26 16:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 13:38:05' and `end` < '2025-04-26 16:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 16:38:18] Production.INFO: count ==1965 [2025-04-26 16:38:18] Production.ERROR: pbx CDR StartTime 2025-04-26 13:38:05 - End Time 2025-04-26 16:38:05 [2025-04-26 16:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 16:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995553', 'tblTempUsageDetail_20' ) start [2025-04-26 16:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995553', 'tblTempUsageDetail_20' ) end [2025-04-26 16:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995553', 'tblTempVendorCDR_20' ) start [2025-04-26 16:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995553', 'tblTempVendorCDR_20' ) end [2025-04-26 16:38:18] Production.INFO: ProcessCDR(1,14995553,1,1,2) [2025-04-26 16:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995553', 'tblTempUsageDetail_20' ) start [2025-04-26 16:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995553', 'tblTempUsageDetail_20' ) end [2025-04-26 16:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 16:38:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 16:38:24] Production.INFO: ==1806== Releasing lock... [2025-04-26 16:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 16:38:24] Production.INFO: 43 MB #Memory Used# [2025-04-26 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 13:39:05 [end_date_ymd] => 2025-04-26 16:39:05 [RateCDR] => 1 ) [2025-04-26 16:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 13:39:05' and `end` < '2025-04-26 16:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 16:39:18] Production.INFO: count ==1973 [2025-04-26 16:39:19] Production.ERROR: pbx CDR StartTime 2025-04-26 13:39:05 - End Time 2025-04-26 16:39:05 [2025-04-26 16:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 16:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995558', 'tblTempUsageDetail_20' ) start [2025-04-26 16:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995558', 'tblTempUsageDetail_20' ) end [2025-04-26 16:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995558', 'tblTempVendorCDR_20' ) start [2025-04-26 16:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995558', 'tblTempVendorCDR_20' ) end [2025-04-26 16:39:19] Production.INFO: ProcessCDR(1,14995558,1,1,2) [2025-04-26 16:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995558', 'tblTempUsageDetail_20' ) start [2025-04-26 16:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995558', 'tblTempUsageDetail_20' ) end [2025-04-26 16:39:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 16:39:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 16:39:24] Production.INFO: ==1891== Releasing lock... [2025-04-26 16:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 16:39:24] Production.INFO: 43 MB #Memory Used# [2025-04-26 16:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 13:40:05 [end_date_ymd] => 2025-04-26 16:40:05 [RateCDR] => 1 ) [2025-04-26 16:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 13:40:05' and `end` < '2025-04-26 16:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 16:40:18] Production.INFO: count ==1984 [2025-04-26 16:40:19] Production.ERROR: pbx CDR StartTime 2025-04-26 13:40:05 - End Time 2025-04-26 16:40:05 [2025-04-26 16:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 16:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995564', 'tblTempUsageDetail_20' ) start [2025-04-26 16:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995564', 'tblTempUsageDetail_20' ) end [2025-04-26 16:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995564', 'tblTempVendorCDR_20' ) start [2025-04-26 16:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995564', 'tblTempVendorCDR_20' ) end [2025-04-26 16:40:19] Production.INFO: ProcessCDR(1,14995564,1,1,2) [2025-04-26 16:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995564', 'tblTempUsageDetail_20' ) start [2025-04-26 16:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995564', 'tblTempUsageDetail_20' ) end [2025-04-26 16:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 16:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 16:40:24] Production.INFO: ==1963== Releasing lock... [2025-04-26 16:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 16:40:24] Production.INFO: 43 MB #Memory Used# [2025-04-26 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 13:41:05 [end_date_ymd] => 2025-04-26 16:41:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 13:41:05' and `end` < '2025-04-26 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-04-26 16:41:18] Production.INFO: count ==2021 [2025-04-26 16:41:19] Production.ERROR: pbx CDR StartTime 2025-04-26 13:41:05 - End Time 2025-04-26 16:41:05 [2025-04-26 16:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 16:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995569', 'tblTempUsageDetail_20' ) start [2025-04-26 16:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995569', 'tblTempUsageDetail_20' ) end [2025-04-26 16:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995569', 'tblTempVendorCDR_20' ) start [2025-04-26 16:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995569', 'tblTempVendorCDR_20' ) end [2025-04-26 16:41:19] Production.INFO: ProcessCDR(1,14995569,1,1,2) [2025-04-26 16:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995569', 'tblTempUsageDetail_20' ) start [2025-04-26 16:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995569', 'tblTempUsageDetail_20' ) end [2025-04-26 16:41:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 16:41:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 16:41:24] Production.INFO: ==2082== Releasing lock... [2025-04-26 16:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 16:41:24] Production.INFO: 43.25 MB #Memory Used# [2025-04-26 16:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 13:42:06 [end_date_ymd] => 2025-04-26 16:42:06 [RateCDR] => 1 ) [2025-04-26 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-04-26 13:42:06' and `end` < '2025-04-26 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-04-26 16:42:19] Production.INFO: count ==2016 [2025-04-26 16:42:19] Production.ERROR: pbx CDR StartTime 2025-04-26 13:42:06 - End Time 2025-04-26 16:42:06 [2025-04-26 16:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 16:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995574', 'tblTempUsageDetail_20' ) start [2025-04-26 16:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995574', 'tblTempUsageDetail_20' ) end [2025-04-26 16:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995574', 'tblTempVendorCDR_20' ) start [2025-04-26 16:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995574', 'tblTempVendorCDR_20' ) end [2025-04-26 16:42:20] Production.INFO: ProcessCDR(1,14995574,1,1,2) [2025-04-26 16:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995574', 'tblTempUsageDetail_20' ) start [2025-04-26 16:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995574', 'tblTempUsageDetail_20' ) end [2025-04-26 16:42:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 16:42:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 16:42:24] Production.INFO: ==2154== Releasing lock... [2025-04-26 16:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 16:42:24] Production.INFO: 43.25 MB #Memory Used# [2025-04-26 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 13:43:05 [end_date_ymd] => 2025-04-26 16:43:05 [RateCDR] => 1 ) [2025-04-26 16:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 13:43:05' and `end` < '2025-04-26 16:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 16:43:18] Production.INFO: count ==2027 [2025-04-26 16:43:18] Production.ERROR: pbx CDR StartTime 2025-04-26 13:43:05 - End Time 2025-04-26 16:43:05 [2025-04-26 16:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 16:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995579', 'tblTempUsageDetail_20' ) start [2025-04-26 16:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995579', 'tblTempUsageDetail_20' ) end [2025-04-26 16:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995579', 'tblTempVendorCDR_20' ) start [2025-04-26 16:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995579', 'tblTempVendorCDR_20' ) end [2025-04-26 16:43:19] Production.INFO: ProcessCDR(1,14995579,1,1,2) [2025-04-26 16:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995579', 'tblTempUsageDetail_20' ) start [2025-04-26 16:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995579', 'tblTempUsageDetail_20' ) end [2025-04-26 16:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 16:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 16:43:23] Production.INFO: ==2232== Releasing lock... [2025-04-26 16:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 16:43:23] Production.INFO: 43.5 MB #Memory Used# [2025-04-26 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 13:44:05 [end_date_ymd] => 2025-04-26 16:44:05 [RateCDR] => 1 ) [2025-04-26 16:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 13:44:05' and `end` < '2025-04-26 16:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 16:44:18] Production.INFO: count ==2031 [2025-04-26 16:44:18] Production.ERROR: pbx CDR StartTime 2025-04-26 13:44:05 - End Time 2025-04-26 16:44:05 [2025-04-26 16:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995584', 'tblTempUsageDetail_20' ) start [2025-04-26 16:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995584', 'tblTempUsageDetail_20' ) end [2025-04-26 16:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995584', 'tblTempVendorCDR_20' ) start [2025-04-26 16:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995584', 'tblTempVendorCDR_20' ) end [2025-04-26 16:44:19] Production.INFO: ProcessCDR(1,14995584,1,1,2) [2025-04-26 16:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995584', 'tblTempUsageDetail_20' ) start [2025-04-26 16:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995584', 'tblTempUsageDetail_20' ) end [2025-04-26 16:44:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 16:44:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 16:44:24] Production.INFO: ==2308== Releasing lock... [2025-04-26 16:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 16:44:24] Production.INFO: 43.5 MB #Memory Used# [2025-04-26 16:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 13:45:04 [end_date_ymd] => 2025-04-26 16:45:04 [RateCDR] => 1 ) [2025-04-26 16:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 13:45:04' and `end` < '2025-04-26 16:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 16:45:17] Production.INFO: count ==2037 [2025-04-26 16:45:18] Production.ERROR: pbx CDR StartTime 2025-04-26 13:45:04 - End Time 2025-04-26 16:45:04 [2025-04-26 16:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995589', 'tblTempUsageDetail_20' ) start [2025-04-26 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995589', 'tblTempUsageDetail_20' ) end [2025-04-26 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995589', 'tblTempVendorCDR_20' ) start [2025-04-26 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995589', 'tblTempVendorCDR_20' ) end [2025-04-26 16:45:18] Production.INFO: ProcessCDR(1,14995589,1,1,2) [2025-04-26 16:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995589', 'tblTempUsageDetail_20' ) start [2025-04-26 16:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995589', 'tblTempUsageDetail_20' ) end [2025-04-26 16:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 16:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 16:45:21] Production.INFO: ==2381== Releasing lock... [2025-04-26 16:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 16:45:21] Production.INFO: 43.5 MB #Memory Used# [2025-04-26 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 13:46:05 [end_date_ymd] => 2025-04-26 16:46:05 [RateCDR] => 1 ) [2025-04-26 16:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 13:46:05' and `end` < '2025-04-26 16:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 16:46:18] Production.INFO: count ==2040 [2025-04-26 16:46:19] Production.ERROR: pbx CDR StartTime 2025-04-26 13:46:05 - End Time 2025-04-26 16:46:05 [2025-04-26 16:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 16:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995594', 'tblTempUsageDetail_20' ) start [2025-04-26 16:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995594', 'tblTempUsageDetail_20' ) end [2025-04-26 16:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995594', 'tblTempVendorCDR_20' ) start [2025-04-26 16:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995594', 'tblTempVendorCDR_20' ) end [2025-04-26 16:46:19] Production.INFO: ProcessCDR(1,14995594,1,1,2) [2025-04-26 16:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995594', 'tblTempUsageDetail_20' ) start [2025-04-26 16:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995594', 'tblTempUsageDetail_20' ) end [2025-04-26 16:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 16:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 16:46:24] Production.INFO: ==2455== Releasing lock... [2025-04-26 16:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 16:46:24] Production.INFO: 43.5 MB #Memory Used# [2025-04-26 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 13:47:05 [end_date_ymd] => 2025-04-26 16:47:05 [RateCDR] => 1 ) [2025-04-26 16:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 13:47:05' and `end` < '2025-04-26 16:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 16:47:17] Production.INFO: count ==2041 [2025-04-26 16:47:18] Production.ERROR: pbx CDR StartTime 2025-04-26 13:47:05 - End Time 2025-04-26 16:47:05 [2025-04-26 16:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 16:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995599', 'tblTempUsageDetail_20' ) start [2025-04-26 16:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995599', 'tblTempUsageDetail_20' ) end [2025-04-26 16:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995599', 'tblTempVendorCDR_20' ) start [2025-04-26 16:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995599', 'tblTempVendorCDR_20' ) end [2025-04-26 16:47:18] Production.INFO: ProcessCDR(1,14995599,1,1,2) [2025-04-26 16:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995599', 'tblTempUsageDetail_20' ) start [2025-04-26 16:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995599', 'tblTempUsageDetail_20' ) end [2025-04-26 16:47:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 16:47:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 16:47:24] Production.INFO: ==2537== Releasing lock... [2025-04-26 16:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 16:47:24] Production.INFO: 43.5 MB #Memory Used# [2025-04-26 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 13:48:05 [end_date_ymd] => 2025-04-26 16:48:05 [RateCDR] => 1 ) [2025-04-26 16:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 13:48:05' and `end` < '2025-04-26 16:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 16:48:18] Production.INFO: count ==2040 [2025-04-26 16:48:19] Production.ERROR: pbx CDR StartTime 2025-04-26 13:48:05 - End Time 2025-04-26 16:48:05 [2025-04-26 16:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995604', 'tblTempUsageDetail_20' ) start [2025-04-26 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995604', 'tblTempUsageDetail_20' ) end [2025-04-26 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995604', 'tblTempVendorCDR_20' ) start [2025-04-26 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995604', 'tblTempVendorCDR_20' ) end [2025-04-26 16:48:19] Production.INFO: ProcessCDR(1,14995604,1,1,2) [2025-04-26 16:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995604', 'tblTempUsageDetail_20' ) start [2025-04-26 16:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995604', 'tblTempUsageDetail_20' ) end [2025-04-26 16:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 16:48:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 16:48:24] Production.INFO: ==2614== Releasing lock... [2025-04-26 16:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 16:48:24] Production.INFO: 43.5 MB #Memory Used# [2025-04-26 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 13:49:05 [end_date_ymd] => 2025-04-26 16:49:05 [RateCDR] => 1 ) [2025-04-26 16:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 13:49:05' and `end` < '2025-04-26 16:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 16:49:18] Production.INFO: count ==2045 [2025-04-26 16:49:19] Production.ERROR: pbx CDR StartTime 2025-04-26 13:49:05 - End Time 2025-04-26 16:49:05 [2025-04-26 16:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 16:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995609', 'tblTempUsageDetail_20' ) start [2025-04-26 16:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995609', 'tblTempUsageDetail_20' ) end [2025-04-26 16:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995609', 'tblTempVendorCDR_20' ) start [2025-04-26 16:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995609', 'tblTempVendorCDR_20' ) end [2025-04-26 16:49:19] Production.INFO: ProcessCDR(1,14995609,1,1,2) [2025-04-26 16:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995609', 'tblTempUsageDetail_20' ) start [2025-04-26 16:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995609', 'tblTempUsageDetail_20' ) end [2025-04-26 16:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 16:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 16:49:22] Production.INFO: ==2691== Releasing lock... [2025-04-26 16:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 16:49:22] Production.INFO: 43.5 MB #Memory Used# [2025-04-26 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 13:50:06 [end_date_ymd] => 2025-04-26 16:50:06 [RateCDR] => 1 ) [2025-04-26 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-04-26 13:50:06' and `end` < '2025-04-26 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-04-26 16:50:19] Production.INFO: count ==2049 [2025-04-26 16:50:19] Production.ERROR: pbx CDR StartTime 2025-04-26 13:50:06 - End Time 2025-04-26 16:50:06 [2025-04-26 16:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 16:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995614', 'tblTempUsageDetail_20' ) start [2025-04-26 16:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995614', 'tblTempUsageDetail_20' ) end [2025-04-26 16:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995614', 'tblTempVendorCDR_20' ) start [2025-04-26 16:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995614', 'tblTempVendorCDR_20' ) end [2025-04-26 16:50:20] Production.INFO: ProcessCDR(1,14995614,1,1,2) [2025-04-26 16:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995614', 'tblTempUsageDetail_20' ) start [2025-04-26 16:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995614', 'tblTempUsageDetail_20' ) end [2025-04-26 16:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 16:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 16:50:24] Production.INFO: ==2773== Releasing lock... [2025-04-26 16:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 16:50:24] Production.INFO: 43.5 MB #Memory Used# [2025-04-26 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 13:51:05 [end_date_ymd] => 2025-04-26 16:51:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 13:51:05' and `end` < '2025-04-26 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-04-26 16:51:18] Production.INFO: count ==2064 [2025-04-26 16:51:19] Production.ERROR: pbx CDR StartTime 2025-04-26 13:51:05 - End Time 2025-04-26 16:51:05 [2025-04-26 16:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 16:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995620', 'tblTempUsageDetail_20' ) start [2025-04-26 16:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995620', 'tblTempUsageDetail_20' ) end [2025-04-26 16:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995620', 'tblTempVendorCDR_20' ) start [2025-04-26 16:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995620', 'tblTempVendorCDR_20' ) end [2025-04-26 16:51:19] Production.INFO: ProcessCDR(1,14995620,1,1,2) [2025-04-26 16:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995620', 'tblTempUsageDetail_20' ) start [2025-04-26 16:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995620', 'tblTempUsageDetail_20' ) end [2025-04-26 16:51:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 16:51:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 16:51:24] Production.INFO: ==2847== Releasing lock... [2025-04-26 16:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 16:51:24] Production.INFO: 43.75 MB #Memory Used# [2025-04-26 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 13:52:05 [end_date_ymd] => 2025-04-26 16:52:05 [RateCDR] => 1 ) [2025-04-26 16:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 13:52:05' and `end` < '2025-04-26 16:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 16:52:18] Production.INFO: count ==2060 [2025-04-26 16:52:19] Production.ERROR: pbx CDR StartTime 2025-04-26 13:52:05 - End Time 2025-04-26 16:52:05 [2025-04-26 16:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 16:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995625', 'tblTempUsageDetail_20' ) start [2025-04-26 16:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995625', 'tblTempUsageDetail_20' ) end [2025-04-26 16:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995625', 'tblTempVendorCDR_20' ) start [2025-04-26 16:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995625', 'tblTempVendorCDR_20' ) end [2025-04-26 16:52:19] Production.INFO: ProcessCDR(1,14995625,1,1,2) [2025-04-26 16:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995625', 'tblTempUsageDetail_20' ) start [2025-04-26 16:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995625', 'tblTempUsageDetail_20' ) end [2025-04-26 16:52:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 16:52:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 16:52:24] Production.INFO: ==2924== Releasing lock... [2025-04-26 16:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 16:52:24] Production.INFO: 43.5 MB #Memory Used# [2025-04-26 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 13:53:05 [end_date_ymd] => 2025-04-26 16:53:05 [RateCDR] => 1 ) [2025-04-26 16:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 13:53:05' and `end` < '2025-04-26 16:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 16:53:18] Production.INFO: count ==2055 [2025-04-26 16:53:19] Production.ERROR: pbx CDR StartTime 2025-04-26 13:53:05 - End Time 2025-04-26 16:53:05 [2025-04-26 16:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 16:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995630', 'tblTempUsageDetail_20' ) start [2025-04-26 16:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995630', 'tblTempUsageDetail_20' ) end [2025-04-26 16:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995630', 'tblTempVendorCDR_20' ) start [2025-04-26 16:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995630', 'tblTempVendorCDR_20' ) end [2025-04-26 16:53:19] Production.INFO: ProcessCDR(1,14995630,1,1,2) [2025-04-26 16:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995630', 'tblTempUsageDetail_20' ) start [2025-04-26 16:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995630', 'tblTempUsageDetail_20' ) end [2025-04-26 16:53:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 16:53:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 16:53:24] Production.INFO: ==2997== Releasing lock... [2025-04-26 16:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 16:53:24] Production.INFO: 43.75 MB #Memory Used# [2025-04-26 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 13:54:05 [end_date_ymd] => 2025-04-26 16:54:05 [RateCDR] => 1 ) [2025-04-26 16:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 13:54:05' and `end` < '2025-04-26 16:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 16:54:18] Production.INFO: count ==2033 [2025-04-26 16:54:19] Production.ERROR: pbx CDR StartTime 2025-04-26 13:54:05 - End Time 2025-04-26 16:54:05 [2025-04-26 16:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 16:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995635', 'tblTempUsageDetail_20' ) start [2025-04-26 16:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995635', 'tblTempUsageDetail_20' ) end [2025-04-26 16:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995635', 'tblTempVendorCDR_20' ) start [2025-04-26 16:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995635', 'tblTempVendorCDR_20' ) end [2025-04-26 16:54:19] Production.INFO: ProcessCDR(1,14995635,1,1,2) [2025-04-26 16:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995635', 'tblTempUsageDetail_20' ) start [2025-04-26 16:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995635', 'tblTempUsageDetail_20' ) end [2025-04-26 16:54:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 16:54:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 16:54:24] Production.INFO: ==3071== Releasing lock... [2025-04-26 16:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 16:54:24] Production.INFO: 43.5 MB #Memory Used# [2025-04-26 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 13:55:05 [end_date_ymd] => 2025-04-26 16:55:05 [RateCDR] => 1 ) [2025-04-26 16:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 13:55:05' and `end` < '2025-04-26 16:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 16:55:19] Production.INFO: count ==2034 [2025-04-26 16:55:19] Production.ERROR: pbx CDR StartTime 2025-04-26 13:55:05 - End Time 2025-04-26 16:55:05 [2025-04-26 16:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 16:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995640', 'tblTempUsageDetail_20' ) start [2025-04-26 16:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995640', 'tblTempUsageDetail_20' ) end [2025-04-26 16:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995640', 'tblTempVendorCDR_20' ) start [2025-04-26 16:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995640', 'tblTempVendorCDR_20' ) end [2025-04-26 16:55:19] Production.INFO: ProcessCDR(1,14995640,1,1,2) [2025-04-26 16:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995640', 'tblTempUsageDetail_20' ) start [2025-04-26 16:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995640', 'tblTempUsageDetail_20' ) end [2025-04-26 16:55:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 16:55:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 16:55:24] Production.INFO: ==3146== Releasing lock... [2025-04-26 16:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 16:55:24] Production.INFO: 43.5 MB #Memory Used# [2025-04-26 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 13:56:05 [end_date_ymd] => 2025-04-26 16:56:05 [RateCDR] => 1 ) [2025-04-26 16:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 13:56:05' and `end` < '2025-04-26 16:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 16:56:18] Production.INFO: count ==2034 [2025-04-26 16:56:18] Production.ERROR: pbx CDR StartTime 2025-04-26 13:56:05 - End Time 2025-04-26 16:56:05 [2025-04-26 16:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 16:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995645', 'tblTempUsageDetail_20' ) start [2025-04-26 16:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995645', 'tblTempUsageDetail_20' ) end [2025-04-26 16:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995645', 'tblTempVendorCDR_20' ) start [2025-04-26 16:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995645', 'tblTempVendorCDR_20' ) end [2025-04-26 16:56:19] Production.INFO: ProcessCDR(1,14995645,1,1,2) [2025-04-26 16:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995645', 'tblTempUsageDetail_20' ) start [2025-04-26 16:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995645', 'tblTempUsageDetail_20' ) end [2025-04-26 16:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 16:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 16:56:23] Production.INFO: ==3259== Releasing lock... [2025-04-26 16:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 16:56:23] Production.INFO: 43.5 MB #Memory Used# [2025-04-26 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 13:57:05 [end_date_ymd] => 2025-04-26 16:57:05 [RateCDR] => 1 ) [2025-04-26 16:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 13:57:05' and `end` < '2025-04-26 16:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 16:57:18] Production.INFO: count ==2032 [2025-04-26 16:57:19] Production.ERROR: pbx CDR StartTime 2025-04-26 13:57:05 - End Time 2025-04-26 16:57:05 [2025-04-26 16:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 16:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995650', 'tblTempUsageDetail_20' ) start [2025-04-26 16:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995650', 'tblTempUsageDetail_20' ) end [2025-04-26 16:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995650', 'tblTempVendorCDR_20' ) start [2025-04-26 16:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995650', 'tblTempVendorCDR_20' ) end [2025-04-26 16:57:19] Production.INFO: ProcessCDR(1,14995650,1,1,2) [2025-04-26 16:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995650', 'tblTempUsageDetail_20' ) start [2025-04-26 16:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995650', 'tblTempUsageDetail_20' ) end [2025-04-26 16:57:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 16:57:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 16:57:24] Production.INFO: ==3328== Releasing lock... [2025-04-26 16:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 16:57:24] Production.INFO: 43.5 MB #Memory Used# [2025-04-26 16:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 13:58:06 [end_date_ymd] => 2025-04-26 16:58:06 [RateCDR] => 1 ) [2025-04-26 16:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 13:58:06' and `end` < '2025-04-26 16:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 16:58:19] Production.INFO: count ==2051 [2025-04-26 16:58:19] Production.ERROR: pbx CDR StartTime 2025-04-26 13:58:06 - End Time 2025-04-26 16:58:06 [2025-04-26 16:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 16:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995655', 'tblTempUsageDetail_20' ) start [2025-04-26 16:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995655', 'tblTempUsageDetail_20' ) end [2025-04-26 16:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995655', 'tblTempVendorCDR_20' ) start [2025-04-26 16:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995655', 'tblTempVendorCDR_20' ) end [2025-04-26 16:58:20] Production.INFO: ProcessCDR(1,14995655,1,1,2) [2025-04-26 16:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995655', 'tblTempUsageDetail_20' ) start [2025-04-26 16:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995655', 'tblTempUsageDetail_20' ) end [2025-04-26 16:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 16:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 16:58:23] Production.INFO: ==3405== Releasing lock... [2025-04-26 16:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 16:58:23] Production.INFO: 43.5 MB #Memory Used# [2025-04-26 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 13:59:05 [end_date_ymd] => 2025-04-26 16:59:05 [RateCDR] => 1 ) [2025-04-26 16:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 13:59:05' and `end` < '2025-04-26 16:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 16:59:18] Production.INFO: count ==2045 [2025-04-26 16:59:18] Production.ERROR: pbx CDR StartTime 2025-04-26 13:59:05 - End Time 2025-04-26 16:59:05 [2025-04-26 16:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995660', 'tblTempUsageDetail_20' ) start [2025-04-26 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995660', 'tblTempUsageDetail_20' ) end [2025-04-26 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995660', 'tblTempVendorCDR_20' ) start [2025-04-26 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995660', 'tblTempVendorCDR_20' ) end [2025-04-26 16:59:18] Production.INFO: ProcessCDR(1,14995660,1,1,2) [2025-04-26 16:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 16:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 16:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995660', 'tblTempUsageDetail_20' ) start [2025-04-26 16:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995660', 'tblTempUsageDetail_20' ) end [2025-04-26 16:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 16:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 16:59:23] Production.INFO: ==3474== Releasing lock... [2025-04-26 16:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 16:59:23] Production.INFO: 43.75 MB #Memory Used# [2025-04-26 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 14:00:06 [end_date_ymd] => 2025-04-26 17:00:06 [RateCDR] => 1 ) [2025-04-26 17:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 14:00:06' and `end` < '2025-04-26 17:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 17:00:19] Production.INFO: count ==2045 [2025-04-26 17:00:20] Production.ERROR: pbx CDR StartTime 2025-04-26 14:00:06 - End Time 2025-04-26 17:00:06 [2025-04-26 17:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995665', 'tblTempUsageDetail_20' ) start [2025-04-26 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995665', 'tblTempUsageDetail_20' ) end [2025-04-26 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995665', 'tblTempVendorCDR_20' ) start [2025-04-26 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995665', 'tblTempVendorCDR_20' ) end [2025-04-26 17:00:20] Production.INFO: ProcessCDR(1,14995665,1,1,2) [2025-04-26 17:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995665', 'tblTempUsageDetail_20' ) start [2025-04-26 17:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995665', 'tblTempUsageDetail_20' ) end [2025-04-26 17:00:25] Production.ERROR: pbx prc_insertCDR start [2025-04-26 17:00:25] Production.ERROR: pbx prc_insertCDR end [2025-04-26 17:00:25] Production.INFO: ==3555== Releasing lock... [2025-04-26 17:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 17:00:25] Production.INFO: 43.5 MB #Memory Used# [2025-04-26 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 14:01:05 [end_date_ymd] => 2025-04-26 17:01:05 [RateCDR] => 1 ) [2025-04-26 17:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 14:01:05' and `end` < '2025-04-26 17:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 17:01:17] Production.INFO: count ==2051 [2025-04-26 17:01:18] Production.ERROR: pbx CDR StartTime 2025-04-26 14:01:05 - End Time 2025-04-26 17:01:05 [2025-04-26 17:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 17:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995671', 'tblTempUsageDetail_20' ) start [2025-04-26 17:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995671', 'tblTempUsageDetail_20' ) end [2025-04-26 17:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995671', 'tblTempVendorCDR_20' ) start [2025-04-26 17:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995671', 'tblTempVendorCDR_20' ) end [2025-04-26 17:01:18] Production.INFO: ProcessCDR(1,14995671,1,1,2) [2025-04-26 17:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995671', 'tblTempUsageDetail_20' ) start [2025-04-26 17:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995671', 'tblTempUsageDetail_20' ) end [2025-04-26 17:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 17:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 17:01:21] Production.INFO: ==3648== Releasing lock... [2025-04-26 17:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 17:01:21] Production.INFO: 43.5 MB #Memory Used# [2025-04-26 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 14:02:05 [end_date_ymd] => 2025-04-26 17:02:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 14:02:05' and `end` < '2025-04-26 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-04-26 17:02:18] Production.INFO: count ==2054 [2025-04-26 17:02:19] Production.ERROR: pbx CDR StartTime 2025-04-26 14:02:05 - End Time 2025-04-26 17:02:05 [2025-04-26 17:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 17:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995676', 'tblTempUsageDetail_20' ) start [2025-04-26 17:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995676', 'tblTempUsageDetail_20' ) end [2025-04-26 17:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995676', 'tblTempVendorCDR_20' ) start [2025-04-26 17:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995676', 'tblTempVendorCDR_20' ) end [2025-04-26 17:02:19] Production.INFO: ProcessCDR(1,14995676,1,1,2) [2025-04-26 17:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995676', 'tblTempUsageDetail_20' ) start [2025-04-26 17:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995676', 'tblTempUsageDetail_20' ) end [2025-04-26 17:02:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 17:02:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 17:02:24] Production.INFO: ==3724== Releasing lock... [2025-04-26 17:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 17:02:24] Production.INFO: 43.5 MB #Memory Used# [2025-04-26 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 14:03:05 [end_date_ymd] => 2025-04-26 17:03:05 [RateCDR] => 1 ) [2025-04-26 17:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 14:03:05' and `end` < '2025-04-26 17:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 17:03:18] Production.INFO: count ==2059 [2025-04-26 17:03:18] Production.ERROR: pbx CDR StartTime 2025-04-26 14:03:05 - End Time 2025-04-26 17:03:05 [2025-04-26 17:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 17:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995681', 'tblTempUsageDetail_20' ) start [2025-04-26 17:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995681', 'tblTempUsageDetail_20' ) end [2025-04-26 17:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995681', 'tblTempVendorCDR_20' ) start [2025-04-26 17:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995681', 'tblTempVendorCDR_20' ) end [2025-04-26 17:03:19] Production.INFO: ProcessCDR(1,14995681,1,1,2) [2025-04-26 17:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995681', 'tblTempUsageDetail_20' ) start [2025-04-26 17:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995681', 'tblTempUsageDetail_20' ) end [2025-04-26 17:03:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 17:03:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 17:03:24] Production.INFO: ==3793== Releasing lock... [2025-04-26 17:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 17:03:24] Production.INFO: 43.75 MB #Memory Used# [2025-04-26 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 14:04:05 [end_date_ymd] => 2025-04-26 17:04:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 14:04:05' and `end` < '2025-04-26 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-04-26 17:04:18] Production.INFO: count ==2052 [2025-04-26 17:04:19] Production.ERROR: pbx CDR StartTime 2025-04-26 14:04:05 - End Time 2025-04-26 17:04:05 [2025-04-26 17:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 17:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995686', 'tblTempUsageDetail_20' ) start [2025-04-26 17:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995686', 'tblTempUsageDetail_20' ) end [2025-04-26 17:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995686', 'tblTempVendorCDR_20' ) start [2025-04-26 17:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995686', 'tblTempVendorCDR_20' ) end [2025-04-26 17:04:19] Production.INFO: ProcessCDR(1,14995686,1,1,2) [2025-04-26 17:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995686', 'tblTempUsageDetail_20' ) start [2025-04-26 17:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995686', 'tblTempUsageDetail_20' ) end [2025-04-26 17:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 17:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 17:04:22] Production.INFO: ==3874== Releasing lock... [2025-04-26 17:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 17:04:22] Production.INFO: 43.5 MB #Memory Used# [2025-04-26 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 14:05:05 [end_date_ymd] => 2025-04-26 17:05:05 [RateCDR] => 1 ) [2025-04-26 17:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 14:05:05' and `end` < '2025-04-26 17:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 17:05:18] Production.INFO: count ==2038 [2025-04-26 17:05:19] Production.ERROR: pbx CDR StartTime 2025-04-26 14:05:05 - End Time 2025-04-26 17:05:05 [2025-04-26 17:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 17:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995691', 'tblTempUsageDetail_20' ) start [2025-04-26 17:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995691', 'tblTempUsageDetail_20' ) end [2025-04-26 17:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995691', 'tblTempVendorCDR_20' ) start [2025-04-26 17:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995691', 'tblTempVendorCDR_20' ) end [2025-04-26 17:05:19] Production.INFO: ProcessCDR(1,14995691,1,1,2) [2025-04-26 17:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995691', 'tblTempUsageDetail_20' ) start [2025-04-26 17:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995691', 'tblTempUsageDetail_20' ) end [2025-04-26 17:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 17:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 17:05:22] Production.INFO: ==3945== Releasing lock... [2025-04-26 17:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 17:05:22] Production.INFO: 43.75 MB #Memory Used# [2025-04-26 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 14:06:05 [end_date_ymd] => 2025-04-26 17:06:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 14:06:05' and `end` < '2025-04-26 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-04-26 17:06:18] Production.INFO: count ==2040 [2025-04-26 17:06:19] Production.ERROR: pbx CDR StartTime 2025-04-26 14:06:05 - End Time 2025-04-26 17:06:05 [2025-04-26 17:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 17:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995696', 'tblTempUsageDetail_20' ) start [2025-04-26 17:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995696', 'tblTempUsageDetail_20' ) end [2025-04-26 17:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995696', 'tblTempVendorCDR_20' ) start [2025-04-26 17:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995696', 'tblTempVendorCDR_20' ) end [2025-04-26 17:06:19] Production.INFO: ProcessCDR(1,14995696,1,1,2) [2025-04-26 17:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995696', 'tblTempUsageDetail_20' ) start [2025-04-26 17:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995696', 'tblTempUsageDetail_20' ) end [2025-04-26 17:06:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 17:06:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 17:06:24] Production.INFO: ==4021== Releasing lock... [2025-04-26 17:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 17:06:24] Production.INFO: 43.5 MB #Memory Used# [2025-04-26 17:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 14:07:06 [end_date_ymd] => 2025-04-26 17:07:06 [RateCDR] => 1 ) [2025-04-26 17:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 14:07:06' and `end` < '2025-04-26 17:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 17:07:19] Production.INFO: count ==2047 [2025-04-26 17:07:19] Production.ERROR: pbx CDR StartTime 2025-04-26 14:07:06 - End Time 2025-04-26 17:07:06 [2025-04-26 17:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 17:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995701', 'tblTempUsageDetail_20' ) start [2025-04-26 17:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995701', 'tblTempUsageDetail_20' ) end [2025-04-26 17:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995701', 'tblTempVendorCDR_20' ) start [2025-04-26 17:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995701', 'tblTempVendorCDR_20' ) end [2025-04-26 17:07:19] Production.INFO: ProcessCDR(1,14995701,1,1,2) [2025-04-26 17:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995701', 'tblTempUsageDetail_20' ) start [2025-04-26 17:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995701', 'tblTempUsageDetail_20' ) end [2025-04-26 17:07:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 17:07:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 17:07:24] Production.INFO: ==4096== Releasing lock... [2025-04-26 17:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 17:07:24] Production.INFO: 43.5 MB #Memory Used# [2025-04-26 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 14:08:05 [end_date_ymd] => 2025-04-26 17:08:05 [RateCDR] => 1 ) [2025-04-26 17:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 14:08:05' and `end` < '2025-04-26 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-04-26 17:08:18] Production.INFO: count ==2057 [2025-04-26 17:08:19] Production.ERROR: pbx CDR StartTime 2025-04-26 14:08:05 - End Time 2025-04-26 17:08:05 [2025-04-26 17:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995706', 'tblTempUsageDetail_20' ) start [2025-04-26 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995706', 'tblTempUsageDetail_20' ) end [2025-04-26 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995706', 'tblTempVendorCDR_20' ) start [2025-04-26 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995706', 'tblTempVendorCDR_20' ) end [2025-04-26 17:08:19] Production.INFO: ProcessCDR(1,14995706,1,1,2) [2025-04-26 17:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995706', 'tblTempUsageDetail_20' ) start [2025-04-26 17:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995706', 'tblTempUsageDetail_20' ) end [2025-04-26 17:08:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 17:08:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 17:08:24] Production.INFO: ==4168== Releasing lock... [2025-04-26 17:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 17:08:24] Production.INFO: 43.5 MB #Memory Used# [2025-04-26 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 14:09:05 [end_date_ymd] => 2025-04-26 17:09:05 [RateCDR] => 1 ) [2025-04-26 17:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 14:09:05' and `end` < '2025-04-26 17:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 17:09:18] Production.INFO: count ==2058 [2025-04-26 17:09:19] Production.ERROR: pbx CDR StartTime 2025-04-26 14:09:05 - End Time 2025-04-26 17:09:05 [2025-04-26 17:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 17:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995711', 'tblTempUsageDetail_20' ) start [2025-04-26 17:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995711', 'tblTempUsageDetail_20' ) end [2025-04-26 17:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995711', 'tblTempVendorCDR_20' ) start [2025-04-26 17:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995711', 'tblTempVendorCDR_20' ) end [2025-04-26 17:09:19] Production.INFO: ProcessCDR(1,14995711,1,1,2) [2025-04-26 17:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995711', 'tblTempUsageDetail_20' ) start [2025-04-26 17:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995711', 'tblTempUsageDetail_20' ) end [2025-04-26 17:09:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 17:09:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 17:09:24] Production.INFO: ==4246== Releasing lock... [2025-04-26 17:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 17:09:24] Production.INFO: 43.5 MB #Memory Used# [2025-04-26 17:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 14:10:05 [end_date_ymd] => 2025-04-26 17:10:05 [RateCDR] => 1 ) [2025-04-26 17:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 14:10:05' and `end` < '2025-04-26 17:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 17:10:18] Production.INFO: count ==2056 [2025-04-26 17:10:19] Production.ERROR: pbx CDR StartTime 2025-04-26 14:10:05 - End Time 2025-04-26 17:10:05 [2025-04-26 17:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 17:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995716', 'tblTempUsageDetail_20' ) start [2025-04-26 17:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995716', 'tblTempUsageDetail_20' ) end [2025-04-26 17:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995716', 'tblTempVendorCDR_20' ) start [2025-04-26 17:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995716', 'tblTempVendorCDR_20' ) end [2025-04-26 17:10:19] Production.INFO: ProcessCDR(1,14995716,1,1,2) [2025-04-26 17:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995716', 'tblTempUsageDetail_20' ) start [2025-04-26 17:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995716', 'tblTempUsageDetail_20' ) end [2025-04-26 17:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 17:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 17:10:24] Production.INFO: ==4331== Releasing lock... [2025-04-26 17:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 17:10:24] Production.INFO: 43.5 MB #Memory Used# [2025-04-26 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 14:11:05 [end_date_ymd] => 2025-04-26 17:11:05 [RateCDR] => 1 ) [2025-04-26 17:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 14:11:05' and `end` < '2025-04-26 17:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 17:11:18] Production.INFO: count ==2074 [2025-04-26 17:11:19] Production.ERROR: pbx CDR StartTime 2025-04-26 14:11:05 - End Time 2025-04-26 17:11:05 [2025-04-26 17:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 17:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995722', 'tblTempUsageDetail_20' ) start [2025-04-26 17:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995722', 'tblTempUsageDetail_20' ) end [2025-04-26 17:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995722', 'tblTempVendorCDR_20' ) start [2025-04-26 17:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995722', 'tblTempVendorCDR_20' ) end [2025-04-26 17:11:19] Production.INFO: ProcessCDR(1,14995722,1,1,2) [2025-04-26 17:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995722', 'tblTempUsageDetail_20' ) start [2025-04-26 17:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995722', 'tblTempUsageDetail_20' ) end [2025-04-26 17:11:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 17:11:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 17:11:24] Production.INFO: ==4454== Releasing lock... [2025-04-26 17:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 17:11:24] Production.INFO: 43.75 MB #Memory Used# [2025-04-26 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 14:12:05 [end_date_ymd] => 2025-04-26 17:12:05 [RateCDR] => 1 ) [2025-04-26 17:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 14:12:05' and `end` < '2025-04-26 17:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 17:12:18] Production.INFO: count ==2073 [2025-04-26 17:12:19] Production.ERROR: pbx CDR StartTime 2025-04-26 14:12:05 - End Time 2025-04-26 17:12:05 [2025-04-26 17:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 17:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995727', 'tblTempUsageDetail_20' ) start [2025-04-26 17:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995727', 'tblTempUsageDetail_20' ) end [2025-04-26 17:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995727', 'tblTempVendorCDR_20' ) start [2025-04-26 17:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995727', 'tblTempVendorCDR_20' ) end [2025-04-26 17:12:19] Production.INFO: ProcessCDR(1,14995727,1,1,2) [2025-04-26 17:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995727', 'tblTempUsageDetail_20' ) start [2025-04-26 17:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995727', 'tblTempUsageDetail_20' ) end [2025-04-26 17:12:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 17:12:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 17:12:24] Production.INFO: ==4540== Releasing lock... [2025-04-26 17:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 17:12:24] Production.INFO: 43.75 MB #Memory Used# [2025-04-26 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 14:13:05 [end_date_ymd] => 2025-04-26 17:13:05 [RateCDR] => 1 ) [2025-04-26 17:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 14:13:05' and `end` < '2025-04-26 17:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 17:13:18] Production.INFO: count ==2072 [2025-04-26 17:13:19] Production.ERROR: pbx CDR StartTime 2025-04-26 14:13:05 - End Time 2025-04-26 17:13:05 [2025-04-26 17:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995732', 'tblTempUsageDetail_20' ) start [2025-04-26 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995732', 'tblTempUsageDetail_20' ) end [2025-04-26 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995732', 'tblTempVendorCDR_20' ) start [2025-04-26 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995732', 'tblTempVendorCDR_20' ) end [2025-04-26 17:13:19] Production.INFO: ProcessCDR(1,14995732,1,1,2) [2025-04-26 17:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995732', 'tblTempUsageDetail_20' ) start [2025-04-26 17:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995732', 'tblTempUsageDetail_20' ) end [2025-04-26 17:13:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 17:13:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 17:13:24] Production.INFO: ==4633== Releasing lock... [2025-04-26 17:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 17:13:24] Production.INFO: 43.75 MB #Memory Used# [2025-04-26 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 14:14:05 [end_date_ymd] => 2025-04-26 17:14:05 [RateCDR] => 1 ) [2025-04-26 17:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 14:14:05' and `end` < '2025-04-26 17:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 17:14:18] Production.INFO: count ==2067 [2025-04-26 17:14:19] Production.ERROR: pbx CDR StartTime 2025-04-26 14:14:05 - End Time 2025-04-26 17:14:05 [2025-04-26 17:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 17:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995737', 'tblTempUsageDetail_20' ) start [2025-04-26 17:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995737', 'tblTempUsageDetail_20' ) end [2025-04-26 17:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995737', 'tblTempVendorCDR_20' ) start [2025-04-26 17:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995737', 'tblTempVendorCDR_20' ) end [2025-04-26 17:14:19] Production.INFO: ProcessCDR(1,14995737,1,1,2) [2025-04-26 17:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995737', 'tblTempUsageDetail_20' ) start [2025-04-26 17:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995737', 'tblTempUsageDetail_20' ) end [2025-04-26 17:14:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 17:14:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 17:14:24] Production.INFO: ==4713== Releasing lock... [2025-04-26 17:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 17:14:24] Production.INFO: 43.75 MB #Memory Used# [2025-04-26 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 14:15:05 [end_date_ymd] => 2025-04-26 17:15:05 [RateCDR] => 1 ) [2025-04-26 17:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 14:15:05' and `end` < '2025-04-26 17:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 17:15:18] Production.INFO: count ==2070 [2025-04-26 17:15:19] Production.ERROR: pbx CDR StartTime 2025-04-26 14:15:05 - End Time 2025-04-26 17:15:05 [2025-04-26 17:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 17:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995742', 'tblTempUsageDetail_20' ) start [2025-04-26 17:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995742', 'tblTempUsageDetail_20' ) end [2025-04-26 17:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995742', 'tblTempVendorCDR_20' ) start [2025-04-26 17:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995742', 'tblTempVendorCDR_20' ) end [2025-04-26 17:15:19] Production.INFO: ProcessCDR(1,14995742,1,1,2) [2025-04-26 17:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995742', 'tblTempUsageDetail_20' ) start [2025-04-26 17:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995742', 'tblTempUsageDetail_20' ) end [2025-04-26 17:15:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 17:15:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 17:15:24] Production.INFO: ==4787== Releasing lock... [2025-04-26 17:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 17:15:24] Production.INFO: 43.75 MB #Memory Used# [2025-04-26 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 14:16:05 [end_date_ymd] => 2025-04-26 17:16:05 [RateCDR] => 1 ) [2025-04-26 17:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 14:16:05' and `end` < '2025-04-26 17:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 17:16:18] Production.INFO: count ==2075 [2025-04-26 17:16:19] Production.ERROR: pbx CDR StartTime 2025-04-26 14:16:05 - End Time 2025-04-26 17:16:05 [2025-04-26 17:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 17:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995747', 'tblTempUsageDetail_20' ) start [2025-04-26 17:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995747', 'tblTempUsageDetail_20' ) end [2025-04-26 17:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995747', 'tblTempVendorCDR_20' ) start [2025-04-26 17:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995747', 'tblTempVendorCDR_20' ) end [2025-04-26 17:16:19] Production.INFO: ProcessCDR(1,14995747,1,1,2) [2025-04-26 17:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995747', 'tblTempUsageDetail_20' ) start [2025-04-26 17:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995747', 'tblTempUsageDetail_20' ) end [2025-04-26 17:16:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 17:16:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 17:16:24] Production.INFO: ==4859== Releasing lock... [2025-04-26 17:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 17:16:24] Production.INFO: 43.75 MB #Memory Used# [2025-04-26 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 14:17:05 [end_date_ymd] => 2025-04-26 17:17:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 14:17:05' and `end` < '2025-04-26 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-04-26 17:17:18] Production.INFO: count ==2075 [2025-04-26 17:17:18] Production.ERROR: pbx CDR StartTime 2025-04-26 14:17:05 - End Time 2025-04-26 17:17:05 [2025-04-26 17:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 17:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995752', 'tblTempUsageDetail_20' ) start [2025-04-26 17:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995752', 'tblTempUsageDetail_20' ) end [2025-04-26 17:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995752', 'tblTempVendorCDR_20' ) start [2025-04-26 17:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995752', 'tblTempVendorCDR_20' ) end [2025-04-26 17:17:19] Production.INFO: ProcessCDR(1,14995752,1,1,2) [2025-04-26 17:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995752', 'tblTempUsageDetail_20' ) start [2025-04-26 17:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995752', 'tblTempUsageDetail_20' ) end [2025-04-26 17:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 17:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 17:17:23] Production.INFO: ==4937== Releasing lock... [2025-04-26 17:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 17:17:23] Production.INFO: 43.75 MB #Memory Used# [2025-04-26 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 14:18:05 [end_date_ymd] => 2025-04-26 17:18:05 [RateCDR] => 1 ) [2025-04-26 17:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 14:18:05' and `end` < '2025-04-26 17:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 17:18:18] Production.INFO: count ==2076 [2025-04-26 17:18:18] Production.ERROR: pbx CDR StartTime 2025-04-26 14:18:05 - End Time 2025-04-26 17:18:05 [2025-04-26 17:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995757', 'tblTempUsageDetail_20' ) start [2025-04-26 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995757', 'tblTempUsageDetail_20' ) end [2025-04-26 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995757', 'tblTempVendorCDR_20' ) start [2025-04-26 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995757', 'tblTempVendorCDR_20' ) end [2025-04-26 17:18:18] Production.INFO: ProcessCDR(1,14995757,1,1,2) [2025-04-26 17:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995757', 'tblTempUsageDetail_20' ) start [2025-04-26 17:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995757', 'tblTempUsageDetail_20' ) end [2025-04-26 17:18:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 17:18:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 17:18:23] Production.INFO: ==5018== Releasing lock... [2025-04-26 17:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 17:18:23] Production.INFO: 43.75 MB #Memory Used# [2025-04-26 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 14:19:05 [end_date_ymd] => 2025-04-26 17:19:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 14:19:05' and `end` < '2025-04-26 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-04-26 17:19:17] Production.INFO: count ==2073 [2025-04-26 17:19:18] Production.ERROR: pbx CDR StartTime 2025-04-26 14:19:05 - End Time 2025-04-26 17:19:05 [2025-04-26 17:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 17:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995762', 'tblTempUsageDetail_20' ) start [2025-04-26 17:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995762', 'tblTempUsageDetail_20' ) end [2025-04-26 17:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995762', 'tblTempVendorCDR_20' ) start [2025-04-26 17:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995762', 'tblTempVendorCDR_20' ) end [2025-04-26 17:19:18] Production.INFO: ProcessCDR(1,14995762,1,1,2) [2025-04-26 17:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995762', 'tblTempUsageDetail_20' ) start [2025-04-26 17:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995762', 'tblTempUsageDetail_20' ) end [2025-04-26 17:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 17:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 17:19:23] Production.INFO: ==5094== Releasing lock... [2025-04-26 17:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 17:19:23] Production.INFO: 44 MB #Memory Used# [2025-04-26 17:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 14:20:05 [end_date_ymd] => 2025-04-26 17:20:05 [RateCDR] => 1 ) [2025-04-26 17:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 14:20:05' and `end` < '2025-04-26 17:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 17:20:18] Production.INFO: count ==2052 [2025-04-26 17:20:19] Production.ERROR: pbx CDR StartTime 2025-04-26 14:20:05 - End Time 2025-04-26 17:20:05 [2025-04-26 17:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 17:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995768', 'tblTempUsageDetail_20' ) start [2025-04-26 17:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995768', 'tblTempUsageDetail_20' ) end [2025-04-26 17:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995768', 'tblTempVendorCDR_20' ) start [2025-04-26 17:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995768', 'tblTempVendorCDR_20' ) end [2025-04-26 17:20:19] Production.INFO: ProcessCDR(1,14995768,1,1,2) [2025-04-26 17:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995768', 'tblTempUsageDetail_20' ) start [2025-04-26 17:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995768', 'tblTempUsageDetail_20' ) end [2025-04-26 17:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 17:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 17:20:24] Production.INFO: ==5173== Releasing lock... [2025-04-26 17:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 17:20:24] Production.INFO: 43.5 MB #Memory Used# [2025-04-26 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 14:21:05 [end_date_ymd] => 2025-04-26 17:21:05 [RateCDR] => 1 ) [2025-04-26 17:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 14:21:05' and `end` < '2025-04-26 17:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 17:21:18] Production.INFO: count ==2100 [2025-04-26 17:21:19] Production.ERROR: pbx CDR StartTime 2025-04-26 14:21:05 - End Time 2025-04-26 17:21:05 [2025-04-26 17:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 17:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995773', 'tblTempUsageDetail_20' ) start [2025-04-26 17:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995773', 'tblTempUsageDetail_20' ) end [2025-04-26 17:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995773', 'tblTempVendorCDR_20' ) start [2025-04-26 17:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995773', 'tblTempVendorCDR_20' ) end [2025-04-26 17:21:19] Production.INFO: ProcessCDR(1,14995773,1,1,2) [2025-04-26 17:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995773', 'tblTempUsageDetail_20' ) start [2025-04-26 17:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995773', 'tblTempUsageDetail_20' ) end [2025-04-26 17:21:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 17:21:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 17:21:24] Production.INFO: ==5246== Releasing lock... [2025-04-26 17:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 17:21:24] Production.INFO: 44.25 MB #Memory Used# [2025-04-26 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 14:22:05 [end_date_ymd] => 2025-04-26 17:22:05 [RateCDR] => 1 ) [2025-04-26 17:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 14:22:05' and `end` < '2025-04-26 17:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 17:22:18] Production.INFO: count ==2102 [2025-04-26 17:22:19] Production.ERROR: pbx CDR StartTime 2025-04-26 14:22:05 - End Time 2025-04-26 17:22:05 [2025-04-26 17:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 17:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995778', 'tblTempUsageDetail_20' ) start [2025-04-26 17:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995778', 'tblTempUsageDetail_20' ) end [2025-04-26 17:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995778', 'tblTempVendorCDR_20' ) start [2025-04-26 17:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995778', 'tblTempVendorCDR_20' ) end [2025-04-26 17:22:19] Production.INFO: ProcessCDR(1,14995778,1,1,2) [2025-04-26 17:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995778', 'tblTempUsageDetail_20' ) start [2025-04-26 17:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995778', 'tblTempUsageDetail_20' ) end [2025-04-26 17:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 17:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 17:22:23] Production.INFO: ==5326== Releasing lock... [2025-04-26 17:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 17:22:23] Production.INFO: 44 MB #Memory Used# [2025-04-26 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 14:23:05 [end_date_ymd] => 2025-04-26 17:23:05 [RateCDR] => 1 ) [2025-04-26 17:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 14:23:05' and `end` < '2025-04-26 17:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 17:23:18] Production.INFO: count ==2106 [2025-04-26 17:23:19] Production.ERROR: pbx CDR StartTime 2025-04-26 14:23:05 - End Time 2025-04-26 17:23:05 [2025-04-26 17:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 17:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995783', 'tblTempUsageDetail_20' ) start [2025-04-26 17:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995783', 'tblTempUsageDetail_20' ) end [2025-04-26 17:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995783', 'tblTempVendorCDR_20' ) start [2025-04-26 17:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995783', 'tblTempVendorCDR_20' ) end [2025-04-26 17:23:19] Production.INFO: ProcessCDR(1,14995783,1,1,2) [2025-04-26 17:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995783', 'tblTempUsageDetail_20' ) start [2025-04-26 17:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995783', 'tblTempUsageDetail_20' ) end [2025-04-26 17:23:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 17:23:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 17:23:23] Production.INFO: ==5402== Releasing lock... [2025-04-26 17:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 17:23:23] Production.INFO: 44 MB #Memory Used# [2025-04-26 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 14:24:05 [end_date_ymd] => 2025-04-26 17:24:05 [RateCDR] => 1 ) [2025-04-26 17:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 14:24:05' and `end` < '2025-04-26 17:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 17:24:18] Production.INFO: count ==2112 [2025-04-26 17:24:18] Production.ERROR: pbx CDR StartTime 2025-04-26 14:24:05 - End Time 2025-04-26 17:24:05 [2025-04-26 17:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 17:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995788', 'tblTempUsageDetail_20' ) start [2025-04-26 17:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995788', 'tblTempUsageDetail_20' ) end [2025-04-26 17:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995788', 'tblTempVendorCDR_20' ) start [2025-04-26 17:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995788', 'tblTempVendorCDR_20' ) end [2025-04-26 17:24:19] Production.INFO: ProcessCDR(1,14995788,1,1,2) [2025-04-26 17:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995788', 'tblTempUsageDetail_20' ) start [2025-04-26 17:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995788', 'tblTempUsageDetail_20' ) end [2025-04-26 17:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 17:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 17:24:23] Production.INFO: ==5477== Releasing lock... [2025-04-26 17:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 17:24:23] Production.INFO: 44 MB #Memory Used# [2025-04-26 17:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 14:25:06 [end_date_ymd] => 2025-04-26 17:25:06 [RateCDR] => 1 ) [2025-04-26 17:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 14:25:06' and `end` < '2025-04-26 17:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 17:25:18] Production.INFO: count ==2121 [2025-04-26 17:25:19] Production.ERROR: pbx CDR StartTime 2025-04-26 14:25:06 - End Time 2025-04-26 17:25:06 [2025-04-26 17:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995793', 'tblTempUsageDetail_20' ) start [2025-04-26 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995793', 'tblTempUsageDetail_20' ) end [2025-04-26 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995793', 'tblTempVendorCDR_20' ) start [2025-04-26 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995793', 'tblTempVendorCDR_20' ) end [2025-04-26 17:25:19] Production.INFO: ProcessCDR(1,14995793,1,1,2) [2025-04-26 17:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995793', 'tblTempUsageDetail_20' ) start [2025-04-26 17:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995793', 'tblTempUsageDetail_20' ) end [2025-04-26 17:25:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 17:25:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 17:25:24] Production.INFO: ==5553== Releasing lock... [2025-04-26 17:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 17:25:24] Production.INFO: 44.25 MB #Memory Used# [2025-04-26 17:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 14:26:05 [end_date_ymd] => 2025-04-26 17:26:05 [RateCDR] => 1 ) [2025-04-26 17:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 14:26:05' and `end` < '2025-04-26 17:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 17:26:18] Production.INFO: count ==2129 [2025-04-26 17:26:18] Production.ERROR: pbx CDR StartTime 2025-04-26 14:26:05 - End Time 2025-04-26 17:26:05 [2025-04-26 17:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 17:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995798', 'tblTempUsageDetail_20' ) start [2025-04-26 17:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995798', 'tblTempUsageDetail_20' ) end [2025-04-26 17:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995798', 'tblTempVendorCDR_20' ) start [2025-04-26 17:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995798', 'tblTempVendorCDR_20' ) end [2025-04-26 17:26:19] Production.INFO: ProcessCDR(1,14995798,1,1,2) [2025-04-26 17:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995798', 'tblTempUsageDetail_20' ) start [2025-04-26 17:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995798', 'tblTempUsageDetail_20' ) end [2025-04-26 17:26:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 17:26:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 17:26:23] Production.INFO: ==5625== Releasing lock... [2025-04-26 17:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 17:26:23] Production.INFO: 44.25 MB #Memory Used# [2025-04-26 17:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 14:27:05 [end_date_ymd] => 2025-04-26 17:27:05 [RateCDR] => 1 ) [2025-04-26 17:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 14:27:05' and `end` < '2025-04-26 17:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 17:27:18] Production.INFO: count ==2133 [2025-04-26 17:27:19] Production.ERROR: pbx CDR StartTime 2025-04-26 14:27:05 - End Time 2025-04-26 17:27:05 [2025-04-26 17:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 17:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995803', 'tblTempUsageDetail_20' ) start [2025-04-26 17:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995803', 'tblTempUsageDetail_20' ) end [2025-04-26 17:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995803', 'tblTempVendorCDR_20' ) start [2025-04-26 17:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995803', 'tblTempVendorCDR_20' ) end [2025-04-26 17:27:19] Production.INFO: ProcessCDR(1,14995803,1,1,2) [2025-04-26 17:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995803', 'tblTempUsageDetail_20' ) start [2025-04-26 17:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995803', 'tblTempUsageDetail_20' ) end [2025-04-26 17:27:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 17:27:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 17:27:24] Production.INFO: ==5738== Releasing lock... [2025-04-26 17:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 17:27:24] Production.INFO: 44.25 MB #Memory Used# [2025-04-26 17:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 14:28:04 [end_date_ymd] => 2025-04-26 17:28:04 [RateCDR] => 1 ) [2025-04-26 17:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 14:28:04' and `end` < '2025-04-26 17:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 17:28:17] Production.INFO: count ==2133 [2025-04-26 17:28:18] Production.ERROR: pbx CDR StartTime 2025-04-26 14:28:04 - End Time 2025-04-26 17:28:04 [2025-04-26 17:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 17:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995808', 'tblTempUsageDetail_20' ) start [2025-04-26 17:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995808', 'tblTempUsageDetail_20' ) end [2025-04-26 17:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995808', 'tblTempVendorCDR_20' ) start [2025-04-26 17:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995808', 'tblTempVendorCDR_20' ) end [2025-04-26 17:28:18] Production.INFO: ProcessCDR(1,14995808,1,1,2) [2025-04-26 17:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995808', 'tblTempUsageDetail_20' ) start [2025-04-26 17:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995808', 'tblTempUsageDetail_20' ) end [2025-04-26 17:28:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 17:28:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 17:28:23] Production.INFO: ==5818== Releasing lock... [2025-04-26 17:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 17:28:23] Production.INFO: 44.25 MB #Memory Used# [2025-04-26 17:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 14:29:05 [end_date_ymd] => 2025-04-26 17:29:05 [RateCDR] => 1 ) [2025-04-26 17:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 14:29:05' and `end` < '2025-04-26 17:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 17:29:18] Production.INFO: count ==2135 [2025-04-26 17:29:18] Production.ERROR: pbx CDR StartTime 2025-04-26 14:29:05 - End Time 2025-04-26 17:29:05 [2025-04-26 17:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 17:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995813', 'tblTempUsageDetail_20' ) start [2025-04-26 17:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995813', 'tblTempUsageDetail_20' ) end [2025-04-26 17:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995813', 'tblTempVendorCDR_20' ) start [2025-04-26 17:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995813', 'tblTempVendorCDR_20' ) end [2025-04-26 17:29:18] Production.INFO: ProcessCDR(1,14995813,1,1,2) [2025-04-26 17:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995813', 'tblTempUsageDetail_20' ) start [2025-04-26 17:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995813', 'tblTempUsageDetail_20' ) end [2025-04-26 17:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 17:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 17:29:23] Production.INFO: ==5889== Releasing lock... [2025-04-26 17:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 17:29:23] Production.INFO: 44.5 MB #Memory Used# [2025-04-26 17:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 14:30:06 [end_date_ymd] => 2025-04-26 17:30:06 [RateCDR] => 1 ) [2025-04-26 17:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 14:30:06' and `end` < '2025-04-26 17:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 17:30:19] Production.INFO: count ==2135 [2025-04-26 17:30:20] Production.ERROR: pbx CDR StartTime 2025-04-26 14:30:06 - End Time 2025-04-26 17:30:06 [2025-04-26 17:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 17:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995819', 'tblTempUsageDetail_20' ) start [2025-04-26 17:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995819', 'tblTempUsageDetail_20' ) end [2025-04-26 17:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995819', 'tblTempVendorCDR_20' ) start [2025-04-26 17:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995819', 'tblTempVendorCDR_20' ) end [2025-04-26 17:30:20] Production.INFO: ProcessCDR(1,14995819,1,1,2) [2025-04-26 17:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995819', 'tblTempUsageDetail_20' ) start [2025-04-26 17:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995819', 'tblTempUsageDetail_20' ) end [2025-04-26 17:30:25] Production.ERROR: pbx prc_insertCDR start [2025-04-26 17:30:25] Production.ERROR: pbx prc_insertCDR end [2025-04-26 17:30:25] Production.INFO: ==5964== Releasing lock... [2025-04-26 17:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 17:30:25] Production.INFO: 44.25 MB #Memory Used# [2025-04-26 17:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 14:31:05 [end_date_ymd] => 2025-04-26 17:31:05 [RateCDR] => 1 ) [2025-04-26 17:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 14:31:05' and `end` < '2025-04-26 17:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 17:31:18] Production.INFO: count ==2204 [2025-04-26 17:31:19] Production.ERROR: pbx CDR StartTime 2025-04-26 14:31:05 - End Time 2025-04-26 17:31:05 [2025-04-26 17:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 17:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995824', 'tblTempUsageDetail_20' ) start [2025-04-26 17:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995824', 'tblTempUsageDetail_20' ) end [2025-04-26 17:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995824', 'tblTempVendorCDR_20' ) start [2025-04-26 17:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995824', 'tblTempVendorCDR_20' ) end [2025-04-26 17:31:19] Production.INFO: ProcessCDR(1,14995824,1,1,2) [2025-04-26 17:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995824', 'tblTempUsageDetail_20' ) start [2025-04-26 17:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995824', 'tblTempUsageDetail_20' ) end [2025-04-26 17:31:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 17:31:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 17:31:24] Production.INFO: ==6041== Releasing lock... [2025-04-26 17:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 17:31:24] Production.INFO: 44.75 MB #Memory Used# [2025-04-26 17:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 14:32:06 [end_date_ymd] => 2025-04-26 17:32:06 [RateCDR] => 1 ) [2025-04-26 17:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 14:32:06' and `end` < '2025-04-26 17:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 17:32:19] Production.INFO: count ==2207 [2025-04-26 17:32:20] Production.ERROR: pbx CDR StartTime 2025-04-26 14:32:06 - End Time 2025-04-26 17:32:06 [2025-04-26 17:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995829', 'tblTempUsageDetail_20' ) start [2025-04-26 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995829', 'tblTempUsageDetail_20' ) end [2025-04-26 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995829', 'tblTempVendorCDR_20' ) start [2025-04-26 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995829', 'tblTempVendorCDR_20' ) end [2025-04-26 17:32:20] Production.INFO: ProcessCDR(1,14995829,1,1,2) [2025-04-26 17:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995829', 'tblTempUsageDetail_20' ) start [2025-04-26 17:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995829', 'tblTempUsageDetail_20' ) end [2025-04-26 17:32:25] Production.ERROR: pbx prc_insertCDR start [2025-04-26 17:32:25] Production.ERROR: pbx prc_insertCDR end [2025-04-26 17:32:25] Production.INFO: ==6117== Releasing lock... [2025-04-26 17:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 17:32:25] Production.INFO: 44.75 MB #Memory Used# [2025-04-26 17:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 14:33:05 [end_date_ymd] => 2025-04-26 17:33:05 [RateCDR] => 1 ) [2025-04-26 17:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 14:33:05' and `end` < '2025-04-26 17:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 17:33:18] Production.INFO: count ==2207 [2025-04-26 17:33:18] Production.ERROR: pbx CDR StartTime 2025-04-26 14:33:05 - End Time 2025-04-26 17:33:05 [2025-04-26 17:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 17:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995834', 'tblTempUsageDetail_20' ) start [2025-04-26 17:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995834', 'tblTempUsageDetail_20' ) end [2025-04-26 17:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995834', 'tblTempVendorCDR_20' ) start [2025-04-26 17:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995834', 'tblTempVendorCDR_20' ) end [2025-04-26 17:33:18] Production.INFO: ProcessCDR(1,14995834,1,1,2) [2025-04-26 17:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995834', 'tblTempUsageDetail_20' ) start [2025-04-26 17:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995834', 'tblTempUsageDetail_20' ) end [2025-04-26 17:33:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 17:33:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 17:33:24] Production.INFO: ==6187== Releasing lock... [2025-04-26 17:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 17:33:24] Production.INFO: 44.75 MB #Memory Used# [2025-04-26 17:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 14:34:05 [end_date_ymd] => 2025-04-26 17:34:05 [RateCDR] => 1 ) [2025-04-26 17:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 14:34:05' and `end` < '2025-04-26 17:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 17:34:18] Production.INFO: count ==2214 [2025-04-26 17:34:19] Production.ERROR: pbx CDR StartTime 2025-04-26 14:34:05 - End Time 2025-04-26 17:34:05 [2025-04-26 17:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 17:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995839', 'tblTempUsageDetail_20' ) start [2025-04-26 17:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995839', 'tblTempUsageDetail_20' ) end [2025-04-26 17:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995839', 'tblTempVendorCDR_20' ) start [2025-04-26 17:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995839', 'tblTempVendorCDR_20' ) end [2025-04-26 17:34:19] Production.INFO: ProcessCDR(1,14995839,1,1,2) [2025-04-26 17:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995839', 'tblTempUsageDetail_20' ) start [2025-04-26 17:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995839', 'tblTempUsageDetail_20' ) end [2025-04-26 17:34:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 17:34:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 17:34:24] Production.INFO: ==6263== Releasing lock... [2025-04-26 17:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 17:34:24] Production.INFO: 44.75 MB #Memory Used# [2025-04-26 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 14:35:05 [end_date_ymd] => 2025-04-26 17:35:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 14:35:05' and `end` < '2025-04-26 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-04-26 17:35:17] Production.INFO: count ==2213 [2025-04-26 17:35:18] Production.ERROR: pbx CDR StartTime 2025-04-26 14:35:05 - End Time 2025-04-26 17:35:05 [2025-04-26 17:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 17:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995844', 'tblTempUsageDetail_20' ) start [2025-04-26 17:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995844', 'tblTempUsageDetail_20' ) end [2025-04-26 17:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995844', 'tblTempVendorCDR_20' ) start [2025-04-26 17:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995844', 'tblTempVendorCDR_20' ) end [2025-04-26 17:35:18] Production.INFO: ProcessCDR(1,14995844,1,1,2) [2025-04-26 17:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995844', 'tblTempUsageDetail_20' ) start [2025-04-26 17:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995844', 'tblTempUsageDetail_20' ) end [2025-04-26 17:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 17:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 17:35:23] Production.INFO: ==6332== Releasing lock... [2025-04-26 17:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 17:35:23] Production.INFO: 45 MB #Memory Used# [2025-04-26 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 14:36:05 [end_date_ymd] => 2025-04-26 17:36:05 [RateCDR] => 1 ) [2025-04-26 17:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 14:36:05' and `end` < '2025-04-26 17:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 17:36:18] Production.INFO: count ==2212 [2025-04-26 17:36:19] Production.ERROR: pbx CDR StartTime 2025-04-26 14:36:05 - End Time 2025-04-26 17:36:05 [2025-04-26 17:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 17:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995849', 'tblTempUsageDetail_20' ) start [2025-04-26 17:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995849', 'tblTempUsageDetail_20' ) end [2025-04-26 17:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995849', 'tblTempVendorCDR_20' ) start [2025-04-26 17:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995849', 'tblTempVendorCDR_20' ) end [2025-04-26 17:36:19] Production.INFO: ProcessCDR(1,14995849,1,1,2) [2025-04-26 17:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995849', 'tblTempUsageDetail_20' ) start [2025-04-26 17:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995849', 'tblTempUsageDetail_20' ) end [2025-04-26 17:36:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 17:36:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 17:36:24] Production.INFO: ==6410== Releasing lock... [2025-04-26 17:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 17:36:24] Production.INFO: 44.75 MB #Memory Used# [2025-04-26 17:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 14:37:04 [end_date_ymd] => 2025-04-26 17:37:04 [RateCDR] => 1 ) [2025-04-26 17: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-04-26 14:37:04' and `end` < '2025-04-26 17: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-04-26 17:37:17] Production.INFO: count ==2211 [2025-04-26 17:37:18] Production.ERROR: pbx CDR StartTime 2025-04-26 14:37:04 - End Time 2025-04-26 17:37:04 [2025-04-26 17:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 17:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995854', 'tblTempUsageDetail_20' ) start [2025-04-26 17:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995854', 'tblTempUsageDetail_20' ) end [2025-04-26 17:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995854', 'tblTempVendorCDR_20' ) start [2025-04-26 17:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995854', 'tblTempVendorCDR_20' ) end [2025-04-26 17:37:18] Production.INFO: ProcessCDR(1,14995854,1,1,2) [2025-04-26 17:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995854', 'tblTempUsageDetail_20' ) start [2025-04-26 17:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995854', 'tblTempUsageDetail_20' ) end [2025-04-26 17:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 17:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 17:37:23] Production.INFO: ==6485== Releasing lock... [2025-04-26 17:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 17:37:23] Production.INFO: 44.75 MB #Memory Used# [2025-04-26 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 14:38:05 [end_date_ymd] => 2025-04-26 17:38:05 [RateCDR] => 1 ) [2025-04-26 17:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 14:38:05' and `end` < '2025-04-26 17:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 17:38:18] Production.INFO: count ==2214 [2025-04-26 17:38:19] Production.ERROR: pbx CDR StartTime 2025-04-26 14:38:05 - End Time 2025-04-26 17:38:05 [2025-04-26 17:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 17:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995859', 'tblTempUsageDetail_20' ) start [2025-04-26 17:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995859', 'tblTempUsageDetail_20' ) end [2025-04-26 17:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995859', 'tblTempVendorCDR_20' ) start [2025-04-26 17:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995859', 'tblTempVendorCDR_20' ) end [2025-04-26 17:38:19] Production.INFO: ProcessCDR(1,14995859,1,1,2) [2025-04-26 17:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995859', 'tblTempUsageDetail_20' ) start [2025-04-26 17:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995859', 'tblTempUsageDetail_20' ) end [2025-04-26 17:38:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 17:38:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 17:38:24] Production.INFO: ==6557== Releasing lock... [2025-04-26 17:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 17:38:24] Production.INFO: 44.75 MB #Memory Used# [2025-04-26 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 14:39:05 [end_date_ymd] => 2025-04-26 17:39:05 [RateCDR] => 1 ) [2025-04-26 17:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 14:39:05' and `end` < '2025-04-26 17:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 17:39:18] Production.INFO: count ==2214 [2025-04-26 17:39:19] Production.ERROR: pbx CDR StartTime 2025-04-26 14:39:05 - End Time 2025-04-26 17:39:05 [2025-04-26 17:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 17:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995864', 'tblTempUsageDetail_20' ) start [2025-04-26 17:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995864', 'tblTempUsageDetail_20' ) end [2025-04-26 17:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995864', 'tblTempVendorCDR_20' ) start [2025-04-26 17:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995864', 'tblTempVendorCDR_20' ) end [2025-04-26 17:39:19] Production.INFO: ProcessCDR(1,14995864,1,1,2) [2025-04-26 17:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995864', 'tblTempUsageDetail_20' ) start [2025-04-26 17:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995864', 'tblTempUsageDetail_20' ) end [2025-04-26 17:39:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 17:39:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 17:39:24] Production.INFO: ==6630== Releasing lock... [2025-04-26 17:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 17:39:24] Production.INFO: 44.75 MB #Memory Used# [2025-04-26 17:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 14:40:05 [end_date_ymd] => 2025-04-26 17:40:05 [RateCDR] => 1 ) [2025-04-26 17:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 14:40:05' and `end` < '2025-04-26 17:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 17:40:18] Production.INFO: count ==2223 [2025-04-26 17:40:19] Production.ERROR: pbx CDR StartTime 2025-04-26 14:40:05 - End Time 2025-04-26 17:40:05 [2025-04-26 17:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 17:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995869', 'tblTempUsageDetail_20' ) start [2025-04-26 17:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995869', 'tblTempUsageDetail_20' ) end [2025-04-26 17:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995869', 'tblTempVendorCDR_20' ) start [2025-04-26 17:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995869', 'tblTempVendorCDR_20' ) end [2025-04-26 17:40:19] Production.INFO: ProcessCDR(1,14995869,1,1,2) [2025-04-26 17:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995869', 'tblTempUsageDetail_20' ) start [2025-04-26 17:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995869', 'tblTempUsageDetail_20' ) end [2025-04-26 17:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 17:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 17:40:23] Production.INFO: ==6704== Releasing lock... [2025-04-26 17:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 17:40:23] Production.INFO: 44.75 MB #Memory Used# [2025-04-26 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 14:41:05 [end_date_ymd] => 2025-04-26 17:41:05 [RateCDR] => 1 ) [2025-04-26 17:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 14:41:05' and `end` < '2025-04-26 17:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 17:41:18] Production.INFO: count ==2207 [2025-04-26 17:41:19] Production.ERROR: pbx CDR StartTime 2025-04-26 14:41:05 - End Time 2025-04-26 17:41:05 [2025-04-26 17:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 17:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995875', 'tblTempUsageDetail_20' ) start [2025-04-26 17:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995875', 'tblTempUsageDetail_20' ) end [2025-04-26 17:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995875', 'tblTempVendorCDR_20' ) start [2025-04-26 17:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995875', 'tblTempVendorCDR_20' ) end [2025-04-26 17:41:19] Production.INFO: ProcessCDR(1,14995875,1,1,2) [2025-04-26 17:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995875', 'tblTempUsageDetail_20' ) start [2025-04-26 17:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995875', 'tblTempUsageDetail_20' ) end [2025-04-26 17:41:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 17:41:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 17:41:24] Production.INFO: ==6779== Releasing lock... [2025-04-26 17:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 17:41:24] Production.INFO: 44.75 MB #Memory Used# [2025-04-26 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 14:42:05 [end_date_ymd] => 2025-04-26 17:42:05 [RateCDR] => 1 ) [2025-04-26 17:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 14:42:05' and `end` < '2025-04-26 17:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 17:42:18] Production.INFO: count ==2199 [2025-04-26 17:42:18] Production.ERROR: pbx CDR StartTime 2025-04-26 14:42:05 - End Time 2025-04-26 17:42:05 [2025-04-26 17:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 17:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995880', 'tblTempUsageDetail_20' ) start [2025-04-26 17:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995880', 'tblTempUsageDetail_20' ) end [2025-04-26 17:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995880', 'tblTempVendorCDR_20' ) start [2025-04-26 17:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995880', 'tblTempVendorCDR_20' ) end [2025-04-26 17:42:18] Production.INFO: ProcessCDR(1,14995880,1,1,2) [2025-04-26 17:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995880', 'tblTempUsageDetail_20' ) start [2025-04-26 17:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995880', 'tblTempUsageDetail_20' ) end [2025-04-26 17:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 17:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 17:42:22] Production.INFO: ==6899== Releasing lock... [2025-04-26 17:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 17:42:22] Production.INFO: 45 MB #Memory Used# [2025-04-26 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 14:43:05 [end_date_ymd] => 2025-04-26 17:43:05 [RateCDR] => 1 ) [2025-04-26 17:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 14:43:05' and `end` < '2025-04-26 17:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 17:43:18] Production.INFO: count ==2197 [2025-04-26 17:43:18] Production.ERROR: pbx CDR StartTime 2025-04-26 14:43:05 - End Time 2025-04-26 17:43:05 [2025-04-26 17:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 17:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995885', 'tblTempUsageDetail_20' ) start [2025-04-26 17:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995885', 'tblTempUsageDetail_20' ) end [2025-04-26 17:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995885', 'tblTempVendorCDR_20' ) start [2025-04-26 17:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995885', 'tblTempVendorCDR_20' ) end [2025-04-26 17:43:18] Production.INFO: ProcessCDR(1,14995885,1,1,2) [2025-04-26 17:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995885', 'tblTempUsageDetail_20' ) start [2025-04-26 17:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995885', 'tblTempUsageDetail_20' ) end [2025-04-26 17:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 17:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 17:43:22] Production.INFO: ==6970== Releasing lock... [2025-04-26 17:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 17:43:22] Production.INFO: 44.75 MB #Memory Used# [2025-04-26 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 14:44:05 [end_date_ymd] => 2025-04-26 17:44:05 [RateCDR] => 1 ) [2025-04-26 17:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 14:44:05' and `end` < '2025-04-26 17:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 17:44:18] Production.INFO: count ==2201 [2025-04-26 17:44:19] Production.ERROR: pbx CDR StartTime 2025-04-26 14:44:05 - End Time 2025-04-26 17:44:05 [2025-04-26 17:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995890', 'tblTempUsageDetail_20' ) start [2025-04-26 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995890', 'tblTempUsageDetail_20' ) end [2025-04-26 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995890', 'tblTempVendorCDR_20' ) start [2025-04-26 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995890', 'tblTempVendorCDR_20' ) end [2025-04-26 17:44:19] Production.INFO: ProcessCDR(1,14995890,1,1,2) [2025-04-26 17:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995890', 'tblTempUsageDetail_20' ) start [2025-04-26 17:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995890', 'tblTempUsageDetail_20' ) end [2025-04-26 17:44:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 17:44:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 17:44:24] Production.INFO: ==7046== Releasing lock... [2025-04-26 17:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 17:44:24] Production.INFO: 44.75 MB #Memory Used# [2025-04-26 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 14:45:05 [end_date_ymd] => 2025-04-26 17:45:05 [RateCDR] => 1 ) [2025-04-26 17:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 14:45:05' and `end` < '2025-04-26 17:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 17:45:18] Production.INFO: count ==2206 [2025-04-26 17:45:18] Production.ERROR: pbx CDR StartTime 2025-04-26 14:45:05 - End Time 2025-04-26 17:45:05 [2025-04-26 17:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 17:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995895', 'tblTempUsageDetail_20' ) start [2025-04-26 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995895', 'tblTempUsageDetail_20' ) end [2025-04-26 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995895', 'tblTempVendorCDR_20' ) start [2025-04-26 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995895', 'tblTempVendorCDR_20' ) end [2025-04-26 17:45:19] Production.INFO: ProcessCDR(1,14995895,1,1,2) [2025-04-26 17:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995895', 'tblTempUsageDetail_20' ) start [2025-04-26 17:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995895', 'tblTempUsageDetail_20' ) end [2025-04-26 17:45:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 17:45:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 17:45:23] Production.INFO: ==7117== Releasing lock... [2025-04-26 17:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 17:45:23] Production.INFO: 44.75 MB #Memory Used# [2025-04-26 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 14:46:05 [end_date_ymd] => 2025-04-26 17:46:05 [RateCDR] => 1 ) [2025-04-26 17:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 14:46:05' and `end` < '2025-04-26 17:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 17:46:18] Production.INFO: count ==2214 [2025-04-26 17:46:19] Production.ERROR: pbx CDR StartTime 2025-04-26 14:46:05 - End Time 2025-04-26 17:46:05 [2025-04-26 17:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995900', 'tblTempUsageDetail_20' ) start [2025-04-26 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995900', 'tblTempUsageDetail_20' ) end [2025-04-26 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995900', 'tblTempVendorCDR_20' ) start [2025-04-26 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995900', 'tblTempVendorCDR_20' ) end [2025-04-26 17:46:19] Production.INFO: ProcessCDR(1,14995900,1,1,2) [2025-04-26 17:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995900', 'tblTempUsageDetail_20' ) start [2025-04-26 17:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995900', 'tblTempUsageDetail_20' ) end [2025-04-26 17:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 17:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 17:46:24] Production.INFO: ==7189== Releasing lock... [2025-04-26 17:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 17:46:24] Production.INFO: 44.75 MB #Memory Used# [2025-04-26 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 14:47:05 [end_date_ymd] => 2025-04-26 17:47:05 [RateCDR] => 1 ) [2025-04-26 17:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 14:47:05' and `end` < '2025-04-26 17:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 17:47:18] Production.INFO: count ==2215 [2025-04-26 17:47:18] Production.ERROR: pbx CDR StartTime 2025-04-26 14:47:05 - End Time 2025-04-26 17:47:05 [2025-04-26 17:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995905', 'tblTempUsageDetail_20' ) start [2025-04-26 17:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995905', 'tblTempUsageDetail_20' ) end [2025-04-26 17:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995905', 'tblTempVendorCDR_20' ) start [2025-04-26 17:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995905', 'tblTempVendorCDR_20' ) end [2025-04-26 17:47:19] Production.INFO: ProcessCDR(1,14995905,1,1,2) [2025-04-26 17:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995905', 'tblTempUsageDetail_20' ) start [2025-04-26 17:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995905', 'tblTempUsageDetail_20' ) end [2025-04-26 17:47:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 17:47:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 17:47:24] Production.INFO: ==7265== Releasing lock... [2025-04-26 17:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 17:47:24] Production.INFO: 44.75 MB #Memory Used# [2025-04-26 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 14:48:05 [end_date_ymd] => 2025-04-26 17:48:05 [RateCDR] => 1 ) [2025-04-26 17:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 14:48:05' and `end` < '2025-04-26 17:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 17:48:18] Production.INFO: count ==2222 [2025-04-26 17:48:19] Production.ERROR: pbx CDR StartTime 2025-04-26 14:48:05 - End Time 2025-04-26 17:48:05 [2025-04-26 17:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995910', 'tblTempUsageDetail_20' ) start [2025-04-26 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995910', 'tblTempUsageDetail_20' ) end [2025-04-26 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995910', 'tblTempVendorCDR_20' ) start [2025-04-26 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995910', 'tblTempVendorCDR_20' ) end [2025-04-26 17:48:19] Production.INFO: ProcessCDR(1,14995910,1,1,2) [2025-04-26 17:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995910', 'tblTempUsageDetail_20' ) start [2025-04-26 17:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995910', 'tblTempUsageDetail_20' ) end [2025-04-26 17:48:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 17:48:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 17:48:24] Production.INFO: ==7335== Releasing lock... [2025-04-26 17:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 17:48:24] Production.INFO: 44.75 MB #Memory Used# [2025-04-26 17:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 14:49:04 [end_date_ymd] => 2025-04-26 17:49:04 [RateCDR] => 1 ) [2025-04-26 17:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 14:49:04' and `end` < '2025-04-26 17:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 17:49:18] Production.INFO: count ==2235 [2025-04-26 17:49:18] Production.ERROR: pbx CDR StartTime 2025-04-26 14:49:04 - End Time 2025-04-26 17:49:04 [2025-04-26 17:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995915', 'tblTempUsageDetail_20' ) start [2025-04-26 17:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995915', 'tblTempUsageDetail_20' ) end [2025-04-26 17:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995915', 'tblTempVendorCDR_20' ) start [2025-04-26 17:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995915', 'tblTempVendorCDR_20' ) end [2025-04-26 17:49:19] Production.INFO: ProcessCDR(1,14995915,1,1,2) [2025-04-26 17:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995915', 'tblTempUsageDetail_20' ) start [2025-04-26 17:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995915', 'tblTempUsageDetail_20' ) end [2025-04-26 17:49:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 17:49:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 17:49:24] Production.INFO: ==7407== Releasing lock... [2025-04-26 17:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 17:49:24] Production.INFO: 45.25 MB #Memory Used# [2025-04-26 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 14:50:06 [end_date_ymd] => 2025-04-26 17:50:06 [RateCDR] => 1 ) [2025-04-26 17:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 14:50:06' and `end` < '2025-04-26 17:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 17:50:19] Production.INFO: count ==2238 [2025-04-26 17:50:20] Production.ERROR: pbx CDR StartTime 2025-04-26 14:50:06 - End Time 2025-04-26 17:50:06 [2025-04-26 17:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995921', 'tblTempUsageDetail_20' ) start [2025-04-26 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995921', 'tblTempUsageDetail_20' ) end [2025-04-26 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995921', 'tblTempVendorCDR_20' ) start [2025-04-26 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995921', 'tblTempVendorCDR_20' ) end [2025-04-26 17:50:20] Production.INFO: ProcessCDR(1,14995921,1,1,2) [2025-04-26 17:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995921', 'tblTempUsageDetail_20' ) start [2025-04-26 17:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995921', 'tblTempUsageDetail_20' ) end [2025-04-26 17:50:25] Production.ERROR: pbx prc_insertCDR start [2025-04-26 17:50:25] Production.ERROR: pbx prc_insertCDR end [2025-04-26 17:50:25] Production.INFO: ==7481== Releasing lock... [2025-04-26 17:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 17:50:25] Production.INFO: 44.75 MB #Memory Used# [2025-04-26 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 14:51:05 [end_date_ymd] => 2025-04-26 17:51:05 [RateCDR] => 1 ) [2025-04-26 17:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 14:51:05' and `end` < '2025-04-26 17:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 17:51:17] Production.INFO: count ==2273 [2025-04-26 17:51:18] Production.ERROR: pbx CDR StartTime 2025-04-26 14:51:05 - End Time 2025-04-26 17:51:05 [2025-04-26 17:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 17:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995926', 'tblTempUsageDetail_20' ) start [2025-04-26 17:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995926', 'tblTempUsageDetail_20' ) end [2025-04-26 17:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995926', 'tblTempVendorCDR_20' ) start [2025-04-26 17:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995926', 'tblTempVendorCDR_20' ) end [2025-04-26 17:51:18] Production.INFO: ProcessCDR(1,14995926,1,1,2) [2025-04-26 17:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995926', 'tblTempUsageDetail_20' ) start [2025-04-26 17:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995926', 'tblTempUsageDetail_20' ) end [2025-04-26 17:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 17:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 17:51:23] Production.INFO: ==7558== Releasing lock... [2025-04-26 17:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 17:51:23] Production.INFO: 45.25 MB #Memory Used# [2025-04-26 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 14:52:05 [end_date_ymd] => 2025-04-26 17:52:05 [RateCDR] => 1 ) [2025-04-26 17:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 14:52:05' and `end` < '2025-04-26 17:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 17:52:18] Production.INFO: count ==2278 [2025-04-26 17:52:19] Production.ERROR: pbx CDR StartTime 2025-04-26 14:52:05 - End Time 2025-04-26 17:52:05 [2025-04-26 17:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995931', 'tblTempUsageDetail_20' ) start [2025-04-26 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995931', 'tblTempUsageDetail_20' ) end [2025-04-26 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995931', 'tblTempVendorCDR_20' ) start [2025-04-26 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995931', 'tblTempVendorCDR_20' ) end [2025-04-26 17:52:19] Production.INFO: ProcessCDR(1,14995931,1,1,2) [2025-04-26 17:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995931', 'tblTempUsageDetail_20' ) start [2025-04-26 17:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995931', 'tblTempUsageDetail_20' ) end [2025-04-26 17:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 17:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 17:52:22] Production.INFO: ==7642== Releasing lock... [2025-04-26 17:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 17:52:22] Production.INFO: 45.25 MB #Memory Used# [2025-04-26 17:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 14:53:06 [end_date_ymd] => 2025-04-26 17:53:06 [RateCDR] => 1 ) [2025-04-26 17:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 14:53:06' and `end` < '2025-04-26 17:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 17:53:19] Production.INFO: count ==2300 [2025-04-26 17:53:19] Production.ERROR: pbx CDR StartTime 2025-04-26 14:53:06 - End Time 2025-04-26 17:53:06 [2025-04-26 17:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995936', 'tblTempUsageDetail_20' ) start [2025-04-26 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995936', 'tblTempUsageDetail_20' ) end [2025-04-26 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995936', 'tblTempVendorCDR_20' ) start [2025-04-26 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995936', 'tblTempVendorCDR_20' ) end [2025-04-26 17:53:19] Production.INFO: ProcessCDR(1,14995936,1,1,2) [2025-04-26 17:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995936', 'tblTempUsageDetail_20' ) start [2025-04-26 17:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995936', 'tblTempUsageDetail_20' ) end [2025-04-26 17:53:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 17:53:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 17:53:24] Production.INFO: ==7713== Releasing lock... [2025-04-26 17:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 17:53:24] Production.INFO: 45.5 MB #Memory Used# [2025-04-26 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 14:54:05 [end_date_ymd] => 2025-04-26 17:54:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 14:54:05' and `end` < '2025-04-26 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-04-26 17:54:18] Production.INFO: count ==2300 [2025-04-26 17:54:19] Production.ERROR: pbx CDR StartTime 2025-04-26 14:54:05 - End Time 2025-04-26 17:54:05 [2025-04-26 17:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995941', 'tblTempUsageDetail_20' ) start [2025-04-26 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995941', 'tblTempUsageDetail_20' ) end [2025-04-26 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995941', 'tblTempVendorCDR_20' ) start [2025-04-26 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995941', 'tblTempVendorCDR_20' ) end [2025-04-26 17:54:19] Production.INFO: ProcessCDR(1,14995941,1,1,2) [2025-04-26 17:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995941', 'tblTempUsageDetail_20' ) start [2025-04-26 17:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995941', 'tblTempUsageDetail_20' ) end [2025-04-26 17:54:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 17:54:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 17:54:24] Production.INFO: ==7789== Releasing lock... [2025-04-26 17:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 17:54:24] Production.INFO: 45.5 MB #Memory Used# [2025-04-26 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 14:55:05 [end_date_ymd] => 2025-04-26 17:55:05 [RateCDR] => 1 ) [2025-04-26 17:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 14:55:05' and `end` < '2025-04-26 17:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 17:55:18] Production.INFO: count ==2307 [2025-04-26 17:55:19] Production.ERROR: pbx CDR StartTime 2025-04-26 14:55:05 - End Time 2025-04-26 17:55:05 [2025-04-26 17:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995946', 'tblTempUsageDetail_20' ) start [2025-04-26 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995946', 'tblTempUsageDetail_20' ) end [2025-04-26 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995946', 'tblTempVendorCDR_20' ) start [2025-04-26 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995946', 'tblTempVendorCDR_20' ) end [2025-04-26 17:55:19] Production.INFO: ProcessCDR(1,14995946,1,1,2) [2025-04-26 17:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995946', 'tblTempUsageDetail_20' ) start [2025-04-26 17:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995946', 'tblTempUsageDetail_20' ) end [2025-04-26 17:55:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 17:55:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 17:55:24] Production.INFO: ==7866== Releasing lock... [2025-04-26 17:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 17:55:24] Production.INFO: 45.5 MB #Memory Used# [2025-04-26 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 14:56:05 [end_date_ymd] => 2025-04-26 17:56:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 14:56:05' and `end` < '2025-04-26 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-04-26 17:56:18] Production.INFO: count ==2310 [2025-04-26 17:56:19] Production.ERROR: pbx CDR StartTime 2025-04-26 14:56:05 - End Time 2025-04-26 17:56:05 [2025-04-26 17:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995951', 'tblTempUsageDetail_20' ) start [2025-04-26 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995951', 'tblTempUsageDetail_20' ) end [2025-04-26 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995951', 'tblTempVendorCDR_20' ) start [2025-04-26 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995951', 'tblTempVendorCDR_20' ) end [2025-04-26 17:56:19] Production.INFO: ProcessCDR(1,14995951,1,1,2) [2025-04-26 17:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995951', 'tblTempUsageDetail_20' ) start [2025-04-26 17:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995951', 'tblTempUsageDetail_20' ) end [2025-04-26 17:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 17:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 17:56:22] Production.INFO: ==7938== Releasing lock... [2025-04-26 17:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 17:56:22] Production.INFO: 45.5 MB #Memory Used# [2025-04-26 17:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 14:57:06 [end_date_ymd] => 2025-04-26 17:57:06 [RateCDR] => 1 ) [2025-04-26 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-04-26 14:57:06' and `end` < '2025-04-26 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-04-26 17:57:19] Production.INFO: count ==2295 [2025-04-26 17:57:19] Production.ERROR: pbx CDR StartTime 2025-04-26 14:57:06 - End Time 2025-04-26 17:57:06 [2025-04-26 17:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995956', 'tblTempUsageDetail_20' ) start [2025-04-26 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995956', 'tblTempUsageDetail_20' ) end [2025-04-26 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995956', 'tblTempVendorCDR_20' ) start [2025-04-26 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995956', 'tblTempVendorCDR_20' ) end [2025-04-26 17:57:20] Production.INFO: ProcessCDR(1,14995956,1,1,2) [2025-04-26 17:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995956', 'tblTempUsageDetail_20' ) start [2025-04-26 17:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995956', 'tblTempUsageDetail_20' ) end [2025-04-26 17:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 17:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 17:57:23] Production.INFO: ==8013== Releasing lock... [2025-04-26 17:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 17:57:23] Production.INFO: 45.25 MB #Memory Used# [2025-04-26 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 14:58:05 [end_date_ymd] => 2025-04-26 17:58:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 14:58:05' and `end` < '2025-04-26 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-04-26 17:58:18] Production.INFO: count ==2301 [2025-04-26 17:58:19] Production.ERROR: pbx CDR StartTime 2025-04-26 14:58:05 - End Time 2025-04-26 17:58:05 [2025-04-26 17:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995961', 'tblTempUsageDetail_20' ) start [2025-04-26 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995961', 'tblTempUsageDetail_20' ) end [2025-04-26 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995961', 'tblTempVendorCDR_20' ) start [2025-04-26 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995961', 'tblTempVendorCDR_20' ) end [2025-04-26 17:58:19] Production.INFO: ProcessCDR(1,14995961,1,1,2) [2025-04-26 17:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995961', 'tblTempUsageDetail_20' ) start [2025-04-26 17:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995961', 'tblTempUsageDetail_20' ) end [2025-04-26 17:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 17:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 17:58:22] Production.INFO: ==8124== Releasing lock... [2025-04-26 17:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 17:58:22] Production.INFO: 45.5 MB #Memory Used# [2025-04-26 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 14:59:05 [end_date_ymd] => 2025-04-26 17:59:05 [RateCDR] => 1 ) [2025-04-26 17:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 14:59:05' and `end` < '2025-04-26 17:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 17:59:18] Production.INFO: count ==2301 [2025-04-26 17:59:19] Production.ERROR: pbx CDR StartTime 2025-04-26 14:59:05 - End Time 2025-04-26 17:59:05 [2025-04-26 17:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995966', 'tblTempUsageDetail_20' ) start [2025-04-26 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995966', 'tblTempUsageDetail_20' ) end [2025-04-26 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995966', 'tblTempVendorCDR_20' ) start [2025-04-26 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995966', 'tblTempVendorCDR_20' ) end [2025-04-26 17:59:19] Production.INFO: ProcessCDR(1,14995966,1,1,2) [2025-04-26 17:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 17:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 17:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995966', 'tblTempUsageDetail_20' ) start [2025-04-26 17:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995966', 'tblTempUsageDetail_20' ) end [2025-04-26 17:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 17:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 17:59:22] Production.INFO: ==8204== Releasing lock... [2025-04-26 17:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 17:59:22] Production.INFO: 45.75 MB #Memory Used# [2025-04-26 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 15:00:06 [end_date_ymd] => 2025-04-26 18:00:06 [RateCDR] => 1 ) [2025-04-26 18:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 15:00:06' and `end` < '2025-04-26 18:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 18:00:19] Production.INFO: count ==2304 [2025-04-26 18:00:20] Production.ERROR: pbx CDR StartTime 2025-04-26 15:00:06 - End Time 2025-04-26 18:00:06 [2025-04-26 18:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995972', 'tblTempUsageDetail_20' ) start [2025-04-26 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995972', 'tblTempUsageDetail_20' ) end [2025-04-26 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995972', 'tblTempVendorCDR_20' ) start [2025-04-26 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995972', 'tblTempVendorCDR_20' ) end [2025-04-26 18:00:20] Production.INFO: ProcessCDR(1,14995972,1,1,2) [2025-04-26 18:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995972', 'tblTempUsageDetail_20' ) start [2025-04-26 18:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995972', 'tblTempUsageDetail_20' ) end [2025-04-26 18:00:25] Production.ERROR: pbx prc_insertCDR start [2025-04-26 18:00:25] Production.ERROR: pbx prc_insertCDR end [2025-04-26 18:00:25] Production.INFO: ==8286== Releasing lock... [2025-04-26 18:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 18:00:25] Production.INFO: 45.5 MB #Memory Used# [2025-04-26 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 15:01:05 [end_date_ymd] => 2025-04-26 18:01:05 [RateCDR] => 1 ) [2025-04-26 18:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 15:01:05' and `end` < '2025-04-26 18:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 18:01:18] Production.INFO: count ==2328 [2025-04-26 18:01:18] Production.ERROR: pbx CDR StartTime 2025-04-26 15:01:05 - End Time 2025-04-26 18:01:05 [2025-04-26 18:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 18:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995977', 'tblTempUsageDetail_20' ) start [2025-04-26 18:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995977', 'tblTempUsageDetail_20' ) end [2025-04-26 18:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995977', 'tblTempVendorCDR_20' ) start [2025-04-26 18:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995977', 'tblTempVendorCDR_20' ) end [2025-04-26 18:01:18] Production.INFO: ProcessCDR(1,14995977,1,1,2) [2025-04-26 18:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995977', 'tblTempUsageDetail_20' ) start [2025-04-26 18:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995977', 'tblTempUsageDetail_20' ) end [2025-04-26 18:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 18:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 18:01:22] Production.INFO: ==8371== Releasing lock... [2025-04-26 18:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 18:01:22] Production.INFO: 45.5 MB #Memory Used# [2025-04-26 18:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 15:02:06 [end_date_ymd] => 2025-04-26 18:02:06 [RateCDR] => 1 ) [2025-04-26 18:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 15:02:06' and `end` < '2025-04-26 18:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 18:02:18] Production.INFO: count ==2335 [2025-04-26 18:02:19] Production.ERROR: pbx CDR StartTime 2025-04-26 15:02:06 - End Time 2025-04-26 18:02:06 [2025-04-26 18:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995982', 'tblTempUsageDetail_20' ) start [2025-04-26 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995982', 'tblTempUsageDetail_20' ) end [2025-04-26 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995982', 'tblTempVendorCDR_20' ) start [2025-04-26 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995982', 'tblTempVendorCDR_20' ) end [2025-04-26 18:02:19] Production.INFO: ProcessCDR(1,14995982,1,1,2) [2025-04-26 18:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995982', 'tblTempUsageDetail_20' ) start [2025-04-26 18:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995982', 'tblTempUsageDetail_20' ) end [2025-04-26 18:02:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 18:02:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 18:02:24] Production.INFO: ==8447== Releasing lock... [2025-04-26 18:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 18:02:24] Production.INFO: 45.75 MB #Memory Used# [2025-04-26 18:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 15:03:04 [end_date_ymd] => 2025-04-26 18:03:04 [RateCDR] => 1 ) [2025-04-26 18: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-04-26 15:03:04' and `end` < '2025-04-26 18: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-04-26 18:03:17] Production.INFO: count ==2317 [2025-04-26 18:03:18] Production.ERROR: pbx CDR StartTime 2025-04-26 15:03:04 - End Time 2025-04-26 18:03:04 [2025-04-26 18:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 18:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995987', 'tblTempUsageDetail_20' ) start [2025-04-26 18:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995987', 'tblTempUsageDetail_20' ) end [2025-04-26 18:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995987', 'tblTempVendorCDR_20' ) start [2025-04-26 18:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995987', 'tblTempVendorCDR_20' ) end [2025-04-26 18:03:18] Production.INFO: ProcessCDR(1,14995987,1,1,2) [2025-04-26 18:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995987', 'tblTempUsageDetail_20' ) start [2025-04-26 18:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995987', 'tblTempUsageDetail_20' ) end [2025-04-26 18:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 18:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 18:03:23] Production.INFO: ==8518== Releasing lock... [2025-04-26 18:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 18:03:23] Production.INFO: 45.75 MB #Memory Used# [2025-04-26 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 15:04:05 [end_date_ymd] => 2025-04-26 18:04:05 [RateCDR] => 1 ) [2025-04-26 18:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 15:04:05' and `end` < '2025-04-26 18:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 18:04:18] Production.INFO: count ==2320 [2025-04-26 18:04:19] Production.ERROR: pbx CDR StartTime 2025-04-26 15:04:05 - End Time 2025-04-26 18:04:05 [2025-04-26 18:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995992', 'tblTempUsageDetail_20' ) start [2025-04-26 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995992', 'tblTempUsageDetail_20' ) end [2025-04-26 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995992', 'tblTempVendorCDR_20' ) start [2025-04-26 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995992', 'tblTempVendorCDR_20' ) end [2025-04-26 18:04:19] Production.INFO: ProcessCDR(1,14995992,1,1,2) [2025-04-26 18:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995992', 'tblTempUsageDetail_20' ) start [2025-04-26 18:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995992', 'tblTempUsageDetail_20' ) end [2025-04-26 18:04:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 18:04:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 18:04:24] Production.INFO: ==8591== Releasing lock... [2025-04-26 18:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 18:04:24] Production.INFO: 45.5 MB #Memory Used# [2025-04-26 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 15:05:05 [end_date_ymd] => 2025-04-26 18:05:05 [RateCDR] => 1 ) [2025-04-26 18:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 15:05:05' and `end` < '2025-04-26 18:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 18:05:18] Production.INFO: count ==2323 [2025-04-26 18:05:18] Production.ERROR: pbx CDR StartTime 2025-04-26 15:05:05 - End Time 2025-04-26 18:05:05 [2025-04-26 18:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 18:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995997', 'tblTempUsageDetail_20' ) start [2025-04-26 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14995997', 'tblTempUsageDetail_20' ) end [2025-04-26 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995997', 'tblTempVendorCDR_20' ) start [2025-04-26 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14995997', 'tblTempVendorCDR_20' ) end [2025-04-26 18:05:19] Production.INFO: ProcessCDR(1,14995997,1,1,2) [2025-04-26 18:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14995997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14995997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14995997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14995997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995997', 'tblTempUsageDetail_20' ) start [2025-04-26 18:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14995997', 'tblTempUsageDetail_20' ) end [2025-04-26 18:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 18:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 18:05:23] Production.INFO: ==8667== Releasing lock... [2025-04-26 18:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 18:05:23] Production.INFO: 45.5 MB #Memory Used# [2025-04-26 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 15:06:05 [end_date_ymd] => 2025-04-26 18:06:05 [RateCDR] => 1 ) [2025-04-26 18:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 15:06:05' and `end` < '2025-04-26 18:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 18:06:18] Production.INFO: count ==2313 [2025-04-26 18:06:19] Production.ERROR: pbx CDR StartTime 2025-04-26 15:06:05 - End Time 2025-04-26 18:06:05 [2025-04-26 18:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996002', 'tblTempUsageDetail_20' ) start [2025-04-26 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996002', 'tblTempUsageDetail_20' ) end [2025-04-26 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996002', 'tblTempVendorCDR_20' ) start [2025-04-26 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996002', 'tblTempVendorCDR_20' ) end [2025-04-26 18:06:19] Production.INFO: ProcessCDR(1,14996002,1,1,2) [2025-04-26 18:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996002', 'tblTempUsageDetail_20' ) start [2025-04-26 18:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996002', 'tblTempUsageDetail_20' ) end [2025-04-26 18:06:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 18:06:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 18:06:24] Production.INFO: ==8741== Releasing lock... [2025-04-26 18:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 18:06:24] Production.INFO: 45.75 MB #Memory Used# [2025-04-26 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 15:07:05 [end_date_ymd] => 2025-04-26 18:07:05 [RateCDR] => 1 ) [2025-04-26 18:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 15:07:05' and `end` < '2025-04-26 18:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 18:07:18] Production.INFO: count ==2314 [2025-04-26 18:07:19] Production.ERROR: pbx CDR StartTime 2025-04-26 15:07:05 - End Time 2025-04-26 18:07:05 [2025-04-26 18:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996007', 'tblTempUsageDetail_20' ) start [2025-04-26 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996007', 'tblTempUsageDetail_20' ) end [2025-04-26 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996007', 'tblTempVendorCDR_20' ) start [2025-04-26 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996007', 'tblTempVendorCDR_20' ) end [2025-04-26 18:07:19] Production.INFO: ProcessCDR(1,14996007,1,1,2) [2025-04-26 18:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996007', 'tblTempUsageDetail_20' ) start [2025-04-26 18:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996007', 'tblTempUsageDetail_20' ) end [2025-04-26 18:07:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 18:07:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 18:07:24] Production.INFO: ==8816== Releasing lock... [2025-04-26 18:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 18:07:24] Production.INFO: 45.5 MB #Memory Used# [2025-04-26 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 15:08:05 [end_date_ymd] => 2025-04-26 18:08:05 [RateCDR] => 1 ) [2025-04-26 18:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 15:08:05' and `end` < '2025-04-26 18:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 18:08:18] Production.INFO: count ==2319 [2025-04-26 18:08:18] Production.ERROR: pbx CDR StartTime 2025-04-26 15:08:05 - End Time 2025-04-26 18:08:05 [2025-04-26 18:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 18:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996012', 'tblTempUsageDetail_20' ) start [2025-04-26 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996012', 'tblTempUsageDetail_20' ) end [2025-04-26 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996012', 'tblTempVendorCDR_20' ) start [2025-04-26 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996012', 'tblTempVendorCDR_20' ) end [2025-04-26 18:08:19] Production.INFO: ProcessCDR(1,14996012,1,1,2) [2025-04-26 18:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996012', 'tblTempUsageDetail_20' ) start [2025-04-26 18:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996012', 'tblTempUsageDetail_20' ) end [2025-04-26 18:08:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 18:08:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 18:08:23] Production.INFO: ==8893== Releasing lock... [2025-04-26 18:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 18:08:23] Production.INFO: 45.5 MB #Memory Used# [2025-04-26 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 15:09:05 [end_date_ymd] => 2025-04-26 18:09:05 [RateCDR] => 1 ) [2025-04-26 18:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 15:09:05' and `end` < '2025-04-26 18:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 18:09:18] Production.INFO: count ==2326 [2025-04-26 18:09:19] Production.ERROR: pbx CDR StartTime 2025-04-26 15:09:05 - End Time 2025-04-26 18:09:05 [2025-04-26 18:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996017', 'tblTempUsageDetail_20' ) start [2025-04-26 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996017', 'tblTempUsageDetail_20' ) end [2025-04-26 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996017', 'tblTempVendorCDR_20' ) start [2025-04-26 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996017', 'tblTempVendorCDR_20' ) end [2025-04-26 18:09:19] Production.INFO: ProcessCDR(1,14996017,1,1,2) [2025-04-26 18:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996017', 'tblTempUsageDetail_20' ) start [2025-04-26 18:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996017', 'tblTempUsageDetail_20' ) end [2025-04-26 18:09:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 18:09:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 18:09:24] Production.INFO: ==8972== Releasing lock... [2025-04-26 18:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 18:09:24] Production.INFO: 45.5 MB #Memory Used# [2025-04-26 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 15:10:06 [end_date_ymd] => 2025-04-26 18:10:06 [RateCDR] => 1 ) [2025-04-26 18:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 15:10:06' and `end` < '2025-04-26 18:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 18:10:19] Production.INFO: count ==2324 [2025-04-26 18:10:19] Production.ERROR: pbx CDR StartTime 2025-04-26 15:10:06 - End Time 2025-04-26 18:10:06 [2025-04-26 18:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 18:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996023', 'tblTempUsageDetail_20' ) start [2025-04-26 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996023', 'tblTempUsageDetail_20' ) end [2025-04-26 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996023', 'tblTempVendorCDR_20' ) start [2025-04-26 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996023', 'tblTempVendorCDR_20' ) end [2025-04-26 18:10:20] Production.INFO: ProcessCDR(1,14996023,1,1,2) [2025-04-26 18:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996023', 'tblTempUsageDetail_20' ) start [2025-04-26 18:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996023', 'tblTempUsageDetail_20' ) end [2025-04-26 18:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 18:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 18:10:24] Production.INFO: ==9045== Releasing lock... [2025-04-26 18:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 18:10:24] Production.INFO: 45.5 MB #Memory Used# [2025-04-26 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 15:11:05 [end_date_ymd] => 2025-04-26 18:11:05 [RateCDR] => 1 ) [2025-04-26 18:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 15:11:05' and `end` < '2025-04-26 18:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 18:11:18] Production.INFO: count ==2405 [2025-04-26 18:11:19] Production.ERROR: pbx CDR StartTime 2025-04-26 15:11:05 - End Time 2025-04-26 18:11:05 [2025-04-26 18:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996028', 'tblTempUsageDetail_20' ) start [2025-04-26 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996028', 'tblTempUsageDetail_20' ) end [2025-04-26 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996028', 'tblTempVendorCDR_20' ) start [2025-04-26 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996028', 'tblTempVendorCDR_20' ) end [2025-04-26 18:11:19] Production.INFO: ProcessCDR(1,14996028,1,1,2) [2025-04-26 18:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996028', 'tblTempUsageDetail_20' ) start [2025-04-26 18:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996028', 'tblTempUsageDetail_20' ) end [2025-04-26 18:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 18:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 18:11:22] Production.INFO: ==9126== Releasing lock... [2025-04-26 18:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 18:11:22] Production.INFO: 46.25 MB #Memory Used# [2025-04-26 18:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 15:12:04 [end_date_ymd] => 2025-04-26 18:12:04 [RateCDR] => 1 ) [2025-04-26 18:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 15:12:04' and `end` < '2025-04-26 18:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 18:12:17] Production.INFO: count ==2412 [2025-04-26 18:12:18] Production.ERROR: pbx CDR StartTime 2025-04-26 15:12:04 - End Time 2025-04-26 18:12:04 [2025-04-26 18:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 18:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996033', 'tblTempUsageDetail_20' ) start [2025-04-26 18:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996033', 'tblTempUsageDetail_20' ) end [2025-04-26 18:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996033', 'tblTempVendorCDR_20' ) start [2025-04-26 18:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996033', 'tblTempVendorCDR_20' ) end [2025-04-26 18:12:18] Production.INFO: ProcessCDR(1,14996033,1,1,2) [2025-04-26 18:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996033', 'tblTempUsageDetail_20' ) start [2025-04-26 18:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996033', 'tblTempUsageDetail_20' ) end [2025-04-26 18:12:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 18:12:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 18:12:23] Production.INFO: ==9202== Releasing lock... [2025-04-26 18:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 18:12:23] Production.INFO: 46.5 MB #Memory Used# [2025-04-26 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 15:13:05 [end_date_ymd] => 2025-04-26 18:13:05 [RateCDR] => 1 ) [2025-04-26 18:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 15:13:05' and `end` < '2025-04-26 18:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 18:13:18] Production.INFO: count ==2412 [2025-04-26 18:13:19] Production.ERROR: pbx CDR StartTime 2025-04-26 15:13:05 - End Time 2025-04-26 18:13:05 [2025-04-26 18:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996038', 'tblTempUsageDetail_20' ) start [2025-04-26 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996038', 'tblTempUsageDetail_20' ) end [2025-04-26 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996038', 'tblTempVendorCDR_20' ) start [2025-04-26 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996038', 'tblTempVendorCDR_20' ) end [2025-04-26 18:13:19] Production.INFO: ProcessCDR(1,14996038,1,1,2) [2025-04-26 18:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996038', 'tblTempUsageDetail_20' ) start [2025-04-26 18:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996038', 'tblTempUsageDetail_20' ) end [2025-04-26 18:13:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 18:13:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 18:13:24] Production.INFO: ==9323== Releasing lock... [2025-04-26 18:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 18:13:24] Production.INFO: 46.25 MB #Memory Used# [2025-04-26 18:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 15:14:06 [end_date_ymd] => 2025-04-26 18:14:06 [RateCDR] => 1 ) [2025-04-26 18:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 15:14:06' and `end` < '2025-04-26 18:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 18:14:19] Production.INFO: count ==2415 [2025-04-26 18:14:19] Production.ERROR: pbx CDR StartTime 2025-04-26 15:14:06 - End Time 2025-04-26 18:14:06 [2025-04-26 18:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996043', 'tblTempUsageDetail_20' ) start [2025-04-26 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996043', 'tblTempUsageDetail_20' ) end [2025-04-26 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996043', 'tblTempVendorCDR_20' ) start [2025-04-26 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996043', 'tblTempVendorCDR_20' ) end [2025-04-26 18:14:19] Production.INFO: ProcessCDR(1,14996043,1,1,2) [2025-04-26 18:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996043', 'tblTempUsageDetail_20' ) start [2025-04-26 18:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996043', 'tblTempUsageDetail_20' ) end [2025-04-26 18:14:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 18:14:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 18:14:24] Production.INFO: ==9396== Releasing lock... [2025-04-26 18:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 18:14:24] Production.INFO: 46.5 MB #Memory Used# [2025-04-26 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 15:15:05 [end_date_ymd] => 2025-04-26 18:15:05 [RateCDR] => 1 ) [2025-04-26 18:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 15:15:05' and `end` < '2025-04-26 18:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 18:15:18] Production.INFO: count ==2420 [2025-04-26 18:15:19] Production.ERROR: pbx CDR StartTime 2025-04-26 15:15:05 - End Time 2025-04-26 18:15:05 [2025-04-26 18:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996048', 'tblTempUsageDetail_20' ) start [2025-04-26 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996048', 'tblTempUsageDetail_20' ) end [2025-04-26 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996048', 'tblTempVendorCDR_20' ) start [2025-04-26 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996048', 'tblTempVendorCDR_20' ) end [2025-04-26 18:15:19] Production.INFO: ProcessCDR(1,14996048,1,1,2) [2025-04-26 18:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996048', 'tblTempUsageDetail_20' ) start [2025-04-26 18:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996048', 'tblTempUsageDetail_20' ) end [2025-04-26 18:15:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 18:15:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 18:15:24] Production.INFO: ==9465== Releasing lock... [2025-04-26 18:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 18:15:24] Production.INFO: 46.25 MB #Memory Used# [2025-04-26 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 15:16:05 [end_date_ymd] => 2025-04-26 18:16:05 [RateCDR] => 1 ) [2025-04-26 18:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 15:16:05' and `end` < '2025-04-26 18:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 18:16:18] Production.INFO: count ==2425 [2025-04-26 18:16:18] Production.ERROR: pbx CDR StartTime 2025-04-26 15:16:05 - End Time 2025-04-26 18:16:05 [2025-04-26 18:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 18:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996053', 'tblTempUsageDetail_20' ) start [2025-04-26 18:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996053', 'tblTempUsageDetail_20' ) end [2025-04-26 18:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996053', 'tblTempVendorCDR_20' ) start [2025-04-26 18:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996053', 'tblTempVendorCDR_20' ) end [2025-04-26 18:16:18] Production.INFO: ProcessCDR(1,14996053,1,1,2) [2025-04-26 18:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996053', 'tblTempUsageDetail_20' ) start [2025-04-26 18:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996053', 'tblTempUsageDetail_20' ) end [2025-04-26 18:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 18:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 18:16:22] Production.INFO: ==9539== Releasing lock... [2025-04-26 18:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 18:16:22] Production.INFO: 46 MB #Memory Used# [2025-04-26 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 15:17:05 [end_date_ymd] => 2025-04-26 18:17:05 [RateCDR] => 1 ) [2025-04-26 18:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 15:17:05' and `end` < '2025-04-26 18:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 18:17:18] Production.INFO: count ==2424 [2025-04-26 18:17:18] Production.ERROR: pbx CDR StartTime 2025-04-26 15:17:05 - End Time 2025-04-26 18:17:05 [2025-04-26 18:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 18:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996058', 'tblTempUsageDetail_20' ) start [2025-04-26 18:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996058', 'tblTempUsageDetail_20' ) end [2025-04-26 18:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996058', 'tblTempVendorCDR_20' ) start [2025-04-26 18:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996058', 'tblTempVendorCDR_20' ) end [2025-04-26 18:17:18] Production.INFO: ProcessCDR(1,14996058,1,1,2) [2025-04-26 18:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996058', 'tblTempUsageDetail_20' ) start [2025-04-26 18:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996058', 'tblTempUsageDetail_20' ) end [2025-04-26 18:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 18:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 18:17:23] Production.INFO: ==9613== Releasing lock... [2025-04-26 18:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 18:17:23] Production.INFO: 46 MB #Memory Used# [2025-04-26 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 15:18:05 [end_date_ymd] => 2025-04-26 18:18:05 [RateCDR] => 1 ) [2025-04-26 18:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 15:18:05' and `end` < '2025-04-26 18:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 18:18:18] Production.INFO: count ==2431 [2025-04-26 18:18:19] Production.ERROR: pbx CDR StartTime 2025-04-26 15:18:05 - End Time 2025-04-26 18:18:05 [2025-04-26 18:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996063', 'tblTempUsageDetail_20' ) start [2025-04-26 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996063', 'tblTempUsageDetail_20' ) end [2025-04-26 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996063', 'tblTempVendorCDR_20' ) start [2025-04-26 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996063', 'tblTempVendorCDR_20' ) end [2025-04-26 18:18:19] Production.INFO: ProcessCDR(1,14996063,1,1,2) [2025-04-26 18:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996063', 'tblTempUsageDetail_20' ) start [2025-04-26 18:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996063', 'tblTempUsageDetail_20' ) end [2025-04-26 18:18:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 18:18:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 18:18:24] Production.INFO: ==9684== Releasing lock... [2025-04-26 18:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 18:18:24] Production.INFO: 46.75 MB #Memory Used# [2025-04-26 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 15:19:05 [end_date_ymd] => 2025-04-26 18:19:05 [RateCDR] => 1 ) [2025-04-26 18:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 15:19:05' and `end` < '2025-04-26 18:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 18:19:18] Production.INFO: count ==2435 [2025-04-26 18:19:18] Production.ERROR: pbx CDR StartTime 2025-04-26 15:19:05 - End Time 2025-04-26 18:19:05 [2025-04-26 18:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996068', 'tblTempUsageDetail_20' ) start [2025-04-26 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996068', 'tblTempUsageDetail_20' ) end [2025-04-26 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996068', 'tblTempVendorCDR_20' ) start [2025-04-26 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996068', 'tblTempVendorCDR_20' ) end [2025-04-26 18:19:19] Production.INFO: ProcessCDR(1,14996068,1,1,2) [2025-04-26 18:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996068', 'tblTempUsageDetail_20' ) start [2025-04-26 18:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996068', 'tblTempUsageDetail_20' ) end [2025-04-26 18:19:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 18:19:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 18:19:24] Production.INFO: ==9755== Releasing lock... [2025-04-26 18:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 18:19:24] Production.INFO: 46.5 MB #Memory Used# [2025-04-26 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 15:20:06 [end_date_ymd] => 2025-04-26 18:20:06 [RateCDR] => 1 ) [2025-04-26 18:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 15:20:06' and `end` < '2025-04-26 18:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 18:20:19] Production.INFO: count ==2436 [2025-04-26 18:20:19] Production.ERROR: pbx CDR StartTime 2025-04-26 15:20:06 - End Time 2025-04-26 18:20:06 [2025-04-26 18:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 18:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996074', 'tblTempUsageDetail_20' ) start [2025-04-26 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996074', 'tblTempUsageDetail_20' ) end [2025-04-26 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996074', 'tblTempVendorCDR_20' ) start [2025-04-26 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996074', 'tblTempVendorCDR_20' ) end [2025-04-26 18:20:20] Production.INFO: ProcessCDR(1,14996074,1,1,2) [2025-04-26 18:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996074', 'tblTempUsageDetail_20' ) start [2025-04-26 18:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996074', 'tblTempUsageDetail_20' ) end [2025-04-26 18:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 18:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 18:20:23] Production.INFO: ==9827== Releasing lock... [2025-04-26 18:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 18:20:23] Production.INFO: 46.75 MB #Memory Used# [2025-04-26 18:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 15:21:06 [end_date_ymd] => 2025-04-26 18:21:06 [RateCDR] => 1 ) [2025-04-26 18:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 15:21:06' and `end` < '2025-04-26 18:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 18:21:19] Production.INFO: count ==2455 [2025-04-26 18:21:20] Production.ERROR: pbx CDR StartTime 2025-04-26 15:21:06 - End Time 2025-04-26 18:21:06 [2025-04-26 18:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996079', 'tblTempUsageDetail_20' ) start [2025-04-26 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996079', 'tblTempUsageDetail_20' ) end [2025-04-26 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996079', 'tblTempVendorCDR_20' ) start [2025-04-26 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996079', 'tblTempVendorCDR_20' ) end [2025-04-26 18:21:20] Production.INFO: ProcessCDR(1,14996079,1,1,2) [2025-04-26 18:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996079', 'tblTempUsageDetail_20' ) start [2025-04-26 18:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996079', 'tblTempUsageDetail_20' ) end [2025-04-26 18:21:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 18:21:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 18:21:23] Production.INFO: ==9903== Releasing lock... [2025-04-26 18:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 18:21:23] Production.INFO: 46.5 MB #Memory Used# [2025-04-26 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 15:22:05 [end_date_ymd] => 2025-04-26 18:22:05 [RateCDR] => 1 ) [2025-04-26 18:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 15:22:05' and `end` < '2025-04-26 18:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 18:22:18] Production.INFO: count ==2461 [2025-04-26 18:22:19] Production.ERROR: pbx CDR StartTime 2025-04-26 15:22:05 - End Time 2025-04-26 18:22:05 [2025-04-26 18:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996084', 'tblTempUsageDetail_20' ) start [2025-04-26 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996084', 'tblTempUsageDetail_20' ) end [2025-04-26 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996084', 'tblTempVendorCDR_20' ) start [2025-04-26 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996084', 'tblTempVendorCDR_20' ) end [2025-04-26 18:22:19] Production.INFO: ProcessCDR(1,14996084,1,1,2) [2025-04-26 18:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996084', 'tblTempUsageDetail_20' ) start [2025-04-26 18:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996084', 'tblTempUsageDetail_20' ) end [2025-04-26 18:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 18:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 18:22:22] Production.INFO: ==9989== Releasing lock... [2025-04-26 18:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 18:22:22] Production.INFO: 46.75 MB #Memory Used# [2025-04-26 18:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 15:23:06 [end_date_ymd] => 2025-04-26 18:23:06 [RateCDR] => 1 ) [2025-04-26 18:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 15:23:06' and `end` < '2025-04-26 18:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 18:23:19] Production.INFO: count ==2458 [2025-04-26 18:23:20] Production.ERROR: pbx CDR StartTime 2025-04-26 15:23:06 - End Time 2025-04-26 18:23:06 [2025-04-26 18:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996089', 'tblTempUsageDetail_20' ) start [2025-04-26 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996089', 'tblTempUsageDetail_20' ) end [2025-04-26 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996089', 'tblTempVendorCDR_20' ) start [2025-04-26 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996089', 'tblTempVendorCDR_20' ) end [2025-04-26 18:23:20] Production.INFO: ProcessCDR(1,14996089,1,1,2) [2025-04-26 18:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996089', 'tblTempUsageDetail_20' ) start [2025-04-26 18:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996089', 'tblTempUsageDetail_20' ) end [2025-04-26 18:23:25] Production.ERROR: pbx prc_insertCDR start [2025-04-26 18:23:25] Production.ERROR: pbx prc_insertCDR end [2025-04-26 18:23:25] Production.INFO: ==10066== Releasing lock... [2025-04-26 18:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 18:23:25] Production.INFO: 46.5 MB #Memory Used# [2025-04-26 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 15:24:05 [end_date_ymd] => 2025-04-26 18:24:05 [RateCDR] => 1 ) [2025-04-26 18:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 15:24:05' and `end` < '2025-04-26 18:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 18:24:18] Production.INFO: count ==2449 [2025-04-26 18:24:19] Production.ERROR: pbx CDR StartTime 2025-04-26 15:24:05 - End Time 2025-04-26 18:24:05 [2025-04-26 18:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996094', 'tblTempUsageDetail_20' ) start [2025-04-26 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996094', 'tblTempUsageDetail_20' ) end [2025-04-26 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996094', 'tblTempVendorCDR_20' ) start [2025-04-26 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996094', 'tblTempVendorCDR_20' ) end [2025-04-26 18:24:19] Production.INFO: ProcessCDR(1,14996094,1,1,2) [2025-04-26 18:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996094', 'tblTempUsageDetail_20' ) start [2025-04-26 18:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996094', 'tblTempUsageDetail_20' ) end [2025-04-26 18:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 18:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 18:24:23] Production.INFO: ==10144== Releasing lock... [2025-04-26 18:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 18:24:23] Production.INFO: 46.5 MB #Memory Used# [2025-04-26 18:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 15:25:06 [end_date_ymd] => 2025-04-26 18:25:06 [RateCDR] => 1 ) [2025-04-26 18:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 15:25:06' and `end` < '2025-04-26 18:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 18:25:19] Production.INFO: count ==2443 [2025-04-26 18:25:19] Production.ERROR: pbx CDR StartTime 2025-04-26 15:25:06 - End Time 2025-04-26 18:25:06 [2025-04-26 18:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996099', 'tblTempUsageDetail_20' ) start [2025-04-26 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996099', 'tblTempUsageDetail_20' ) end [2025-04-26 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996099', 'tblTempVendorCDR_20' ) start [2025-04-26 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996099', 'tblTempVendorCDR_20' ) end [2025-04-26 18:25:20] Production.INFO: ProcessCDR(1,14996099,1,1,2) [2025-04-26 18:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996099', 'tblTempUsageDetail_20' ) start [2025-04-26 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996099', 'tblTempUsageDetail_20' ) end [2025-04-26 18:25:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 18:25:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 18:25:24] Production.INFO: ==10219== Releasing lock... [2025-04-26 18:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 18:25:24] Production.INFO: 46.5 MB #Memory Used# [2025-04-26 18:26:19] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 15:26:19 [end_date_ymd] => 2025-04-26 18:26:19 [RateCDR] => 1 ) [2025-04-26 18:26:19] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 15:26:19' and `end` < '2025-04-26 18:26:19' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 18:26:32] Production.INFO: count ==2449 [2025-04-26 18:27:06] Production.ERROR: pbx CDR StartTime 2025-04-26 15:26:19 - End Time 2025-04-26 18:26:19 [2025-04-26 18:27:06] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 18:27:06] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996104', 'tblTempUsageDetail_20' ) start [2025-04-26 18:27:12] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996104', 'tblTempUsageDetail_20' ) end [2025-04-26 18:27:12] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996104', 'tblTempVendorCDR_20' ) start [2025-04-26 18:27:13] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996104', 'tblTempVendorCDR_20' ) end [2025-04-26 18:27:13] Production.INFO: ProcessCDR(1,14996104,1,1,2) [2025-04-26 18:27:13] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:27:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:27:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:27:48] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:27:48] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996104', 'tblTempUsageDetail_20' ) start [2025-04-26 18:27:48] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996104', 'tblTempUsageDetail_20' ) end [2025-04-26 18:27:48] Production.ERROR: pbx prc_insertCDR start [2025-04-26 18:27:48] Production.ERROR: pbx prc_insertCDR end [2025-04-26 18:27:48] Production.INFO: ==10293== Releasing lock... [2025-04-26 18:27:48] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 18:27:48] Production.INFO: 46.75 MB #Memory Used# [2025-04-26 18:28:16] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 15:28:16 [end_date_ymd] => 2025-04-26 18:28:16 [RateCDR] => 1 ) [2025-04-26 18:28:16] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 15:28:16' and `end` < '2025-04-26 18:28:16' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 18:28:29] Production.INFO: count ==2459 [2025-04-26 18:28:44] Production.ERROR: pbx CDR StartTime 2025-04-26 15:28:16 - End Time 2025-04-26 18:28:16 [2025-04-26 18:28:44] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 18:28:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996111', 'tblTempUsageDetail_20' ) start [2025-04-26 18:28:53] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996111', 'tblTempUsageDetail_20' ) end [2025-04-26 18:28:53] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996111', 'tblTempVendorCDR_20' ) start [2025-04-26 18:28:53] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996111', 'tblTempVendorCDR_20' ) end [2025-04-26 18:28:53] Production.INFO: ProcessCDR(1,14996111,1,1,2) [2025-04-26 18:28:53] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:28:57] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:28:57] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:29:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:29:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996111', 'tblTempUsageDetail_20' ) start [2025-04-26 18:29:56] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996111', 'tblTempUsageDetail_20' ) end [2025-04-26 18:29:56] Production.ERROR: pbx prc_insertCDR start [2025-04-26 18:29:56] Production.ERROR: pbx prc_insertCDR end [2025-04-26 18:29:56] Production.INFO: ==10424== Releasing lock... [2025-04-26 18:29:56] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 18:29:56] Production.INFO: 46.5 MB #Memory Used# [2025-04-26 18:30:25] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 15:30:25 [end_date_ymd] => 2025-04-26 18:30:25 [RateCDR] => 1 ) [2025-04-26 18: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-04-26 15:30:25' and `end` < '2025-04-26 18: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-04-26 18:30:38] Production.INFO: count ==2487 [2025-04-26 18:30:53] Production.ERROR: pbx CDR StartTime 2025-04-26 15:30:25 - End Time 2025-04-26 18:30:25 [2025-04-26 18:30:53] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 18:30:53] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996120', 'tblTempUsageDetail_20' ) start [2025-04-26 18:30:56] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996120', 'tblTempUsageDetail_20' ) end [2025-04-26 18:30:56] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996120', 'tblTempVendorCDR_20' ) start [2025-04-26 18:30:56] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996120', 'tblTempVendorCDR_20' ) end [2025-04-26 18:30:56] Production.INFO: ProcessCDR(1,14996120,1,1,2) [2025-04-26 18:30:56] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:31:00] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:31:00] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996120', 'tblTempUsageDetail_20' ) start [2025-04-26 18:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996120', 'tblTempUsageDetail_20' ) end [2025-04-26 18:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 18:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 18:31:22] Production.INFO: ==10595== Releasing lock... [2025-04-26 18:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 18:31:22] Production.INFO: 46.75 MB #Memory Used# [2025-04-26 18:32:16] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 15:32:14 [end_date_ymd] => 2025-04-26 18:32:14 [RateCDR] => 1 ) [2025-04-26 18:32:16] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 15:32:14' and `end` < '2025-04-26 18:32:14' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 18:32:29] Production.INFO: count ==2527 [2025-04-26 18:32:46] Production.ERROR: pbx CDR StartTime 2025-04-26 15:32:14 - End Time 2025-04-26 18:32:14 [2025-04-26 18:32:46] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 18:32:46] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996128', 'tblTempUsageDetail_20' ) start [2025-04-26 18:32:48] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996128', 'tblTempUsageDetail_20' ) end [2025-04-26 18:32:48] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996128', 'tblTempVendorCDR_20' ) start [2025-04-26 18:32:49] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996128', 'tblTempVendorCDR_20' ) end [2025-04-26 18:32:49] Production.INFO: ProcessCDR(1,14996128,1,1,2) [2025-04-26 18:32:49] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:32:55] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:32:55] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:33:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:33:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996128', 'tblTempUsageDetail_20' ) start [2025-04-26 18:33:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996128', 'tblTempUsageDetail_20' ) end [2025-04-26 18:33:19] Production.ERROR: pbx prc_insertCDR start [2025-04-26 18:33:19] Production.ERROR: pbx prc_insertCDR end [2025-04-26 18:33:19] Production.INFO: ==10736== Releasing lock... [2025-04-26 18:33:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 18:33:19] Production.INFO: 47 MB #Memory Used# [2025-04-26 18:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 15:34:06 [end_date_ymd] => 2025-04-26 18:34:06 [RateCDR] => 1 ) [2025-04-26 18:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 15:34:06' and `end` < '2025-04-26 18:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 18:34:19] Production.INFO: count ==2531 [2025-04-26 18:34:20] Production.ERROR: pbx CDR StartTime 2025-04-26 15:34:06 - End Time 2025-04-26 18:34:06 [2025-04-26 18:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996136', 'tblTempUsageDetail_20' ) start [2025-04-26 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996136', 'tblTempUsageDetail_20' ) end [2025-04-26 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996136', 'tblTempVendorCDR_20' ) start [2025-04-26 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996136', 'tblTempVendorCDR_20' ) end [2025-04-26 18:34:20] Production.INFO: ProcessCDR(1,14996136,1,1,2) [2025-04-26 18:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996136', 'tblTempUsageDetail_20' ) start [2025-04-26 18:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996136', 'tblTempUsageDetail_20' ) end [2025-04-26 18:34:25] Production.ERROR: pbx prc_insertCDR start [2025-04-26 18:34:25] Production.ERROR: pbx prc_insertCDR end [2025-04-26 18:34:25] Production.INFO: ==10874== Releasing lock... [2025-04-26 18:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 18:34:25] Production.INFO: 47 MB #Memory Used# [2025-04-26 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 15:35:05 [end_date_ymd] => 2025-04-26 18:35:05 [RateCDR] => 1 ) [2025-04-26 18:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 15:35:05' and `end` < '2025-04-26 18:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 18:35:18] Production.INFO: count ==2535 [2025-04-26 18:35:19] Production.ERROR: pbx CDR StartTime 2025-04-26 15:35:05 - End Time 2025-04-26 18:35:05 [2025-04-26 18:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996141', 'tblTempUsageDetail_20' ) start [2025-04-26 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996141', 'tblTempUsageDetail_20' ) end [2025-04-26 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996141', 'tblTempVendorCDR_20' ) start [2025-04-26 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996141', 'tblTempVendorCDR_20' ) end [2025-04-26 18:35:19] Production.INFO: ProcessCDR(1,14996141,1,1,2) [2025-04-26 18:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996141', 'tblTempUsageDetail_20' ) start [2025-04-26 18:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996141', 'tblTempUsageDetail_20' ) end [2025-04-26 18:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 18:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 18:35:22] Production.INFO: ==10946== Releasing lock... [2025-04-26 18:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 18:35:22] Production.INFO: 47.5 MB #Memory Used# [2025-04-26 18:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 15:36:06 [end_date_ymd] => 2025-04-26 18:36:06 [RateCDR] => 1 ) [2025-04-26 18:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 15:36:06' and `end` < '2025-04-26 18:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 18:36:20] Production.INFO: count ==2530 [2025-04-26 18:36:21] Production.ERROR: pbx CDR StartTime 2025-04-26 15:36:06 - End Time 2025-04-26 18:36:06 [2025-04-26 18:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996146', 'tblTempUsageDetail_20' ) start [2025-04-26 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996146', 'tblTempUsageDetail_20' ) end [2025-04-26 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996146', 'tblTempVendorCDR_20' ) start [2025-04-26 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996146', 'tblTempVendorCDR_20' ) end [2025-04-26 18:36:21] Production.INFO: ProcessCDR(1,14996146,1,1,2) [2025-04-26 18:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996146', 'tblTempUsageDetail_20' ) start [2025-04-26 18:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996146', 'tblTempUsageDetail_20' ) end [2025-04-26 18:36:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 18:36:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 18:36:24] Production.INFO: ==11021== Releasing lock... [2025-04-26 18:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 18:36:24] Production.INFO: 47 MB #Memory Used# [2025-04-26 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 15:37:05 [end_date_ymd] => 2025-04-26 18:37:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 15:37:05' and `end` < '2025-04-26 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-04-26 18:37:18] Production.INFO: count ==2521 [2025-04-26 18:37:19] Production.ERROR: pbx CDR StartTime 2025-04-26 15:37:05 - End Time 2025-04-26 18:37:05 [2025-04-26 18:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996151', 'tblTempUsageDetail_20' ) start [2025-04-26 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996151', 'tblTempUsageDetail_20' ) end [2025-04-26 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996151', 'tblTempVendorCDR_20' ) start [2025-04-26 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996151', 'tblTempVendorCDR_20' ) end [2025-04-26 18:37:19] Production.INFO: ProcessCDR(1,14996151,1,1,2) [2025-04-26 18:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996151', 'tblTempUsageDetail_20' ) start [2025-04-26 18:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996151', 'tblTempUsageDetail_20' ) end [2025-04-26 18:37:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 18:37:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 18:37:24] Production.INFO: ==11093== Releasing lock... [2025-04-26 18:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 18:37:24] Production.INFO: 47 MB #Memory Used# [2025-04-26 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 15:38:05 [end_date_ymd] => 2025-04-26 18:38:05 [RateCDR] => 1 ) [2025-04-26 18:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 15:38:05' and `end` < '2025-04-26 18:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 18:38:18] Production.INFO: count ==2526 [2025-04-26 18:38:19] Production.ERROR: pbx CDR StartTime 2025-04-26 15:38:05 - End Time 2025-04-26 18:38:05 [2025-04-26 18:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996156', 'tblTempUsageDetail_20' ) start [2025-04-26 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996156', 'tblTempUsageDetail_20' ) end [2025-04-26 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996156', 'tblTempVendorCDR_20' ) start [2025-04-26 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996156', 'tblTempVendorCDR_20' ) end [2025-04-26 18:38:19] Production.INFO: ProcessCDR(1,14996156,1,1,2) [2025-04-26 18:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996156', 'tblTempUsageDetail_20' ) start [2025-04-26 18:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996156', 'tblTempUsageDetail_20' ) end [2025-04-26 18:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 18:38:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 18:38:24] Production.INFO: ==11166== Releasing lock... [2025-04-26 18:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 18:38:24] Production.INFO: 47 MB #Memory Used# [2025-04-26 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 15:39:05 [end_date_ymd] => 2025-04-26 18:39:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 15:39:05' and `end` < '2025-04-26 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-04-26 18:39:18] Production.INFO: count ==2521 [2025-04-26 18:39:19] Production.ERROR: pbx CDR StartTime 2025-04-26 15:39:05 - End Time 2025-04-26 18:39:05 [2025-04-26 18:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996161', 'tblTempUsageDetail_20' ) start [2025-04-26 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996161', 'tblTempUsageDetail_20' ) end [2025-04-26 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996161', 'tblTempVendorCDR_20' ) start [2025-04-26 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996161', 'tblTempVendorCDR_20' ) end [2025-04-26 18:39:19] Production.INFO: ProcessCDR(1,14996161,1,1,2) [2025-04-26 18:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996161', 'tblTempUsageDetail_20' ) start [2025-04-26 18:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996161', 'tblTempUsageDetail_20' ) end [2025-04-26 18:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 18:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 18:39:22] Production.INFO: ==11236== Releasing lock... [2025-04-26 18:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 18:39:22] Production.INFO: 47 MB #Memory Used# [2025-04-26 18:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 15:40:05 [end_date_ymd] => 2025-04-26 18:40:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 15:40:05' and `end` < '2025-04-26 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-04-26 18:40:19] Production.INFO: count ==2517 [2025-04-26 18:40:19] Production.ERROR: pbx CDR StartTime 2025-04-26 15:40:05 - End Time 2025-04-26 18:40:05 [2025-04-26 18:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996166', 'tblTempUsageDetail_20' ) start [2025-04-26 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996166', 'tblTempUsageDetail_20' ) end [2025-04-26 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996166', 'tblTempVendorCDR_20' ) start [2025-04-26 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996166', 'tblTempVendorCDR_20' ) end [2025-04-26 18:40:19] Production.INFO: ProcessCDR(1,14996166,1,1,2) [2025-04-26 18:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996166', 'tblTempUsageDetail_20' ) start [2025-04-26 18:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996166', 'tblTempUsageDetail_20' ) end [2025-04-26 18:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 18:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 18:40:24] Production.INFO: ==11315== Releasing lock... [2025-04-26 18:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 18:40:24] Production.INFO: 47 MB #Memory Used# [2025-04-26 18:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 15:41:06 [end_date_ymd] => 2025-04-26 18:41:06 [RateCDR] => 1 ) [2025-04-26 18:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 15:41:06' and `end` < '2025-04-26 18:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 18:41:19] Production.INFO: count ==2522 [2025-04-26 18:41:19] Production.ERROR: pbx CDR StartTime 2025-04-26 15:41:06 - End Time 2025-04-26 18:41:06 [2025-04-26 18:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996172', 'tblTempUsageDetail_20' ) start [2025-04-26 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996172', 'tblTempUsageDetail_20' ) end [2025-04-26 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996172', 'tblTempVendorCDR_20' ) start [2025-04-26 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996172', 'tblTempVendorCDR_20' ) end [2025-04-26 18:41:19] Production.INFO: ProcessCDR(1,14996172,1,1,2) [2025-04-26 18:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996172', 'tblTempUsageDetail_20' ) start [2025-04-26 18:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996172', 'tblTempUsageDetail_20' ) end [2025-04-26 18:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 18:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 18:41:23] Production.INFO: ==11397== Releasing lock... [2025-04-26 18:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 18:41:23] Production.INFO: 47 MB #Memory Used# [2025-04-26 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 15:42:05 [end_date_ymd] => 2025-04-26 18:42:05 [RateCDR] => 1 ) [2025-04-26 18:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 15:42:05' and `end` < '2025-04-26 18:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 18:42:18] Production.INFO: count ==2513 [2025-04-26 18:42:19] Production.ERROR: pbx CDR StartTime 2025-04-26 15:42:05 - End Time 2025-04-26 18:42:05 [2025-04-26 18:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996177', 'tblTempUsageDetail_20' ) start [2025-04-26 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996177', 'tblTempUsageDetail_20' ) end [2025-04-26 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996177', 'tblTempVendorCDR_20' ) start [2025-04-26 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996177', 'tblTempVendorCDR_20' ) end [2025-04-26 18:42:19] Production.INFO: ProcessCDR(1,14996177,1,1,2) [2025-04-26 18:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996177', 'tblTempUsageDetail_20' ) start [2025-04-26 18:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996177', 'tblTempUsageDetail_20' ) end [2025-04-26 18:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 18:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 18:42:22] Production.INFO: ==11470== Releasing lock... [2025-04-26 18:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 18:42:22] Production.INFO: 47 MB #Memory Used# [2025-04-26 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 15:43:05 [end_date_ymd] => 2025-04-26 18:43:05 [RateCDR] => 1 ) [2025-04-26 18:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 15:43:05' and `end` < '2025-04-26 18:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 18:43:18] Production.INFO: count ==2516 [2025-04-26 18:43:19] Production.ERROR: pbx CDR StartTime 2025-04-26 15:43:05 - End Time 2025-04-26 18:43:05 [2025-04-26 18:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996182', 'tblTempUsageDetail_20' ) start [2025-04-26 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996182', 'tblTempUsageDetail_20' ) end [2025-04-26 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996182', 'tblTempVendorCDR_20' ) start [2025-04-26 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996182', 'tblTempVendorCDR_20' ) end [2025-04-26 18:43:19] Production.INFO: ProcessCDR(1,14996182,1,1,2) [2025-04-26 18:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996182', 'tblTempUsageDetail_20' ) start [2025-04-26 18:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996182', 'tblTempUsageDetail_20' ) end [2025-04-26 18:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 18:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 18:43:23] Production.INFO: ==11546== Releasing lock... [2025-04-26 18:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 18:43:23] Production.INFO: 47.25 MB #Memory Used# [2025-04-26 18:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 15:44:06 [end_date_ymd] => 2025-04-26 18:44:06 [RateCDR] => 1 ) [2025-04-26 18:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 15:44:06' and `end` < '2025-04-26 18:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 18:44:19] Production.INFO: count ==2519 [2025-04-26 18:44:19] Production.ERROR: pbx CDR StartTime 2025-04-26 15:44:06 - End Time 2025-04-26 18:44:06 [2025-04-26 18:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996187', 'tblTempUsageDetail_20' ) start [2025-04-26 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996187', 'tblTempUsageDetail_20' ) end [2025-04-26 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996187', 'tblTempVendorCDR_20' ) start [2025-04-26 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996187', 'tblTempVendorCDR_20' ) end [2025-04-26 18:44:19] Production.INFO: ProcessCDR(1,14996187,1,1,2) [2025-04-26 18:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996187', 'tblTempUsageDetail_20' ) start [2025-04-26 18:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996187', 'tblTempUsageDetail_20' ) end [2025-04-26 18:44:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 18:44:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 18:44:24] Production.INFO: ==11658== Releasing lock... [2025-04-26 18:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 18:44:24] Production.INFO: 47 MB #Memory Used# [2025-04-26 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 15:45:05 [end_date_ymd] => 2025-04-26 18:45:05 [RateCDR] => 1 ) [2025-04-26 18:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 15:45:05' and `end` < '2025-04-26 18:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 18:45:18] Production.INFO: count ==2521 [2025-04-26 18:45:19] Production.ERROR: pbx CDR StartTime 2025-04-26 15:45:05 - End Time 2025-04-26 18:45:05 [2025-04-26 18:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996192', 'tblTempUsageDetail_20' ) start [2025-04-26 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996192', 'tblTempUsageDetail_20' ) end [2025-04-26 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996192', 'tblTempVendorCDR_20' ) start [2025-04-26 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996192', 'tblTempVendorCDR_20' ) end [2025-04-26 18:45:19] Production.INFO: ProcessCDR(1,14996192,1,1,2) [2025-04-26 18:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996192', 'tblTempUsageDetail_20' ) start [2025-04-26 18:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996192', 'tblTempUsageDetail_20' ) end [2025-04-26 18:45:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 18:45:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 18:45:24] Production.INFO: ==11733== Releasing lock... [2025-04-26 18:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 18:45:24] Production.INFO: 47 MB #Memory Used# [2025-04-26 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 15:46:05 [end_date_ymd] => 2025-04-26 18:46:05 [RateCDR] => 1 ) [2025-04-26 18:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 15:46:05' and `end` < '2025-04-26 18:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 18:46:18] Production.INFO: count ==2528 [2025-04-26 18:46:19] Production.ERROR: pbx CDR StartTime 2025-04-26 15:46:05 - End Time 2025-04-26 18:46:05 [2025-04-26 18:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996197', 'tblTempUsageDetail_20' ) start [2025-04-26 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996197', 'tblTempUsageDetail_20' ) end [2025-04-26 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996197', 'tblTempVendorCDR_20' ) start [2025-04-26 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996197', 'tblTempVendorCDR_20' ) end [2025-04-26 18:46:19] Production.INFO: ProcessCDR(1,14996197,1,1,2) [2025-04-26 18:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996197', 'tblTempUsageDetail_20' ) start [2025-04-26 18:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996197', 'tblTempUsageDetail_20' ) end [2025-04-26 18:46:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 18:46:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 18:46:23] Production.INFO: ==11807== Releasing lock... [2025-04-26 18:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 18:46:23] Production.INFO: 47 MB #Memory Used# [2025-04-26 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 15:47:05 [end_date_ymd] => 2025-04-26 18:47:05 [RateCDR] => 1 ) [2025-04-26 18:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 15:47:05' and `end` < '2025-04-26 18:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 18:47:18] Production.INFO: count ==2548 [2025-04-26 18:47:19] Production.ERROR: pbx CDR StartTime 2025-04-26 15:47:05 - End Time 2025-04-26 18:47:05 [2025-04-26 18:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996202', 'tblTempUsageDetail_20' ) start [2025-04-26 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996202', 'tblTempUsageDetail_20' ) end [2025-04-26 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996202', 'tblTempVendorCDR_20' ) start [2025-04-26 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996202', 'tblTempVendorCDR_20' ) end [2025-04-26 18:47:19] Production.INFO: ProcessCDR(1,14996202,1,1,2) [2025-04-26 18:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996202', 'tblTempUsageDetail_20' ) start [2025-04-26 18:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996202', 'tblTempUsageDetail_20' ) end [2025-04-26 18:47:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 18:47:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 18:47:24] Production.INFO: ==11879== Releasing lock... [2025-04-26 18:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 18:47:24] Production.INFO: 47.5 MB #Memory Used# [2025-04-26 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 15:48:05 [end_date_ymd] => 2025-04-26 18:48:05 [RateCDR] => 1 ) [2025-04-26 18:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 15:48:05' and `end` < '2025-04-26 18:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 18:48:18] Production.INFO: count ==2553 [2025-04-26 18:48:19] Production.ERROR: pbx CDR StartTime 2025-04-26 15:48:05 - End Time 2025-04-26 18:48:05 [2025-04-26 18:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996207', 'tblTempUsageDetail_20' ) start [2025-04-26 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996207', 'tblTempUsageDetail_20' ) end [2025-04-26 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996207', 'tblTempVendorCDR_20' ) start [2025-04-26 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996207', 'tblTempVendorCDR_20' ) end [2025-04-26 18:48:19] Production.INFO: ProcessCDR(1,14996207,1,1,2) [2025-04-26 18:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996207', 'tblTempUsageDetail_20' ) start [2025-04-26 18:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996207', 'tblTempUsageDetail_20' ) end [2025-04-26 18:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 18:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 18:48:23] Production.INFO: ==11951== Releasing lock... [2025-04-26 18:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 18:48:23] Production.INFO: 47 MB #Memory Used# [2025-04-26 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 15:49:05 [end_date_ymd] => 2025-04-26 18:49:05 [RateCDR] => 1 ) [2025-04-26 18:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 15:49:05' and `end` < '2025-04-26 18:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 18:49:18] Production.INFO: count ==2557 [2025-04-26 18:49:19] Production.ERROR: pbx CDR StartTime 2025-04-26 15:49:05 - End Time 2025-04-26 18:49:05 [2025-04-26 18:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996212', 'tblTempUsageDetail_20' ) start [2025-04-26 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996212', 'tblTempUsageDetail_20' ) end [2025-04-26 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996212', 'tblTempVendorCDR_20' ) start [2025-04-26 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996212', 'tblTempVendorCDR_20' ) end [2025-04-26 18:49:19] Production.INFO: ProcessCDR(1,14996212,1,1,2) [2025-04-26 18:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996212', 'tblTempUsageDetail_20' ) start [2025-04-26 18:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996212', 'tblTempUsageDetail_20' ) end [2025-04-26 18:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 18:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 18:49:22] Production.INFO: ==12025== Releasing lock... [2025-04-26 18:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 18:49:22] Production.INFO: 47 MB #Memory Used# [2025-04-26 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 15:50:06 [end_date_ymd] => 2025-04-26 18:50:06 [RateCDR] => 1 ) [2025-04-26 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-04-26 15:50:06' and `end` < '2025-04-26 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-04-26 18:50:19] Production.INFO: count ==2559 [2025-04-26 18:50:20] Production.ERROR: pbx CDR StartTime 2025-04-26 15:50:06 - End Time 2025-04-26 18:50:06 [2025-04-26 18:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996217', 'tblTempUsageDetail_20' ) start [2025-04-26 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996217', 'tblTempUsageDetail_20' ) end [2025-04-26 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996217', 'tblTempVendorCDR_20' ) start [2025-04-26 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996217', 'tblTempVendorCDR_20' ) end [2025-04-26 18:50:20] Production.INFO: ProcessCDR(1,14996217,1,1,2) [2025-04-26 18:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996217', 'tblTempUsageDetail_20' ) start [2025-04-26 18:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996217', 'tblTempUsageDetail_20' ) end [2025-04-26 18:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 18:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 18:50:23] Production.INFO: ==12104== Releasing lock... [2025-04-26 18:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 18:50:23] Production.INFO: 47.25 MB #Memory Used# [2025-04-26 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 15:51:05 [end_date_ymd] => 2025-04-26 18:51:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 15:51:05' and `end` < '2025-04-26 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-04-26 18:51:18] Production.INFO: count ==2541 [2025-04-26 18:51:19] Production.ERROR: pbx CDR StartTime 2025-04-26 15:51:05 - End Time 2025-04-26 18:51:05 [2025-04-26 18:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996223', 'tblTempUsageDetail_20' ) start [2025-04-26 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996223', 'tblTempUsageDetail_20' ) end [2025-04-26 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996223', 'tblTempVendorCDR_20' ) start [2025-04-26 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996223', 'tblTempVendorCDR_20' ) end [2025-04-26 18:51:19] Production.INFO: ProcessCDR(1,14996223,1,1,2) [2025-04-26 18:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996223', 'tblTempUsageDetail_20' ) start [2025-04-26 18:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996223', 'tblTempUsageDetail_20' ) end [2025-04-26 18:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 18:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 18:51:22] Production.INFO: ==12176== Releasing lock... [2025-04-26 18:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 18:51:22] Production.INFO: 47.25 MB #Memory Used# [2025-04-26 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 15:52:05 [end_date_ymd] => 2025-04-26 18:52:05 [RateCDR] => 1 ) [2025-04-26 18:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 15:52:05' and `end` < '2025-04-26 18:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 18:52:18] Production.INFO: count ==2544 [2025-04-26 18:52:19] Production.ERROR: pbx CDR StartTime 2025-04-26 15:52:05 - End Time 2025-04-26 18:52:05 [2025-04-26 18:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996228', 'tblTempUsageDetail_20' ) start [2025-04-26 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996228', 'tblTempUsageDetail_20' ) end [2025-04-26 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996228', 'tblTempVendorCDR_20' ) start [2025-04-26 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996228', 'tblTempVendorCDR_20' ) end [2025-04-26 18:52:19] Production.INFO: ProcessCDR(1,14996228,1,1,2) [2025-04-26 18:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996228', 'tblTempUsageDetail_20' ) start [2025-04-26 18:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996228', 'tblTempUsageDetail_20' ) end [2025-04-26 18:52:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 18:52:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 18:52:24] Production.INFO: ==12248== Releasing lock... [2025-04-26 18:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 18:52:24] Production.INFO: 47.25 MB #Memory Used# [2025-04-26 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 15:53:05 [end_date_ymd] => 2025-04-26 18:53:05 [RateCDR] => 1 ) [2025-04-26 18:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 15:53:05' and `end` < '2025-04-26 18:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 18:53:18] Production.INFO: count ==2540 [2025-04-26 18:53:18] Production.ERROR: pbx CDR StartTime 2025-04-26 15:53:05 - End Time 2025-04-26 18:53:05 [2025-04-26 18:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996233', 'tblTempUsageDetail_20' ) start [2025-04-26 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996233', 'tblTempUsageDetail_20' ) end [2025-04-26 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996233', 'tblTempVendorCDR_20' ) start [2025-04-26 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996233', 'tblTempVendorCDR_20' ) end [2025-04-26 18:53:19] Production.INFO: ProcessCDR(1,14996233,1,1,2) [2025-04-26 18:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996233', 'tblTempUsageDetail_20' ) start [2025-04-26 18:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996233', 'tblTempUsageDetail_20' ) end [2025-04-26 18:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 18:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 18:53:22] Production.INFO: ==12318== Releasing lock... [2025-04-26 18:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 18:53:22] Production.INFO: 47.25 MB #Memory Used# [2025-04-26 18:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 15:54:06 [end_date_ymd] => 2025-04-26 18:54:06 [RateCDR] => 1 ) [2025-04-26 18:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 15:54:06' and `end` < '2025-04-26 18:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 18:54:19] Production.INFO: count ==2544 [2025-04-26 18:54:19] Production.ERROR: pbx CDR StartTime 2025-04-26 15:54:06 - End Time 2025-04-26 18:54:06 [2025-04-26 18:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996238', 'tblTempUsageDetail_20' ) start [2025-04-26 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996238', 'tblTempUsageDetail_20' ) end [2025-04-26 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996238', 'tblTempVendorCDR_20' ) start [2025-04-26 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996238', 'tblTempVendorCDR_20' ) end [2025-04-26 18:54:19] Production.INFO: ProcessCDR(1,14996238,1,1,2) [2025-04-26 18:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996238', 'tblTempUsageDetail_20' ) start [2025-04-26 18:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996238', 'tblTempUsageDetail_20' ) end [2025-04-26 18:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 18:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 18:54:23] Production.INFO: ==12391== Releasing lock... [2025-04-26 18:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 18:54:23] Production.INFO: 47.25 MB #Memory Used# [2025-04-26 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 15:55:05 [end_date_ymd] => 2025-04-26 18:55:05 [RateCDR] => 1 ) [2025-04-26 18:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 15:55:05' and `end` < '2025-04-26 18:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 18:55:18] Production.INFO: count ==2547 [2025-04-26 18:55:18] Production.ERROR: pbx CDR StartTime 2025-04-26 15:55:05 - End Time 2025-04-26 18:55:05 [2025-04-26 18:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 18:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996243', 'tblTempUsageDetail_20' ) start [2025-04-26 18:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996243', 'tblTempUsageDetail_20' ) end [2025-04-26 18:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996243', 'tblTempVendorCDR_20' ) start [2025-04-26 18:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996243', 'tblTempVendorCDR_20' ) end [2025-04-26 18:55:18] Production.INFO: ProcessCDR(1,14996243,1,1,2) [2025-04-26 18:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996243', 'tblTempUsageDetail_20' ) start [2025-04-26 18:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996243', 'tblTempUsageDetail_20' ) end [2025-04-26 18:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 18:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 18:55:22] Production.INFO: ==12461== Releasing lock... [2025-04-26 18:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 18:55:22] Production.INFO: 47.25 MB #Memory Used# [2025-04-26 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 15:56:05 [end_date_ymd] => 2025-04-26 18:56:05 [RateCDR] => 1 ) [2025-04-26 18:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 15:56:05' and `end` < '2025-04-26 18:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 18:56:18] Production.INFO: count ==2548 [2025-04-26 18:56:19] Production.ERROR: pbx CDR StartTime 2025-04-26 15:56:05 - End Time 2025-04-26 18:56:05 [2025-04-26 18:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996248', 'tblTempUsageDetail_20' ) start [2025-04-26 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996248', 'tblTempUsageDetail_20' ) end [2025-04-26 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996248', 'tblTempVendorCDR_20' ) start [2025-04-26 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996248', 'tblTempVendorCDR_20' ) end [2025-04-26 18:56:19] Production.INFO: ProcessCDR(1,14996248,1,1,2) [2025-04-26 18:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996248', 'tblTempUsageDetail_20' ) start [2025-04-26 18:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996248', 'tblTempUsageDetail_20' ) end [2025-04-26 18:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 18:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 18:56:22] Production.INFO: ==12538== Releasing lock... [2025-04-26 18:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 18:56:22] Production.INFO: 47.25 MB #Memory Used# [2025-04-26 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 15:57:05 [end_date_ymd] => 2025-04-26 18:57:05 [RateCDR] => 1 ) [2025-04-26 18:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 15:57:05' and `end` < '2025-04-26 18:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 18:57:18] Production.INFO: count ==2549 [2025-04-26 18:57:19] Production.ERROR: pbx CDR StartTime 2025-04-26 15:57:05 - End Time 2025-04-26 18:57:05 [2025-04-26 18:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996253', 'tblTempUsageDetail_20' ) start [2025-04-26 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996253', 'tblTempUsageDetail_20' ) end [2025-04-26 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996253', 'tblTempVendorCDR_20' ) start [2025-04-26 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996253', 'tblTempVendorCDR_20' ) end [2025-04-26 18:57:19] Production.INFO: ProcessCDR(1,14996253,1,1,2) [2025-04-26 18:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996253', 'tblTempUsageDetail_20' ) start [2025-04-26 18:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996253', 'tblTempUsageDetail_20' ) end [2025-04-26 18:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 18:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 18:57:23] Production.INFO: ==12620== Releasing lock... [2025-04-26 18:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 18:57:23] Production.INFO: 47.25 MB #Memory Used# [2025-04-26 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 15:58:05 [end_date_ymd] => 2025-04-26 18:58:05 [RateCDR] => 1 ) [2025-04-26 18:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 15:58:05' and `end` < '2025-04-26 18:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 18:58:18] Production.INFO: count ==2565 [2025-04-26 18:58:19] Production.ERROR: pbx CDR StartTime 2025-04-26 15:58:05 - End Time 2025-04-26 18:58:05 [2025-04-26 18:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996258', 'tblTempUsageDetail_20' ) start [2025-04-26 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996258', 'tblTempUsageDetail_20' ) end [2025-04-26 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996258', 'tblTempVendorCDR_20' ) start [2025-04-26 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996258', 'tblTempVendorCDR_20' ) end [2025-04-26 18:58:19] Production.INFO: ProcessCDR(1,14996258,1,1,2) [2025-04-26 18:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996258', 'tblTempUsageDetail_20' ) start [2025-04-26 18:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996258', 'tblTempUsageDetail_20' ) end [2025-04-26 18:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 18:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 18:58:22] Production.INFO: ==12701== Releasing lock... [2025-04-26 18:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 18:58:22] Production.INFO: 47.5 MB #Memory Used# [2025-04-26 18:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 15:59:06 [end_date_ymd] => 2025-04-26 18:59:06 [RateCDR] => 1 ) [2025-04-26 18:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 15:59:06' and `end` < '2025-04-26 18:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 18:59:18] Production.INFO: count ==2563 [2025-04-26 18:59:19] Production.ERROR: pbx CDR StartTime 2025-04-26 15:59:06 - End Time 2025-04-26 18:59:06 [2025-04-26 18:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996263', 'tblTempUsageDetail_20' ) start [2025-04-26 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996263', 'tblTempUsageDetail_20' ) end [2025-04-26 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996263', 'tblTempVendorCDR_20' ) start [2025-04-26 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996263', 'tblTempVendorCDR_20' ) end [2025-04-26 18:59:19] Production.INFO: ProcessCDR(1,14996263,1,1,2) [2025-04-26 18:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 18:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 18:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996263', 'tblTempUsageDetail_20' ) start [2025-04-26 18:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996263', 'tblTempUsageDetail_20' ) end [2025-04-26 18:59:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 18:59:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 18:59:24] Production.INFO: ==12790== Releasing lock... [2025-04-26 18:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 18:59:24] Production.INFO: 47.25 MB #Memory Used# [2025-04-26 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 16:00:06 [end_date_ymd] => 2025-04-26 19:00:06 [RateCDR] => 1 ) [2025-04-26 19:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 16:00:06' and `end` < '2025-04-26 19:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 19:00:19] Production.INFO: count ==2564 [2025-04-26 19:00:20] Production.ERROR: pbx CDR StartTime 2025-04-26 16:00:06 - End Time 2025-04-26 19:00:06 [2025-04-26 19:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996269', 'tblTempUsageDetail_20' ) start [2025-04-26 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996269', 'tblTempUsageDetail_20' ) end [2025-04-26 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996269', 'tblTempVendorCDR_20' ) start [2025-04-26 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996269', 'tblTempVendorCDR_20' ) end [2025-04-26 19:00:20] Production.INFO: ProcessCDR(1,14996269,1,1,2) [2025-04-26 19:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996269', 'tblTempUsageDetail_20' ) start [2025-04-26 19:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996269', 'tblTempUsageDetail_20' ) end [2025-04-26 19:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 19:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 19:00:23] Production.INFO: ==12903== Releasing lock... [2025-04-26 19:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 19:00:23] Production.INFO: 47.25 MB #Memory Used# [2025-04-26 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 16:01:05 [end_date_ymd] => 2025-04-26 19:01:05 [RateCDR] => 1 ) [2025-04-26 19:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 16:01:05' and `end` < '2025-04-26 19:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 19:01:18] Production.INFO: count ==2597 [2025-04-26 19:01:19] Production.ERROR: pbx CDR StartTime 2025-04-26 16:01:05 - End Time 2025-04-26 19:01:05 [2025-04-26 19:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996274', 'tblTempUsageDetail_20' ) start [2025-04-26 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996274', 'tblTempUsageDetail_20' ) end [2025-04-26 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996274', 'tblTempVendorCDR_20' ) start [2025-04-26 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996274', 'tblTempVendorCDR_20' ) end [2025-04-26 19:01:19] Production.INFO: ProcessCDR(1,14996274,1,1,2) [2025-04-26 19:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996274', 'tblTempUsageDetail_20' ) start [2025-04-26 19:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996274', 'tblTempUsageDetail_20' ) end [2025-04-26 19:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 19:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 19:01:23] Production.INFO: ==13028== Releasing lock... [2025-04-26 19:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 19:01:23] Production.INFO: 47.5 MB #Memory Used# [2025-04-26 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 16:02:05 [end_date_ymd] => 2025-04-26 19:02:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 16:02:05' and `end` < '2025-04-26 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-04-26 19:02:18] Production.INFO: count ==2606 [2025-04-26 19:02:18] Production.ERROR: pbx CDR StartTime 2025-04-26 16:02:05 - End Time 2025-04-26 19:02:05 [2025-04-26 19:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996279', 'tblTempUsageDetail_20' ) start [2025-04-26 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996279', 'tblTempUsageDetail_20' ) end [2025-04-26 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996279', 'tblTempVendorCDR_20' ) start [2025-04-26 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996279', 'tblTempVendorCDR_20' ) end [2025-04-26 19:02:19] Production.INFO: ProcessCDR(1,14996279,1,1,2) [2025-04-26 19:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996279', 'tblTempUsageDetail_20' ) start [2025-04-26 19:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996279', 'tblTempUsageDetail_20' ) end [2025-04-26 19:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 19:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 19:02:23] Production.INFO: ==13138== Releasing lock... [2025-04-26 19:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 19:02:23] Production.INFO: 47.75 MB #Memory Used# [2025-04-26 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 16:03:05 [end_date_ymd] => 2025-04-26 19:03:05 [RateCDR] => 1 ) [2025-04-26 19:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 16:03:05' and `end` < '2025-04-26 19:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 19:03:18] Production.INFO: count ==2604 [2025-04-26 19:03:19] Production.ERROR: pbx CDR StartTime 2025-04-26 16:03:05 - End Time 2025-04-26 19:03:05 [2025-04-26 19:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996284', 'tblTempUsageDetail_20' ) start [2025-04-26 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996284', 'tblTempUsageDetail_20' ) end [2025-04-26 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996284', 'tblTempVendorCDR_20' ) start [2025-04-26 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996284', 'tblTempVendorCDR_20' ) end [2025-04-26 19:03:19] Production.INFO: ProcessCDR(1,14996284,1,1,2) [2025-04-26 19:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996284', 'tblTempUsageDetail_20' ) start [2025-04-26 19:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996284', 'tblTempUsageDetail_20' ) end [2025-04-26 19:03:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 19:03:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 19:03:24] Production.INFO: ==13216== Releasing lock... [2025-04-26 19:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 19:03:24] Production.INFO: 47.75 MB #Memory Used# [2025-04-26 19:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 16:04:04 [end_date_ymd] => 2025-04-26 19:04:04 [RateCDR] => 1 ) [2025-04-26 19:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 16:04:04' and `end` < '2025-04-26 19:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 19:04:17] Production.INFO: count ==2606 [2025-04-26 19:04:18] Production.ERROR: pbx CDR StartTime 2025-04-26 16:04:04 - End Time 2025-04-26 19:04:04 [2025-04-26 19:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996289', 'tblTempUsageDetail_20' ) start [2025-04-26 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996289', 'tblTempUsageDetail_20' ) end [2025-04-26 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996289', 'tblTempVendorCDR_20' ) start [2025-04-26 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996289', 'tblTempVendorCDR_20' ) end [2025-04-26 19:04:18] Production.INFO: ProcessCDR(1,14996289,1,1,2) [2025-04-26 19:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996289', 'tblTempUsageDetail_20' ) start [2025-04-26 19:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996289', 'tblTempUsageDetail_20' ) end [2025-04-26 19:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 19:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 19:04:22] Production.INFO: ==13285== Releasing lock... [2025-04-26 19:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 19:04:22] Production.INFO: 47.75 MB #Memory Used# [2025-04-26 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 16:05:05 [end_date_ymd] => 2025-04-26 19:05:05 [RateCDR] => 1 ) [2025-04-26 19:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 16:05:05' and `end` < '2025-04-26 19:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 19:05:18] Production.INFO: count ==2606 [2025-04-26 19:05:18] Production.ERROR: pbx CDR StartTime 2025-04-26 16:05:05 - End Time 2025-04-26 19:05:05 [2025-04-26 19:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996294', 'tblTempUsageDetail_20' ) start [2025-04-26 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996294', 'tblTempUsageDetail_20' ) end [2025-04-26 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996294', 'tblTempVendorCDR_20' ) start [2025-04-26 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996294', 'tblTempVendorCDR_20' ) end [2025-04-26 19:05:18] Production.INFO: ProcessCDR(1,14996294,1,1,2) [2025-04-26 19:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996294', 'tblTempUsageDetail_20' ) start [2025-04-26 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996294', 'tblTempUsageDetail_20' ) end [2025-04-26 19:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 19:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 19:05:23] Production.INFO: ==13439== Releasing lock... [2025-04-26 19:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 19:05:23] Production.INFO: 47.75 MB #Memory Used# [2025-04-26 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 16:06:05 [end_date_ymd] => 2025-04-26 19:06:05 [RateCDR] => 1 ) [2025-04-26 19:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 16:06:05' and `end` < '2025-04-26 19:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 19:06:18] Production.INFO: count ==2611 [2025-04-26 19:06:19] Production.ERROR: pbx CDR StartTime 2025-04-26 16:06:05 - End Time 2025-04-26 19:06:05 [2025-04-26 19:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996299', 'tblTempUsageDetail_20' ) start [2025-04-26 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996299', 'tblTempUsageDetail_20' ) end [2025-04-26 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996299', 'tblTempVendorCDR_20' ) start [2025-04-26 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996299', 'tblTempVendorCDR_20' ) end [2025-04-26 19:06:19] Production.INFO: ProcessCDR(1,14996299,1,1,2) [2025-04-26 19:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996299', 'tblTempUsageDetail_20' ) start [2025-04-26 19:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996299', 'tblTempUsageDetail_20' ) end [2025-04-26 19:06:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 19:06:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 19:06:24] Production.INFO: ==13512== Releasing lock... [2025-04-26 19:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 19:06:24] Production.INFO: 47.75 MB #Memory Used# [2025-04-26 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 16:07:05 [end_date_ymd] => 2025-04-26 19:07:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 16:07:05' and `end` < '2025-04-26 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-04-26 19:07:18] Production.INFO: count ==2605 [2025-04-26 19:07:19] Production.ERROR: pbx CDR StartTime 2025-04-26 16:07:05 - End Time 2025-04-26 19:07:05 [2025-04-26 19:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996304', 'tblTempUsageDetail_20' ) start [2025-04-26 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996304', 'tblTempUsageDetail_20' ) end [2025-04-26 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996304', 'tblTempVendorCDR_20' ) start [2025-04-26 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996304', 'tblTempVendorCDR_20' ) end [2025-04-26 19:07:19] Production.INFO: ProcessCDR(1,14996304,1,1,2) [2025-04-26 19:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996304', 'tblTempUsageDetail_20' ) start [2025-04-26 19:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996304', 'tblTempUsageDetail_20' ) end [2025-04-26 19:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 19:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 19:07:22] Production.INFO: ==13584== Releasing lock... [2025-04-26 19:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 19:07:22] Production.INFO: 47.75 MB #Memory Used# [2025-04-26 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 16:08:05 [end_date_ymd] => 2025-04-26 19:08:05 [RateCDR] => 1 ) [2025-04-26 19:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 16:08:05' and `end` < '2025-04-26 19:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 19:08:18] Production.INFO: count ==2600 [2025-04-26 19:08:19] Production.ERROR: pbx CDR StartTime 2025-04-26 16:08:05 - End Time 2025-04-26 19:08:05 [2025-04-26 19:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996309', 'tblTempUsageDetail_20' ) start [2025-04-26 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996309', 'tblTempUsageDetail_20' ) end [2025-04-26 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996309', 'tblTempVendorCDR_20' ) start [2025-04-26 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996309', 'tblTempVendorCDR_20' ) end [2025-04-26 19:08:19] Production.INFO: ProcessCDR(1,14996309,1,1,2) [2025-04-26 19:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996309', 'tblTempUsageDetail_20' ) start [2025-04-26 19:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996309', 'tblTempUsageDetail_20' ) end [2025-04-26 19:08:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 19:08:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 19:08:24] Production.INFO: ==13735== Releasing lock... [2025-04-26 19:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 19:08:24] Production.INFO: 47.75 MB #Memory Used# [2025-04-26 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 16:09:05 [end_date_ymd] => 2025-04-26 19:09:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 16:09:05' and `end` < '2025-04-26 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-04-26 19:09:18] Production.INFO: count ==2592 [2025-04-26 19:09:19] Production.ERROR: pbx CDR StartTime 2025-04-26 16:09:05 - End Time 2025-04-26 19:09:05 [2025-04-26 19:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996314', 'tblTempUsageDetail_20' ) start [2025-04-26 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996314', 'tblTempUsageDetail_20' ) end [2025-04-26 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996314', 'tblTempVendorCDR_20' ) start [2025-04-26 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996314', 'tblTempVendorCDR_20' ) end [2025-04-26 19:09:19] Production.INFO: ProcessCDR(1,14996314,1,1,2) [2025-04-26 19:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996314', 'tblTempUsageDetail_20' ) start [2025-04-26 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996314', 'tblTempUsageDetail_20' ) end [2025-04-26 19:09:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 19:09:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 19:09:23] Production.INFO: ==13804== Releasing lock... [2025-04-26 19:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 19:09:23] Production.INFO: 47.5 MB #Memory Used# [2025-04-26 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 16:10:06 [end_date_ymd] => 2025-04-26 19:10:06 [RateCDR] => 1 ) [2025-04-26 19:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 16:10:06' and `end` < '2025-04-26 19:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 19:10:19] Production.INFO: count ==2593 [2025-04-26 19:10:20] Production.ERROR: pbx CDR StartTime 2025-04-26 16:10:06 - End Time 2025-04-26 19:10:06 [2025-04-26 19:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996320', 'tblTempUsageDetail_20' ) start [2025-04-26 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996320', 'tblTempUsageDetail_20' ) end [2025-04-26 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996320', 'tblTempVendorCDR_20' ) start [2025-04-26 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996320', 'tblTempVendorCDR_20' ) end [2025-04-26 19:10:20] Production.INFO: ProcessCDR(1,14996320,1,1,2) [2025-04-26 19:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996320', 'tblTempUsageDetail_20' ) start [2025-04-26 19:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996320', 'tblTempUsageDetail_20' ) end [2025-04-26 19:10:25] Production.ERROR: pbx prc_insertCDR start [2025-04-26 19:10:25] Production.ERROR: pbx prc_insertCDR end [2025-04-26 19:10:25] Production.INFO: ==13876== Releasing lock... [2025-04-26 19:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 19:10:25] Production.INFO: 47.5 MB #Memory Used# [2025-04-26 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 16:11:05 [end_date_ymd] => 2025-04-26 19:11:05 [RateCDR] => 1 ) [2025-04-26 19:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 16:11:05' and `end` < '2025-04-26 19:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 19:11:18] Production.INFO: count ==2611 [2025-04-26 19:11:19] Production.ERROR: pbx CDR StartTime 2025-04-26 16:11:05 - End Time 2025-04-26 19:11:05 [2025-04-26 19:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996325', 'tblTempUsageDetail_20' ) start [2025-04-26 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996325', 'tblTempUsageDetail_20' ) end [2025-04-26 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996325', 'tblTempVendorCDR_20' ) start [2025-04-26 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996325', 'tblTempVendorCDR_20' ) end [2025-04-26 19:11:19] Production.INFO: ProcessCDR(1,14996325,1,1,2) [2025-04-26 19:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996325', 'tblTempUsageDetail_20' ) start [2025-04-26 19:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996325', 'tblTempUsageDetail_20' ) end [2025-04-26 19:11:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 19:11:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 19:11:24] Production.INFO: ==13948== Releasing lock... [2025-04-26 19:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 19:11:24] Production.INFO: 47.75 MB #Memory Used# [2025-04-26 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 16:12:05 [end_date_ymd] => 2025-04-26 19:12:05 [RateCDR] => 1 ) [2025-04-26 19:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 16:12:05' and `end` < '2025-04-26 19:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 19:12:18] Production.INFO: count ==2611 [2025-04-26 19:12:19] Production.ERROR: pbx CDR StartTime 2025-04-26 16:12:05 - End Time 2025-04-26 19:12:05 [2025-04-26 19:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996330', 'tblTempUsageDetail_20' ) start [2025-04-26 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996330', 'tblTempUsageDetail_20' ) end [2025-04-26 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996330', 'tblTempVendorCDR_20' ) start [2025-04-26 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996330', 'tblTempVendorCDR_20' ) end [2025-04-26 19:12:19] Production.INFO: ProcessCDR(1,14996330,1,1,2) [2025-04-26 19:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996330', 'tblTempUsageDetail_20' ) start [2025-04-26 19:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996330', 'tblTempUsageDetail_20' ) end [2025-04-26 19:12:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 19:12:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 19:12:24] Production.INFO: ==14098== Releasing lock... [2025-04-26 19:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 19:12:24] Production.INFO: 47.75 MB #Memory Used# [2025-04-26 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 16:13:05 [end_date_ymd] => 2025-04-26 19:13:05 [RateCDR] => 1 ) [2025-04-26 19:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 16:13:05' and `end` < '2025-04-26 19:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 19:13:18] Production.INFO: count ==2611 [2025-04-26 19:13:19] Production.ERROR: pbx CDR StartTime 2025-04-26 16:13:05 - End Time 2025-04-26 19:13:05 [2025-04-26 19:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996335', 'tblTempUsageDetail_20' ) start [2025-04-26 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996335', 'tblTempUsageDetail_20' ) end [2025-04-26 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996335', 'tblTempVendorCDR_20' ) start [2025-04-26 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996335', 'tblTempVendorCDR_20' ) end [2025-04-26 19:13:19] Production.INFO: ProcessCDR(1,14996335,1,1,2) [2025-04-26 19:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996335', 'tblTempUsageDetail_20' ) start [2025-04-26 19:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996335', 'tblTempUsageDetail_20' ) end [2025-04-26 19:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 19:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 19:13:22] Production.INFO: ==14171== Releasing lock... [2025-04-26 19:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 19:13:22] Production.INFO: 47.75 MB #Memory Used# [2025-04-26 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 16:14:05 [end_date_ymd] => 2025-04-26 19:14:05 [RateCDR] => 1 ) [2025-04-26 19:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 16:14:05' and `end` < '2025-04-26 19:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 19:14:18] Production.INFO: count ==2613 [2025-04-26 19:14:19] Production.ERROR: pbx CDR StartTime 2025-04-26 16:14:05 - End Time 2025-04-26 19:14:05 [2025-04-26 19:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996340', 'tblTempUsageDetail_20' ) start [2025-04-26 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996340', 'tblTempUsageDetail_20' ) end [2025-04-26 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996340', 'tblTempVendorCDR_20' ) start [2025-04-26 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996340', 'tblTempVendorCDR_20' ) end [2025-04-26 19:14:19] Production.INFO: ProcessCDR(1,14996340,1,1,2) [2025-04-26 19:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996340', 'tblTempUsageDetail_20' ) start [2025-04-26 19:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996340', 'tblTempUsageDetail_20' ) end [2025-04-26 19:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 19:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 19:14:22] Production.INFO: ==14242== Releasing lock... [2025-04-26 19:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 19:14:22] Production.INFO: 47.75 MB #Memory Used# [2025-04-26 19:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 16:15:04 [end_date_ymd] => 2025-04-26 19:15:04 [RateCDR] => 1 ) [2025-04-26 19:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 16:15:04' and `end` < '2025-04-26 19:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 19:15:17] Production.INFO: count ==2614 [2025-04-26 19:15:18] Production.ERROR: pbx CDR StartTime 2025-04-26 16:15:04 - End Time 2025-04-26 19:15:04 [2025-04-26 19:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996345', 'tblTempUsageDetail_20' ) start [2025-04-26 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996345', 'tblTempUsageDetail_20' ) end [2025-04-26 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996345', 'tblTempVendorCDR_20' ) start [2025-04-26 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996345', 'tblTempVendorCDR_20' ) end [2025-04-26 19:15:18] Production.INFO: ProcessCDR(1,14996345,1,1,2) [2025-04-26 19:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996345', 'tblTempUsageDetail_20' ) start [2025-04-26 19:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996345', 'tblTempUsageDetail_20' ) end [2025-04-26 19:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 19:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 19:15:23] Production.INFO: ==14432== Releasing lock... [2025-04-26 19:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 19:15:23] Production.INFO: 47.75 MB #Memory Used# [2025-04-26 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 16:16:05 [end_date_ymd] => 2025-04-26 19:16:05 [RateCDR] => 1 ) [2025-04-26 19:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 16:16:05' and `end` < '2025-04-26 19:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 19:16:18] Production.INFO: count ==2613 [2025-04-26 19:16:19] Production.ERROR: pbx CDR StartTime 2025-04-26 16:16:05 - End Time 2025-04-26 19:16:05 [2025-04-26 19:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996350', 'tblTempUsageDetail_20' ) start [2025-04-26 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996350', 'tblTempUsageDetail_20' ) end [2025-04-26 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996350', 'tblTempVendorCDR_20' ) start [2025-04-26 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996350', 'tblTempVendorCDR_20' ) end [2025-04-26 19:16:19] Production.INFO: ProcessCDR(1,14996350,1,1,2) [2025-04-26 19:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996350', 'tblTempUsageDetail_20' ) start [2025-04-26 19:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996350', 'tblTempUsageDetail_20' ) end [2025-04-26 19:16:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 19:16:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 19:16:24] Production.INFO: ==14502== Releasing lock... [2025-04-26 19:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 19:16:24] Production.INFO: 47.75 MB #Memory Used# [2025-04-26 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 16:17:05 [end_date_ymd] => 2025-04-26 19:17:05 [RateCDR] => 1 ) [2025-04-26 19:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 16:17:05' and `end` < '2025-04-26 19:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 19:17:17] Production.INFO: count ==2611 [2025-04-26 19:17:18] Production.ERROR: pbx CDR StartTime 2025-04-26 16:17:05 - End Time 2025-04-26 19:17:05 [2025-04-26 19:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996355', 'tblTempUsageDetail_20' ) start [2025-04-26 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996355', 'tblTempUsageDetail_20' ) end [2025-04-26 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996355', 'tblTempVendorCDR_20' ) start [2025-04-26 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996355', 'tblTempVendorCDR_20' ) end [2025-04-26 19:17:18] Production.INFO: ProcessCDR(1,14996355,1,1,2) [2025-04-26 19:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996355', 'tblTempUsageDetail_20' ) start [2025-04-26 19:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996355', 'tblTempUsageDetail_20' ) end [2025-04-26 19:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 19:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 19:17:23] Production.INFO: ==14579== Releasing lock... [2025-04-26 19:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 19:17:23] Production.INFO: 47.75 MB #Memory Used# [2025-04-26 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 16:18:05 [end_date_ymd] => 2025-04-26 19:18:05 [RateCDR] => 1 ) [2025-04-26 19:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 16:18:05' and `end` < '2025-04-26 19:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 19:18:18] Production.INFO: count ==2613 [2025-04-26 19:18:19] Production.ERROR: pbx CDR StartTime 2025-04-26 16:18:05 - End Time 2025-04-26 19:18:05 [2025-04-26 19:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996360', 'tblTempUsageDetail_20' ) start [2025-04-26 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996360', 'tblTempUsageDetail_20' ) end [2025-04-26 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996360', 'tblTempVendorCDR_20' ) start [2025-04-26 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996360', 'tblTempVendorCDR_20' ) end [2025-04-26 19:18:19] Production.INFO: ProcessCDR(1,14996360,1,1,2) [2025-04-26 19:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996360', 'tblTempUsageDetail_20' ) start [2025-04-26 19:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996360', 'tblTempUsageDetail_20' ) end [2025-04-26 19:18:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 19:18:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 19:18:24] Production.INFO: ==14655== Releasing lock... [2025-04-26 19:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 19:18:24] Production.INFO: 47.75 MB #Memory Used# [2025-04-26 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 16:19:05 [end_date_ymd] => 2025-04-26 19:19:05 [RateCDR] => 1 ) [2025-04-26 19:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 16:19:05' and `end` < '2025-04-26 19:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 19:19:18] Production.INFO: count ==2614 [2025-04-26 19:19:19] Production.ERROR: pbx CDR StartTime 2025-04-26 16:19:05 - End Time 2025-04-26 19:19:05 [2025-04-26 19:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996365', 'tblTempUsageDetail_20' ) start [2025-04-26 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996365', 'tblTempUsageDetail_20' ) end [2025-04-26 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996365', 'tblTempVendorCDR_20' ) start [2025-04-26 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996365', 'tblTempVendorCDR_20' ) end [2025-04-26 19:19:19] Production.INFO: ProcessCDR(1,14996365,1,1,2) [2025-04-26 19:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996365', 'tblTempUsageDetail_20' ) start [2025-04-26 19:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996365', 'tblTempUsageDetail_20' ) end [2025-04-26 19:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 19:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 19:19:22] Production.INFO: ==14725== Releasing lock... [2025-04-26 19:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 19:19:22] Production.INFO: 47.75 MB #Memory Used# [2025-04-26 19:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 16:20:05 [end_date_ymd] => 2025-04-26 19:20:05 [RateCDR] => 1 ) [2025-04-26 19:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 16:20:05' and `end` < '2025-04-26 19:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 19:20:19] Production.INFO: count ==2627 [2025-04-26 19:20:19] Production.ERROR: pbx CDR StartTime 2025-04-26 16:20:05 - End Time 2025-04-26 19:20:05 [2025-04-26 19:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996371', 'tblTempUsageDetail_20' ) start [2025-04-26 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996371', 'tblTempUsageDetail_20' ) end [2025-04-26 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996371', 'tblTempVendorCDR_20' ) start [2025-04-26 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996371', 'tblTempVendorCDR_20' ) end [2025-04-26 19:20:19] Production.INFO: ProcessCDR(1,14996371,1,1,2) [2025-04-26 19:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996371', 'tblTempUsageDetail_20' ) start [2025-04-26 19:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996371', 'tblTempUsageDetail_20' ) end [2025-04-26 19:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 19:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 19:20:24] Production.INFO: ==14801== Releasing lock... [2025-04-26 19:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 19:20:24] Production.INFO: 47.75 MB #Memory Used# [2025-04-26 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 16:21:05 [end_date_ymd] => 2025-04-26 19:21:05 [RateCDR] => 1 ) [2025-04-26 19:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 16:21:05' and `end` < '2025-04-26 19:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 19:21:18] Production.INFO: count ==2608 [2025-04-26 19:21:19] Production.ERROR: pbx CDR StartTime 2025-04-26 16:21:05 - End Time 2025-04-26 19:21:05 [2025-04-26 19:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996376', 'tblTempUsageDetail_20' ) start [2025-04-26 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996376', 'tblTempUsageDetail_20' ) end [2025-04-26 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996376', 'tblTempVendorCDR_20' ) start [2025-04-26 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996376', 'tblTempVendorCDR_20' ) end [2025-04-26 19:21:19] Production.INFO: ProcessCDR(1,14996376,1,1,2) [2025-04-26 19:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996376', 'tblTempUsageDetail_20' ) start [2025-04-26 19:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996376', 'tblTempUsageDetail_20' ) end [2025-04-26 19:21:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 19:21:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 19:21:24] Production.INFO: ==14880== Releasing lock... [2025-04-26 19:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 19:21:24] Production.INFO: 47.75 MB #Memory Used# [2025-04-26 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 16:22:05 [end_date_ymd] => 2025-04-26 19:22:05 [RateCDR] => 1 ) [2025-04-26 19:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 16:22:05' and `end` < '2025-04-26 19:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 19:22:18] Production.INFO: count ==2603 [2025-04-26 19:22:19] Production.ERROR: pbx CDR StartTime 2025-04-26 16:22:05 - End Time 2025-04-26 19:22:05 [2025-04-26 19:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996381', 'tblTempUsageDetail_20' ) start [2025-04-26 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996381', 'tblTempUsageDetail_20' ) end [2025-04-26 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996381', 'tblTempVendorCDR_20' ) start [2025-04-26 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996381', 'tblTempVendorCDR_20' ) end [2025-04-26 19:22:19] Production.INFO: ProcessCDR(1,14996381,1,1,2) [2025-04-26 19:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996381', 'tblTempUsageDetail_20' ) start [2025-04-26 19:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996381', 'tblTempUsageDetail_20' ) end [2025-04-26 19:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 19:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 19:22:24] Production.INFO: ==14952== Releasing lock... [2025-04-26 19:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 19:22:24] Production.INFO: 47.75 MB #Memory Used# [2025-04-26 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 16:23:05 [end_date_ymd] => 2025-04-26 19:23:05 [RateCDR] => 1 ) [2025-04-26 19:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 16:23:05' and `end` < '2025-04-26 19:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 19:23:18] Production.INFO: count ==2597 [2025-04-26 19:23:19] Production.ERROR: pbx CDR StartTime 2025-04-26 16:23:05 - End Time 2025-04-26 19:23:05 [2025-04-26 19:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996386', 'tblTempUsageDetail_20' ) start [2025-04-26 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996386', 'tblTempUsageDetail_20' ) end [2025-04-26 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996386', 'tblTempVendorCDR_20' ) start [2025-04-26 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996386', 'tblTempVendorCDR_20' ) end [2025-04-26 19:23:19] Production.INFO: ProcessCDR(1,14996386,1,1,2) [2025-04-26 19:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996386', 'tblTempUsageDetail_20' ) start [2025-04-26 19:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996386', 'tblTempUsageDetail_20' ) end [2025-04-26 19:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 19:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 19:23:22] Production.INFO: ==15023== Releasing lock... [2025-04-26 19:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 19:23:22] Production.INFO: 47.5 MB #Memory Used# [2025-04-26 19:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 16:24:04 [end_date_ymd] => 2025-04-26 19:24:04 [RateCDR] => 1 ) [2025-04-26 19:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 16:24:04' and `end` < '2025-04-26 19: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-04-26 19:24:17] Production.INFO: count ==2594 [2025-04-26 19:24:18] Production.ERROR: pbx CDR StartTime 2025-04-26 16:24:04 - End Time 2025-04-26 19:24:04 [2025-04-26 19:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996391', 'tblTempUsageDetail_20' ) start [2025-04-26 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996391', 'tblTempUsageDetail_20' ) end [2025-04-26 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996391', 'tblTempVendorCDR_20' ) start [2025-04-26 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996391', 'tblTempVendorCDR_20' ) end [2025-04-26 19:24:18] Production.INFO: ProcessCDR(1,14996391,1,1,2) [2025-04-26 19:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996391', 'tblTempUsageDetail_20' ) start [2025-04-26 19:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996391', 'tblTempUsageDetail_20' ) end [2025-04-26 19:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 19:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 19:24:21] Production.INFO: ==15093== Releasing lock... [2025-04-26 19:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 19:24:21] Production.INFO: 47.5 MB #Memory Used# [2025-04-26 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 16:25:05 [end_date_ymd] => 2025-04-26 19:25:05 [RateCDR] => 1 ) [2025-04-26 19:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 16:25:05' and `end` < '2025-04-26 19:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 19:25:19] Production.INFO: count ==2596 [2025-04-26 19:25:19] Production.ERROR: pbx CDR StartTime 2025-04-26 16:25:05 - End Time 2025-04-26 19:25:05 [2025-04-26 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996396', 'tblTempUsageDetail_20' ) start [2025-04-26 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996396', 'tblTempUsageDetail_20' ) end [2025-04-26 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996396', 'tblTempVendorCDR_20' ) start [2025-04-26 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996396', 'tblTempVendorCDR_20' ) end [2025-04-26 19:25:19] Production.INFO: ProcessCDR(1,14996396,1,1,2) [2025-04-26 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996396', 'tblTempUsageDetail_20' ) start [2025-04-26 19:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996396', 'tblTempUsageDetail_20' ) end [2025-04-26 19:25:25] Production.ERROR: pbx prc_insertCDR start [2025-04-26 19:25:25] Production.ERROR: pbx prc_insertCDR end [2025-04-26 19:25:25] Production.INFO: ==15167== Releasing lock... [2025-04-26 19:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 19:25:25] Production.INFO: 47.5 MB #Memory Used# [2025-04-26 19:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 16:26:06 [end_date_ymd] => 2025-04-26 19:26:06 [RateCDR] => 1 ) [2025-04-26 19:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 16:26:06' and `end` < '2025-04-26 19:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 19:26:19] Production.INFO: count ==2582 [2025-04-26 19:26:19] Production.ERROR: pbx CDR StartTime 2025-04-26 16:26:06 - End Time 2025-04-26 19:26:06 [2025-04-26 19:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996401', 'tblTempUsageDetail_20' ) start [2025-04-26 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996401', 'tblTempUsageDetail_20' ) end [2025-04-26 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996401', 'tblTempVendorCDR_20' ) start [2025-04-26 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996401', 'tblTempVendorCDR_20' ) end [2025-04-26 19:26:20] Production.INFO: ProcessCDR(1,14996401,1,1,2) [2025-04-26 19:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996401', 'tblTempUsageDetail_20' ) start [2025-04-26 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996401', 'tblTempUsageDetail_20' ) end [2025-04-26 19:26:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 19:26:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 19:26:23] Production.INFO: ==15238== Releasing lock... [2025-04-26 19:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 19:26:23] Production.INFO: 47.5 MB #Memory Used# [2025-04-26 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 16:27:05 [end_date_ymd] => 2025-04-26 19:27:05 [RateCDR] => 1 ) [2025-04-26 19:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 16:27:05' and `end` < '2025-04-26 19:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 19:27:18] Production.INFO: count ==2581 [2025-04-26 19:27:19] Production.ERROR: pbx CDR StartTime 2025-04-26 16:27:05 - End Time 2025-04-26 19:27:05 [2025-04-26 19:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996406', 'tblTempUsageDetail_20' ) start [2025-04-26 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996406', 'tblTempUsageDetail_20' ) end [2025-04-26 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996406', 'tblTempVendorCDR_20' ) start [2025-04-26 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996406', 'tblTempVendorCDR_20' ) end [2025-04-26 19:27:19] Production.INFO: ProcessCDR(1,14996406,1,1,2) [2025-04-26 19:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996406', 'tblTempUsageDetail_20' ) start [2025-04-26 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996406', 'tblTempUsageDetail_20' ) end [2025-04-26 19:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 19:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 19:27:22] Production.INFO: ==15308== Releasing lock... [2025-04-26 19:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 19:27:22] Production.INFO: 47.5 MB #Memory Used# [2025-04-26 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 16:28:05 [end_date_ymd] => 2025-04-26 19:28:05 [RateCDR] => 1 ) [2025-04-26 19:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 16:28:05' and `end` < '2025-04-26 19:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 19:28:18] Production.INFO: count ==2578 [2025-04-26 19:28:19] Production.ERROR: pbx CDR StartTime 2025-04-26 16:28:05 - End Time 2025-04-26 19:28:05 [2025-04-26 19:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996411', 'tblTempUsageDetail_20' ) start [2025-04-26 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996411', 'tblTempUsageDetail_20' ) end [2025-04-26 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996411', 'tblTempVendorCDR_20' ) start [2025-04-26 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996411', 'tblTempVendorCDR_20' ) end [2025-04-26 19:28:19] Production.INFO: ProcessCDR(1,14996411,1,1,2) [2025-04-26 19:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996411', 'tblTempUsageDetail_20' ) start [2025-04-26 19:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996411', 'tblTempUsageDetail_20' ) end [2025-04-26 19:28:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 19:28:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 19:28:24] Production.INFO: ==15378== Releasing lock... [2025-04-26 19:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 19:28:24] Production.INFO: 47.5 MB #Memory Used# [2025-04-26 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 16:29:05 [end_date_ymd] => 2025-04-26 19:29:05 [RateCDR] => 1 ) [2025-04-26 19:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 16:29:05' and `end` < '2025-04-26 19:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 19:29:18] Production.INFO: count ==2573 [2025-04-26 19:29:19] Production.ERROR: pbx CDR StartTime 2025-04-26 16:29:05 - End Time 2025-04-26 19:29:05 [2025-04-26 19:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996416', 'tblTempUsageDetail_20' ) start [2025-04-26 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996416', 'tblTempUsageDetail_20' ) end [2025-04-26 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996416', 'tblTempVendorCDR_20' ) start [2025-04-26 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996416', 'tblTempVendorCDR_20' ) end [2025-04-26 19:29:19] Production.INFO: ProcessCDR(1,14996416,1,1,2) [2025-04-26 19:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996416', 'tblTempUsageDetail_20' ) start [2025-04-26 19:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996416', 'tblTempUsageDetail_20' ) end [2025-04-26 19:29:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 19:29:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 19:29:24] Production.INFO: ==15449== Releasing lock... [2025-04-26 19:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 19:29:24] Production.INFO: 47.5 MB #Memory Used# [2025-04-26 19:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 16:30:06 [end_date_ymd] => 2025-04-26 19:30:06 [RateCDR] => 1 ) [2025-04-26 19:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 16:30:06' and `end` < '2025-04-26 19:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 19:30:19] Production.INFO: count ==2576 [2025-04-26 19:30:20] Production.ERROR: pbx CDR StartTime 2025-04-26 16:30:06 - End Time 2025-04-26 19:30:06 [2025-04-26 19:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996422', 'tblTempUsageDetail_20' ) start [2025-04-26 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996422', 'tblTempUsageDetail_20' ) end [2025-04-26 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996422', 'tblTempVendorCDR_20' ) start [2025-04-26 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996422', 'tblTempVendorCDR_20' ) end [2025-04-26 19:30:20] Production.INFO: ProcessCDR(1,14996422,1,1,2) [2025-04-26 19:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996422', 'tblTempUsageDetail_20' ) start [2025-04-26 19:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996422', 'tblTempUsageDetail_20' ) end [2025-04-26 19:30:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 19:30:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 19:30:24] Production.INFO: ==15525== Releasing lock... [2025-04-26 19:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 19:30:24] Production.INFO: 47.5 MB #Memory Used# [2025-04-26 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 16:31:05 [end_date_ymd] => 2025-04-26 19:31:05 [RateCDR] => 1 ) [2025-04-26 19:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 16:31:05' and `end` < '2025-04-26 19:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 19:31:17] Production.INFO: count ==2518 [2025-04-26 19:31:18] Production.ERROR: pbx CDR StartTime 2025-04-26 16:31:05 - End Time 2025-04-26 19:31:05 [2025-04-26 19:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996427', 'tblTempUsageDetail_20' ) start [2025-04-26 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996427', 'tblTempUsageDetail_20' ) end [2025-04-26 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996427', 'tblTempVendorCDR_20' ) start [2025-04-26 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996427', 'tblTempVendorCDR_20' ) end [2025-04-26 19:31:18] Production.INFO: ProcessCDR(1,14996427,1,1,2) [2025-04-26 19:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996427', 'tblTempUsageDetail_20' ) start [2025-04-26 19:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996427', 'tblTempUsageDetail_20' ) end [2025-04-26 19:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 19:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 19:31:23] Production.INFO: ==15640== Releasing lock... [2025-04-26 19:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 19:31:23] Production.INFO: 47.25 MB #Memory Used# [2025-04-26 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 16:32:05 [end_date_ymd] => 2025-04-26 19:32:05 [RateCDR] => 1 ) [2025-04-26 19:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 16:32:05' and `end` < '2025-04-26 19:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 19:32:18] Production.INFO: count ==2516 [2025-04-26 19:32:19] Production.ERROR: pbx CDR StartTime 2025-04-26 16:32:05 - End Time 2025-04-26 19:32:05 [2025-04-26 19:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996432', 'tblTempUsageDetail_20' ) start [2025-04-26 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996432', 'tblTempUsageDetail_20' ) end [2025-04-26 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996432', 'tblTempVendorCDR_20' ) start [2025-04-26 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996432', 'tblTempVendorCDR_20' ) end [2025-04-26 19:32:19] Production.INFO: ProcessCDR(1,14996432,1,1,2) [2025-04-26 19:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996432', 'tblTempUsageDetail_20' ) start [2025-04-26 19:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996432', 'tblTempUsageDetail_20' ) end [2025-04-26 19:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 19:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 19:32:22] Production.INFO: ==15713== Releasing lock... [2025-04-26 19:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 19:32:22] Production.INFO: 47 MB #Memory Used# [2025-04-26 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 16:33:05 [end_date_ymd] => 2025-04-26 19:33:05 [RateCDR] => 1 ) [2025-04-26 19:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 16:33:05' and `end` < '2025-04-26 19:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 19:33:18] Production.INFO: count ==2513 [2025-04-26 19:33:18] Production.ERROR: pbx CDR StartTime 2025-04-26 16:33:05 - End Time 2025-04-26 19:33:05 [2025-04-26 19:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996437', 'tblTempUsageDetail_20' ) start [2025-04-26 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996437', 'tblTempUsageDetail_20' ) end [2025-04-26 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996437', 'tblTempVendorCDR_20' ) start [2025-04-26 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996437', 'tblTempVendorCDR_20' ) end [2025-04-26 19:33:19] Production.INFO: ProcessCDR(1,14996437,1,1,2) [2025-04-26 19:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996437', 'tblTempUsageDetail_20' ) start [2025-04-26 19:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996437', 'tblTempUsageDetail_20' ) end [2025-04-26 19:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 19:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 19:33:22] Production.INFO: ==15784== Releasing lock... [2025-04-26 19:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 19:33:22] Production.INFO: 47 MB #Memory Used# [2025-04-26 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 16:34:05 [end_date_ymd] => 2025-04-26 19:34:05 [RateCDR] => 1 ) [2025-04-26 19:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 16:34:05' and `end` < '2025-04-26 19:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 19:34:18] Production.INFO: count ==2506 [2025-04-26 19:34:19] Production.ERROR: pbx CDR StartTime 2025-04-26 16:34:05 - End Time 2025-04-26 19:34:05 [2025-04-26 19:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996442', 'tblTempUsageDetail_20' ) start [2025-04-26 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996442', 'tblTempUsageDetail_20' ) end [2025-04-26 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996442', 'tblTempVendorCDR_20' ) start [2025-04-26 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996442', 'tblTempVendorCDR_20' ) end [2025-04-26 19:34:19] Production.INFO: ProcessCDR(1,14996442,1,1,2) [2025-04-26 19:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996442', 'tblTempUsageDetail_20' ) start [2025-04-26 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996442', 'tblTempUsageDetail_20' ) end [2025-04-26 19:34:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 19:34:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 19:34:23] Production.INFO: ==15857== Releasing lock... [2025-04-26 19:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 19:34:23] Production.INFO: 47 MB #Memory Used# [2025-04-26 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 16:35:05 [end_date_ymd] => 2025-04-26 19:35:05 [RateCDR] => 1 ) [2025-04-26 19:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 16:35:05' and `end` < '2025-04-26 19:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 19:35:18] Production.INFO: count ==2504 [2025-04-26 19:35:18] Production.ERROR: pbx CDR StartTime 2025-04-26 16:35:05 - End Time 2025-04-26 19:35:05 [2025-04-26 19:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996447', 'tblTempUsageDetail_20' ) start [2025-04-26 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996447', 'tblTempUsageDetail_20' ) end [2025-04-26 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996447', 'tblTempVendorCDR_20' ) start [2025-04-26 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996447', 'tblTempVendorCDR_20' ) end [2025-04-26 19:35:19] Production.INFO: ProcessCDR(1,14996447,1,1,2) [2025-04-26 19:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996447', 'tblTempUsageDetail_20' ) start [2025-04-26 19:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996447', 'tblTempUsageDetail_20' ) end [2025-04-26 19:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 19:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 19:35:22] Production.INFO: ==15928== Releasing lock... [2025-04-26 19:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 19:35:22] Production.INFO: 47.25 MB #Memory Used# [2025-04-26 19:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 16:36:06 [end_date_ymd] => 2025-04-26 19:36:06 [RateCDR] => 1 ) [2025-04-26 19:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 16:36:06' and `end` < '2025-04-26 19:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 19:36:19] Production.INFO: count ==2500 [2025-04-26 19:36:19] Production.ERROR: pbx CDR StartTime 2025-04-26 16:36:06 - End Time 2025-04-26 19:36:06 [2025-04-26 19:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996452', 'tblTempUsageDetail_20' ) start [2025-04-26 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996452', 'tblTempUsageDetail_20' ) end [2025-04-26 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996452', 'tblTempVendorCDR_20' ) start [2025-04-26 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996452', 'tblTempVendorCDR_20' ) end [2025-04-26 19:36:19] Production.INFO: ProcessCDR(1,14996452,1,1,2) [2025-04-26 19:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996452', 'tblTempUsageDetail_20' ) start [2025-04-26 19:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996452', 'tblTempUsageDetail_20' ) end [2025-04-26 19:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 19:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 19:36:23] Production.INFO: ==15999== Releasing lock... [2025-04-26 19:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 19:36:23] Production.INFO: 47 MB #Memory Used# [2025-04-26 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 16:37:05 [end_date_ymd] => 2025-04-26 19:37:05 [RateCDR] => 1 ) [2025-04-26 19:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 16:37:05' and `end` < '2025-04-26 19:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 19:37:18] Production.INFO: count ==2498 [2025-04-26 19:37:18] Production.ERROR: pbx CDR StartTime 2025-04-26 16:37:05 - End Time 2025-04-26 19:37:05 [2025-04-26 19:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996457', 'tblTempUsageDetail_20' ) start [2025-04-26 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996457', 'tblTempUsageDetail_20' ) end [2025-04-26 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996457', 'tblTempVendorCDR_20' ) start [2025-04-26 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996457', 'tblTempVendorCDR_20' ) end [2025-04-26 19:37:19] Production.INFO: ProcessCDR(1,14996457,1,1,2) [2025-04-26 19:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996457', 'tblTempUsageDetail_20' ) start [2025-04-26 19:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996457', 'tblTempUsageDetail_20' ) end [2025-04-26 19:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 19:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 19:37:23] Production.INFO: ==16069== Releasing lock... [2025-04-26 19:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 19:37:23] Production.INFO: 46.75 MB #Memory Used# [2025-04-26 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 16:38:05 [end_date_ymd] => 2025-04-26 19:38:05 [RateCDR] => 1 ) [2025-04-26 19:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 16:38:05' and `end` < '2025-04-26 19:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 19:38:18] Production.INFO: count ==2497 [2025-04-26 19:38:18] Production.ERROR: pbx CDR StartTime 2025-04-26 16:38:05 - End Time 2025-04-26 19:38:05 [2025-04-26 19:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996462', 'tblTempUsageDetail_20' ) start [2025-04-26 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996462', 'tblTempUsageDetail_20' ) end [2025-04-26 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996462', 'tblTempVendorCDR_20' ) start [2025-04-26 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996462', 'tblTempVendorCDR_20' ) end [2025-04-26 19:38:18] Production.INFO: ProcessCDR(1,14996462,1,1,2) [2025-04-26 19:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996462', 'tblTempUsageDetail_20' ) start [2025-04-26 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996462', 'tblTempUsageDetail_20' ) end [2025-04-26 19:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 19:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 19:38:22] Production.INFO: ==16139== Releasing lock... [2025-04-26 19:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 19:38:22] Production.INFO: 46.75 MB #Memory Used# [2025-04-26 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 16:39:05 [end_date_ymd] => 2025-04-26 19:39:05 [RateCDR] => 1 ) [2025-04-26 19:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 16:39:05' and `end` < '2025-04-26 19:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 19:39:17] Production.INFO: count ==2489 [2025-04-26 19:39:18] Production.ERROR: pbx CDR StartTime 2025-04-26 16:39:05 - End Time 2025-04-26 19:39:05 [2025-04-26 19:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996467', 'tblTempUsageDetail_20' ) start [2025-04-26 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996467', 'tblTempUsageDetail_20' ) end [2025-04-26 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996467', 'tblTempVendorCDR_20' ) start [2025-04-26 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996467', 'tblTempVendorCDR_20' ) end [2025-04-26 19:39:18] Production.INFO: ProcessCDR(1,14996467,1,1,2) [2025-04-26 19:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996467', 'tblTempUsageDetail_20' ) start [2025-04-26 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996467', 'tblTempUsageDetail_20' ) end [2025-04-26 19:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 19:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 19:39:22] Production.INFO: ==16209== Releasing lock... [2025-04-26 19:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 19:39:22] Production.INFO: 46.75 MB #Memory Used# [2025-04-26 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 16:40:06 [end_date_ymd] => 2025-04-26 19:40:06 [RateCDR] => 1 ) [2025-04-26 19:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 16:40:06' and `end` < '2025-04-26 19:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 19:40:18] Production.INFO: count ==2477 [2025-04-26 19:40:19] Production.ERROR: pbx CDR StartTime 2025-04-26 16:40:06 - End Time 2025-04-26 19:40:06 [2025-04-26 19:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996472', 'tblTempUsageDetail_20' ) start [2025-04-26 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996472', 'tblTempUsageDetail_20' ) end [2025-04-26 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996472', 'tblTempVendorCDR_20' ) start [2025-04-26 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996472', 'tblTempVendorCDR_20' ) end [2025-04-26 19:40:19] Production.INFO: ProcessCDR(1,14996472,1,1,2) [2025-04-26 19:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996472', 'tblTempUsageDetail_20' ) start [2025-04-26 19:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996472', 'tblTempUsageDetail_20' ) end [2025-04-26 19:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 19:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 19:40:23] Production.INFO: ==16283== Releasing lock... [2025-04-26 19:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 19:40:23] Production.INFO: 46.75 MB #Memory Used# [2025-04-26 19:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 16:41:06 [end_date_ymd] => 2025-04-26 19:41:06 [RateCDR] => 1 ) [2025-04-26 19:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 16:41:06' and `end` < '2025-04-26 19:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 19:41:19] Production.INFO: count ==2453 [2025-04-26 19:41:19] Production.ERROR: pbx CDR StartTime 2025-04-26 16:41:06 - End Time 2025-04-26 19:41:06 [2025-04-26 19:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996478', 'tblTempUsageDetail_20' ) start [2025-04-26 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996478', 'tblTempUsageDetail_20' ) end [2025-04-26 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996478', 'tblTempVendorCDR_20' ) start [2025-04-26 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996478', 'tblTempVendorCDR_20' ) end [2025-04-26 19:41:19] Production.INFO: ProcessCDR(1,14996478,1,1,2) [2025-04-26 19:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996478', 'tblTempUsageDetail_20' ) start [2025-04-26 19:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996478', 'tblTempUsageDetail_20' ) end [2025-04-26 19:41:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 19:41:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 19:41:24] Production.INFO: ==16359== Releasing lock... [2025-04-26 19:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 19:41:24] Production.INFO: 46.75 MB #Memory Used# [2025-04-26 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 16:42:05 [end_date_ymd] => 2025-04-26 19:42:05 [RateCDR] => 1 ) [2025-04-26 19:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 16:42:05' and `end` < '2025-04-26 19:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 19:42:18] Production.INFO: count ==2448 [2025-04-26 19:42:19] Production.ERROR: pbx CDR StartTime 2025-04-26 16:42:05 - End Time 2025-04-26 19:42:05 [2025-04-26 19:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996483', 'tblTempUsageDetail_20' ) start [2025-04-26 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996483', 'tblTempUsageDetail_20' ) end [2025-04-26 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996483', 'tblTempVendorCDR_20' ) start [2025-04-26 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996483', 'tblTempVendorCDR_20' ) end [2025-04-26 19:42:19] Production.INFO: ProcessCDR(1,14996483,1,1,2) [2025-04-26 19:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996483', 'tblTempUsageDetail_20' ) start [2025-04-26 19:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996483', 'tblTempUsageDetail_20' ) end [2025-04-26 19:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 19:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 19:42:22] Production.INFO: ==16428== Releasing lock... [2025-04-26 19:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 19:42:22] Production.INFO: 46.75 MB #Memory Used# [2025-04-26 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 16:43:05 [end_date_ymd] => 2025-04-26 19:43:05 [RateCDR] => 1 ) [2025-04-26 19:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 16:43:05' and `end` < '2025-04-26 19:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 19:43:18] Production.INFO: count ==2446 [2025-04-26 19:43:19] Production.ERROR: pbx CDR StartTime 2025-04-26 16:43:05 - End Time 2025-04-26 19:43:05 [2025-04-26 19:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996488', 'tblTempUsageDetail_20' ) start [2025-04-26 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996488', 'tblTempUsageDetail_20' ) end [2025-04-26 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996488', 'tblTempVendorCDR_20' ) start [2025-04-26 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996488', 'tblTempVendorCDR_20' ) end [2025-04-26 19:43:19] Production.INFO: ProcessCDR(1,14996488,1,1,2) [2025-04-26 19:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996488', 'tblTempUsageDetail_20' ) start [2025-04-26 19:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996488', 'tblTempUsageDetail_20' ) end [2025-04-26 19:43:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 19:43:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 19:43:24] Production.INFO: ==16500== Releasing lock... [2025-04-26 19:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 19:43:24] Production.INFO: 46.5 MB #Memory Used# [2025-04-26 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 16:44:05 [end_date_ymd] => 2025-04-26 19:44:05 [RateCDR] => 1 ) [2025-04-26 19:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 16:44:05' and `end` < '2025-04-26 19:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 19:44:18] Production.INFO: count ==2446 [2025-04-26 19:44:18] Production.ERROR: pbx CDR StartTime 2025-04-26 16:44:05 - End Time 2025-04-26 19:44:05 [2025-04-26 19:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996493', 'tblTempUsageDetail_20' ) start [2025-04-26 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996493', 'tblTempUsageDetail_20' ) end [2025-04-26 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996493', 'tblTempVendorCDR_20' ) start [2025-04-26 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996493', 'tblTempVendorCDR_20' ) end [2025-04-26 19:44:18] Production.INFO: ProcessCDR(1,14996493,1,1,2) [2025-04-26 19:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996493', 'tblTempUsageDetail_20' ) start [2025-04-26 19:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996493', 'tblTempUsageDetail_20' ) end [2025-04-26 19:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 19:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 19:44:23] Production.INFO: ==16575== Releasing lock... [2025-04-26 19:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 19:44:23] Production.INFO: 46.75 MB #Memory Used# [2025-04-26 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 16:45:05 [end_date_ymd] => 2025-04-26 19:45:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 16:45:05' and `end` < '2025-04-26 19:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 19:45:18] Production.INFO: count ==2448 [2025-04-26 19:45:19] Production.ERROR: pbx CDR StartTime 2025-04-26 16:45:05 - End Time 2025-04-26 19:45:05 [2025-04-26 19:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996498', 'tblTempUsageDetail_20' ) start [2025-04-26 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996498', 'tblTempUsageDetail_20' ) end [2025-04-26 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996498', 'tblTempVendorCDR_20' ) start [2025-04-26 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996498', 'tblTempVendorCDR_20' ) end [2025-04-26 19:45:19] Production.INFO: ProcessCDR(1,14996498,1,1,2) [2025-04-26 19:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996498', 'tblTempUsageDetail_20' ) start [2025-04-26 19:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996498', 'tblTempUsageDetail_20' ) end [2025-04-26 19:45:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 19:45:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 19:45:24] Production.INFO: ==16647== Releasing lock... [2025-04-26 19:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 19:45:24] Production.INFO: 46.75 MB #Memory Used# [2025-04-26 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 16:46:05 [end_date_ymd] => 2025-04-26 19:46:05 [RateCDR] => 1 ) [2025-04-26 19:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 16:46:05' and `end` < '2025-04-26 19:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 19:46:17] Production.INFO: count ==2449 [2025-04-26 19:46:18] Production.ERROR: pbx CDR StartTime 2025-04-26 16:46:05 - End Time 2025-04-26 19:46:05 [2025-04-26 19:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996503', 'tblTempUsageDetail_20' ) start [2025-04-26 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996503', 'tblTempUsageDetail_20' ) end [2025-04-26 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996503', 'tblTempVendorCDR_20' ) start [2025-04-26 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996503', 'tblTempVendorCDR_20' ) end [2025-04-26 19:46:18] Production.INFO: ProcessCDR(1,14996503,1,1,2) [2025-04-26 19:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996503', 'tblTempUsageDetail_20' ) start [2025-04-26 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996503', 'tblTempUsageDetail_20' ) end [2025-04-26 19:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 19:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 19:46:22] Production.INFO: ==16764== Releasing lock... [2025-04-26 19:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 19:46:22] Production.INFO: 46.75 MB #Memory Used# [2025-04-26 19:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 16:47:06 [end_date_ymd] => 2025-04-26 19:47:06 [RateCDR] => 1 ) [2025-04-26 19:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 16:47:06' and `end` < '2025-04-26 19:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 19:47:18] Production.INFO: count ==2441 [2025-04-26 19:47:19] Production.ERROR: pbx CDR StartTime 2025-04-26 16:47:06 - End Time 2025-04-26 19:47:06 [2025-04-26 19:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996508', 'tblTempUsageDetail_20' ) start [2025-04-26 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996508', 'tblTempUsageDetail_20' ) end [2025-04-26 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996508', 'tblTempVendorCDR_20' ) start [2025-04-26 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996508', 'tblTempVendorCDR_20' ) end [2025-04-26 19:47:19] Production.INFO: ProcessCDR(1,14996508,1,1,2) [2025-04-26 19:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996508', 'tblTempUsageDetail_20' ) start [2025-04-26 19:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996508', 'tblTempUsageDetail_20' ) end [2025-04-26 19:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 19:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 19:47:23] Production.INFO: ==16841== Releasing lock... [2025-04-26 19:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 19:47:23] Production.INFO: 46.5 MB #Memory Used# [2025-04-26 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 16:48:05 [end_date_ymd] => 2025-04-26 19:48:05 [RateCDR] => 1 ) [2025-04-26 19:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 16:48:05' and `end` < '2025-04-26 19:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 19:48:18] Production.INFO: count ==2443 [2025-04-26 19:48:18] Production.ERROR: pbx CDR StartTime 2025-04-26 16:48:05 - End Time 2025-04-26 19:48:05 [2025-04-26 19:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996513', 'tblTempUsageDetail_20' ) start [2025-04-26 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996513', 'tblTempUsageDetail_20' ) end [2025-04-26 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996513', 'tblTempVendorCDR_20' ) start [2025-04-26 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996513', 'tblTempVendorCDR_20' ) end [2025-04-26 19:48:18] Production.INFO: ProcessCDR(1,14996513,1,1,2) [2025-04-26 19:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996513', 'tblTempUsageDetail_20' ) start [2025-04-26 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996513', 'tblTempUsageDetail_20' ) end [2025-04-26 19:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 19:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 19:48:22] Production.INFO: ==16910== Releasing lock... [2025-04-26 19:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 19:48:22] Production.INFO: 46.75 MB #Memory Used# [2025-04-26 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 16:49:05 [end_date_ymd] => 2025-04-26 19:49:05 [RateCDR] => 1 ) [2025-04-26 19:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 16:49:05' and `end` < '2025-04-26 19:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 19:49:18] Production.INFO: count ==2438 [2025-04-26 19:49:18] Production.ERROR: pbx CDR StartTime 2025-04-26 16:49:05 - End Time 2025-04-26 19:49:05 [2025-04-26 19:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996518', 'tblTempUsageDetail_20' ) start [2025-04-26 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996518', 'tblTempUsageDetail_20' ) end [2025-04-26 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996518', 'tblTempVendorCDR_20' ) start [2025-04-26 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996518', 'tblTempVendorCDR_20' ) end [2025-04-26 19:49:19] Production.INFO: ProcessCDR(1,14996518,1,1,2) [2025-04-26 19:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996518', 'tblTempUsageDetail_20' ) start [2025-04-26 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996518', 'tblTempUsageDetail_20' ) end [2025-04-26 19:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 19:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 19:49:22] Production.INFO: ==16981== Releasing lock... [2025-04-26 19:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 19:49:22] Production.INFO: 46.5 MB #Memory Used# [2025-04-26 19:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 16:50:05 [end_date_ymd] => 2025-04-26 19:50:05 [RateCDR] => 1 ) [2025-04-26 19:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 16:50:05' and `end` < '2025-04-26 19:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 19:50:17] Production.INFO: count ==2433 [2025-04-26 19:50:18] Production.ERROR: pbx CDR StartTime 2025-04-26 16:50:05 - End Time 2025-04-26 19:50:05 [2025-04-26 19:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 19:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996524', 'tblTempUsageDetail_20' ) start [2025-04-26 19:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996524', 'tblTempUsageDetail_20' ) end [2025-04-26 19:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996524', 'tblTempVendorCDR_20' ) start [2025-04-26 19:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996524', 'tblTempVendorCDR_20' ) end [2025-04-26 19:50:18] Production.INFO: ProcessCDR(1,14996524,1,1,2) [2025-04-26 19:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996524', 'tblTempUsageDetail_20' ) start [2025-04-26 19:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996524', 'tblTempUsageDetail_20' ) end [2025-04-26 19:50:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 19:50:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 19:50:21] Production.INFO: ==17053== Releasing lock... [2025-04-26 19:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 19:50:21] Production.INFO: 46.5 MB #Memory Used# [2025-04-26 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 16:51:05 [end_date_ymd] => 2025-04-26 19:51:05 [RateCDR] => 1 ) [2025-04-26 19:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 16:51:05' and `end` < '2025-04-26 19:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 19:51:18] Production.INFO: count ==2417 [2025-04-26 19:51:19] Production.ERROR: pbx CDR StartTime 2025-04-26 16:51:05 - End Time 2025-04-26 19:51:05 [2025-04-26 19:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996529', 'tblTempUsageDetail_20' ) start [2025-04-26 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996529', 'tblTempUsageDetail_20' ) end [2025-04-26 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996529', 'tblTempVendorCDR_20' ) start [2025-04-26 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996529', 'tblTempVendorCDR_20' ) end [2025-04-26 19:51:19] Production.INFO: ProcessCDR(1,14996529,1,1,2) [2025-04-26 19:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996529', 'tblTempUsageDetail_20' ) start [2025-04-26 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996529', 'tblTempUsageDetail_20' ) end [2025-04-26 19:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 19:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 19:51:22] Production.INFO: ==17130== Releasing lock... [2025-04-26 19:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 19:51:22] Production.INFO: 46.5 MB #Memory Used# [2025-04-26 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 16:52:05 [end_date_ymd] => 2025-04-26 19:52:05 [RateCDR] => 1 ) [2025-04-26 19:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 16:52:05' and `end` < '2025-04-26 19:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 19:52:18] Production.INFO: count ==2411 [2025-04-26 19:52:18] Production.ERROR: pbx CDR StartTime 2025-04-26 16:52:05 - End Time 2025-04-26 19:52:05 [2025-04-26 19:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996534', 'tblTempUsageDetail_20' ) start [2025-04-26 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996534', 'tblTempUsageDetail_20' ) end [2025-04-26 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996534', 'tblTempVendorCDR_20' ) start [2025-04-26 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996534', 'tblTempVendorCDR_20' ) end [2025-04-26 19:52:18] Production.INFO: ProcessCDR(1,14996534,1,1,2) [2025-04-26 19:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996534', 'tblTempUsageDetail_20' ) start [2025-04-26 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996534', 'tblTempUsageDetail_20' ) end [2025-04-26 19:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 19:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 19:52:22] Production.INFO: ==17203== Releasing lock... [2025-04-26 19:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 19:52:22] Production.INFO: 46.25 MB #Memory Used# [2025-04-26 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 16:53:05 [end_date_ymd] => 2025-04-26 19:53:05 [RateCDR] => 1 ) [2025-04-26 19:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 16:53:05' and `end` < '2025-04-26 19:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 19:53:18] Production.INFO: count ==2414 [2025-04-26 19:53:18] Production.ERROR: pbx CDR StartTime 2025-04-26 16:53:05 - End Time 2025-04-26 19:53:05 [2025-04-26 19:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996539', 'tblTempUsageDetail_20' ) start [2025-04-26 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996539', 'tblTempUsageDetail_20' ) end [2025-04-26 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996539', 'tblTempVendorCDR_20' ) start [2025-04-26 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996539', 'tblTempVendorCDR_20' ) end [2025-04-26 19:53:18] Production.INFO: ProcessCDR(1,14996539,1,1,2) [2025-04-26 19:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996539', 'tblTempUsageDetail_20' ) start [2025-04-26 19:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996539', 'tblTempUsageDetail_20' ) end [2025-04-26 19:53:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 19:53:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 19:53:24] Production.INFO: ==17274== Releasing lock... [2025-04-26 19:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 19:53:24] Production.INFO: 46.5 MB #Memory Used# [2025-04-26 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 16:54:05 [end_date_ymd] => 2025-04-26 19:54:05 [RateCDR] => 1 ) [2025-04-26 19:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 16:54:05' and `end` < '2025-04-26 19:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 19:54:18] Production.INFO: count ==2411 [2025-04-26 19:54:19] Production.ERROR: pbx CDR StartTime 2025-04-26 16:54:05 - End Time 2025-04-26 19:54:05 [2025-04-26 19:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996544', 'tblTempUsageDetail_20' ) start [2025-04-26 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996544', 'tblTempUsageDetail_20' ) end [2025-04-26 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996544', 'tblTempVendorCDR_20' ) start [2025-04-26 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996544', 'tblTempVendorCDR_20' ) end [2025-04-26 19:54:19] Production.INFO: ProcessCDR(1,14996544,1,1,2) [2025-04-26 19:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996544', 'tblTempUsageDetail_20' ) start [2025-04-26 19:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996544', 'tblTempUsageDetail_20' ) end [2025-04-26 19:54:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 19:54:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 19:54:24] Production.INFO: ==17344== Releasing lock... [2025-04-26 19:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 19:54:24] Production.INFO: 46.25 MB #Memory Used# [2025-04-26 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 16:55:05 [end_date_ymd] => 2025-04-26 19:55:05 [RateCDR] => 1 ) [2025-04-26 19:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 16:55:05' and `end` < '2025-04-26 19:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 19:55:18] Production.INFO: count ==2408 [2025-04-26 19:55:19] Production.ERROR: pbx CDR StartTime 2025-04-26 16:55:05 - End Time 2025-04-26 19:55:05 [2025-04-26 19:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996549', 'tblTempUsageDetail_20' ) start [2025-04-26 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996549', 'tblTempUsageDetail_20' ) end [2025-04-26 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996549', 'tblTempVendorCDR_20' ) start [2025-04-26 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996549', 'tblTempVendorCDR_20' ) end [2025-04-26 19:55:19] Production.INFO: ProcessCDR(1,14996549,1,1,2) [2025-04-26 19:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996549', 'tblTempUsageDetail_20' ) start [2025-04-26 19:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996549', 'tblTempUsageDetail_20' ) end [2025-04-26 19:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 19:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 19:55:22] Production.INFO: ==17415== Releasing lock... [2025-04-26 19:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 19:55:22] Production.INFO: 46.25 MB #Memory Used# [2025-04-26 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 16:56:05 [end_date_ymd] => 2025-04-26 19:56:05 [RateCDR] => 1 ) [2025-04-26 19:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 16:56:05' and `end` < '2025-04-26 19:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 19:56:18] Production.INFO: count ==2398 [2025-04-26 19:56:19] Production.ERROR: pbx CDR StartTime 2025-04-26 16:56:05 - End Time 2025-04-26 19:56:05 [2025-04-26 19:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996554', 'tblTempUsageDetail_20' ) start [2025-04-26 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996554', 'tblTempUsageDetail_20' ) end [2025-04-26 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996554', 'tblTempVendorCDR_20' ) start [2025-04-26 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996554', 'tblTempVendorCDR_20' ) end [2025-04-26 19:56:19] Production.INFO: ProcessCDR(1,14996554,1,1,2) [2025-04-26 19:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996554', 'tblTempUsageDetail_20' ) start [2025-04-26 19:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996554', 'tblTempUsageDetail_20' ) end [2025-04-26 19:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 19:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 19:56:22] Production.INFO: ==17489== Releasing lock... [2025-04-26 19:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 19:56:22] Production.INFO: 46.25 MB #Memory Used# [2025-04-26 19:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 16:57:04 [end_date_ymd] => 2025-04-26 19:57:04 [RateCDR] => 1 ) [2025-04-26 19:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 16:57:04' and `end` < '2025-04-26 19:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 19:57:17] Production.INFO: count ==2402 [2025-04-26 19:57:18] Production.ERROR: pbx CDR StartTime 2025-04-26 16:57:04 - End Time 2025-04-26 19:57:04 [2025-04-26 19:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996559', 'tblTempUsageDetail_20' ) start [2025-04-26 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996559', 'tblTempUsageDetail_20' ) end [2025-04-26 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996559', 'tblTempVendorCDR_20' ) start [2025-04-26 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996559', 'tblTempVendorCDR_20' ) end [2025-04-26 19:57:18] Production.INFO: ProcessCDR(1,14996559,1,1,2) [2025-04-26 19:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996559', 'tblTempUsageDetail_20' ) start [2025-04-26 19:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996559', 'tblTempUsageDetail_20' ) end [2025-04-26 19:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 19:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 19:57:21] Production.INFO: ==17560== Releasing lock... [2025-04-26 19:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 19:57:21] Production.INFO: 46.25 MB #Memory Used# [2025-04-26 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 16:58:05 [end_date_ymd] => 2025-04-26 19:58:05 [RateCDR] => 1 ) [2025-04-26 19:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 16:58:05' and `end` < '2025-04-26 19:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 19:58:18] Production.INFO: count ==2383 [2025-04-26 19:58:19] Production.ERROR: pbx CDR StartTime 2025-04-26 16:58:05 - End Time 2025-04-26 19:58:05 [2025-04-26 19:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996564', 'tblTempUsageDetail_20' ) start [2025-04-26 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996564', 'tblTempUsageDetail_20' ) end [2025-04-26 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996564', 'tblTempVendorCDR_20' ) start [2025-04-26 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996564', 'tblTempVendorCDR_20' ) end [2025-04-26 19:58:19] Production.INFO: ProcessCDR(1,14996564,1,1,2) [2025-04-26 19:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996564', 'tblTempUsageDetail_20' ) start [2025-04-26 19:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996564', 'tblTempUsageDetail_20' ) end [2025-04-26 19:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 19:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 19:58:22] Production.INFO: ==17635== Releasing lock... [2025-04-26 19:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 19:58:22] Production.INFO: 46.25 MB #Memory Used# [2025-04-26 19:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 16:59:04 [end_date_ymd] => 2025-04-26 19:59:04 [RateCDR] => 1 ) [2025-04-26 19:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 16:59:04' and `end` < '2025-04-26 19:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 19:59:17] Production.INFO: count ==2387 [2025-04-26 19:59:18] Production.ERROR: pbx CDR StartTime 2025-04-26 16:59:04 - End Time 2025-04-26 19:59:04 [2025-04-26 19:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996569', 'tblTempUsageDetail_20' ) start [2025-04-26 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996569', 'tblTempUsageDetail_20' ) end [2025-04-26 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996569', 'tblTempVendorCDR_20' ) start [2025-04-26 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996569', 'tblTempVendorCDR_20' ) end [2025-04-26 19:59:18] Production.INFO: ProcessCDR(1,14996569,1,1,2) [2025-04-26 19:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 19:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 19:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996569', 'tblTempUsageDetail_20' ) start [2025-04-26 19:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996569', 'tblTempUsageDetail_20' ) end [2025-04-26 19:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 19:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 19:59:23] Production.INFO: ==17705== Releasing lock... [2025-04-26 19:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 19:59:23] Production.INFO: 46.25 MB #Memory Used# [2025-04-26 20:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 17:00:05 [end_date_ymd] => 2025-04-26 20:00:05 [RateCDR] => 1 ) [2025-04-26 20:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 17:00:05' and `end` < '2025-04-26 20:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 20:00:18] Production.INFO: count ==2389 [2025-04-26 20:00:19] Production.ERROR: pbx CDR StartTime 2025-04-26 17:00:05 - End Time 2025-04-26 20:00:05 [2025-04-26 20:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996574', 'tblTempUsageDetail_20' ) start [2025-04-26 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996574', 'tblTempUsageDetail_20' ) end [2025-04-26 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996574', 'tblTempVendorCDR_20' ) start [2025-04-26 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996574', 'tblTempVendorCDR_20' ) end [2025-04-26 20:00:19] Production.INFO: ProcessCDR(1,14996574,1,1,2) [2025-04-26 20:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996574', 'tblTempUsageDetail_20' ) start [2025-04-26 20:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996574', 'tblTempUsageDetail_20' ) end [2025-04-26 20:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 20:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 20:00:24] Production.INFO: ==17780== Releasing lock... [2025-04-26 20:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 20:00:24] Production.INFO: 46 MB #Memory Used# [2025-04-26 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 17:01:05 [end_date_ymd] => 2025-04-26 20:01:05 [RateCDR] => 1 ) [2025-04-26 20:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 17:01:05' and `end` < '2025-04-26 20:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 20:01:18] Production.INFO: count ==2394 [2025-04-26 20:01:19] Production.ERROR: pbx CDR StartTime 2025-04-26 17:01:05 - End Time 2025-04-26 20:01:05 [2025-04-26 20:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996580', 'tblTempUsageDetail_20' ) start [2025-04-26 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996580', 'tblTempUsageDetail_20' ) end [2025-04-26 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996580', 'tblTempVendorCDR_20' ) start [2025-04-26 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996580', 'tblTempVendorCDR_20' ) end [2025-04-26 20:01:19] Production.INFO: ProcessCDR(1,14996580,1,1,2) [2025-04-26 20:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996580', 'tblTempUsageDetail_20' ) start [2025-04-26 20:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996580', 'tblTempUsageDetail_20' ) end [2025-04-26 20:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 20:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 20:01:22] Production.INFO: ==17906== Releasing lock... [2025-04-26 20:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 20:01:22] Production.INFO: 46 MB #Memory Used# [2025-04-26 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 17:02:05 [end_date_ymd] => 2025-04-26 20:02:05 [RateCDR] => 1 ) [2025-04-26 20:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 17:02:05' and `end` < '2025-04-26 20:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 20:02:18] Production.INFO: count ==2393 [2025-04-26 20:02:19] Production.ERROR: pbx CDR StartTime 2025-04-26 17:02:05 - End Time 2025-04-26 20:02:05 [2025-04-26 20:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996585', 'tblTempUsageDetail_20' ) start [2025-04-26 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996585', 'tblTempUsageDetail_20' ) end [2025-04-26 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996585', 'tblTempVendorCDR_20' ) start [2025-04-26 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996585', 'tblTempVendorCDR_20' ) end [2025-04-26 20:02:19] Production.INFO: ProcessCDR(1,14996585,1,1,2) [2025-04-26 20:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996585', 'tblTempUsageDetail_20' ) start [2025-04-26 20:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996585', 'tblTempUsageDetail_20' ) end [2025-04-26 20:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 20:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 20:02:22] Production.INFO: ==18016== Releasing lock... [2025-04-26 20:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 20:02:22] Production.INFO: 46 MB #Memory Used# [2025-04-26 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 17:03:05 [end_date_ymd] => 2025-04-26 20:03:05 [RateCDR] => 1 ) [2025-04-26 20:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 17:03:05' and `end` < '2025-04-26 20:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 20:03:18] Production.INFO: count ==2390 [2025-04-26 20:03:19] Production.ERROR: pbx CDR StartTime 2025-04-26 17:03:05 - End Time 2025-04-26 20:03:05 [2025-04-26 20:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996590', 'tblTempUsageDetail_20' ) start [2025-04-26 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996590', 'tblTempUsageDetail_20' ) end [2025-04-26 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996590', 'tblTempVendorCDR_20' ) start [2025-04-26 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996590', 'tblTempVendorCDR_20' ) end [2025-04-26 20:03:19] Production.INFO: ProcessCDR(1,14996590,1,1,2) [2025-04-26 20:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996590', 'tblTempUsageDetail_20' ) start [2025-04-26 20:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996590', 'tblTempUsageDetail_20' ) end [2025-04-26 20:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 20:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 20:03:22] Production.INFO: ==18094== Releasing lock... [2025-04-26 20:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 20:03:22] Production.INFO: 46 MB #Memory Used# [2025-04-26 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 17:04:05 [end_date_ymd] => 2025-04-26 20:04:05 [RateCDR] => 1 ) [2025-04-26 20:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 17:04:05' and `end` < '2025-04-26 20:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 20:04:18] Production.INFO: count ==2382 [2025-04-26 20:04:19] Production.ERROR: pbx CDR StartTime 2025-04-26 17:04:05 - End Time 2025-04-26 20:04:05 [2025-04-26 20:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996595', 'tblTempUsageDetail_20' ) start [2025-04-26 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996595', 'tblTempUsageDetail_20' ) end [2025-04-26 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996595', 'tblTempVendorCDR_20' ) start [2025-04-26 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996595', 'tblTempVendorCDR_20' ) end [2025-04-26 20:04:19] Production.INFO: ProcessCDR(1,14996595,1,1,2) [2025-04-26 20:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996595', 'tblTempUsageDetail_20' ) start [2025-04-26 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996595', 'tblTempUsageDetail_20' ) end [2025-04-26 20:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 20:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 20:04:22] Production.INFO: ==18165== Releasing lock... [2025-04-26 20:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 20:04:22] Production.INFO: 46.25 MB #Memory Used# [2025-04-26 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 17:05:05 [end_date_ymd] => 2025-04-26 20:05:05 [RateCDR] => 1 ) [2025-04-26 20:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 17:05:05' and `end` < '2025-04-26 20:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 20:05:18] Production.INFO: count ==2385 [2025-04-26 20:05:19] Production.ERROR: pbx CDR StartTime 2025-04-26 17:05:05 - End Time 2025-04-26 20:05:05 [2025-04-26 20:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996600', 'tblTempUsageDetail_20' ) start [2025-04-26 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996600', 'tblTempUsageDetail_20' ) end [2025-04-26 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996600', 'tblTempVendorCDR_20' ) start [2025-04-26 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996600', 'tblTempVendorCDR_20' ) end [2025-04-26 20:05:19] Production.INFO: ProcessCDR(1,14996600,1,1,2) [2025-04-26 20:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996600', 'tblTempUsageDetail_20' ) start [2025-04-26 20:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996600', 'tblTempUsageDetail_20' ) end [2025-04-26 20:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 20:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 20:05:22] Production.INFO: ==18239== Releasing lock... [2025-04-26 20:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 20:05:22] Production.INFO: 46.25 MB #Memory Used# [2025-04-26 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 17:06:05 [end_date_ymd] => 2025-04-26 20:06:05 [RateCDR] => 1 ) [2025-04-26 20:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 17:06:05' and `end` < '2025-04-26 20:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 20:06:18] Production.INFO: count ==2384 [2025-04-26 20:06:18] Production.ERROR: pbx CDR StartTime 2025-04-26 17:06:05 - End Time 2025-04-26 20:06:05 [2025-04-26 20:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996605', 'tblTempUsageDetail_20' ) start [2025-04-26 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996605', 'tblTempUsageDetail_20' ) end [2025-04-26 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996605', 'tblTempVendorCDR_20' ) start [2025-04-26 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996605', 'tblTempVendorCDR_20' ) end [2025-04-26 20:06:18] Production.INFO: ProcessCDR(1,14996605,1,1,2) [2025-04-26 20:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996605', 'tblTempUsageDetail_20' ) start [2025-04-26 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996605', 'tblTempUsageDetail_20' ) end [2025-04-26 20:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 20:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 20:06:22] Production.INFO: ==18311== Releasing lock... [2025-04-26 20:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 20:06:22] Production.INFO: 46.25 MB #Memory Used# [2025-04-26 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 17:07:05 [end_date_ymd] => 2025-04-26 20:07:05 [RateCDR] => 1 ) [2025-04-26 20:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 17:07:05' and `end` < '2025-04-26 20:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 20:07:18] Production.INFO: count ==2376 [2025-04-26 20:07:19] Production.ERROR: pbx CDR StartTime 2025-04-26 17:07:05 - End Time 2025-04-26 20:07:05 [2025-04-26 20:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996610', 'tblTempUsageDetail_20' ) start [2025-04-26 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996610', 'tblTempUsageDetail_20' ) end [2025-04-26 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996610', 'tblTempVendorCDR_20' ) start [2025-04-26 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996610', 'tblTempVendorCDR_20' ) end [2025-04-26 20:07:19] Production.INFO: ProcessCDR(1,14996610,1,1,2) [2025-04-26 20:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996610', 'tblTempUsageDetail_20' ) start [2025-04-26 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996610', 'tblTempUsageDetail_20' ) end [2025-04-26 20:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 20:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 20:07:22] Production.INFO: ==18383== Releasing lock... [2025-04-26 20:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 20:07:22] Production.INFO: 46 MB #Memory Used# [2025-04-26 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 17:08:05 [end_date_ymd] => 2025-04-26 20:08:05 [RateCDR] => 1 ) [2025-04-26 20:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 17:08:05' and `end` < '2025-04-26 20:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 20:08:17] Production.INFO: count ==2375 [2025-04-26 20:08:18] Production.ERROR: pbx CDR StartTime 2025-04-26 17:08:05 - End Time 2025-04-26 20:08:05 [2025-04-26 20:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996615', 'tblTempUsageDetail_20' ) start [2025-04-26 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996615', 'tblTempUsageDetail_20' ) end [2025-04-26 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996615', 'tblTempVendorCDR_20' ) start [2025-04-26 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996615', 'tblTempVendorCDR_20' ) end [2025-04-26 20:08:18] Production.INFO: ProcessCDR(1,14996615,1,1,2) [2025-04-26 20:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996615', 'tblTempUsageDetail_20' ) start [2025-04-26 20:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996615', 'tblTempUsageDetail_20' ) end [2025-04-26 20:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 20:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 20:08:22] Production.INFO: ==18455== Releasing lock... [2025-04-26 20:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 20:08:22] Production.INFO: 46 MB #Memory Used# [2025-04-26 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 17:09:05 [end_date_ymd] => 2025-04-26 20:09:05 [RateCDR] => 1 ) [2025-04-26 20:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 17:09:05' and `end` < '2025-04-26 20:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 20:09:18] Production.INFO: count ==2380 [2025-04-26 20:09:19] Production.ERROR: pbx CDR StartTime 2025-04-26 17:09:05 - End Time 2025-04-26 20:09:05 [2025-04-26 20:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996620', 'tblTempUsageDetail_20' ) start [2025-04-26 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996620', 'tblTempUsageDetail_20' ) end [2025-04-26 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996620', 'tblTempVendorCDR_20' ) start [2025-04-26 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996620', 'tblTempVendorCDR_20' ) end [2025-04-26 20:09:19] Production.INFO: ProcessCDR(1,14996620,1,1,2) [2025-04-26 20:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996620', 'tblTempUsageDetail_20' ) start [2025-04-26 20:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996620', 'tblTempUsageDetail_20' ) end [2025-04-26 20:09:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 20:09:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 20:09:24] Production.INFO: ==18524== Releasing lock... [2025-04-26 20:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 20:09:24] Production.INFO: 46.5 MB #Memory Used# [2025-04-26 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 17:10:06 [end_date_ymd] => 2025-04-26 20:10:06 [RateCDR] => 1 ) [2025-04-26 20:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 17:10:06' and `end` < '2025-04-26 20:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 20:10:18] Production.INFO: count ==2374 [2025-04-26 20:10:19] Production.ERROR: pbx CDR StartTime 2025-04-26 17:10:06 - End Time 2025-04-26 20:10:06 [2025-04-26 20:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996626', 'tblTempUsageDetail_20' ) start [2025-04-26 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996626', 'tblTempUsageDetail_20' ) end [2025-04-26 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996626', 'tblTempVendorCDR_20' ) start [2025-04-26 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996626', 'tblTempVendorCDR_20' ) end [2025-04-26 20:10:19] Production.INFO: ProcessCDR(1,14996626,1,1,2) [2025-04-26 20:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996626', 'tblTempUsageDetail_20' ) start [2025-04-26 20:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996626', 'tblTempUsageDetail_20' ) end [2025-04-26 20:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 20:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 20:10:23] Production.INFO: ==18598== Releasing lock... [2025-04-26 20:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 20:10:23] Production.INFO: 46.25 MB #Memory Used# [2025-04-26 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 17:11:05 [end_date_ymd] => 2025-04-26 20:11:05 [RateCDR] => 1 ) [2025-04-26 20:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 17:11:05' and `end` < '2025-04-26 20:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 20:11:18] Production.INFO: count ==2403 [2025-04-26 20:11:18] Production.ERROR: pbx CDR StartTime 2025-04-26 17:11:05 - End Time 2025-04-26 20:11:05 [2025-04-26 20:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996631', 'tblTempUsageDetail_20' ) start [2025-04-26 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996631', 'tblTempUsageDetail_20' ) end [2025-04-26 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996631', 'tblTempVendorCDR_20' ) start [2025-04-26 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996631', 'tblTempVendorCDR_20' ) end [2025-04-26 20:11:19] Production.INFO: ProcessCDR(1,14996631,1,1,2) [2025-04-26 20:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996631', 'tblTempUsageDetail_20' ) start [2025-04-26 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996631', 'tblTempUsageDetail_20' ) end [2025-04-26 20:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 20:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 20:11:22] Production.INFO: ==18678== Releasing lock... [2025-04-26 20:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 20:11:22] Production.INFO: 46.25 MB #Memory Used# [2025-04-26 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 17:12:05 [end_date_ymd] => 2025-04-26 20:12:05 [RateCDR] => 1 ) [2025-04-26 20:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 17:12:05' and `end` < '2025-04-26 20:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 20:12:18] Production.INFO: count ==2407 [2025-04-26 20:12:19] Production.ERROR: pbx CDR StartTime 2025-04-26 17:12:05 - End Time 2025-04-26 20:12:05 [2025-04-26 20:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996636', 'tblTempUsageDetail_20' ) start [2025-04-26 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996636', 'tblTempUsageDetail_20' ) end [2025-04-26 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996636', 'tblTempVendorCDR_20' ) start [2025-04-26 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996636', 'tblTempVendorCDR_20' ) end [2025-04-26 20:12:19] Production.INFO: ProcessCDR(1,14996636,1,1,2) [2025-04-26 20:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996636', 'tblTempUsageDetail_20' ) start [2025-04-26 20:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996636', 'tblTempUsageDetail_20' ) end [2025-04-26 20:12:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 20:12:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 20:12:24] Production.INFO: ==18752== Releasing lock... [2025-04-26 20:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 20:12:24] Production.INFO: 46.25 MB #Memory Used# [2025-04-26 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 17:13:05 [end_date_ymd] => 2025-04-26 20:13:05 [RateCDR] => 1 ) [2025-04-26 20:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 17:13:05' and `end` < '2025-04-26 20:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 20:13:18] Production.INFO: count ==2407 [2025-04-26 20:13:18] Production.ERROR: pbx CDR StartTime 2025-04-26 17:13:05 - End Time 2025-04-26 20:13:05 [2025-04-26 20:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996641', 'tblTempUsageDetail_20' ) start [2025-04-26 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996641', 'tblTempUsageDetail_20' ) end [2025-04-26 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996641', 'tblTempVendorCDR_20' ) start [2025-04-26 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996641', 'tblTempVendorCDR_20' ) end [2025-04-26 20:13:18] Production.INFO: ProcessCDR(1,14996641,1,1,2) [2025-04-26 20:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996641', 'tblTempUsageDetail_20' ) start [2025-04-26 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996641', 'tblTempUsageDetail_20' ) end [2025-04-26 20:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 20:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 20:13:22] Production.INFO: ==18825== Releasing lock... [2025-04-26 20:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 20:13:22] Production.INFO: 46.25 MB #Memory Used# [2025-04-26 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 17:14:05 [end_date_ymd] => 2025-04-26 20:14:05 [RateCDR] => 1 ) [2025-04-26 20:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 17:14:05' and `end` < '2025-04-26 20:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 20:14:18] Production.INFO: count ==2412 [2025-04-26 20:14:18] Production.ERROR: pbx CDR StartTime 2025-04-26 17:14:05 - End Time 2025-04-26 20:14:05 [2025-04-26 20:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996646', 'tblTempUsageDetail_20' ) start [2025-04-26 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996646', 'tblTempUsageDetail_20' ) end [2025-04-26 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996646', 'tblTempVendorCDR_20' ) start [2025-04-26 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996646', 'tblTempVendorCDR_20' ) end [2025-04-26 20:14:19] Production.INFO: ProcessCDR(1,14996646,1,1,2) [2025-04-26 20:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996646', 'tblTempUsageDetail_20' ) start [2025-04-26 20:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996646', 'tblTempUsageDetail_20' ) end [2025-04-26 20:14:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 20:14:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 20:14:24] Production.INFO: ==18898== Releasing lock... [2025-04-26 20:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 20:14:24] Production.INFO: 46.25 MB #Memory Used# [2025-04-26 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 17:15:05 [end_date_ymd] => 2025-04-26 20:15:05 [RateCDR] => 1 ) [2025-04-26 20:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 17:15:05' and `end` < '2025-04-26 20:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 20:15:18] Production.INFO: count ==2411 [2025-04-26 20:15:18] Production.ERROR: pbx CDR StartTime 2025-04-26 17:15:05 - End Time 2025-04-26 20:15:05 [2025-04-26 20:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996651', 'tblTempUsageDetail_20' ) start [2025-04-26 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996651', 'tblTempUsageDetail_20' ) end [2025-04-26 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996651', 'tblTempVendorCDR_20' ) start [2025-04-26 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996651', 'tblTempVendorCDR_20' ) end [2025-04-26 20:15:18] Production.INFO: ProcessCDR(1,14996651,1,1,2) [2025-04-26 20:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996651', 'tblTempUsageDetail_20' ) start [2025-04-26 20:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996651', 'tblTempUsageDetail_20' ) end [2025-04-26 20:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 20:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 20:15:22] Production.INFO: ==18969== Releasing lock... [2025-04-26 20:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 20:15:22] Production.INFO: 46.25 MB #Memory Used# [2025-04-26 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 17:16:05 [end_date_ymd] => 2025-04-26 20:16:05 [RateCDR] => 1 ) [2025-04-26 20:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 17:16:05' and `end` < '2025-04-26 20:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 20:16:18] Production.INFO: count ==2406 [2025-04-26 20:16:19] Production.ERROR: pbx CDR StartTime 2025-04-26 17:16:05 - End Time 2025-04-26 20:16:05 [2025-04-26 20:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996656', 'tblTempUsageDetail_20' ) start [2025-04-26 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996656', 'tblTempUsageDetail_20' ) end [2025-04-26 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996656', 'tblTempVendorCDR_20' ) start [2025-04-26 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996656', 'tblTempVendorCDR_20' ) end [2025-04-26 20:16:19] Production.INFO: ProcessCDR(1,14996656,1,1,2) [2025-04-26 20:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996656', 'tblTempUsageDetail_20' ) start [2025-04-26 20:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996656', 'tblTempUsageDetail_20' ) end [2025-04-26 20:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 20:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 20:16:22] Production.INFO: ==19041== Releasing lock... [2025-04-26 20:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 20:16:22] Production.INFO: 46.25 MB #Memory Used# [2025-04-26 20:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 17:17:04 [end_date_ymd] => 2025-04-26 20:17:04 [RateCDR] => 1 ) [2025-04-26 20:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 17:17:04' and `end` < '2025-04-26 20:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 20:17:17] Production.INFO: count ==2407 [2025-04-26 20:17:18] Production.ERROR: pbx CDR StartTime 2025-04-26 17:17:04 - End Time 2025-04-26 20:17:04 [2025-04-26 20:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996661', 'tblTempUsageDetail_20' ) start [2025-04-26 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996661', 'tblTempUsageDetail_20' ) end [2025-04-26 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996661', 'tblTempVendorCDR_20' ) start [2025-04-26 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996661', 'tblTempVendorCDR_20' ) end [2025-04-26 20:17:18] Production.INFO: ProcessCDR(1,14996661,1,1,2) [2025-04-26 20:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996661', 'tblTempUsageDetail_20' ) start [2025-04-26 20:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996661', 'tblTempUsageDetail_20' ) end [2025-04-26 20:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 20:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 20:17:22] Production.INFO: ==19151== Releasing lock... [2025-04-26 20:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 20:17:22] Production.INFO: 46.25 MB #Memory Used# [2025-04-26 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 17:18:05 [end_date_ymd] => 2025-04-26 20:18:05 [RateCDR] => 1 ) [2025-04-26 20:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 17:18:05' and `end` < '2025-04-26 20:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 20:18:18] Production.INFO: count ==2404 [2025-04-26 20:18:18] Production.ERROR: pbx CDR StartTime 2025-04-26 17:18:05 - End Time 2025-04-26 20:18:05 [2025-04-26 20:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996666', 'tblTempUsageDetail_20' ) start [2025-04-26 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996666', 'tblTempUsageDetail_20' ) end [2025-04-26 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996666', 'tblTempVendorCDR_20' ) start [2025-04-26 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996666', 'tblTempVendorCDR_20' ) end [2025-04-26 20:18:19] Production.INFO: ProcessCDR(1,14996666,1,1,2) [2025-04-26 20:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996666', 'tblTempUsageDetail_20' ) start [2025-04-26 20:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996666', 'tblTempUsageDetail_20' ) end [2025-04-26 20:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 20:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 20:18:22] Production.INFO: ==19226== Releasing lock... [2025-04-26 20:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 20:18:22] Production.INFO: 46.25 MB #Memory Used# [2025-04-26 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 17:19:05 [end_date_ymd] => 2025-04-26 20:19:05 [RateCDR] => 1 ) [2025-04-26 20:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 17:19:05' and `end` < '2025-04-26 20:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 20:19:18] Production.INFO: count ==2400 [2025-04-26 20:19:19] Production.ERROR: pbx CDR StartTime 2025-04-26 17:19:05 - End Time 2025-04-26 20:19:05 [2025-04-26 20:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996671', 'tblTempUsageDetail_20' ) start [2025-04-26 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996671', 'tblTempUsageDetail_20' ) end [2025-04-26 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996671', 'tblTempVendorCDR_20' ) start [2025-04-26 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996671', 'tblTempVendorCDR_20' ) end [2025-04-26 20:19:19] Production.INFO: ProcessCDR(1,14996671,1,1,2) [2025-04-26 20:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996671', 'tblTempUsageDetail_20' ) start [2025-04-26 20:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996671', 'tblTempUsageDetail_20' ) end [2025-04-26 20:19:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 20:19:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 20:19:24] Production.INFO: ==19301== Releasing lock... [2025-04-26 20:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 20:19:24] Production.INFO: 46.25 MB #Memory Used# [2025-04-26 20:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 17:20:05 [end_date_ymd] => 2025-04-26 20:20:05 [RateCDR] => 1 ) [2025-04-26 20:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 17:20:05' and `end` < '2025-04-26 20:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 20:20:18] Production.INFO: count ==2398 [2025-04-26 20:20:18] Production.ERROR: pbx CDR StartTime 2025-04-26 17:20:05 - End Time 2025-04-26 20:20:05 [2025-04-26 20:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996676', 'tblTempUsageDetail_20' ) start [2025-04-26 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996676', 'tblTempUsageDetail_20' ) end [2025-04-26 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996676', 'tblTempVendorCDR_20' ) start [2025-04-26 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996676', 'tblTempVendorCDR_20' ) end [2025-04-26 20:20:19] Production.INFO: ProcessCDR(1,14996676,1,1,2) [2025-04-26 20:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996676', 'tblTempUsageDetail_20' ) start [2025-04-26 20:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996676', 'tblTempUsageDetail_20' ) end [2025-04-26 20:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 20:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 20:20:22] Production.INFO: ==19374== Releasing lock... [2025-04-26 20:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 20:20:22] Production.INFO: 46.25 MB #Memory Used# [2025-04-26 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 17:21:05 [end_date_ymd] => 2025-04-26 20:21:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 17:21:05' and `end` < '2025-04-26 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-04-26 20:21:18] Production.INFO: count ==2366 [2025-04-26 20:21:19] Production.ERROR: pbx CDR StartTime 2025-04-26 17:21:05 - End Time 2025-04-26 20:21:05 [2025-04-26 20:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996682', 'tblTempUsageDetail_20' ) start [2025-04-26 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996682', 'tblTempUsageDetail_20' ) end [2025-04-26 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996682', 'tblTempVendorCDR_20' ) start [2025-04-26 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996682', 'tblTempVendorCDR_20' ) end [2025-04-26 20:21:19] Production.INFO: ProcessCDR(1,14996682,1,1,2) [2025-04-26 20:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996682', 'tblTempUsageDetail_20' ) start [2025-04-26 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996682', 'tblTempUsageDetail_20' ) end [2025-04-26 20:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 20:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 20:21:22] Production.INFO: ==19448== Releasing lock... [2025-04-26 20:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 20:21:22] Production.INFO: 46 MB #Memory Used# [2025-04-26 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 17:22:04 [end_date_ymd] => 2025-04-26 20:22:04 [RateCDR] => 1 ) [2025-04-26 20:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 17:22:04' and `end` < '2025-04-26 20: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-04-26 20:22:17] Production.INFO: count ==2358 [2025-04-26 20:22:18] Production.ERROR: pbx CDR StartTime 2025-04-26 17:22:04 - End Time 2025-04-26 20:22:04 [2025-04-26 20:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996687', 'tblTempUsageDetail_20' ) start [2025-04-26 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996687', 'tblTempUsageDetail_20' ) end [2025-04-26 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996687', 'tblTempVendorCDR_20' ) start [2025-04-26 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996687', 'tblTempVendorCDR_20' ) end [2025-04-26 20:22:18] Production.INFO: ProcessCDR(1,14996687,1,1,2) [2025-04-26 20:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996687', 'tblTempUsageDetail_20' ) start [2025-04-26 20:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996687', 'tblTempUsageDetail_20' ) end [2025-04-26 20:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 20:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 20:22:21] Production.INFO: ==19519== Releasing lock... [2025-04-26 20:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 20:22:21] Production.INFO: 45.75 MB #Memory Used# [2025-04-26 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 17:23:05 [end_date_ymd] => 2025-04-26 20:23:05 [RateCDR] => 1 ) [2025-04-26 20:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 17:23:05' and `end` < '2025-04-26 20:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 20:23:17] Production.INFO: count ==2357 [2025-04-26 20:23:18] Production.ERROR: pbx CDR StartTime 2025-04-26 17:23:05 - End Time 2025-04-26 20:23:05 [2025-04-26 20:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996692', 'tblTempUsageDetail_20' ) start [2025-04-26 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996692', 'tblTempUsageDetail_20' ) end [2025-04-26 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996692', 'tblTempVendorCDR_20' ) start [2025-04-26 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996692', 'tblTempVendorCDR_20' ) end [2025-04-26 20:23:18] Production.INFO: ProcessCDR(1,14996692,1,1,2) [2025-04-26 20:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996692', 'tblTempUsageDetail_20' ) start [2025-04-26 20:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996692', 'tblTempUsageDetail_20' ) end [2025-04-26 20:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 20:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 20:23:22] Production.INFO: ==19591== Releasing lock... [2025-04-26 20:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 20:23:22] Production.INFO: 45.75 MB #Memory Used# [2025-04-26 20:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 17:24:06 [end_date_ymd] => 2025-04-26 20:24:06 [RateCDR] => 1 ) [2025-04-26 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-04-26 17:24:06' and `end` < '2025-04-26 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-04-26 20:24:18] Production.INFO: count ==2352 [2025-04-26 20:24:19] Production.ERROR: pbx CDR StartTime 2025-04-26 17:24:06 - End Time 2025-04-26 20:24:06 [2025-04-26 20:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996697', 'tblTempUsageDetail_20' ) start [2025-04-26 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996697', 'tblTempUsageDetail_20' ) end [2025-04-26 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996697', 'tblTempVendorCDR_20' ) start [2025-04-26 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996697', 'tblTempVendorCDR_20' ) end [2025-04-26 20:24:19] Production.INFO: ProcessCDR(1,14996697,1,1,2) [2025-04-26 20:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996697', 'tblTempUsageDetail_20' ) start [2025-04-26 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996697', 'tblTempUsageDetail_20' ) end [2025-04-26 20:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 20:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 20:24:22] Production.INFO: ==19664== Releasing lock... [2025-04-26 20:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 20:24:22] Production.INFO: 46 MB #Memory Used# [2025-04-26 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 17:25:05 [end_date_ymd] => 2025-04-26 20:25:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 17:25:05' and `end` < '2025-04-26 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-04-26 20:25:18] Production.INFO: count ==2349 [2025-04-26 20:25:18] Production.ERROR: pbx CDR StartTime 2025-04-26 17:25:05 - End Time 2025-04-26 20:25:05 [2025-04-26 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996702', 'tblTempUsageDetail_20' ) start [2025-04-26 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996702', 'tblTempUsageDetail_20' ) end [2025-04-26 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996702', 'tblTempVendorCDR_20' ) start [2025-04-26 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996702', 'tblTempVendorCDR_20' ) end [2025-04-26 20:25:18] Production.INFO: ProcessCDR(1,14996702,1,1,2) [2025-04-26 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996702', 'tblTempUsageDetail_20' ) start [2025-04-26 20:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996702', 'tblTempUsageDetail_20' ) end [2025-04-26 20:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 20:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 20:25:21] Production.INFO: ==19745== Releasing lock... [2025-04-26 20:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 20:25:21] Production.INFO: 46 MB #Memory Used# [2025-04-26 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 17:26:05 [end_date_ymd] => 2025-04-26 20:26:05 [RateCDR] => 1 ) [2025-04-26 20:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 17:26:05' and `end` < '2025-04-26 20:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 20:26:18] Production.INFO: count ==2356 [2025-04-26 20:26:19] Production.ERROR: pbx CDR StartTime 2025-04-26 17:26:05 - End Time 2025-04-26 20:26:05 [2025-04-26 20:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996707', 'tblTempUsageDetail_20' ) start [2025-04-26 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996707', 'tblTempUsageDetail_20' ) end [2025-04-26 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996707', 'tblTempVendorCDR_20' ) start [2025-04-26 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996707', 'tblTempVendorCDR_20' ) end [2025-04-26 20:26:19] Production.INFO: ProcessCDR(1,14996707,1,1,2) [2025-04-26 20:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996707', 'tblTempUsageDetail_20' ) start [2025-04-26 20:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996707', 'tblTempUsageDetail_20' ) end [2025-04-26 20:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 20:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 20:26:22] Production.INFO: ==19817== Releasing lock... [2025-04-26 20:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 20:26:22] Production.INFO: 45.75 MB #Memory Used# [2025-04-26 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 17:27:05 [end_date_ymd] => 2025-04-26 20:27:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 17:27:05' and `end` < '2025-04-26 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-04-26 20:27:18] Production.INFO: count ==2350 [2025-04-26 20:27:19] Production.ERROR: pbx CDR StartTime 2025-04-26 17:27:05 - End Time 2025-04-26 20:27:05 [2025-04-26 20:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996712', 'tblTempUsageDetail_20' ) start [2025-04-26 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996712', 'tblTempUsageDetail_20' ) end [2025-04-26 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996712', 'tblTempVendorCDR_20' ) start [2025-04-26 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996712', 'tblTempVendorCDR_20' ) end [2025-04-26 20:27:19] Production.INFO: ProcessCDR(1,14996712,1,1,2) [2025-04-26 20:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996712', 'tblTempUsageDetail_20' ) start [2025-04-26 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996712', 'tblTempUsageDetail_20' ) end [2025-04-26 20:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 20:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 20:27:22] Production.INFO: ==19888== Releasing lock... [2025-04-26 20:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 20:27:22] Production.INFO: 46 MB #Memory Used# [2025-04-26 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 17:28:05 [end_date_ymd] => 2025-04-26 20:28:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 17:28:05' and `end` < '2025-04-26 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-04-26 20:28:18] Production.INFO: count ==2347 [2025-04-26 20:28:19] Production.ERROR: pbx CDR StartTime 2025-04-26 17:28:05 - End Time 2025-04-26 20:28:05 [2025-04-26 20:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996717', 'tblTempUsageDetail_20' ) start [2025-04-26 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996717', 'tblTempUsageDetail_20' ) end [2025-04-26 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996717', 'tblTempVendorCDR_20' ) start [2025-04-26 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996717', 'tblTempVendorCDR_20' ) end [2025-04-26 20:28:19] Production.INFO: ProcessCDR(1,14996717,1,1,2) [2025-04-26 20:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996717', 'tblTempUsageDetail_20' ) start [2025-04-26 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996717', 'tblTempUsageDetail_20' ) end [2025-04-26 20:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 20:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 20:28:22] Production.INFO: ==19960== Releasing lock... [2025-04-26 20:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 20:28:22] Production.INFO: 45.75 MB #Memory Used# [2025-04-26 20:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 17:29:04 [end_date_ymd] => 2025-04-26 20:29:04 [RateCDR] => 1 ) [2025-04-26 20:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 17:29:04' and `end` < '2025-04-26 20:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 20:29:17] Production.INFO: count ==2346 [2025-04-26 20:29:18] Production.ERROR: pbx CDR StartTime 2025-04-26 17:29:04 - End Time 2025-04-26 20:29:04 [2025-04-26 20:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996722', 'tblTempUsageDetail_20' ) start [2025-04-26 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996722', 'tblTempUsageDetail_20' ) end [2025-04-26 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996722', 'tblTempVendorCDR_20' ) start [2025-04-26 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996722', 'tblTempVendorCDR_20' ) end [2025-04-26 20:29:18] Production.INFO: ProcessCDR(1,14996722,1,1,2) [2025-04-26 20:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996722', 'tblTempUsageDetail_20' ) start [2025-04-26 20:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996722', 'tblTempUsageDetail_20' ) end [2025-04-26 20:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 20:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 20:29:23] Production.INFO: ==20030== Releasing lock... [2025-04-26 20:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 20:29:23] Production.INFO: 45.75 MB #Memory Used# [2025-04-26 20:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 17:30:06 [end_date_ymd] => 2025-04-26 20:30:06 [RateCDR] => 1 ) [2025-04-26 20:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 17:30:06' and `end` < '2025-04-26 20:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 20:30:19] Production.INFO: count ==2343 [2025-04-26 20:30:19] Production.ERROR: pbx CDR StartTime 2025-04-26 17:30:06 - End Time 2025-04-26 20:30:06 [2025-04-26 20:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996728', 'tblTempUsageDetail_20' ) start [2025-04-26 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996728', 'tblTempUsageDetail_20' ) end [2025-04-26 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996728', 'tblTempVendorCDR_20' ) start [2025-04-26 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996728', 'tblTempVendorCDR_20' ) end [2025-04-26 20:30:19] Production.INFO: ProcessCDR(1,14996728,1,1,2) [2025-04-26 20:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996728', 'tblTempUsageDetail_20' ) start [2025-04-26 20:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996728', 'tblTempUsageDetail_20' ) end [2025-04-26 20:30:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 20:30:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 20:30:24] Production.INFO: ==20107== Releasing lock... [2025-04-26 20:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 20:30:24] Production.INFO: 45.75 MB #Memory Used# [2025-04-26 20:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 17:31:04 [end_date_ymd] => 2025-04-26 20:31:04 [RateCDR] => 1 ) [2025-04-26 20: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-04-26 17:31:04' and `end` < '2025-04-26 20: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-04-26 20:31:17] Production.INFO: count ==2287 [2025-04-26 20:31:18] Production.ERROR: pbx CDR StartTime 2025-04-26 17:31:04 - End Time 2025-04-26 20:31:04 [2025-04-26 20:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996733', 'tblTempUsageDetail_20' ) start [2025-04-26 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996733', 'tblTempUsageDetail_20' ) end [2025-04-26 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996733', 'tblTempVendorCDR_20' ) start [2025-04-26 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996733', 'tblTempVendorCDR_20' ) end [2025-04-26 20:31:18] Production.INFO: ProcessCDR(1,14996733,1,1,2) [2025-04-26 20:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996733', 'tblTempUsageDetail_20' ) start [2025-04-26 20:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996733', 'tblTempUsageDetail_20' ) end [2025-04-26 20:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 20:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 20:31:21] Production.INFO: ==20181== Releasing lock... [2025-04-26 20:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 20:31:21] Production.INFO: 45.5 MB #Memory Used# [2025-04-26 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 17:32:05 [end_date_ymd] => 2025-04-26 20:32:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 17:32:05' and `end` < '2025-04-26 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-04-26 20:32:17] Production.INFO: count ==2279 [2025-04-26 20:32:18] Production.ERROR: pbx CDR StartTime 2025-04-26 17:32:05 - End Time 2025-04-26 20:32:05 [2025-04-26 20:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996738', 'tblTempUsageDetail_20' ) start [2025-04-26 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996738', 'tblTempUsageDetail_20' ) end [2025-04-26 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996738', 'tblTempVendorCDR_20' ) start [2025-04-26 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996738', 'tblTempVendorCDR_20' ) end [2025-04-26 20:32:18] Production.INFO: ProcessCDR(1,14996738,1,1,2) [2025-04-26 20:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996738', 'tblTempUsageDetail_20' ) start [2025-04-26 20:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996738', 'tblTempUsageDetail_20' ) end [2025-04-26 20:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 20:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 20:32:21] Production.INFO: ==20296== Releasing lock... [2025-04-26 20:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 20:32:21] Production.INFO: 45.5 MB #Memory Used# [2025-04-26 20:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 17:33:05 [end_date_ymd] => 2025-04-26 20:33:05 [RateCDR] => 1 ) [2025-04-26 20:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 17:33:05' and `end` < '2025-04-26 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-04-26 20:33:18] Production.INFO: count ==2274 [2025-04-26 20:33:19] Production.ERROR: pbx CDR StartTime 2025-04-26 17:33:05 - End Time 2025-04-26 20:33:05 [2025-04-26 20:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996743', 'tblTempUsageDetail_20' ) start [2025-04-26 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996743', 'tblTempUsageDetail_20' ) end [2025-04-26 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996743', 'tblTempVendorCDR_20' ) start [2025-04-26 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996743', 'tblTempVendorCDR_20' ) end [2025-04-26 20:33:19] Production.INFO: ProcessCDR(1,14996743,1,1,2) [2025-04-26 20:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996743', 'tblTempUsageDetail_20' ) start [2025-04-26 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996743', 'tblTempUsageDetail_20' ) end [2025-04-26 20:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 20:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 20:33:22] Production.INFO: ==20367== Releasing lock... [2025-04-26 20:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 20:33:22] Production.INFO: 45.5 MB #Memory Used# [2025-04-26 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 17:34:05 [end_date_ymd] => 2025-04-26 20:34:05 [RateCDR] => 1 ) [2025-04-26 20:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 17:34:05' and `end` < '2025-04-26 20:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 20:34:18] Production.INFO: count ==2273 [2025-04-26 20:34:19] Production.ERROR: pbx CDR StartTime 2025-04-26 17:34:05 - End Time 2025-04-26 20:34:05 [2025-04-26 20:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996748', 'tblTempUsageDetail_20' ) start [2025-04-26 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996748', 'tblTempUsageDetail_20' ) end [2025-04-26 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996748', 'tblTempVendorCDR_20' ) start [2025-04-26 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996748', 'tblTempVendorCDR_20' ) end [2025-04-26 20:34:19] Production.INFO: ProcessCDR(1,14996748,1,1,2) [2025-04-26 20:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996748', 'tblTempUsageDetail_20' ) start [2025-04-26 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996748', 'tblTempUsageDetail_20' ) end [2025-04-26 20:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 20:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 20:34:22] Production.INFO: ==20436== Releasing lock... [2025-04-26 20:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 20:34:22] Production.INFO: 45.5 MB #Memory Used# [2025-04-26 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 17:35:05 [end_date_ymd] => 2025-04-26 20:35:05 [RateCDR] => 1 ) [2025-04-26 20:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 17:35:05' and `end` < '2025-04-26 20:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 20:35:18] Production.INFO: count ==2276 [2025-04-26 20:35:19] Production.ERROR: pbx CDR StartTime 2025-04-26 17:35:05 - End Time 2025-04-26 20:35:05 [2025-04-26 20:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996753', 'tblTempUsageDetail_20' ) start [2025-04-26 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996753', 'tblTempUsageDetail_20' ) end [2025-04-26 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996753', 'tblTempVendorCDR_20' ) start [2025-04-26 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996753', 'tblTempVendorCDR_20' ) end [2025-04-26 20:35:19] Production.INFO: ProcessCDR(1,14996753,1,1,2) [2025-04-26 20:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996753', 'tblTempUsageDetail_20' ) start [2025-04-26 20:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996753', 'tblTempUsageDetail_20' ) end [2025-04-26 20:35:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 20:35:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 20:35:24] Production.INFO: ==20521== Releasing lock... [2025-04-26 20:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 20:35:24] Production.INFO: 45.75 MB #Memory Used# [2025-04-26 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 17:36:05 [end_date_ymd] => 2025-04-26 20:36:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 17:36:05' and `end` < '2025-04-26 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-04-26 20:36:18] Production.INFO: count ==2272 [2025-04-26 20:36:18] Production.ERROR: pbx CDR StartTime 2025-04-26 17:36:05 - End Time 2025-04-26 20:36:05 [2025-04-26 20:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996758', 'tblTempUsageDetail_20' ) start [2025-04-26 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996758', 'tblTempUsageDetail_20' ) end [2025-04-26 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996758', 'tblTempVendorCDR_20' ) start [2025-04-26 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996758', 'tblTempVendorCDR_20' ) end [2025-04-26 20:36:19] Production.INFO: ProcessCDR(1,14996758,1,1,2) [2025-04-26 20:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996758', 'tblTempUsageDetail_20' ) start [2025-04-26 20:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996758', 'tblTempUsageDetail_20' ) end [2025-04-26 20:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 20:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 20:36:23] Production.INFO: ==20601== Releasing lock... [2025-04-26 20:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 20:36:23] Production.INFO: 45.5 MB #Memory Used# [2025-04-26 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 17:37:05 [end_date_ymd] => 2025-04-26 20:37:05 [RateCDR] => 1 ) [2025-04-26 20:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 17:37:05' and `end` < '2025-04-26 20:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 20:37:18] Production.INFO: count ==2271 [2025-04-26 20:37:19] Production.ERROR: pbx CDR StartTime 2025-04-26 17:37:05 - End Time 2025-04-26 20:37:05 [2025-04-26 20:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996763', 'tblTempUsageDetail_20' ) start [2025-04-26 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996763', 'tblTempUsageDetail_20' ) end [2025-04-26 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996763', 'tblTempVendorCDR_20' ) start [2025-04-26 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996763', 'tblTempVendorCDR_20' ) end [2025-04-26 20:37:19] Production.INFO: ProcessCDR(1,14996763,1,1,2) [2025-04-26 20:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996763', 'tblTempUsageDetail_20' ) start [2025-04-26 20:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996763', 'tblTempUsageDetail_20' ) end [2025-04-26 20:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 20:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 20:37:22] Production.INFO: ==20673== Releasing lock... [2025-04-26 20:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 20:37:22] Production.INFO: 45.5 MB #Memory Used# [2025-04-26 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 17:38:05 [end_date_ymd] => 2025-04-26 20:38:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 17:38:05' and `end` < '2025-04-26 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-04-26 20:38:18] Production.INFO: count ==2267 [2025-04-26 20:38:19] Production.ERROR: pbx CDR StartTime 2025-04-26 17:38:05 - End Time 2025-04-26 20:38:05 [2025-04-26 20:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996768', 'tblTempUsageDetail_20' ) start [2025-04-26 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996768', 'tblTempUsageDetail_20' ) end [2025-04-26 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996768', 'tblTempVendorCDR_20' ) start [2025-04-26 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996768', 'tblTempVendorCDR_20' ) end [2025-04-26 20:38:19] Production.INFO: ProcessCDR(1,14996768,1,1,2) [2025-04-26 20:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996768', 'tblTempUsageDetail_20' ) start [2025-04-26 20:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996768', 'tblTempUsageDetail_20' ) end [2025-04-26 20:38:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 20:38:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 20:38:24] Production.INFO: ==20748== Releasing lock... [2025-04-26 20:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 20:38:24] Production.INFO: 45.5 MB #Memory Used# [2025-04-26 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 17:39:05 [end_date_ymd] => 2025-04-26 20:39:05 [RateCDR] => 1 ) [2025-04-26 20:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 17:39:05' and `end` < '2025-04-26 20:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 20:39:18] Production.INFO: count ==2260 [2025-04-26 20:39:18] Production.ERROR: pbx CDR StartTime 2025-04-26 17:39:05 - End Time 2025-04-26 20:39:05 [2025-04-26 20:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996773', 'tblTempUsageDetail_20' ) start [2025-04-26 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996773', 'tblTempUsageDetail_20' ) end [2025-04-26 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996773', 'tblTempVendorCDR_20' ) start [2025-04-26 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996773', 'tblTempVendorCDR_20' ) end [2025-04-26 20:39:18] Production.INFO: ProcessCDR(1,14996773,1,1,2) [2025-04-26 20:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996773', 'tblTempUsageDetail_20' ) start [2025-04-26 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996773', 'tblTempUsageDetail_20' ) end [2025-04-26 20:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 20:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 20:39:22] Production.INFO: ==20823== Releasing lock... [2025-04-26 20:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 20:39:22] Production.INFO: 45 MB #Memory Used# [2025-04-26 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 17:40:06 [end_date_ymd] => 2025-04-26 20:40:06 [RateCDR] => 1 ) [2025-04-26 20:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 17:40:06' and `end` < '2025-04-26 20:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 20:40:19] Production.INFO: count ==2246 [2025-04-26 20:40:20] Production.ERROR: pbx CDR StartTime 2025-04-26 17:40:06 - End Time 2025-04-26 20:40:06 [2025-04-26 20:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996779', 'tblTempUsageDetail_20' ) start [2025-04-26 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996779', 'tblTempUsageDetail_20' ) end [2025-04-26 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996779', 'tblTempVendorCDR_20' ) start [2025-04-26 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996779', 'tblTempVendorCDR_20' ) end [2025-04-26 20:40:20] Production.INFO: ProcessCDR(1,14996779,1,1,2) [2025-04-26 20:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996779', 'tblTempUsageDetail_20' ) start [2025-04-26 20:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996779', 'tblTempUsageDetail_20' ) end [2025-04-26 20:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 20:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 20:40:23] Production.INFO: ==20898== Releasing lock... [2025-04-26 20:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 20:40:23] Production.INFO: 45.25 MB #Memory Used# [2025-04-26 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 17:41:05 [end_date_ymd] => 2025-04-26 20:41:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 17:41:05' and `end` < '2025-04-26 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-04-26 20:41:18] Production.INFO: count ==2253 [2025-04-26 20:41:18] Production.ERROR: pbx CDR StartTime 2025-04-26 17:41:05 - End Time 2025-04-26 20:41:05 [2025-04-26 20:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996784', 'tblTempUsageDetail_20' ) start [2025-04-26 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996784', 'tblTempUsageDetail_20' ) end [2025-04-26 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996784', 'tblTempVendorCDR_20' ) start [2025-04-26 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996784', 'tblTempVendorCDR_20' ) end [2025-04-26 20:41:18] Production.INFO: ProcessCDR(1,14996784,1,1,2) [2025-04-26 20:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996784', 'tblTempUsageDetail_20' ) start [2025-04-26 20:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996784', 'tblTempUsageDetail_20' ) end [2025-04-26 20:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 20:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 20:41:21] Production.INFO: ==20973== Releasing lock... [2025-04-26 20:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 20:41:21] Production.INFO: 45.25 MB #Memory Used# [2025-04-26 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 17:42:05 [end_date_ymd] => 2025-04-26 20:42:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 17:42:05' and `end` < '2025-04-26 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-04-26 20:42:18] Production.INFO: count ==2269 [2025-04-26 20:42:18] Production.ERROR: pbx CDR StartTime 2025-04-26 17:42:05 - End Time 2025-04-26 20:42:05 [2025-04-26 20:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996789', 'tblTempUsageDetail_20' ) start [2025-04-26 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996789', 'tblTempUsageDetail_20' ) end [2025-04-26 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996789', 'tblTempVendorCDR_20' ) start [2025-04-26 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996789', 'tblTempVendorCDR_20' ) end [2025-04-26 20:42:18] Production.INFO: ProcessCDR(1,14996789,1,1,2) [2025-04-26 20:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996789', 'tblTempUsageDetail_20' ) start [2025-04-26 20:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996789', 'tblTempUsageDetail_20' ) end [2025-04-26 20:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 20:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 20:42:23] Production.INFO: ==21046== Releasing lock... [2025-04-26 20:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 20:42:23] Production.INFO: 45.5 MB #Memory Used# [2025-04-26 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 17:43:05 [end_date_ymd] => 2025-04-26 20:43:05 [RateCDR] => 1 ) [2025-04-26 20:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 17:43:05' and `end` < '2025-04-26 20:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 20:43:18] Production.INFO: count ==2268 [2025-04-26 20:43:18] Production.ERROR: pbx CDR StartTime 2025-04-26 17:43:05 - End Time 2025-04-26 20:43:05 [2025-04-26 20:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996794', 'tblTempUsageDetail_20' ) start [2025-04-26 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996794', 'tblTempUsageDetail_20' ) end [2025-04-26 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996794', 'tblTempVendorCDR_20' ) start [2025-04-26 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996794', 'tblTempVendorCDR_20' ) end [2025-04-26 20:43:18] Production.INFO: ProcessCDR(1,14996794,1,1,2) [2025-04-26 20:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996794', 'tblTempUsageDetail_20' ) start [2025-04-26 20:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996794', 'tblTempUsageDetail_20' ) end [2025-04-26 20:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 20:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 20:43:21] Production.INFO: ==21122== Releasing lock... [2025-04-26 20:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 20:43:21] Production.INFO: 45.5 MB #Memory Used# [2025-04-26 20:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 17:44:04 [end_date_ymd] => 2025-04-26 20:44:04 [RateCDR] => 1 ) [2025-04-26 20: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-04-26 17:44:04' and `end` < '2025-04-26 20: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-04-26 20:44:17] Production.INFO: count ==2259 [2025-04-26 20:44:18] Production.ERROR: pbx CDR StartTime 2025-04-26 17:44:04 - End Time 2025-04-26 20:44:04 [2025-04-26 20:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996799', 'tblTempUsageDetail_20' ) start [2025-04-26 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996799', 'tblTempUsageDetail_20' ) end [2025-04-26 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996799', 'tblTempVendorCDR_20' ) start [2025-04-26 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996799', 'tblTempVendorCDR_20' ) end [2025-04-26 20:44:18] Production.INFO: ProcessCDR(1,14996799,1,1,2) [2025-04-26 20:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996799', 'tblTempUsageDetail_20' ) start [2025-04-26 20:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996799', 'tblTempUsageDetail_20' ) end [2025-04-26 20:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 20:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 20:44:21] Production.INFO: ==21193== Releasing lock... [2025-04-26 20:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 20:44:21] Production.INFO: 45.5 MB #Memory Used# [2025-04-26 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 17:45:05 [end_date_ymd] => 2025-04-26 20:45:05 [RateCDR] => 1 ) [2025-04-26 20:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 17:45:05' and `end` < '2025-04-26 20:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 20:45:18] Production.INFO: count ==2259 [2025-04-26 20:45:18] Production.ERROR: pbx CDR StartTime 2025-04-26 17:45:05 - End Time 2025-04-26 20:45:05 [2025-04-26 20:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996804', 'tblTempUsageDetail_20' ) start [2025-04-26 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996804', 'tblTempUsageDetail_20' ) end [2025-04-26 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996804', 'tblTempVendorCDR_20' ) start [2025-04-26 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996804', 'tblTempVendorCDR_20' ) end [2025-04-26 20:45:18] Production.INFO: ProcessCDR(1,14996804,1,1,2) [2025-04-26 20:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996804', 'tblTempUsageDetail_20' ) start [2025-04-26 20:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996804', 'tblTempUsageDetail_20' ) end [2025-04-26 20:45:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 20:45:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 20:45:23] Production.INFO: ==21268== Releasing lock... [2025-04-26 20:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 20:45:23] Production.INFO: 45.5 MB #Memory Used# [2025-04-26 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 17:46:05 [end_date_ymd] => 2025-04-26 20:46:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 17:46:05' and `end` < '2025-04-26 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-04-26 20:46:18] Production.INFO: count ==2268 [2025-04-26 20:46:18] Production.ERROR: pbx CDR StartTime 2025-04-26 17:46:05 - End Time 2025-04-26 20:46:05 [2025-04-26 20:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996809', 'tblTempUsageDetail_20' ) start [2025-04-26 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996809', 'tblTempUsageDetail_20' ) end [2025-04-26 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996809', 'tblTempVendorCDR_20' ) start [2025-04-26 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996809', 'tblTempVendorCDR_20' ) end [2025-04-26 20:46:18] Production.INFO: ProcessCDR(1,14996809,1,1,2) [2025-04-26 20:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996809', 'tblTempUsageDetail_20' ) start [2025-04-26 20:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996809', 'tblTempUsageDetail_20' ) end [2025-04-26 20:46:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 20:46:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 20:46:23] Production.INFO: ==21340== Releasing lock... [2025-04-26 20:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 20:46:23] Production.INFO: 45.75 MB #Memory Used# [2025-04-26 20:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 17:47:06 [end_date_ymd] => 2025-04-26 20:47:06 [RateCDR] => 1 ) [2025-04-26 20:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 17:47:06' and `end` < '2025-04-26 20:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 20:47:18] Production.INFO: count ==2261 [2025-04-26 20:47:19] Production.ERROR: pbx CDR StartTime 2025-04-26 17:47:06 - End Time 2025-04-26 20:47:06 [2025-04-26 20:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996814', 'tblTempUsageDetail_20' ) start [2025-04-26 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996814', 'tblTempUsageDetail_20' ) end [2025-04-26 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996814', 'tblTempVendorCDR_20' ) start [2025-04-26 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996814', 'tblTempVendorCDR_20' ) end [2025-04-26 20:47:19] Production.INFO: ProcessCDR(1,14996814,1,1,2) [2025-04-26 20:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996814', 'tblTempUsageDetail_20' ) start [2025-04-26 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996814', 'tblTempUsageDetail_20' ) end [2025-04-26 20:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 20:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 20:47:22] Production.INFO: ==21412== Releasing lock... [2025-04-26 20:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 20:47:22] Production.INFO: 45 MB #Memory Used# [2025-04-26 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 17:48:05 [end_date_ymd] => 2025-04-26 20:48:05 [RateCDR] => 1 ) [2025-04-26 20:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 17:48:05' and `end` < '2025-04-26 20:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 20:48:18] Production.INFO: count ==2257 [2025-04-26 20:48:18] Production.ERROR: pbx CDR StartTime 2025-04-26 17:48:05 - End Time 2025-04-26 20:48:05 [2025-04-26 20:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996819', 'tblTempUsageDetail_20' ) start [2025-04-26 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996819', 'tblTempUsageDetail_20' ) end [2025-04-26 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996819', 'tblTempVendorCDR_20' ) start [2025-04-26 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996819', 'tblTempVendorCDR_20' ) end [2025-04-26 20:48:18] Production.INFO: ProcessCDR(1,14996819,1,1,2) [2025-04-26 20:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996819', 'tblTempUsageDetail_20' ) start [2025-04-26 20:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996819', 'tblTempUsageDetail_20' ) end [2025-04-26 20:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 20:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 20:48:23] Production.INFO: ==21525== Releasing lock... [2025-04-26 20:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 20:48:23] Production.INFO: 45.75 MB #Memory Used# [2025-04-26 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 17:49:05 [end_date_ymd] => 2025-04-26 20:49:05 [RateCDR] => 1 ) [2025-04-26 20:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 17:49:05' and `end` < '2025-04-26 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 20:49:18] Production.INFO: count ==2235 [2025-04-26 20:49:19] Production.ERROR: pbx CDR StartTime 2025-04-26 17:49:05 - End Time 2025-04-26 20:49:05 [2025-04-26 20:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996824', 'tblTempUsageDetail_20' ) start [2025-04-26 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996824', 'tblTempUsageDetail_20' ) end [2025-04-26 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996824', 'tblTempVendorCDR_20' ) start [2025-04-26 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996824', 'tblTempVendorCDR_20' ) end [2025-04-26 20:49:19] Production.INFO: ProcessCDR(1,14996824,1,1,2) [2025-04-26 20:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996824', 'tblTempUsageDetail_20' ) start [2025-04-26 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996824', 'tblTempUsageDetail_20' ) end [2025-04-26 20:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 20:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 20:49:22] Production.INFO: ==21598== Releasing lock... [2025-04-26 20:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 20:49:22] Production.INFO: 45.25 MB #Memory Used# [2025-04-26 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 17:50:06 [end_date_ymd] => 2025-04-26 20:50:06 [RateCDR] => 1 ) [2025-04-26 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-04-26 17:50:06' and `end` < '2025-04-26 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-04-26 20:50:19] Production.INFO: count ==2235 [2025-04-26 20:50:19] Production.ERROR: pbx CDR StartTime 2025-04-26 17:50:06 - End Time 2025-04-26 20:50:06 [2025-04-26 20:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996830', 'tblTempUsageDetail_20' ) start [2025-04-26 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996830', 'tblTempUsageDetail_20' ) end [2025-04-26 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996830', 'tblTempVendorCDR_20' ) start [2025-04-26 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996830', 'tblTempVendorCDR_20' ) end [2025-04-26 20:50:19] Production.INFO: ProcessCDR(1,14996830,1,1,2) [2025-04-26 20:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996830', 'tblTempUsageDetail_20' ) start [2025-04-26 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996830', 'tblTempUsageDetail_20' ) end [2025-04-26 20:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 20:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 20:50:23] Production.INFO: ==21683== Releasing lock... [2025-04-26 20:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 20:50:23] Production.INFO: 45.25 MB #Memory Used# [2025-04-26 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 17:51:05 [end_date_ymd] => 2025-04-26 20:51:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 17:51:05' and `end` < '2025-04-26 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-04-26 20:51:18] Production.INFO: count ==2266 [2025-04-26 20:51:18] Production.ERROR: pbx CDR StartTime 2025-04-26 17:51:05 - End Time 2025-04-26 20:51:05 [2025-04-26 20:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996835', 'tblTempUsageDetail_20' ) start [2025-04-26 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996835', 'tblTempUsageDetail_20' ) end [2025-04-26 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996835', 'tblTempVendorCDR_20' ) start [2025-04-26 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996835', 'tblTempVendorCDR_20' ) end [2025-04-26 20:51:19] Production.INFO: ProcessCDR(1,14996835,1,1,2) [2025-04-26 20:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996835', 'tblTempUsageDetail_20' ) start [2025-04-26 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996835', 'tblTempUsageDetail_20' ) end [2025-04-26 20:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 20:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 20:51:22] Production.INFO: ==21762== Releasing lock... [2025-04-26 20:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 20:51:22] Production.INFO: 45.5 MB #Memory Used# [2025-04-26 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 17:52:05 [end_date_ymd] => 2025-04-26 20:52:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 17:52:05' and `end` < '2025-04-26 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-04-26 20:52:18] Production.INFO: count ==2256 [2025-04-26 20:52:18] Production.ERROR: pbx CDR StartTime 2025-04-26 17:52:05 - End Time 2025-04-26 20:52:05 [2025-04-26 20:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996840', 'tblTempUsageDetail_20' ) start [2025-04-26 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996840', 'tblTempUsageDetail_20' ) end [2025-04-26 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996840', 'tblTempVendorCDR_20' ) start [2025-04-26 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996840', 'tblTempVendorCDR_20' ) end [2025-04-26 20:52:18] Production.INFO: ProcessCDR(1,14996840,1,1,2) [2025-04-26 20:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996840', 'tblTempUsageDetail_20' ) start [2025-04-26 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996840', 'tblTempUsageDetail_20' ) end [2025-04-26 20:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 20:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 20:52:22] Production.INFO: ==21852== Releasing lock... [2025-04-26 20:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 20:52:22] Production.INFO: 45.25 MB #Memory Used# [2025-04-26 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 17:53:05 [end_date_ymd] => 2025-04-26 20:53:05 [RateCDR] => 1 ) [2025-04-26 20:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 17:53:05' and `end` < '2025-04-26 20:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 20:53:18] Production.INFO: count ==2246 [2025-04-26 20:53:18] Production.ERROR: pbx CDR StartTime 2025-04-26 17:53:05 - End Time 2025-04-26 20:53:05 [2025-04-26 20:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996845', 'tblTempUsageDetail_20' ) start [2025-04-26 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996845', 'tblTempUsageDetail_20' ) end [2025-04-26 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996845', 'tblTempVendorCDR_20' ) start [2025-04-26 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996845', 'tblTempVendorCDR_20' ) end [2025-04-26 20:53:18] Production.INFO: ProcessCDR(1,14996845,1,1,2) [2025-04-26 20:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996845', 'tblTempUsageDetail_20' ) start [2025-04-26 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996845', 'tblTempUsageDetail_20' ) end [2025-04-26 20:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 20:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 20:53:22] Production.INFO: ==21926== Releasing lock... [2025-04-26 20:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 20:53:22] Production.INFO: 45.25 MB #Memory Used# [2025-04-26 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 17:54:05 [end_date_ymd] => 2025-04-26 20:54:05 [RateCDR] => 1 ) [2025-04-26 20:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 17:54:05' and `end` < '2025-04-26 20:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 20:54:18] Production.INFO: count ==2241 [2025-04-26 20:54:19] Production.ERROR: pbx CDR StartTime 2025-04-26 17:54:05 - End Time 2025-04-26 20:54:05 [2025-04-26 20:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996850', 'tblTempUsageDetail_20' ) start [2025-04-26 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996850', 'tblTempUsageDetail_20' ) end [2025-04-26 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996850', 'tblTempVendorCDR_20' ) start [2025-04-26 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996850', 'tblTempVendorCDR_20' ) end [2025-04-26 20:54:19] Production.INFO: ProcessCDR(1,14996850,1,1,2) [2025-04-26 20:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996850', 'tblTempUsageDetail_20' ) start [2025-04-26 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996850', 'tblTempUsageDetail_20' ) end [2025-04-26 20:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 20:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 20:54:22] Production.INFO: ==21997== Releasing lock... [2025-04-26 20:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 20:54:22] Production.INFO: 45 MB #Memory Used# [2025-04-26 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 17:55:05 [end_date_ymd] => 2025-04-26 20:55:05 [RateCDR] => 1 ) [2025-04-26 20:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 17:55:05' and `end` < '2025-04-26 20:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 20:55:17] Production.INFO: count ==2236 [2025-04-26 20:55:18] Production.ERROR: pbx CDR StartTime 2025-04-26 17:55:05 - End Time 2025-04-26 20:55:05 [2025-04-26 20:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996855', 'tblTempUsageDetail_20' ) start [2025-04-26 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996855', 'tblTempUsageDetail_20' ) end [2025-04-26 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996855', 'tblTempVendorCDR_20' ) start [2025-04-26 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996855', 'tblTempVendorCDR_20' ) end [2025-04-26 20:55:18] Production.INFO: ProcessCDR(1,14996855,1,1,2) [2025-04-26 20:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996855', 'tblTempUsageDetail_20' ) start [2025-04-26 20:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996855', 'tblTempUsageDetail_20' ) end [2025-04-26 20:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 20:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 20:55:23] Production.INFO: ==22072== Releasing lock... [2025-04-26 20:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 20:55:23] Production.INFO: 45.25 MB #Memory Used# [2025-04-26 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 17:56:05 [end_date_ymd] => 2025-04-26 20:56:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 17:56:05' and `end` < '2025-04-26 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-04-26 20:56:18] Production.INFO: count ==2238 [2025-04-26 20:56:19] Production.ERROR: pbx CDR StartTime 2025-04-26 17:56:05 - End Time 2025-04-26 20:56:05 [2025-04-26 20:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996860', 'tblTempUsageDetail_20' ) start [2025-04-26 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996860', 'tblTempUsageDetail_20' ) end [2025-04-26 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996860', 'tblTempVendorCDR_20' ) start [2025-04-26 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996860', 'tblTempVendorCDR_20' ) end [2025-04-26 20:56:19] Production.INFO: ProcessCDR(1,14996860,1,1,2) [2025-04-26 20:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996860', 'tblTempUsageDetail_20' ) start [2025-04-26 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996860', 'tblTempUsageDetail_20' ) end [2025-04-26 20:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 20:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 20:56:23] Production.INFO: ==22150== Releasing lock... [2025-04-26 20:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 20:56:23] Production.INFO: 45.25 MB #Memory Used# [2025-04-26 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 17:57:05 [end_date_ymd] => 2025-04-26 20:57:05 [RateCDR] => 1 ) [2025-04-26 20:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 17:57:05' and `end` < '2025-04-26 20:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 20:57:18] Production.INFO: count ==2236 [2025-04-26 20:57:18] Production.ERROR: pbx CDR StartTime 2025-04-26 17:57:05 - End Time 2025-04-26 20:57:05 [2025-04-26 20:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996865', 'tblTempUsageDetail_20' ) start [2025-04-26 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996865', 'tblTempUsageDetail_20' ) end [2025-04-26 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996865', 'tblTempVendorCDR_20' ) start [2025-04-26 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996865', 'tblTempVendorCDR_20' ) end [2025-04-26 20:57:18] Production.INFO: ProcessCDR(1,14996865,1,1,2) [2025-04-26 20:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996865', 'tblTempUsageDetail_20' ) start [2025-04-26 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996865', 'tblTempUsageDetail_20' ) end [2025-04-26 20:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 20:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 20:57:22] Production.INFO: ==22222== Releasing lock... [2025-04-26 20:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 20:57:22] Production.INFO: 45.25 MB #Memory Used# [2025-04-26 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 17:58:05 [end_date_ymd] => 2025-04-26 20:58:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 17:58:05' and `end` < '2025-04-26 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-04-26 20:58:18] Production.INFO: count ==2235 [2025-04-26 20:58:18] Production.ERROR: pbx CDR StartTime 2025-04-26 17:58:05 - End Time 2025-04-26 20:58:05 [2025-04-26 20:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996870', 'tblTempUsageDetail_20' ) start [2025-04-26 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996870', 'tblTempUsageDetail_20' ) end [2025-04-26 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996870', 'tblTempVendorCDR_20' ) start [2025-04-26 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996870', 'tblTempVendorCDR_20' ) end [2025-04-26 20:58:18] Production.INFO: ProcessCDR(1,14996870,1,1,2) [2025-04-26 20:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996870', 'tblTempUsageDetail_20' ) start [2025-04-26 20:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996870', 'tblTempUsageDetail_20' ) end [2025-04-26 20:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 20:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 20:58:22] Production.INFO: ==22296== Releasing lock... [2025-04-26 20:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 20:58:22] Production.INFO: 45.25 MB #Memory Used# [2025-04-26 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 17:59:05 [end_date_ymd] => 2025-04-26 20:59:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 17:59:05' and `end` < '2025-04-26 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-04-26 20:59:18] Production.INFO: count ==2231 [2025-04-26 20:59:18] Production.ERROR: pbx CDR StartTime 2025-04-26 17:59:05 - End Time 2025-04-26 20:59:05 [2025-04-26 20:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996875', 'tblTempUsageDetail_20' ) start [2025-04-26 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996875', 'tblTempUsageDetail_20' ) end [2025-04-26 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996875', 'tblTempVendorCDR_20' ) start [2025-04-26 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996875', 'tblTempVendorCDR_20' ) end [2025-04-26 20:59:18] Production.INFO: ProcessCDR(1,14996875,1,1,2) [2025-04-26 20:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 20:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996875', 'tblTempUsageDetail_20' ) start [2025-04-26 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996875', 'tblTempUsageDetail_20' ) end [2025-04-26 20:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 20:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 20:59:22] Production.INFO: ==22365== Releasing lock... [2025-04-26 20:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 20:59:22] Production.INFO: 44.75 MB #Memory Used# [2025-04-26 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 18:00:06 [end_date_ymd] => 2025-04-26 21:00:06 [RateCDR] => 1 ) [2025-04-26 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-04-26 18:00:06' and `end` < '2025-04-26 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-04-26 21:00:19] Production.INFO: count ==2223 [2025-04-26 21:00:19] Production.ERROR: pbx CDR StartTime 2025-04-26 18:00:06 - End Time 2025-04-26 21:00:06 [2025-04-26 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996881', 'tblTempUsageDetail_20' ) start [2025-04-26 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996881', 'tblTempUsageDetail_20' ) end [2025-04-26 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996881', 'tblTempVendorCDR_20' ) start [2025-04-26 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996881', 'tblTempVendorCDR_20' ) end [2025-04-26 21:00:19] Production.INFO: ProcessCDR(1,14996881,1,1,2) [2025-04-26 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996881', 'tblTempUsageDetail_20' ) start [2025-04-26 21:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996881', 'tblTempUsageDetail_20' ) end [2025-04-26 21:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 21:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 21:00:23] Production.INFO: ==22438== Releasing lock... [2025-04-26 21:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 21:00:23] Production.INFO: 45 MB #Memory Used# [2025-04-26 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 18:01:05 [end_date_ymd] => 2025-04-26 21:01:05 [RateCDR] => 1 ) [2025-04-26 21:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 18:01:05' and `end` < '2025-04-26 21:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 21:01:17] Production.INFO: count ==2187 [2025-04-26 21:01:18] Production.ERROR: pbx CDR StartTime 2025-04-26 18:01:05 - End Time 2025-04-26 21:01:05 [2025-04-26 21:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996886', 'tblTempUsageDetail_20' ) start [2025-04-26 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996886', 'tblTempUsageDetail_20' ) end [2025-04-26 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996886', 'tblTempVendorCDR_20' ) start [2025-04-26 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996886', 'tblTempVendorCDR_20' ) end [2025-04-26 21:01:18] Production.INFO: ProcessCDR(1,14996886,1,1,2) [2025-04-26 21:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996886', 'tblTempUsageDetail_20' ) start [2025-04-26 21:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996886', 'tblTempUsageDetail_20' ) end [2025-04-26 21:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 21:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 21:01:23] Production.INFO: ==22529== Releasing lock... [2025-04-26 21:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 21:01:23] Production.INFO: 45.25 MB #Memory Used# [2025-04-26 21:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 18:02:04 [end_date_ymd] => 2025-04-26 21:02:04 [RateCDR] => 1 ) [2025-04-26 21:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 18:02:04' and `end` < '2025-04-26 21:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 21:02:17] Production.INFO: count ==2193 [2025-04-26 21:02:18] Production.ERROR: pbx CDR StartTime 2025-04-26 18:02:04 - End Time 2025-04-26 21:02:04 [2025-04-26 21:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996891', 'tblTempUsageDetail_20' ) start [2025-04-26 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996891', 'tblTempUsageDetail_20' ) end [2025-04-26 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996891', 'tblTempVendorCDR_20' ) start [2025-04-26 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996891', 'tblTempVendorCDR_20' ) end [2025-04-26 21:02:18] Production.INFO: ProcessCDR(1,14996891,1,1,2) [2025-04-26 21:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996891', 'tblTempUsageDetail_20' ) start [2025-04-26 21:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996891', 'tblTempUsageDetail_20' ) end [2025-04-26 21:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 21:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 21:02:23] Production.INFO: ==22600== Releasing lock... [2025-04-26 21:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 21:02:23] Production.INFO: 45 MB #Memory Used# [2025-04-26 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 18:03:05 [end_date_ymd] => 2025-04-26 21:03:05 [RateCDR] => 1 ) [2025-04-26 21:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 18:03:05' and `end` < '2025-04-26 21:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 21:03:18] Production.INFO: count ==2192 [2025-04-26 21:03:19] Production.ERROR: pbx CDR StartTime 2025-04-26 18:03:05 - End Time 2025-04-26 21:03:05 [2025-04-26 21:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996896', 'tblTempUsageDetail_20' ) start [2025-04-26 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996896', 'tblTempUsageDetail_20' ) end [2025-04-26 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996896', 'tblTempVendorCDR_20' ) start [2025-04-26 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996896', 'tblTempVendorCDR_20' ) end [2025-04-26 21:03:19] Production.INFO: ProcessCDR(1,14996896,1,1,2) [2025-04-26 21:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996896', 'tblTempUsageDetail_20' ) start [2025-04-26 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996896', 'tblTempUsageDetail_20' ) end [2025-04-26 21:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 21:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 21:03:22] Production.INFO: ==22715== Releasing lock... [2025-04-26 21:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 21:03:22] Production.INFO: 45 MB #Memory Used# [2025-04-26 21:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 18:04:04 [end_date_ymd] => 2025-04-26 21:04:04 [RateCDR] => 1 ) [2025-04-26 21:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 18:04:04' and `end` < '2025-04-26 21:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 21:04:17] Production.INFO: count ==2187 [2025-04-26 21:04:18] Production.ERROR: pbx CDR StartTime 2025-04-26 18:04:04 - End Time 2025-04-26 21:04:04 [2025-04-26 21:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996901', 'tblTempUsageDetail_20' ) start [2025-04-26 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996901', 'tblTempUsageDetail_20' ) end [2025-04-26 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996901', 'tblTempVendorCDR_20' ) start [2025-04-26 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996901', 'tblTempVendorCDR_20' ) end [2025-04-26 21:04:18] Production.INFO: ProcessCDR(1,14996901,1,1,2) [2025-04-26 21:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996901', 'tblTempUsageDetail_20' ) start [2025-04-26 21:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996901', 'tblTempUsageDetail_20' ) end [2025-04-26 21:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 21:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 21:04:21] Production.INFO: ==22786== Releasing lock... [2025-04-26 21:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 21:04:21] Production.INFO: 45 MB #Memory Used# [2025-04-26 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 18:05:05 [end_date_ymd] => 2025-04-26 21:05:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 18:05:05' and `end` < '2025-04-26 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-04-26 21:05:17] Production.INFO: count ==2181 [2025-04-26 21:05:18] Production.ERROR: pbx CDR StartTime 2025-04-26 18:05:05 - End Time 2025-04-26 21:05:05 [2025-04-26 21:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996906', 'tblTempUsageDetail_20' ) start [2025-04-26 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996906', 'tblTempUsageDetail_20' ) end [2025-04-26 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996906', 'tblTempVendorCDR_20' ) start [2025-04-26 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996906', 'tblTempVendorCDR_20' ) end [2025-04-26 21:05:18] Production.INFO: ProcessCDR(1,14996906,1,1,2) [2025-04-26 21:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996906', 'tblTempUsageDetail_20' ) start [2025-04-26 21:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996906', 'tblTempUsageDetail_20' ) end [2025-04-26 21:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 21:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 21:05:23] Production.INFO: ==22861== Releasing lock... [2025-04-26 21:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 21:05:23] Production.INFO: 44.75 MB #Memory Used# [2025-04-26 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 18:06:05 [end_date_ymd] => 2025-04-26 21:06:05 [RateCDR] => 1 ) [2025-04-26 21:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 18:06:05' and `end` < '2025-04-26 21:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 21:06:17] Production.INFO: count ==2180 [2025-04-26 21:06:18] Production.ERROR: pbx CDR StartTime 2025-04-26 18:06:05 - End Time 2025-04-26 21:06:05 [2025-04-26 21:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996911', 'tblTempUsageDetail_20' ) start [2025-04-26 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996911', 'tblTempUsageDetail_20' ) end [2025-04-26 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996911', 'tblTempVendorCDR_20' ) start [2025-04-26 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996911', 'tblTempVendorCDR_20' ) end [2025-04-26 21:06:18] Production.INFO: ProcessCDR(1,14996911,1,1,2) [2025-04-26 21:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996911', 'tblTempUsageDetail_20' ) start [2025-04-26 21:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996911', 'tblTempUsageDetail_20' ) end [2025-04-26 21:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 21:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 21:06:21] Production.INFO: ==22938== Releasing lock... [2025-04-26 21:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 21:06:21] Production.INFO: 45 MB #Memory Used# [2025-04-26 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 18:07:05 [end_date_ymd] => 2025-04-26 21:07:05 [RateCDR] => 1 ) [2025-04-26 21:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 18:07:05' and `end` < '2025-04-26 21:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 21:07:18] Production.INFO: count ==2184 [2025-04-26 21:07:18] Production.ERROR: pbx CDR StartTime 2025-04-26 18:07:05 - End Time 2025-04-26 21:07:05 [2025-04-26 21:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996916', 'tblTempUsageDetail_20' ) start [2025-04-26 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996916', 'tblTempUsageDetail_20' ) end [2025-04-26 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996916', 'tblTempVendorCDR_20' ) start [2025-04-26 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996916', 'tblTempVendorCDR_20' ) end [2025-04-26 21:07:18] Production.INFO: ProcessCDR(1,14996916,1,1,2) [2025-04-26 21:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996916', 'tblTempUsageDetail_20' ) start [2025-04-26 21:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996916', 'tblTempUsageDetail_20' ) end [2025-04-26 21:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 21:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 21:07:23] Production.INFO: ==23012== Releasing lock... [2025-04-26 21:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 21:07:23] Production.INFO: 45 MB #Memory Used# [2025-04-26 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 18:08:05 [end_date_ymd] => 2025-04-26 21:08:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 18:08:05' and `end` < '2025-04-26 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-04-26 21:08:18] Production.INFO: count ==2181 [2025-04-26 21:08:19] Production.ERROR: pbx CDR StartTime 2025-04-26 18:08:05 - End Time 2025-04-26 21:08:05 [2025-04-26 21:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996921', 'tblTempUsageDetail_20' ) start [2025-04-26 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996921', 'tblTempUsageDetail_20' ) end [2025-04-26 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996921', 'tblTempVendorCDR_20' ) start [2025-04-26 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996921', 'tblTempVendorCDR_20' ) end [2025-04-26 21:08:19] Production.INFO: ProcessCDR(1,14996921,1,1,2) [2025-04-26 21:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996921', 'tblTempUsageDetail_20' ) start [2025-04-26 21:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996921', 'tblTempUsageDetail_20' ) end [2025-04-26 21:08:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 21:08:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 21:08:24] Production.INFO: ==23090== Releasing lock... [2025-04-26 21:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 21:08:24] Production.INFO: 45 MB #Memory Used# [2025-04-26 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 18:09:05 [end_date_ymd] => 2025-04-26 21:09:05 [RateCDR] => 1 ) [2025-04-26 21:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 18:09:05' and `end` < '2025-04-26 21:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 21:09:18] Production.INFO: count ==2180 [2025-04-26 21:09:18] Production.ERROR: pbx CDR StartTime 2025-04-26 18:09:05 - End Time 2025-04-26 21:09:05 [2025-04-26 21:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996926', 'tblTempUsageDetail_20' ) start [2025-04-26 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996926', 'tblTempUsageDetail_20' ) end [2025-04-26 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996926', 'tblTempVendorCDR_20' ) start [2025-04-26 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996926', 'tblTempVendorCDR_20' ) end [2025-04-26 21:09:18] Production.INFO: ProcessCDR(1,14996926,1,1,2) [2025-04-26 21:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996926', 'tblTempUsageDetail_20' ) start [2025-04-26 21:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996926', 'tblTempUsageDetail_20' ) end [2025-04-26 21:09:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 21:09:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 21:09:23] Production.INFO: ==23163== Releasing lock... [2025-04-26 21:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 21:09:23] Production.INFO: 45 MB #Memory Used# [2025-04-26 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 18:10:06 [end_date_ymd] => 2025-04-26 21:10:06 [RateCDR] => 1 ) [2025-04-26 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-04-26 18:10:06' and `end` < '2025-04-26 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-04-26 21:10:19] Production.INFO: count ==2183 [2025-04-26 21:10:19] Production.ERROR: pbx CDR StartTime 2025-04-26 18:10:06 - End Time 2025-04-26 21:10:06 [2025-04-26 21:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996931', 'tblTempUsageDetail_20' ) start [2025-04-26 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996931', 'tblTempUsageDetail_20' ) end [2025-04-26 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996931', 'tblTempVendorCDR_20' ) start [2025-04-26 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996931', 'tblTempVendorCDR_20' ) end [2025-04-26 21:10:19] Production.INFO: ProcessCDR(1,14996931,1,1,2) [2025-04-26 21:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996931', 'tblTempUsageDetail_20' ) start [2025-04-26 21:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996931', 'tblTempUsageDetail_20' ) end [2025-04-26 21:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 21:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 21:10:24] Production.INFO: ==23241== Releasing lock... [2025-04-26 21:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 21:10:24] Production.INFO: 45 MB #Memory Used# [2025-04-26 21:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 18:11:04 [end_date_ymd] => 2025-04-26 21:11:04 [RateCDR] => 1 ) [2025-04-26 21:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 18:11:04' and `end` < '2025-04-26 21:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 21:11:17] Production.INFO: count ==2144 [2025-04-26 21:11:18] Production.ERROR: pbx CDR StartTime 2025-04-26 18:11:04 - End Time 2025-04-26 21:11:04 [2025-04-26 21:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996937', 'tblTempUsageDetail_20' ) start [2025-04-26 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996937', 'tblTempUsageDetail_20' ) end [2025-04-26 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996937', 'tblTempVendorCDR_20' ) start [2025-04-26 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996937', 'tblTempVendorCDR_20' ) end [2025-04-26 21:11:18] Production.INFO: ProcessCDR(1,14996937,1,1,2) [2025-04-26 21:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996937', 'tblTempUsageDetail_20' ) start [2025-04-26 21:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996937', 'tblTempUsageDetail_20' ) end [2025-04-26 21:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 21:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 21:11:21] Production.INFO: ==23312== Releasing lock... [2025-04-26 21:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 21:11:21] Production.INFO: 44.75 MB #Memory Used# [2025-04-26 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 18:12:05 [end_date_ymd] => 2025-04-26 21:12:05 [RateCDR] => 1 ) [2025-04-26 21:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 18:12:05' and `end` < '2025-04-26 21:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 21:12:18] Production.INFO: count ==2142 [2025-04-26 21:12:19] Production.ERROR: pbx CDR StartTime 2025-04-26 18:12:05 - End Time 2025-04-26 21:12:05 [2025-04-26 21:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996942', 'tblTempUsageDetail_20' ) start [2025-04-26 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996942', 'tblTempUsageDetail_20' ) end [2025-04-26 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996942', 'tblTempVendorCDR_20' ) start [2025-04-26 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996942', 'tblTempVendorCDR_20' ) end [2025-04-26 21:12:19] Production.INFO: ProcessCDR(1,14996942,1,1,2) [2025-04-26 21:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996942', 'tblTempUsageDetail_20' ) start [2025-04-26 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996942', 'tblTempUsageDetail_20' ) end [2025-04-26 21:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 21:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 21:12:22] Production.INFO: ==23389== Releasing lock... [2025-04-26 21:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 21:12:22] Production.INFO: 44.5 MB #Memory Used# [2025-04-26 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 18:13:05 [end_date_ymd] => 2025-04-26 21:13:05 [RateCDR] => 1 ) [2025-04-26 21:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 18:13:05' and `end` < '2025-04-26 21:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 21:13:18] Production.INFO: count ==2143 [2025-04-26 21:13:19] Production.ERROR: pbx CDR StartTime 2025-04-26 18:13:05 - End Time 2025-04-26 21:13:05 [2025-04-26 21:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996947', 'tblTempUsageDetail_20' ) start [2025-04-26 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996947', 'tblTempUsageDetail_20' ) end [2025-04-26 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996947', 'tblTempVendorCDR_20' ) start [2025-04-26 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996947', 'tblTempVendorCDR_20' ) end [2025-04-26 21:13:19] Production.INFO: ProcessCDR(1,14996947,1,1,2) [2025-04-26 21:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996947', 'tblTempUsageDetail_20' ) start [2025-04-26 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996947', 'tblTempUsageDetail_20' ) end [2025-04-26 21:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 21:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 21:13:22] Production.INFO: ==23461== Releasing lock... [2025-04-26 21:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 21:13:22] Production.INFO: 44.5 MB #Memory Used# [2025-04-26 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 18:14:05 [end_date_ymd] => 2025-04-26 21:14:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 18:14:05' and `end` < '2025-04-26 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-04-26 21:14:18] Production.INFO: count ==2139 [2025-04-26 21:14:18] Production.ERROR: pbx CDR StartTime 2025-04-26 18:14:05 - End Time 2025-04-26 21:14:05 [2025-04-26 21:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996952', 'tblTempUsageDetail_20' ) start [2025-04-26 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996952', 'tblTempUsageDetail_20' ) end [2025-04-26 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996952', 'tblTempVendorCDR_20' ) start [2025-04-26 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996952', 'tblTempVendorCDR_20' ) end [2025-04-26 21:14:18] Production.INFO: ProcessCDR(1,14996952,1,1,2) [2025-04-26 21:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996952', 'tblTempUsageDetail_20' ) start [2025-04-26 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996952', 'tblTempUsageDetail_20' ) end [2025-04-26 21:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 21:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 21:14:22] Production.INFO: ==23532== Releasing lock... [2025-04-26 21:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 21:14:22] Production.INFO: 44.75 MB #Memory Used# [2025-04-26 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 18:15:05 [end_date_ymd] => 2025-04-26 21:15:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 18:15:05' and `end` < '2025-04-26 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-04-26 21:15:18] Production.INFO: count ==2131 [2025-04-26 21:15:19] Production.ERROR: pbx CDR StartTime 2025-04-26 18:15:05 - End Time 2025-04-26 21:15:05 [2025-04-26 21:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996957', 'tblTempUsageDetail_20' ) start [2025-04-26 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996957', 'tblTempUsageDetail_20' ) end [2025-04-26 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996957', 'tblTempVendorCDR_20' ) start [2025-04-26 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996957', 'tblTempVendorCDR_20' ) end [2025-04-26 21:15:19] Production.INFO: ProcessCDR(1,14996957,1,1,2) [2025-04-26 21:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996957', 'tblTempUsageDetail_20' ) start [2025-04-26 21:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996957', 'tblTempUsageDetail_20' ) end [2025-04-26 21:15:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 21:15:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 21:15:24] Production.INFO: ==23605== Releasing lock... [2025-04-26 21:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 21:15:24] Production.INFO: 44.5 MB #Memory Used# [2025-04-26 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 18:16:05 [end_date_ymd] => 2025-04-26 21:16:05 [RateCDR] => 1 ) [2025-04-26 21:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 18:16:05' and `end` < '2025-04-26 21:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 21:16:18] Production.INFO: count ==2130 [2025-04-26 21:16:18] Production.ERROR: pbx CDR StartTime 2025-04-26 18:16:05 - End Time 2025-04-26 21:16:05 [2025-04-26 21:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996962', 'tblTempUsageDetail_20' ) start [2025-04-26 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996962', 'tblTempUsageDetail_20' ) end [2025-04-26 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996962', 'tblTempVendorCDR_20' ) start [2025-04-26 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996962', 'tblTempVendorCDR_20' ) end [2025-04-26 21:16:18] Production.INFO: ProcessCDR(1,14996962,1,1,2) [2025-04-26 21:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996962', 'tblTempUsageDetail_20' ) start [2025-04-26 21:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996962', 'tblTempUsageDetail_20' ) end [2025-04-26 21:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 21:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 21:16:21] Production.INFO: ==23676== Releasing lock... [2025-04-26 21:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 21:16:21] Production.INFO: 44.5 MB #Memory Used# [2025-04-26 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 18:17:05 [end_date_ymd] => 2025-04-26 21:17:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 18:17:05' and `end` < '2025-04-26 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-04-26 21:17:17] Production.INFO: count ==2133 [2025-04-26 21:17:18] Production.ERROR: pbx CDR StartTime 2025-04-26 18:17:05 - End Time 2025-04-26 21:17:05 [2025-04-26 21:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996967', 'tblTempUsageDetail_20' ) start [2025-04-26 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996967', 'tblTempUsageDetail_20' ) end [2025-04-26 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996967', 'tblTempVendorCDR_20' ) start [2025-04-26 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996967', 'tblTempVendorCDR_20' ) end [2025-04-26 21:17:18] Production.INFO: ProcessCDR(1,14996967,1,1,2) [2025-04-26 21:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996967', 'tblTempUsageDetail_20' ) start [2025-04-26 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996967', 'tblTempUsageDetail_20' ) end [2025-04-26 21:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 21:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 21:17:21] Production.INFO: ==23761== Releasing lock... [2025-04-26 21:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 21:17:21] Production.INFO: 45 MB #Memory Used# [2025-04-26 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 18:18:05 [end_date_ymd] => 2025-04-26 21:18:05 [RateCDR] => 1 ) [2025-04-26 21:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 18:18:05' and `end` < '2025-04-26 21:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 21:18:17] Production.INFO: count ==2131 [2025-04-26 21:18:18] Production.ERROR: pbx CDR StartTime 2025-04-26 18:18:05 - End Time 2025-04-26 21:18:05 [2025-04-26 21:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996972', 'tblTempUsageDetail_20' ) start [2025-04-26 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996972', 'tblTempUsageDetail_20' ) end [2025-04-26 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996972', 'tblTempVendorCDR_20' ) start [2025-04-26 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996972', 'tblTempVendorCDR_20' ) end [2025-04-26 21:18:18] Production.INFO: ProcessCDR(1,14996972,1,1,2) [2025-04-26 21:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996972', 'tblTempUsageDetail_20' ) start [2025-04-26 21:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996972', 'tblTempUsageDetail_20' ) end [2025-04-26 21:18:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 21:18:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 21:18:23] Production.INFO: ==23852== Releasing lock... [2025-04-26 21:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 21:18:23] Production.INFO: 44.5 MB #Memory Used# [2025-04-26 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 18:19:05 [end_date_ymd] => 2025-04-26 21:19:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 18:19:05' and `end` < '2025-04-26 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-04-26 21:19:18] Production.INFO: count ==2123 [2025-04-26 21:19:19] Production.ERROR: pbx CDR StartTime 2025-04-26 18:19:05 - End Time 2025-04-26 21:19:05 [2025-04-26 21:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996977', 'tblTempUsageDetail_20' ) start [2025-04-26 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996977', 'tblTempUsageDetail_20' ) end [2025-04-26 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996977', 'tblTempVendorCDR_20' ) start [2025-04-26 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996977', 'tblTempVendorCDR_20' ) end [2025-04-26 21:19:19] Production.INFO: ProcessCDR(1,14996977,1,1,2) [2025-04-26 21:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996977', 'tblTempUsageDetail_20' ) start [2025-04-26 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996977', 'tblTempUsageDetail_20' ) end [2025-04-26 21:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 21:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 21:19:22] Production.INFO: ==23965== Releasing lock... [2025-04-26 21:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 21:19:22] Production.INFO: 44.25 MB #Memory Used# [2025-04-26 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 18:20:06 [end_date_ymd] => 2025-04-26 21:20:06 [RateCDR] => 1 ) [2025-04-26 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-04-26 18:20:06' and `end` < '2025-04-26 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-04-26 21:20:19] Production.INFO: count ==2125 [2025-04-26 21:20:19] Production.ERROR: pbx CDR StartTime 2025-04-26 18:20:06 - End Time 2025-04-26 21:20:06 [2025-04-26 21:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996982', 'tblTempUsageDetail_20' ) start [2025-04-26 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996982', 'tblTempUsageDetail_20' ) end [2025-04-26 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996982', 'tblTempVendorCDR_20' ) start [2025-04-26 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996982', 'tblTempVendorCDR_20' ) end [2025-04-26 21:20:19] Production.INFO: ProcessCDR(1,14996982,1,1,2) [2025-04-26 21:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996982', 'tblTempUsageDetail_20' ) start [2025-04-26 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996982', 'tblTempUsageDetail_20' ) end [2025-04-26 21:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 21:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 21:20:23] Production.INFO: ==24039== Releasing lock... [2025-04-26 21:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 21:20:23] Production.INFO: 44.5 MB #Memory Used# [2025-04-26 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 18:21:05 [end_date_ymd] => 2025-04-26 21:21:05 [RateCDR] => 1 ) [2025-04-26 21:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 18:21:05' and `end` < '2025-04-26 21:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 21:21:18] Production.INFO: count ==2114 [2025-04-26 21:21:18] Production.ERROR: pbx CDR StartTime 2025-04-26 18:21:05 - End Time 2025-04-26 21:21:05 [2025-04-26 21:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996988', 'tblTempUsageDetail_20' ) start [2025-04-26 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996988', 'tblTempUsageDetail_20' ) end [2025-04-26 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996988', 'tblTempVendorCDR_20' ) start [2025-04-26 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996988', 'tblTempVendorCDR_20' ) end [2025-04-26 21:21:18] Production.INFO: ProcessCDR(1,14996988,1,1,2) [2025-04-26 21:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996988', 'tblTempUsageDetail_20' ) start [2025-04-26 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996988', 'tblTempUsageDetail_20' ) end [2025-04-26 21:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 21:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 21:21:22] Production.INFO: ==24113== Releasing lock... [2025-04-26 21:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 21:21:22] Production.INFO: 44.25 MB #Memory Used# [2025-04-26 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 18:22:05 [end_date_ymd] => 2025-04-26 21:22:05 [RateCDR] => 1 ) [2025-04-26 21:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 18:22:05' and `end` < '2025-04-26 21:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 21:22:18] Production.INFO: count ==2103 [2025-04-26 21:22:18] Production.ERROR: pbx CDR StartTime 2025-04-26 18:22:05 - End Time 2025-04-26 21:22:05 [2025-04-26 21:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996993', 'tblTempUsageDetail_20' ) start [2025-04-26 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996993', 'tblTempUsageDetail_20' ) end [2025-04-26 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996993', 'tblTempVendorCDR_20' ) start [2025-04-26 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996993', 'tblTempVendorCDR_20' ) end [2025-04-26 21:22:18] Production.INFO: ProcessCDR(1,14996993,1,1,2) [2025-04-26 21:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996993', 'tblTempUsageDetail_20' ) start [2025-04-26 21:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996993', 'tblTempUsageDetail_20' ) end [2025-04-26 21:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 21:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 21:22:23] Production.INFO: ==24188== Releasing lock... [2025-04-26 21:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 21:22:23] Production.INFO: 44.5 MB #Memory Used# [2025-04-26 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 18:23:05 [end_date_ymd] => 2025-04-26 21:23:05 [RateCDR] => 1 ) [2025-04-26 21:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 18:23:05' and `end` < '2025-04-26 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-04-26 21:23:18] Production.INFO: count ==2099 [2025-04-26 21:23:18] Production.ERROR: pbx CDR StartTime 2025-04-26 18:23:05 - End Time 2025-04-26 21:23:05 [2025-04-26 21:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996998', 'tblTempUsageDetail_20' ) start [2025-04-26 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14996998', 'tblTempUsageDetail_20' ) end [2025-04-26 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996998', 'tblTempVendorCDR_20' ) start [2025-04-26 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14996998', 'tblTempVendorCDR_20' ) end [2025-04-26 21:23:18] Production.INFO: ProcessCDR(1,14996998,1,1,2) [2025-04-26 21:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14996998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14996998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14996998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14996998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996998', 'tblTempUsageDetail_20' ) start [2025-04-26 21:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14996998', 'tblTempUsageDetail_20' ) end [2025-04-26 21:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 21:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 21:23:22] Production.INFO: ==24261== Releasing lock... [2025-04-26 21:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 21:23:22] Production.INFO: 44.5 MB #Memory Used# [2025-04-26 21:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 18:24:06 [end_date_ymd] => 2025-04-26 21:24:06 [RateCDR] => 1 ) [2025-04-26 21:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 18:24:06' and `end` < '2025-04-26 21:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 21:24:19] Production.INFO: count ==2100 [2025-04-26 21:24:19] Production.ERROR: pbx CDR StartTime 2025-04-26 18:24:06 - End Time 2025-04-26 21:24:06 [2025-04-26 21:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997003', 'tblTempUsageDetail_20' ) start [2025-04-26 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997003', 'tblTempUsageDetail_20' ) end [2025-04-26 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997003', 'tblTempVendorCDR_20' ) start [2025-04-26 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997003', 'tblTempVendorCDR_20' ) end [2025-04-26 21:24:19] Production.INFO: ProcessCDR(1,14997003,1,1,2) [2025-04-26 21:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997003', 'tblTempUsageDetail_20' ) start [2025-04-26 21:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997003', 'tblTempUsageDetail_20' ) end [2025-04-26 21:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 21:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 21:24:23] Production.INFO: ==24336== Releasing lock... [2025-04-26 21:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 21:24:23] Production.INFO: 44.5 MB #Memory Used# [2025-04-26 21:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 18:25:04 [end_date_ymd] => 2025-04-26 21:25:04 [RateCDR] => 1 ) [2025-04-26 21: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-04-26 18:25:04' and `end` < '2025-04-26 21: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-04-26 21:25:17] Production.INFO: count ==2101 [2025-04-26 21:25:18] Production.ERROR: pbx CDR StartTime 2025-04-26 18:25:04 - End Time 2025-04-26 21:25:04 [2025-04-26 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997008', 'tblTempUsageDetail_20' ) start [2025-04-26 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997008', 'tblTempUsageDetail_20' ) end [2025-04-26 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997008', 'tblTempVendorCDR_20' ) start [2025-04-26 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997008', 'tblTempVendorCDR_20' ) end [2025-04-26 21:25:18] Production.INFO: ProcessCDR(1,14997008,1,1,2) [2025-04-26 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997008', 'tblTempUsageDetail_20' ) start [2025-04-26 21:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997008', 'tblTempUsageDetail_20' ) end [2025-04-26 21:25:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 21:25:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 21:25:23] Production.INFO: ==24407== Releasing lock... [2025-04-26 21:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 21:25:23] Production.INFO: 44.5 MB #Memory Used# [2025-04-26 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 18:26:05 [end_date_ymd] => 2025-04-26 21:26:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 18:26:05' and `end` < '2025-04-26 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-04-26 21:26:18] Production.INFO: count ==2126 [2025-04-26 21:26:19] Production.ERROR: pbx CDR StartTime 2025-04-26 18:26:05 - End Time 2025-04-26 21:26:05 [2025-04-26 21:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997013', 'tblTempUsageDetail_20' ) start [2025-04-26 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997013', 'tblTempUsageDetail_20' ) end [2025-04-26 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997013', 'tblTempVendorCDR_20' ) start [2025-04-26 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997013', 'tblTempVendorCDR_20' ) end [2025-04-26 21:26:19] Production.INFO: ProcessCDR(1,14997013,1,1,2) [2025-04-26 21:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997013', 'tblTempUsageDetail_20' ) start [2025-04-26 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997013', 'tblTempUsageDetail_20' ) end [2025-04-26 21:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 21:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 21:26:22] Production.INFO: ==24482== Releasing lock... [2025-04-26 21:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 21:26:22] Production.INFO: 44.5 MB #Memory Used# [2025-04-26 21:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 18:27:06 [end_date_ymd] => 2025-04-26 21:27:06 [RateCDR] => 1 ) [2025-04-26 21:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 18:27:06' and `end` < '2025-04-26 21:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 21:27:18] Production.INFO: count ==2118 [2025-04-26 21:27:19] Production.ERROR: pbx CDR StartTime 2025-04-26 18:27:06 - End Time 2025-04-26 21:27:06 [2025-04-26 21:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997018', 'tblTempUsageDetail_20' ) start [2025-04-26 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997018', 'tblTempUsageDetail_20' ) end [2025-04-26 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997018', 'tblTempVendorCDR_20' ) start [2025-04-26 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997018', 'tblTempVendorCDR_20' ) end [2025-04-26 21:27:19] Production.INFO: ProcessCDR(1,14997018,1,1,2) [2025-04-26 21:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997018', 'tblTempUsageDetail_20' ) start [2025-04-26 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997018', 'tblTempUsageDetail_20' ) end [2025-04-26 21:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 21:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 21:27:22] Production.INFO: ==24556== Releasing lock... [2025-04-26 21:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 21:27:22] Production.INFO: 44.5 MB #Memory Used# [2025-04-26 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 18:28:05 [end_date_ymd] => 2025-04-26 21:28:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 18:28:05' and `end` < '2025-04-26 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-04-26 21:28:18] Production.INFO: count ==2121 [2025-04-26 21:28:19] Production.ERROR: pbx CDR StartTime 2025-04-26 18:28:05 - End Time 2025-04-26 21:28:05 [2025-04-26 21:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997023', 'tblTempUsageDetail_20' ) start [2025-04-26 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997023', 'tblTempUsageDetail_20' ) end [2025-04-26 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997023', 'tblTempVendorCDR_20' ) start [2025-04-26 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997023', 'tblTempVendorCDR_20' ) end [2025-04-26 21:28:19] Production.INFO: ProcessCDR(1,14997023,1,1,2) [2025-04-26 21:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997023', 'tblTempUsageDetail_20' ) start [2025-04-26 21:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997023', 'tblTempUsageDetail_20' ) end [2025-04-26 21:28:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 21:28:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 21:28:24] Production.INFO: ==24629== Releasing lock... [2025-04-26 21:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 21:28:24] Production.INFO: 44.5 MB #Memory Used# [2025-04-26 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 18:29:05 [end_date_ymd] => 2025-04-26 21:29:05 [RateCDR] => 1 ) [2025-04-26 21:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 18:29:05' and `end` < '2025-04-26 21:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 21:29:18] Production.INFO: count ==2124 [2025-04-26 21:29:19] Production.ERROR: pbx CDR StartTime 2025-04-26 18:29:05 - End Time 2025-04-26 21:29:05 [2025-04-26 21:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997028', 'tblTempUsageDetail_20' ) start [2025-04-26 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997028', 'tblTempUsageDetail_20' ) end [2025-04-26 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997028', 'tblTempVendorCDR_20' ) start [2025-04-26 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997028', 'tblTempVendorCDR_20' ) end [2025-04-26 21:29:19] Production.INFO: ProcessCDR(1,14997028,1,1,2) [2025-04-26 21:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997028', 'tblTempUsageDetail_20' ) start [2025-04-26 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997028', 'tblTempUsageDetail_20' ) end [2025-04-26 21:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 21:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 21:29:22] Production.INFO: ==24701== Releasing lock... [2025-04-26 21:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 21:29:22] Production.INFO: 44.5 MB #Memory Used# [2025-04-26 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 18:30:06 [end_date_ymd] => 2025-04-26 21:30:06 [RateCDR] => 1 ) [2025-04-26 21:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 18:30:06' and `end` < '2025-04-26 21:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 21:30:19] Production.INFO: count ==2124 [2025-04-26 21:30:19] Production.ERROR: pbx CDR StartTime 2025-04-26 18:30:06 - End Time 2025-04-26 21:30:06 [2025-04-26 21:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997034', 'tblTempUsageDetail_20' ) start [2025-04-26 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997034', 'tblTempUsageDetail_20' ) end [2025-04-26 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997034', 'tblTempVendorCDR_20' ) start [2025-04-26 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997034', 'tblTempVendorCDR_20' ) end [2025-04-26 21:30:20] Production.INFO: ProcessCDR(1,14997034,1,1,2) [2025-04-26 21:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997034', 'tblTempUsageDetail_20' ) start [2025-04-26 21:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997034', 'tblTempUsageDetail_20' ) end [2025-04-26 21:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 21:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 21:30:23] Production.INFO: ==24773== Releasing lock... [2025-04-26 21:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 21:30:23] Production.INFO: 44.5 MB #Memory Used# [2025-04-26 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 18:31:05 [end_date_ymd] => 2025-04-26 21:31:05 [RateCDR] => 1 ) [2025-04-26 21:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 18:31:05' and `end` < '2025-04-26 21:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 21:31:18] Production.INFO: count ==2108 [2025-04-26 21:31:18] Production.ERROR: pbx CDR StartTime 2025-04-26 18:31:05 - End Time 2025-04-26 21:31:05 [2025-04-26 21:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997039', 'tblTempUsageDetail_20' ) start [2025-04-26 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997039', 'tblTempUsageDetail_20' ) end [2025-04-26 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997039', 'tblTempVendorCDR_20' ) start [2025-04-26 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997039', 'tblTempVendorCDR_20' ) end [2025-04-26 21:31:19] Production.INFO: ProcessCDR(1,14997039,1,1,2) [2025-04-26 21:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997039', 'tblTempUsageDetail_20' ) start [2025-04-26 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997039', 'tblTempUsageDetail_20' ) end [2025-04-26 21:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 21:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 21:31:22] Production.INFO: ==24847== Releasing lock... [2025-04-26 21:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 21:31:22] Production.INFO: 44.25 MB #Memory Used# [2025-04-26 21:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 18:32:04 [end_date_ymd] => 2025-04-26 21:32:04 [RateCDR] => 1 ) [2025-04-26 21:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 18:32:04' and `end` < '2025-04-26 21:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 21:32:17] Production.INFO: count ==2100 [2025-04-26 21:32:18] Production.ERROR: pbx CDR StartTime 2025-04-26 18:32:04 - End Time 2025-04-26 21:32:04 [2025-04-26 21:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997044', 'tblTempUsageDetail_20' ) start [2025-04-26 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997044', 'tblTempUsageDetail_20' ) end [2025-04-26 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997044', 'tblTempVendorCDR_20' ) start [2025-04-26 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997044', 'tblTempVendorCDR_20' ) end [2025-04-26 21:32:18] Production.INFO: ProcessCDR(1,14997044,1,1,2) [2025-04-26 21:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997044', 'tblTempUsageDetail_20' ) start [2025-04-26 21:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997044', 'tblTempUsageDetail_20' ) end [2025-04-26 21:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 21:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 21:32:21] Production.INFO: ==24919== Releasing lock... [2025-04-26 21:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 21:32:21] Production.INFO: 44.5 MB #Memory Used# [2025-04-26 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 18:33:05 [end_date_ymd] => 2025-04-26 21:33:05 [RateCDR] => 1 ) [2025-04-26 21:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 18:33:05' and `end` < '2025-04-26 21:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 21:33:18] Production.INFO: count ==2095 [2025-04-26 21:33:18] Production.ERROR: pbx CDR StartTime 2025-04-26 18:33:05 - End Time 2025-04-26 21:33:05 [2025-04-26 21:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997049', 'tblTempUsageDetail_20' ) start [2025-04-26 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997049', 'tblTempUsageDetail_20' ) end [2025-04-26 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997049', 'tblTempVendorCDR_20' ) start [2025-04-26 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997049', 'tblTempVendorCDR_20' ) end [2025-04-26 21:33:18] Production.INFO: ProcessCDR(1,14997049,1,1,2) [2025-04-26 21:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997049', 'tblTempUsageDetail_20' ) start [2025-04-26 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997049', 'tblTempUsageDetail_20' ) end [2025-04-26 21:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 21:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 21:33:22] Production.INFO: ==24997== Releasing lock... [2025-04-26 21:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 21:33:22] Production.INFO: 44.5 MB #Memory Used# [2025-04-26 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 18:34:05 [end_date_ymd] => 2025-04-26 21:34:05 [RateCDR] => 1 ) [2025-04-26 21:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 18:34:05' and `end` < '2025-04-26 21:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 21:34:18] Production.INFO: count ==2095 [2025-04-26 21:34:18] Production.ERROR: pbx CDR StartTime 2025-04-26 18:34:05 - End Time 2025-04-26 21:34:05 [2025-04-26 21:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997054', 'tblTempUsageDetail_20' ) start [2025-04-26 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997054', 'tblTempUsageDetail_20' ) end [2025-04-26 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997054', 'tblTempVendorCDR_20' ) start [2025-04-26 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997054', 'tblTempVendorCDR_20' ) end [2025-04-26 21:34:18] Production.INFO: ProcessCDR(1,14997054,1,1,2) [2025-04-26 21:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997054', 'tblTempUsageDetail_20' ) start [2025-04-26 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997054', 'tblTempUsageDetail_20' ) end [2025-04-26 21:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 21:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 21:34:22] Production.INFO: ==25108== Releasing lock... [2025-04-26 21:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 21:34:22] Production.INFO: 44.25 MB #Memory Used# [2025-04-26 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 18:35:05 [end_date_ymd] => 2025-04-26 21:35:05 [RateCDR] => 1 ) [2025-04-26 21:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 18:35:05' and `end` < '2025-04-26 21:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 21:35:18] Production.INFO: count ==2094 [2025-04-26 21:35:19] Production.ERROR: pbx CDR StartTime 2025-04-26 18:35:05 - End Time 2025-04-26 21:35:05 [2025-04-26 21:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997059', 'tblTempUsageDetail_20' ) start [2025-04-26 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997059', 'tblTempUsageDetail_20' ) end [2025-04-26 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997059', 'tblTempVendorCDR_20' ) start [2025-04-26 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997059', 'tblTempVendorCDR_20' ) end [2025-04-26 21:35:19] Production.INFO: ProcessCDR(1,14997059,1,1,2) [2025-04-26 21:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997059', 'tblTempUsageDetail_20' ) start [2025-04-26 21:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997059', 'tblTempUsageDetail_20' ) end [2025-04-26 21:35:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 21:35:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 21:35:24] Production.INFO: ==25180== Releasing lock... [2025-04-26 21:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 21:35:24] Production.INFO: 44.5 MB #Memory Used# [2025-04-26 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 18:36:05 [end_date_ymd] => 2025-04-26 21:36:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 18:36:05' and `end` < '2025-04-26 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-04-26 21:36:18] Production.INFO: count ==2089 [2025-04-26 21:36:19] Production.ERROR: pbx CDR StartTime 2025-04-26 18:36:05 - End Time 2025-04-26 21:36:05 [2025-04-26 21:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997064', 'tblTempUsageDetail_20' ) start [2025-04-26 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997064', 'tblTempUsageDetail_20' ) end [2025-04-26 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997064', 'tblTempVendorCDR_20' ) start [2025-04-26 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997064', 'tblTempVendorCDR_20' ) end [2025-04-26 21:36:19] Production.INFO: ProcessCDR(1,14997064,1,1,2) [2025-04-26 21:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997064', 'tblTempUsageDetail_20' ) start [2025-04-26 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997064', 'tblTempUsageDetail_20' ) end [2025-04-26 21:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 21:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 21:36:22] Production.INFO: ==25252== Releasing lock... [2025-04-26 21:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 21:36:22] Production.INFO: 44.25 MB #Memory Used# [2025-04-26 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 18:37:05 [end_date_ymd] => 2025-04-26 21:37:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 18:37:05' and `end` < '2025-04-26 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-04-26 21:37:17] Production.INFO: count ==2092 [2025-04-26 21:37:18] Production.ERROR: pbx CDR StartTime 2025-04-26 18:37:05 - End Time 2025-04-26 21:37:05 [2025-04-26 21:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997069', 'tblTempUsageDetail_20' ) start [2025-04-26 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997069', 'tblTempUsageDetail_20' ) end [2025-04-26 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997069', 'tblTempVendorCDR_20' ) start [2025-04-26 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997069', 'tblTempVendorCDR_20' ) end [2025-04-26 21:37:18] Production.INFO: ProcessCDR(1,14997069,1,1,2) [2025-04-26 21:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997069', 'tblTempUsageDetail_20' ) start [2025-04-26 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997069', 'tblTempUsageDetail_20' ) end [2025-04-26 21:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 21:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 21:37:21] Production.INFO: ==25324== Releasing lock... [2025-04-26 21:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 21:37:21] Production.INFO: 44 MB #Memory Used# [2025-04-26 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 18:38:05 [end_date_ymd] => 2025-04-26 21:38:05 [RateCDR] => 1 ) [2025-04-26 21:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 18:38:05' and `end` < '2025-04-26 21:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 21:38:18] Production.INFO: count ==2090 [2025-04-26 21:38:19] Production.ERROR: pbx CDR StartTime 2025-04-26 18:38:05 - End Time 2025-04-26 21:38:05 [2025-04-26 21:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997074', 'tblTempUsageDetail_20' ) start [2025-04-26 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997074', 'tblTempUsageDetail_20' ) end [2025-04-26 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997074', 'tblTempVendorCDR_20' ) start [2025-04-26 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997074', 'tblTempVendorCDR_20' ) end [2025-04-26 21:38:19] Production.INFO: ProcessCDR(1,14997074,1,1,2) [2025-04-26 21:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997074', 'tblTempUsageDetail_20' ) start [2025-04-26 21:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997074', 'tblTempUsageDetail_20' ) end [2025-04-26 21:38:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 21:38:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 21:38:24] Production.INFO: ==25400== Releasing lock... [2025-04-26 21:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 21:38:24] Production.INFO: 44.25 MB #Memory Used# [2025-04-26 21:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 18:39:04 [end_date_ymd] => 2025-04-26 21:39:04 [RateCDR] => 1 ) [2025-04-26 21:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 18:39:04' and `end` < '2025-04-26 21:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 21:39:17] Production.INFO: count ==2106 [2025-04-26 21:39:18] Production.ERROR: pbx CDR StartTime 2025-04-26 18:39:04 - End Time 2025-04-26 21:39:04 [2025-04-26 21:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997079', 'tblTempUsageDetail_20' ) start [2025-04-26 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997079', 'tblTempUsageDetail_20' ) end [2025-04-26 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997079', 'tblTempVendorCDR_20' ) start [2025-04-26 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997079', 'tblTempVendorCDR_20' ) end [2025-04-26 21:39:18] Production.INFO: ProcessCDR(1,14997079,1,1,2) [2025-04-26 21:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997079', 'tblTempUsageDetail_20' ) start [2025-04-26 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997079', 'tblTempUsageDetail_20' ) end [2025-04-26 21:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 21:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 21:39:21] Production.INFO: ==25469== Releasing lock... [2025-04-26 21:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 21:39:21] Production.INFO: 44.25 MB #Memory Used# [2025-04-26 21:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 18:40:05 [end_date_ymd] => 2025-04-26 21:40:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 18:40:05' and `end` < '2025-04-26 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-04-26 21:40:18] Production.INFO: count ==2099 [2025-04-26 21:40:19] Production.ERROR: pbx CDR StartTime 2025-04-26 18:40:05 - End Time 2025-04-26 21:40:05 [2025-04-26 21:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997084', 'tblTempUsageDetail_20' ) start [2025-04-26 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997084', 'tblTempUsageDetail_20' ) end [2025-04-26 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997084', 'tblTempVendorCDR_20' ) start [2025-04-26 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997084', 'tblTempVendorCDR_20' ) end [2025-04-26 21:40:19] Production.INFO: ProcessCDR(1,14997084,1,1,2) [2025-04-26 21:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997084', 'tblTempUsageDetail_20' ) start [2025-04-26 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997084', 'tblTempUsageDetail_20' ) end [2025-04-26 21:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 21:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 21:40:22] Production.INFO: ==25541== Releasing lock... [2025-04-26 21:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 21:40:22] Production.INFO: 44.5 MB #Memory Used# [2025-04-26 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 18:41:05 [end_date_ymd] => 2025-04-26 21:41:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 18:41:05' and `end` < '2025-04-26 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-04-26 21:41:18] Production.INFO: count ==2142 [2025-04-26 21:41:19] Production.ERROR: pbx CDR StartTime 2025-04-26 18:41:05 - End Time 2025-04-26 21:41:05 [2025-04-26 21:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997090', 'tblTempUsageDetail_20' ) start [2025-04-26 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997090', 'tblTempUsageDetail_20' ) end [2025-04-26 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997090', 'tblTempVendorCDR_20' ) start [2025-04-26 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997090', 'tblTempVendorCDR_20' ) end [2025-04-26 21:41:19] Production.INFO: ProcessCDR(1,14997090,1,1,2) [2025-04-26 21:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997090', 'tblTempUsageDetail_20' ) start [2025-04-26 21:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997090', 'tblTempUsageDetail_20' ) end [2025-04-26 21:41:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 21:41:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 21:41:24] Production.INFO: ==25618== Releasing lock... [2025-04-26 21:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 21:41:24] Production.INFO: 44.75 MB #Memory Used# [2025-04-26 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 18:42:05 [end_date_ymd] => 2025-04-26 21:42:05 [RateCDR] => 1 ) [2025-04-26 21:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 18:42:05' and `end` < '2025-04-26 21:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 21:42:17] Production.INFO: count ==2140 [2025-04-26 21:42:18] Production.ERROR: pbx CDR StartTime 2025-04-26 18:42:05 - End Time 2025-04-26 21:42:05 [2025-04-26 21:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997095', 'tblTempUsageDetail_20' ) start [2025-04-26 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997095', 'tblTempUsageDetail_20' ) end [2025-04-26 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997095', 'tblTempVendorCDR_20' ) start [2025-04-26 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997095', 'tblTempVendorCDR_20' ) end [2025-04-26 21:42:18] Production.INFO: ProcessCDR(1,14997095,1,1,2) [2025-04-26 21:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997095', 'tblTempUsageDetail_20' ) start [2025-04-26 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997095', 'tblTempUsageDetail_20' ) end [2025-04-26 21:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 21:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 21:42:21] Production.INFO: ==25696== Releasing lock... [2025-04-26 21:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 21:42:21] Production.INFO: 45 MB #Memory Used# [2025-04-26 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 18:43:05 [end_date_ymd] => 2025-04-26 21:43:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 18:43:05' and `end` < '2025-04-26 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-04-26 21:43:18] Production.INFO: count ==2142 [2025-04-26 21:43:18] Production.ERROR: pbx CDR StartTime 2025-04-26 18:43:05 - End Time 2025-04-26 21:43:05 [2025-04-26 21:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997100', 'tblTempUsageDetail_20' ) start [2025-04-26 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997100', 'tblTempUsageDetail_20' ) end [2025-04-26 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997100', 'tblTempVendorCDR_20' ) start [2025-04-26 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997100', 'tblTempVendorCDR_20' ) end [2025-04-26 21:43:18] Production.INFO: ProcessCDR(1,14997100,1,1,2) [2025-04-26 21:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997100', 'tblTempUsageDetail_20' ) start [2025-04-26 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997100', 'tblTempUsageDetail_20' ) end [2025-04-26 21:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 21:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 21:43:22] Production.INFO: ==25767== Releasing lock... [2025-04-26 21:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 21:43:22] Production.INFO: 44.5 MB #Memory Used# [2025-04-26 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 18:44:05 [end_date_ymd] => 2025-04-26 21:44:05 [RateCDR] => 1 ) [2025-04-26 21:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 18:44:05' and `end` < '2025-04-26 21:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 21:44:17] Production.INFO: count ==2137 [2025-04-26 21:44:18] Production.ERROR: pbx CDR StartTime 2025-04-26 18:44:05 - End Time 2025-04-26 21:44:05 [2025-04-26 21:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997105', 'tblTempUsageDetail_20' ) start [2025-04-26 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997105', 'tblTempUsageDetail_20' ) end [2025-04-26 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997105', 'tblTempVendorCDR_20' ) start [2025-04-26 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997105', 'tblTempVendorCDR_20' ) end [2025-04-26 21:44:18] Production.INFO: ProcessCDR(1,14997105,1,1,2) [2025-04-26 21:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997105', 'tblTempUsageDetail_20' ) start [2025-04-26 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997105', 'tblTempUsageDetail_20' ) end [2025-04-26 21:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 21:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 21:44:21] Production.INFO: ==25837== Releasing lock... [2025-04-26 21:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 21:44:21] Production.INFO: 44.75 MB #Memory Used# [2025-04-26 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 18:45:05 [end_date_ymd] => 2025-04-26 21:45:05 [RateCDR] => 1 ) [2025-04-26 21:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 18:45:05' and `end` < '2025-04-26 21:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 21:45:18] Production.INFO: count ==2136 [2025-04-26 21:45:19] Production.ERROR: pbx CDR StartTime 2025-04-26 18:45:05 - End Time 2025-04-26 21:45:05 [2025-04-26 21:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997110', 'tblTempUsageDetail_20' ) start [2025-04-26 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997110', 'tblTempUsageDetail_20' ) end [2025-04-26 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997110', 'tblTempVendorCDR_20' ) start [2025-04-26 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997110', 'tblTempVendorCDR_20' ) end [2025-04-26 21:45:19] Production.INFO: ProcessCDR(1,14997110,1,1,2) [2025-04-26 21:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997110', 'tblTempUsageDetail_20' ) start [2025-04-26 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997110', 'tblTempUsageDetail_20' ) end [2025-04-26 21:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 21:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 21:45:22] Production.INFO: ==25908== Releasing lock... [2025-04-26 21:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 21:45:22] Production.INFO: 44.75 MB #Memory Used# [2025-04-26 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 18:46:05 [end_date_ymd] => 2025-04-26 21:46:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 18:46:05' and `end` < '2025-04-26 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-04-26 21:46:18] Production.INFO: count ==2142 [2025-04-26 21:46:19] Production.ERROR: pbx CDR StartTime 2025-04-26 18:46:05 - End Time 2025-04-26 21:46:05 [2025-04-26 21:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997115', 'tblTempUsageDetail_20' ) start [2025-04-26 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997115', 'tblTempUsageDetail_20' ) end [2025-04-26 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997115', 'tblTempVendorCDR_20' ) start [2025-04-26 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997115', 'tblTempVendorCDR_20' ) end [2025-04-26 21:46:19] Production.INFO: ProcessCDR(1,14997115,1,1,2) [2025-04-26 21:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997115', 'tblTempUsageDetail_20' ) start [2025-04-26 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997115', 'tblTempUsageDetail_20' ) end [2025-04-26 21:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 21:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 21:46:22] Production.INFO: ==25978== Releasing lock... [2025-04-26 21:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 21:46:22] Production.INFO: 45 MB #Memory Used# [2025-04-26 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 18:47:05 [end_date_ymd] => 2025-04-26 21:47:05 [RateCDR] => 1 ) [2025-04-26 21:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 18:47:05' and `end` < '2025-04-26 21:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 21:47:18] Production.INFO: count ==2126 [2025-04-26 21:47:18] Production.ERROR: pbx CDR StartTime 2025-04-26 18:47:05 - End Time 2025-04-26 21:47:05 [2025-04-26 21:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997120', 'tblTempUsageDetail_20' ) start [2025-04-26 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997120', 'tblTempUsageDetail_20' ) end [2025-04-26 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997120', 'tblTempVendorCDR_20' ) start [2025-04-26 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997120', 'tblTempVendorCDR_20' ) end [2025-04-26 21:47:18] Production.INFO: ProcessCDR(1,14997120,1,1,2) [2025-04-26 21:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997120', 'tblTempUsageDetail_20' ) start [2025-04-26 21:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997120', 'tblTempUsageDetail_20' ) end [2025-04-26 21:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 21:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 21:47:21] Production.INFO: ==26057== Releasing lock... [2025-04-26 21:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 21:47:21] Production.INFO: 44.5 MB #Memory Used# [2025-04-26 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 18:48:05 [end_date_ymd] => 2025-04-26 21:48:05 [RateCDR] => 1 ) [2025-04-26 21:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 18:48:05' and `end` < '2025-04-26 21:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 21:48:18] Production.INFO: count ==2118 [2025-04-26 21:48:19] Production.ERROR: pbx CDR StartTime 2025-04-26 18:48:05 - End Time 2025-04-26 21:48:05 [2025-04-26 21:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997125', 'tblTempUsageDetail_20' ) start [2025-04-26 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997125', 'tblTempUsageDetail_20' ) end [2025-04-26 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997125', 'tblTempVendorCDR_20' ) start [2025-04-26 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997125', 'tblTempVendorCDR_20' ) end [2025-04-26 21:48:19] Production.INFO: ProcessCDR(1,14997125,1,1,2) [2025-04-26 21:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997125', 'tblTempUsageDetail_20' ) start [2025-04-26 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997125', 'tblTempUsageDetail_20' ) end [2025-04-26 21:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 21:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 21:48:22] Production.INFO: ==26131== Releasing lock... [2025-04-26 21:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 21:48:22] Production.INFO: 44.5 MB #Memory Used# [2025-04-26 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 18:49:05 [end_date_ymd] => 2025-04-26 21:49:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 18:49:05' and `end` < '2025-04-26 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-04-26 21:49:18] Production.INFO: count ==2111 [2025-04-26 21:49:18] Production.ERROR: pbx CDR StartTime 2025-04-26 18:49:05 - End Time 2025-04-26 21:49:05 [2025-04-26 21:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997130', 'tblTempUsageDetail_20' ) start [2025-04-26 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997130', 'tblTempUsageDetail_20' ) end [2025-04-26 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997130', 'tblTempVendorCDR_20' ) start [2025-04-26 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997130', 'tblTempVendorCDR_20' ) end [2025-04-26 21:49:18] Production.INFO: ProcessCDR(1,14997130,1,1,2) [2025-04-26 21:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997130', 'tblTempUsageDetail_20' ) start [2025-04-26 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997130', 'tblTempUsageDetail_20' ) end [2025-04-26 21:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 21:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 21:49:21] Production.INFO: ==26203== Releasing lock... [2025-04-26 21:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 21:49:21] Production.INFO: 44.25 MB #Memory Used# [2025-04-26 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 18:50:06 [end_date_ymd] => 2025-04-26 21:50:06 [RateCDR] => 1 ) [2025-04-26 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-04-26 18:50:06' and `end` < '2025-04-26 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-04-26 21:50:18] Production.INFO: count ==2112 [2025-04-26 21:50:19] Production.ERROR: pbx CDR StartTime 2025-04-26 18:50:06 - End Time 2025-04-26 21:50:06 [2025-04-26 21:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997135', 'tblTempUsageDetail_20' ) start [2025-04-26 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997135', 'tblTempUsageDetail_20' ) end [2025-04-26 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997135', 'tblTempVendorCDR_20' ) start [2025-04-26 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997135', 'tblTempVendorCDR_20' ) end [2025-04-26 21:50:19] Production.INFO: ProcessCDR(1,14997135,1,1,2) [2025-04-26 21:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997135', 'tblTempUsageDetail_20' ) start [2025-04-26 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997135', 'tblTempUsageDetail_20' ) end [2025-04-26 21:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 21:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 21:50:22] Production.INFO: ==26314== Releasing lock... [2025-04-26 21:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 21:50:22] Production.INFO: 44.25 MB #Memory Used# [2025-04-26 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 18:51:05 [end_date_ymd] => 2025-04-26 21:51:05 [RateCDR] => 1 ) [2025-04-26 21:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 18:51:05' and `end` < '2025-04-26 21:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 21:51:18] Production.INFO: count ==2087 [2025-04-26 21:51:18] Production.ERROR: pbx CDR StartTime 2025-04-26 18:51:05 - End Time 2025-04-26 21:51:05 [2025-04-26 21:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997141', 'tblTempUsageDetail_20' ) start [2025-04-26 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997141', 'tblTempUsageDetail_20' ) end [2025-04-26 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997141', 'tblTempVendorCDR_20' ) start [2025-04-26 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997141', 'tblTempVendorCDR_20' ) end [2025-04-26 21:51:18] Production.INFO: ProcessCDR(1,14997141,1,1,2) [2025-04-26 21:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997141', 'tblTempUsageDetail_20' ) start [2025-04-26 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997141', 'tblTempUsageDetail_20' ) end [2025-04-26 21:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 21:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 21:51:22] Production.INFO: ==26385== Releasing lock... [2025-04-26 21:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 21:51:22] Production.INFO: 44.25 MB #Memory Used# [2025-04-26 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 18:52:05 [end_date_ymd] => 2025-04-26 21:52:05 [RateCDR] => 1 ) [2025-04-26 21:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 18:52:05' and `end` < '2025-04-26 21:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 21:52:18] Production.INFO: count ==2086 [2025-04-26 21:52:18] Production.ERROR: pbx CDR StartTime 2025-04-26 18:52:05 - End Time 2025-04-26 21:52:05 [2025-04-26 21:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997145', 'tblTempUsageDetail_20' ) start [2025-04-26 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997145', 'tblTempUsageDetail_20' ) end [2025-04-26 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997145', 'tblTempVendorCDR_20' ) start [2025-04-26 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997145', 'tblTempVendorCDR_20' ) end [2025-04-26 21:52:18] Production.INFO: ProcessCDR(1,14997145,1,1,2) [2025-04-26 21:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997145', 'tblTempUsageDetail_20' ) start [2025-04-26 21:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997145', 'tblTempUsageDetail_20' ) end [2025-04-26 21:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 21:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 21:52:23] Production.INFO: ==26463== Releasing lock... [2025-04-26 21:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 21:52:23] Production.INFO: 44.25 MB #Memory Used# [2025-04-26 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 18:53:05 [end_date_ymd] => 2025-04-26 21:53:05 [RateCDR] => 1 ) [2025-04-26 21:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 18:53:05' and `end` < '2025-04-26 21:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 21:53:18] Production.INFO: count ==2083 [2025-04-26 21:53:19] Production.ERROR: pbx CDR StartTime 2025-04-26 18:53:05 - End Time 2025-04-26 21:53:05 [2025-04-26 21:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997151', 'tblTempUsageDetail_20' ) start [2025-04-26 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997151', 'tblTempUsageDetail_20' ) end [2025-04-26 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997151', 'tblTempVendorCDR_20' ) start [2025-04-26 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997151', 'tblTempVendorCDR_20' ) end [2025-04-26 21:53:19] Production.INFO: ProcessCDR(1,14997151,1,1,2) [2025-04-26 21:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997151', 'tblTempUsageDetail_20' ) start [2025-04-26 21:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997151', 'tblTempUsageDetail_20' ) end [2025-04-26 21:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 21:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 21:53:22] Production.INFO: ==26536== Releasing lock... [2025-04-26 21:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 21:53:22] Production.INFO: 44.25 MB #Memory Used# [2025-04-26 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 18:54:05 [end_date_ymd] => 2025-04-26 21:54:05 [RateCDR] => 1 ) [2025-04-26 21:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 18:54:05' and `end` < '2025-04-26 21:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 21:54:18] Production.INFO: count ==2085 [2025-04-26 21:54:18] Production.ERROR: pbx CDR StartTime 2025-04-26 18:54:05 - End Time 2025-04-26 21:54:05 [2025-04-26 21:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997156', 'tblTempUsageDetail_20' ) start [2025-04-26 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997156', 'tblTempUsageDetail_20' ) end [2025-04-26 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997156', 'tblTempVendorCDR_20' ) start [2025-04-26 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997156', 'tblTempVendorCDR_20' ) end [2025-04-26 21:54:18] Production.INFO: ProcessCDR(1,14997156,1,1,2) [2025-04-26 21:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997156', 'tblTempUsageDetail_20' ) start [2025-04-26 21:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997156', 'tblTempUsageDetail_20' ) end [2025-04-26 21:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 21:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 21:54:23] Production.INFO: ==26615== Releasing lock... [2025-04-26 21:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 21:54:23] Production.INFO: 44.5 MB #Memory Used# [2025-04-26 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 18:55:05 [end_date_ymd] => 2025-04-26 21:55:05 [RateCDR] => 1 ) [2025-04-26 21:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 18:55:05' and `end` < '2025-04-26 21:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 21:55:18] Production.INFO: count ==2082 [2025-04-26 21:55:19] Production.ERROR: pbx CDR StartTime 2025-04-26 18:55:05 - End Time 2025-04-26 21:55:05 [2025-04-26 21:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997161', 'tblTempUsageDetail_20' ) start [2025-04-26 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997161', 'tblTempUsageDetail_20' ) end [2025-04-26 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997161', 'tblTempVendorCDR_20' ) start [2025-04-26 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997161', 'tblTempVendorCDR_20' ) end [2025-04-26 21:55:19] Production.INFO: ProcessCDR(1,14997161,1,1,2) [2025-04-26 21:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997161', 'tblTempUsageDetail_20' ) start [2025-04-26 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997161', 'tblTempUsageDetail_20' ) end [2025-04-26 21:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 21:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 21:55:22] Production.INFO: ==26693== Releasing lock... [2025-04-26 21:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 21:55:22] Production.INFO: 44.25 MB #Memory Used# [2025-04-26 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 18:56:05 [end_date_ymd] => 2025-04-26 21:56:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 18:56:05' and `end` < '2025-04-26 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-04-26 21:56:18] Production.INFO: count ==2080 [2025-04-26 21:56:19] Production.ERROR: pbx CDR StartTime 2025-04-26 18:56:05 - End Time 2025-04-26 21:56:05 [2025-04-26 21:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997166', 'tblTempUsageDetail_20' ) start [2025-04-26 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997166', 'tblTempUsageDetail_20' ) end [2025-04-26 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997166', 'tblTempVendorCDR_20' ) start [2025-04-26 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997166', 'tblTempVendorCDR_20' ) end [2025-04-26 21:56:19] Production.INFO: ProcessCDR(1,14997166,1,1,2) [2025-04-26 21:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997166', 'tblTempUsageDetail_20' ) start [2025-04-26 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997166', 'tblTempUsageDetail_20' ) end [2025-04-26 21:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 21:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 21:56:22] Production.INFO: ==26770== Releasing lock... [2025-04-26 21:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 21:56:22] Production.INFO: 44.25 MB #Memory Used# [2025-04-26 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 18:57:05 [end_date_ymd] => 2025-04-26 21:57:05 [RateCDR] => 1 ) [2025-04-26 21:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 18:57:05' and `end` < '2025-04-26 21:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 21:57:18] Production.INFO: count ==2077 [2025-04-26 21:57:19] Production.ERROR: pbx CDR StartTime 2025-04-26 18:57:05 - End Time 2025-04-26 21:57:05 [2025-04-26 21:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997171', 'tblTempUsageDetail_20' ) start [2025-04-26 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997171', 'tblTempUsageDetail_20' ) end [2025-04-26 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997171', 'tblTempVendorCDR_20' ) start [2025-04-26 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997171', 'tblTempVendorCDR_20' ) end [2025-04-26 21:57:19] Production.INFO: ProcessCDR(1,14997171,1,1,2) [2025-04-26 21:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997171', 'tblTempUsageDetail_20' ) start [2025-04-26 21:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997171', 'tblTempUsageDetail_20' ) end [2025-04-26 21:57:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 21:57:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 21:57:24] Production.INFO: ==26852== Releasing lock... [2025-04-26 21:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 21:57:24] Production.INFO: 44.5 MB #Memory Used# [2025-04-26 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 18:58:05 [end_date_ymd] => 2025-04-26 21:58:05 [RateCDR] => 1 ) [2025-04-26 21:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 18:58:05' and `end` < '2025-04-26 21:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 21:58:18] Production.INFO: count ==2061 [2025-04-26 21:58:18] Production.ERROR: pbx CDR StartTime 2025-04-26 18:58:05 - End Time 2025-04-26 21:58:05 [2025-04-26 21:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997176', 'tblTempUsageDetail_20' ) start [2025-04-26 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997176', 'tblTempUsageDetail_20' ) end [2025-04-26 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997176', 'tblTempVendorCDR_20' ) start [2025-04-26 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997176', 'tblTempVendorCDR_20' ) end [2025-04-26 21:58:18] Production.INFO: ProcessCDR(1,14997176,1,1,2) [2025-04-26 21:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997176', 'tblTempUsageDetail_20' ) start [2025-04-26 21:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997176', 'tblTempUsageDetail_20' ) end [2025-04-26 21:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 21:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 21:58:23] Production.INFO: ==26938== Releasing lock... [2025-04-26 21:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 21:58:23] Production.INFO: 44 MB #Memory Used# [2025-04-26 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 18:59:05 [end_date_ymd] => 2025-04-26 21:59:05 [RateCDR] => 1 ) [2025-04-26 21:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 18:59:05' and `end` < '2025-04-26 21:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 21:59:18] Production.INFO: count ==2060 [2025-04-26 21:59:19] Production.ERROR: pbx CDR StartTime 2025-04-26 18:59:05 - End Time 2025-04-26 21:59:05 [2025-04-26 21:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997181', 'tblTempUsageDetail_20' ) start [2025-04-26 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997181', 'tblTempUsageDetail_20' ) end [2025-04-26 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997181', 'tblTempVendorCDR_20' ) start [2025-04-26 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997181', 'tblTempVendorCDR_20' ) end [2025-04-26 21:59:19] Production.INFO: ProcessCDR(1,14997181,1,1,2) [2025-04-26 21:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 21:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 21:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997181', 'tblTempUsageDetail_20' ) start [2025-04-26 21:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997181', 'tblTempUsageDetail_20' ) end [2025-04-26 21:59:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 21:59:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 21:59:24] Production.INFO: ==27025== Releasing lock... [2025-04-26 21:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 21:59:24] Production.INFO: 44 MB #Memory Used# [2025-04-26 22:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 19:00:05 [end_date_ymd] => 2025-04-26 22:00:05 [RateCDR] => 1 ) [2025-04-26 22:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 19:00:05' and `end` < '2025-04-26 22:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 22:00:18] Production.INFO: count ==2057 [2025-04-26 22:00:19] Production.ERROR: pbx CDR StartTime 2025-04-26 19:00:05 - End Time 2025-04-26 22:00:05 [2025-04-26 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997187', 'tblTempUsageDetail_20' ) start [2025-04-26 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997187', 'tblTempUsageDetail_20' ) end [2025-04-26 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997187', 'tblTempVendorCDR_20' ) start [2025-04-26 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997187', 'tblTempVendorCDR_20' ) end [2025-04-26 22:00:19] Production.INFO: ProcessCDR(1,14997187,1,1,2) [2025-04-26 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997187', 'tblTempUsageDetail_20' ) start [2025-04-26 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997187', 'tblTempUsageDetail_20' ) end [2025-04-26 22:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 22:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 22:00:22] Production.INFO: ==27123== Releasing lock... [2025-04-26 22:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 22:00:22] Production.INFO: 43.75 MB #Memory Used# [2025-04-26 22:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 19:01:06 [end_date_ymd] => 2025-04-26 22:01:06 [RateCDR] => 1 ) [2025-04-26 22:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 19:01:06' and `end` < '2025-04-26 22:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 22:01:19] Production.INFO: count ==2000 [2025-04-26 22:01:19] Production.ERROR: pbx CDR StartTime 2025-04-26 19:01:06 - End Time 2025-04-26 22:01:06 [2025-04-26 22:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997192', 'tblTempUsageDetail_20' ) start [2025-04-26 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997192', 'tblTempUsageDetail_20' ) end [2025-04-26 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997192', 'tblTempVendorCDR_20' ) start [2025-04-26 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997192', 'tblTempVendorCDR_20' ) end [2025-04-26 22:01:19] Production.INFO: ProcessCDR(1,14997192,1,1,2) [2025-04-26 22:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997192', 'tblTempUsageDetail_20' ) start [2025-04-26 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997192', 'tblTempUsageDetail_20' ) end [2025-04-26 22:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 22:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 22:01:22] Production.INFO: ==27252== Releasing lock... [2025-04-26 22:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 22:01:22] Production.INFO: 43.5 MB #Memory Used# [2025-04-26 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 19:02:05 [end_date_ymd] => 2025-04-26 22:02:05 [RateCDR] => 1 ) [2025-04-26 22:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 19:02:05' and `end` < '2025-04-26 22:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 22:02:18] Production.INFO: count ==1996 [2025-04-26 22:02:19] Production.ERROR: pbx CDR StartTime 2025-04-26 19:02:05 - End Time 2025-04-26 22:02:05 [2025-04-26 22:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997197', 'tblTempUsageDetail_20' ) start [2025-04-26 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997197', 'tblTempUsageDetail_20' ) end [2025-04-26 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997197', 'tblTempVendorCDR_20' ) start [2025-04-26 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997197', 'tblTempVendorCDR_20' ) end [2025-04-26 22:02:19] Production.INFO: ProcessCDR(1,14997197,1,1,2) [2025-04-26 22:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997197', 'tblTempUsageDetail_20' ) start [2025-04-26 22:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997197', 'tblTempUsageDetail_20' ) end [2025-04-26 22:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 22:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 22:02:22] Production.INFO: ==27339== Releasing lock... [2025-04-26 22:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 22:02:22] Production.INFO: 43.5 MB #Memory Used# [2025-04-26 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 19:03:05 [end_date_ymd] => 2025-04-26 22:03:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 19:03:05' and `end` < '2025-04-26 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-04-26 22:03:18] Production.INFO: count ==1993 [2025-04-26 22:03:18] Production.ERROR: pbx CDR StartTime 2025-04-26 19:03:05 - End Time 2025-04-26 22:03:05 [2025-04-26 22:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997202', 'tblTempUsageDetail_20' ) start [2025-04-26 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997202', 'tblTempUsageDetail_20' ) end [2025-04-26 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997202', 'tblTempVendorCDR_20' ) start [2025-04-26 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997202', 'tblTempVendorCDR_20' ) end [2025-04-26 22:03:18] Production.INFO: ProcessCDR(1,14997202,1,1,2) [2025-04-26 22:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997202', 'tblTempUsageDetail_20' ) start [2025-04-26 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997202', 'tblTempUsageDetail_20' ) end [2025-04-26 22:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 22:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 22:03:22] Production.INFO: ==27418== Releasing lock... [2025-04-26 22:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 22:03:22] Production.INFO: 43.5 MB #Memory Used# [2025-04-26 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 19:04:05 [end_date_ymd] => 2025-04-26 22:04:05 [RateCDR] => 1 ) [2025-04-26 22:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 19:04:05' and `end` < '2025-04-26 22:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 22:04:18] Production.INFO: count ==1991 [2025-04-26 22:04:19] Production.ERROR: pbx CDR StartTime 2025-04-26 19:04:05 - End Time 2025-04-26 22:04:05 [2025-04-26 22:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997207', 'tblTempUsageDetail_20' ) start [2025-04-26 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997207', 'tblTempUsageDetail_20' ) end [2025-04-26 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997207', 'tblTempVendorCDR_20' ) start [2025-04-26 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997207', 'tblTempVendorCDR_20' ) end [2025-04-26 22:04:19] Production.INFO: ProcessCDR(1,14997207,1,1,2) [2025-04-26 22:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997207', 'tblTempUsageDetail_20' ) start [2025-04-26 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997207', 'tblTempUsageDetail_20' ) end [2025-04-26 22:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 22:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 22:04:22] Production.INFO: ==27506== Releasing lock... [2025-04-26 22:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 22:04:22] Production.INFO: 43.5 MB #Memory Used# [2025-04-26 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 19:05:05 [end_date_ymd] => 2025-04-26 22:05:05 [RateCDR] => 1 ) [2025-04-26 22:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 19:05:05' and `end` < '2025-04-26 22:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 22:05:18] Production.INFO: count ==1983 [2025-04-26 22:05:18] Production.ERROR: pbx CDR StartTime 2025-04-26 19:05:05 - End Time 2025-04-26 22:05:05 [2025-04-26 22:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997212', 'tblTempUsageDetail_20' ) start [2025-04-26 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997212', 'tblTempUsageDetail_20' ) end [2025-04-26 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997212', 'tblTempVendorCDR_20' ) start [2025-04-26 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997212', 'tblTempVendorCDR_20' ) end [2025-04-26 22:05:18] Production.INFO: ProcessCDR(1,14997212,1,1,2) [2025-04-26 22:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997212', 'tblTempUsageDetail_20' ) start [2025-04-26 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997212', 'tblTempUsageDetail_20' ) end [2025-04-26 22:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 22:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 22:05:22] Production.INFO: ==27632== Releasing lock... [2025-04-26 22:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 22:05:22] Production.INFO: 43.5 MB #Memory Used# [2025-04-26 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 19:06:05 [end_date_ymd] => 2025-04-26 22:06:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 19:06:05' and `end` < '2025-04-26 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-04-26 22:06:18] Production.INFO: count ==1981 [2025-04-26 22:06:18] Production.ERROR: pbx CDR StartTime 2025-04-26 19:06:05 - End Time 2025-04-26 22:06:05 [2025-04-26 22:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997217', 'tblTempUsageDetail_20' ) start [2025-04-26 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997217', 'tblTempUsageDetail_20' ) end [2025-04-26 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997217', 'tblTempVendorCDR_20' ) start [2025-04-26 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997217', 'tblTempVendorCDR_20' ) end [2025-04-26 22:06:18] Production.INFO: ProcessCDR(1,14997217,1,1,2) [2025-04-26 22:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997217', 'tblTempUsageDetail_20' ) start [2025-04-26 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997217', 'tblTempUsageDetail_20' ) end [2025-04-26 22:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 22:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 22:06:22] Production.INFO: ==27712== Releasing lock... [2025-04-26 22:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 22:06:22] Production.INFO: 43.75 MB #Memory Used# [2025-04-26 22:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 19:07:06 [end_date_ymd] => 2025-04-26 22:07:06 [RateCDR] => 1 ) [2025-04-26 22:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 19:07:06' and `end` < '2025-04-26 22:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 22:07:19] Production.INFO: count ==1981 [2025-04-26 22:07:19] Production.ERROR: pbx CDR StartTime 2025-04-26 19:07:06 - End Time 2025-04-26 22:07:06 [2025-04-26 22:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997222', 'tblTempUsageDetail_20' ) start [2025-04-26 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997222', 'tblTempUsageDetail_20' ) end [2025-04-26 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997222', 'tblTempVendorCDR_20' ) start [2025-04-26 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997222', 'tblTempVendorCDR_20' ) end [2025-04-26 22:07:19] Production.INFO: ProcessCDR(1,14997222,1,1,2) [2025-04-26 22:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997222', 'tblTempUsageDetail_20' ) start [2025-04-26 22:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997222', 'tblTempUsageDetail_20' ) end [2025-04-26 22:07:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 22:07:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 22:07:24] Production.INFO: ==27802== Releasing lock... [2025-04-26 22:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 22:07:24] Production.INFO: 43.75 MB #Memory Used# [2025-04-26 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 19:08:05 [end_date_ymd] => 2025-04-26 22:08:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 19:08:05' and `end` < '2025-04-26 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-04-26 22:08:18] Production.INFO: count ==1977 [2025-04-26 22:08:19] Production.ERROR: pbx CDR StartTime 2025-04-26 19:08:05 - End Time 2025-04-26 22:08:05 [2025-04-26 22:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997227', 'tblTempUsageDetail_20' ) start [2025-04-26 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997227', 'tblTempUsageDetail_20' ) end [2025-04-26 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997227', 'tblTempVendorCDR_20' ) start [2025-04-26 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997227', 'tblTempVendorCDR_20' ) end [2025-04-26 22:08:19] Production.INFO: ProcessCDR(1,14997227,1,1,2) [2025-04-26 22:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997227', 'tblTempUsageDetail_20' ) start [2025-04-26 22:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997227', 'tblTempUsageDetail_20' ) end [2025-04-26 22:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 22:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 22:08:22] Production.INFO: ==27878== Releasing lock... [2025-04-26 22:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 22:08:22] Production.INFO: 43.5 MB #Memory Used# [2025-04-26 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 19:09:05 [end_date_ymd] => 2025-04-26 22:09:05 [RateCDR] => 1 ) [2025-04-26 22:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 19:09:05' and `end` < '2025-04-26 22:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 22:09:18] Production.INFO: count ==1975 [2025-04-26 22:09:19] Production.ERROR: pbx CDR StartTime 2025-04-26 19:09:05 - End Time 2025-04-26 22:09:05 [2025-04-26 22:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997232', 'tblTempUsageDetail_20' ) start [2025-04-26 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997232', 'tblTempUsageDetail_20' ) end [2025-04-26 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997232', 'tblTempVendorCDR_20' ) start [2025-04-26 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997232', 'tblTempVendorCDR_20' ) end [2025-04-26 22:09:19] Production.INFO: ProcessCDR(1,14997232,1,1,2) [2025-04-26 22:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997232', 'tblTempUsageDetail_20' ) start [2025-04-26 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997232', 'tblTempUsageDetail_20' ) end [2025-04-26 22:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 22:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 22:09:22] Production.INFO: ==27955== Releasing lock... [2025-04-26 22:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 22:09:22] Production.INFO: 43 MB #Memory Used# [2025-04-26 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 19:10:06 [end_date_ymd] => 2025-04-26 22:10:06 [RateCDR] => 1 ) [2025-04-26 22:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 19:10:06' and `end` < '2025-04-26 22:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 22:10:19] Production.INFO: count ==1970 [2025-04-26 22:10:20] Production.ERROR: pbx CDR StartTime 2025-04-26 19:10:06 - End Time 2025-04-26 22:10:06 [2025-04-26 22:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 22:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997238', 'tblTempUsageDetail_20' ) start [2025-04-26 22:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997238', 'tblTempUsageDetail_20' ) end [2025-04-26 22:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997238', 'tblTempVendorCDR_20' ) start [2025-04-26 22:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997238', 'tblTempVendorCDR_20' ) end [2025-04-26 22:10:20] Production.INFO: ProcessCDR(1,14997238,1,1,2) [2025-04-26 22:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997238', 'tblTempUsageDetail_20' ) start [2025-04-26 22:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997238', 'tblTempUsageDetail_20' ) end [2025-04-26 22:10:25] Production.ERROR: pbx prc_insertCDR start [2025-04-26 22:10:25] Production.ERROR: pbx prc_insertCDR end [2025-04-26 22:10:25] Production.INFO: ==28040== Releasing lock... [2025-04-26 22:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 22:10:25] Production.INFO: 43 MB #Memory Used# [2025-04-26 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 19:11:05 [end_date_ymd] => 2025-04-26 22:11:05 [RateCDR] => 1 ) [2025-04-26 22:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 19:11:05' and `end` < '2025-04-26 22:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 22:11:17] Production.INFO: count ==1911 [2025-04-26 22:11:18] Production.ERROR: pbx CDR StartTime 2025-04-26 19:11:05 - End Time 2025-04-26 22:11:05 [2025-04-26 22:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997243', 'tblTempUsageDetail_20' ) start [2025-04-26 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997243', 'tblTempUsageDetail_20' ) end [2025-04-26 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997243', 'tblTempVendorCDR_20' ) start [2025-04-26 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997243', 'tblTempVendorCDR_20' ) end [2025-04-26 22:11:18] Production.INFO: ProcessCDR(1,14997243,1,1,2) [2025-04-26 22:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997243', 'tblTempUsageDetail_20' ) start [2025-04-26 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997243', 'tblTempUsageDetail_20' ) end [2025-04-26 22:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 22:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 22:11:22] Production.INFO: ==28129== Releasing lock... [2025-04-26 22:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 22:11:22] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 19:12:05 [end_date_ymd] => 2025-04-26 22:12:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 19:12:05' and `end` < '2025-04-26 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-04-26 22:12:17] Production.INFO: count ==1904 [2025-04-26 22:12:18] Production.ERROR: pbx CDR StartTime 2025-04-26 19:12:05 - End Time 2025-04-26 22:12:05 [2025-04-26 22:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997248', 'tblTempUsageDetail_20' ) start [2025-04-26 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997248', 'tblTempUsageDetail_20' ) end [2025-04-26 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997248', 'tblTempVendorCDR_20' ) start [2025-04-26 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997248', 'tblTempVendorCDR_20' ) end [2025-04-26 22:12:18] Production.INFO: ProcessCDR(1,14997248,1,1,2) [2025-04-26 22:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997248', 'tblTempUsageDetail_20' ) start [2025-04-26 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997248', 'tblTempUsageDetail_20' ) end [2025-04-26 22:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 22:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 22:12:21] Production.INFO: ==28208== Releasing lock... [2025-04-26 22:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 22:12:21] Production.INFO: 42.5 MB #Memory Used# [2025-04-26 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 19:13:05 [end_date_ymd] => 2025-04-26 22:13:05 [RateCDR] => 1 ) [2025-04-26 22:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 19:13:05' and `end` < '2025-04-26 22:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 22:13:18] Production.INFO: count ==1902 [2025-04-26 22:13:18] Production.ERROR: pbx CDR StartTime 2025-04-26 19:13:05 - End Time 2025-04-26 22:13:05 [2025-04-26 22:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997253', 'tblTempUsageDetail_20' ) start [2025-04-26 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997253', 'tblTempUsageDetail_20' ) end [2025-04-26 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997253', 'tblTempVendorCDR_20' ) start [2025-04-26 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997253', 'tblTempVendorCDR_20' ) end [2025-04-26 22:13:18] Production.INFO: ProcessCDR(1,14997253,1,1,2) [2025-04-26 22:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997253', 'tblTempUsageDetail_20' ) start [2025-04-26 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997253', 'tblTempUsageDetail_20' ) end [2025-04-26 22:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 22:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 22:13:22] Production.INFO: ==28289== Releasing lock... [2025-04-26 22:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 22:13:22] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 19:14:05 [end_date_ymd] => 2025-04-26 22:14:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 19:14:05' and `end` < '2025-04-26 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-04-26 22:14:18] Production.INFO: count ==1895 [2025-04-26 22:14:18] Production.ERROR: pbx CDR StartTime 2025-04-26 19:14:05 - End Time 2025-04-26 22:14:05 [2025-04-26 22:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997258', 'tblTempUsageDetail_20' ) start [2025-04-26 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997258', 'tblTempUsageDetail_20' ) end [2025-04-26 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997258', 'tblTempVendorCDR_20' ) start [2025-04-26 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997258', 'tblTempVendorCDR_20' ) end [2025-04-26 22:14:18] Production.INFO: ProcessCDR(1,14997258,1,1,2) [2025-04-26 22:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997258', 'tblTempUsageDetail_20' ) start [2025-04-26 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997258', 'tblTempUsageDetail_20' ) end [2025-04-26 22:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 22:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 22:14:22] Production.INFO: ==28384== Releasing lock... [2025-04-26 22:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 22:14:22] Production.INFO: 42.5 MB #Memory Used# [2025-04-26 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 19:15:05 [end_date_ymd] => 2025-04-26 22:15:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 19:15:05' and `end` < '2025-04-26 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-04-26 22:15:18] Production.INFO: count ==1897 [2025-04-26 22:15:19] Production.ERROR: pbx CDR StartTime 2025-04-26 19:15:05 - End Time 2025-04-26 22:15:05 [2025-04-26 22:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997263', 'tblTempUsageDetail_20' ) start [2025-04-26 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997263', 'tblTempUsageDetail_20' ) end [2025-04-26 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997263', 'tblTempVendorCDR_20' ) start [2025-04-26 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997263', 'tblTempVendorCDR_20' ) end [2025-04-26 22:15:19] Production.INFO: ProcessCDR(1,14997263,1,1,2) [2025-04-26 22:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997263', 'tblTempUsageDetail_20' ) start [2025-04-26 22:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997263', 'tblTempUsageDetail_20' ) end [2025-04-26 22:15:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 22:15:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 22:15:24] Production.INFO: ==28461== Releasing lock... [2025-04-26 22:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 22:15:24] Production.INFO: 43 MB #Memory Used# [2025-04-26 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 19:16:05 [end_date_ymd] => 2025-04-26 22:16:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 19:16:05' and `end` < '2025-04-26 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-04-26 22:16:18] Production.INFO: count ==1898 [2025-04-26 22:16:19] Production.ERROR: pbx CDR StartTime 2025-04-26 19:16:05 - End Time 2025-04-26 22:16:05 [2025-04-26 22:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997268', 'tblTempUsageDetail_20' ) start [2025-04-26 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997268', 'tblTempUsageDetail_20' ) end [2025-04-26 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997268', 'tblTempVendorCDR_20' ) start [2025-04-26 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997268', 'tblTempVendorCDR_20' ) end [2025-04-26 22:16:19] Production.INFO: ProcessCDR(1,14997268,1,1,2) [2025-04-26 22:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997268', 'tblTempUsageDetail_20' ) start [2025-04-26 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997268', 'tblTempUsageDetail_20' ) end [2025-04-26 22:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 22:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 22:16:22] Production.INFO: ==28537== Releasing lock... [2025-04-26 22:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 22:16:22] Production.INFO: 42.5 MB #Memory Used# [2025-04-26 22:17:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 19:17:07 [end_date_ymd] => 2025-04-26 22:17:07 [RateCDR] => 1 ) [2025-04-26 22:17:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 19:17:07' and `end` < '2025-04-26 22:17:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 22:17:19] Production.INFO: count ==1896 [2025-04-26 22:17:20] Production.ERROR: pbx CDR StartTime 2025-04-26 19:17:07 - End Time 2025-04-26 22:17:07 [2025-04-26 22:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 22:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997273', 'tblTempUsageDetail_20' ) start [2025-04-26 22:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997273', 'tblTempUsageDetail_20' ) end [2025-04-26 22:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997273', 'tblTempVendorCDR_20' ) start [2025-04-26 22:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997273', 'tblTempVendorCDR_20' ) end [2025-04-26 22:17:20] Production.INFO: ProcessCDR(1,14997273,1,1,2) [2025-04-26 22:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997273', 'tblTempUsageDetail_20' ) start [2025-04-26 22:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997273', 'tblTempUsageDetail_20' ) end [2025-04-26 22:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 22:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 22:17:24] Production.INFO: ==28608== Releasing lock... [2025-04-26 22:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 22:17:24] Production.INFO: 43 MB #Memory Used# [2025-04-26 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 19:18:05 [end_date_ymd] => 2025-04-26 22:18:05 [RateCDR] => 1 ) [2025-04-26 22:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 19:18:05' and `end` < '2025-04-26 22:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 22:18:18] Production.INFO: count ==1900 [2025-04-26 22:18:19] Production.ERROR: pbx CDR StartTime 2025-04-26 19:18:05 - End Time 2025-04-26 22:18:05 [2025-04-26 22:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997278', 'tblTempUsageDetail_20' ) start [2025-04-26 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997278', 'tblTempUsageDetail_20' ) end [2025-04-26 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997278', 'tblTempVendorCDR_20' ) start [2025-04-26 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997278', 'tblTempVendorCDR_20' ) end [2025-04-26 22:18:19] Production.INFO: ProcessCDR(1,14997278,1,1,2) [2025-04-26 22:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997278', 'tblTempUsageDetail_20' ) start [2025-04-26 22:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997278', 'tblTempUsageDetail_20' ) end [2025-04-26 22:18:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 22:18:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 22:18:24] Production.INFO: ==28680== Releasing lock... [2025-04-26 22:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 22:18:24] Production.INFO: 42.5 MB #Memory Used# [2025-04-26 22:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 19:19:06 [end_date_ymd] => 2025-04-26 22:19:06 [RateCDR] => 1 ) [2025-04-26 22:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 19:19:06' and `end` < '2025-04-26 22:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 22:19:19] Production.INFO: count ==1898 [2025-04-26 22:19:19] Production.ERROR: pbx CDR StartTime 2025-04-26 19:19:06 - End Time 2025-04-26 22:19:06 [2025-04-26 22:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997283', 'tblTempUsageDetail_20' ) start [2025-04-26 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997283', 'tblTempUsageDetail_20' ) end [2025-04-26 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997283', 'tblTempVendorCDR_20' ) start [2025-04-26 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997283', 'tblTempVendorCDR_20' ) end [2025-04-26 22:19:19] Production.INFO: ProcessCDR(1,14997283,1,1,2) [2025-04-26 22:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997283', 'tblTempUsageDetail_20' ) start [2025-04-26 22:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997283', 'tblTempUsageDetail_20' ) end [2025-04-26 22:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 22:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 22:19:23] Production.INFO: ==28753== Releasing lock... [2025-04-26 22:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 22:19:23] Production.INFO: 42.5 MB #Memory Used# [2025-04-26 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 19:20:06 [end_date_ymd] => 2025-04-26 22:20:06 [RateCDR] => 1 ) [2025-04-26 22:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 19:20:06' and `end` < '2025-04-26 22:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 22:20:18] Production.INFO: count ==1894 [2025-04-26 22:20:19] Production.ERROR: pbx CDR StartTime 2025-04-26 19:20:06 - End Time 2025-04-26 22:20:06 [2025-04-26 22:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997289', 'tblTempUsageDetail_20' ) start [2025-04-26 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997289', 'tblTempUsageDetail_20' ) end [2025-04-26 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997289', 'tblTempVendorCDR_20' ) start [2025-04-26 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997289', 'tblTempVendorCDR_20' ) end [2025-04-26 22:20:19] Production.INFO: ProcessCDR(1,14997289,1,1,2) [2025-04-26 22:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997289', 'tblTempUsageDetail_20' ) start [2025-04-26 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997289', 'tblTempUsageDetail_20' ) end [2025-04-26 22:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 22:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 22:20:22] Production.INFO: ==28826== Releasing lock... [2025-04-26 22:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 22:20:22] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 19:21:05 [end_date_ymd] => 2025-04-26 22:21:05 [RateCDR] => 1 ) [2025-04-26 22:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 19:21:05' and `end` < '2025-04-26 22:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 22:21:18] Production.INFO: count ==1885 [2025-04-26 22:21:18] Production.ERROR: pbx CDR StartTime 2025-04-26 19:21:05 - End Time 2025-04-26 22:21:05 [2025-04-26 22:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997294', 'tblTempUsageDetail_20' ) start [2025-04-26 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997294', 'tblTempUsageDetail_20' ) end [2025-04-26 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997294', 'tblTempVendorCDR_20' ) start [2025-04-26 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997294', 'tblTempVendorCDR_20' ) end [2025-04-26 22:21:19] Production.INFO: ProcessCDR(1,14997294,1,1,2) [2025-04-26 22:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997294', 'tblTempUsageDetail_20' ) start [2025-04-26 22:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997294', 'tblTempUsageDetail_20' ) end [2025-04-26 22:21:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 22:21:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 22:21:24] Production.INFO: ==28940== Releasing lock... [2025-04-26 22:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 22:21:24] Production.INFO: 42.75 MB #Memory Used# [2025-04-26 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 19:22:05 [end_date_ymd] => 2025-04-26 22:22:05 [RateCDR] => 1 ) [2025-04-26 22:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 19:22:05' and `end` < '2025-04-26 22:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 22:22:18] Production.INFO: count ==1884 [2025-04-26 22:22:18] Production.ERROR: pbx CDR StartTime 2025-04-26 19:22:05 - End Time 2025-04-26 22:22:05 [2025-04-26 22:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997299', 'tblTempUsageDetail_20' ) start [2025-04-26 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997299', 'tblTempUsageDetail_20' ) end [2025-04-26 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997299', 'tblTempVendorCDR_20' ) start [2025-04-26 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997299', 'tblTempVendorCDR_20' ) end [2025-04-26 22:22:18] Production.INFO: ProcessCDR(1,14997299,1,1,2) [2025-04-26 22:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997299', 'tblTempUsageDetail_20' ) start [2025-04-26 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997299', 'tblTempUsageDetail_20' ) end [2025-04-26 22:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 22:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 22:22:21] Production.INFO: ==29010== Releasing lock... [2025-04-26 22:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 22:22:21] Production.INFO: 42.5 MB #Memory Used# [2025-04-26 22:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 19:23:06 [end_date_ymd] => 2025-04-26 22:23:06 [RateCDR] => 1 ) [2025-04-26 22:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 19:23:06' and `end` < '2025-04-26 22:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 22:23:18] Production.INFO: count ==1881 [2025-04-26 22:23:19] Production.ERROR: pbx CDR StartTime 2025-04-26 19:23:06 - End Time 2025-04-26 22:23:06 [2025-04-26 22:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997304', 'tblTempUsageDetail_20' ) start [2025-04-26 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997304', 'tblTempUsageDetail_20' ) end [2025-04-26 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997304', 'tblTempVendorCDR_20' ) start [2025-04-26 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997304', 'tblTempVendorCDR_20' ) end [2025-04-26 22:23:19] Production.INFO: ProcessCDR(1,14997304,1,1,2) [2025-04-26 22:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997304', 'tblTempUsageDetail_20' ) start [2025-04-26 22:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997304', 'tblTempUsageDetail_20' ) end [2025-04-26 22:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 22:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 22:23:24] Production.INFO: ==29083== Releasing lock... [2025-04-26 22:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 22:23:24] Production.INFO: 42.5 MB #Memory Used# [2025-04-26 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 19:24:05 [end_date_ymd] => 2025-04-26 22:24:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 19:24:05' and `end` < '2025-04-26 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-04-26 22:24:18] Production.INFO: count ==1872 [2025-04-26 22:24:19] Production.ERROR: pbx CDR StartTime 2025-04-26 19:24:05 - End Time 2025-04-26 22:24:05 [2025-04-26 22:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997309', 'tblTempUsageDetail_20' ) start [2025-04-26 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997309', 'tblTempUsageDetail_20' ) end [2025-04-26 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997309', 'tblTempVendorCDR_20' ) start [2025-04-26 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997309', 'tblTempVendorCDR_20' ) end [2025-04-26 22:24:19] Production.INFO: ProcessCDR(1,14997309,1,1,2) [2025-04-26 22:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997309', 'tblTempUsageDetail_20' ) start [2025-04-26 22:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997309', 'tblTempUsageDetail_20' ) end [2025-04-26 22:24:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 22:24:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 22:24:24] Production.INFO: ==29154== Releasing lock... [2025-04-26 22:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 22:24:24] Production.INFO: 42.5 MB #Memory Used# [2025-04-26 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 19:25:05 [end_date_ymd] => 2025-04-26 22:25:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 19:25:05' and `end` < '2025-04-26 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-04-26 22:25:18] Production.INFO: count ==1868 [2025-04-26 22:25:18] Production.ERROR: pbx CDR StartTime 2025-04-26 19:25:05 - End Time 2025-04-26 22:25:05 [2025-04-26 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997314', 'tblTempUsageDetail_20' ) start [2025-04-26 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997314', 'tblTempUsageDetail_20' ) end [2025-04-26 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997314', 'tblTempVendorCDR_20' ) start [2025-04-26 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997314', 'tblTempVendorCDR_20' ) end [2025-04-26 22:25:19] Production.INFO: ProcessCDR(1,14997314,1,1,2) [2025-04-26 22:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997314', 'tblTempUsageDetail_20' ) start [2025-04-26 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997314', 'tblTempUsageDetail_20' ) end [2025-04-26 22:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 22:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 22:25:22] Production.INFO: ==29223== Releasing lock... [2025-04-26 22:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 22:25:22] Production.INFO: 42.5 MB #Memory Used# [2025-04-26 22:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 19:26:06 [end_date_ymd] => 2025-04-26 22:26:06 [RateCDR] => 1 ) [2025-04-26 22:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 19:26:06' and `end` < '2025-04-26 22:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 22:26:18] Production.INFO: count ==1869 [2025-04-26 22:26:19] Production.ERROR: pbx CDR StartTime 2025-04-26 19:26:06 - End Time 2025-04-26 22:26:06 [2025-04-26 22:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997319', 'tblTempUsageDetail_20' ) start [2025-04-26 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997319', 'tblTempUsageDetail_20' ) end [2025-04-26 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997319', 'tblTempVendorCDR_20' ) start [2025-04-26 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997319', 'tblTempVendorCDR_20' ) end [2025-04-26 22:26:19] Production.INFO: ProcessCDR(1,14997319,1,1,2) [2025-04-26 22:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997319', 'tblTempUsageDetail_20' ) start [2025-04-26 22:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997319', 'tblTempUsageDetail_20' ) end [2025-04-26 22:26:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 22:26:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 22:26:24] Production.INFO: ==29296== Releasing lock... [2025-04-26 22:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 22:26:24] Production.INFO: 42.5 MB #Memory Used# [2025-04-26 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 19:27:05 [end_date_ymd] => 2025-04-26 22:27:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 19:27:05' and `end` < '2025-04-26 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-04-26 22:27:18] Production.INFO: count ==1866 [2025-04-26 22:27:19] Production.ERROR: pbx CDR StartTime 2025-04-26 19:27:05 - End Time 2025-04-26 22:27:05 [2025-04-26 22:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997324', 'tblTempUsageDetail_20' ) start [2025-04-26 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997324', 'tblTempUsageDetail_20' ) end [2025-04-26 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997324', 'tblTempVendorCDR_20' ) start [2025-04-26 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997324', 'tblTempVendorCDR_20' ) end [2025-04-26 22:27:19] Production.INFO: ProcessCDR(1,14997324,1,1,2) [2025-04-26 22:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997324', 'tblTempUsageDetail_20' ) start [2025-04-26 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997324', 'tblTempUsageDetail_20' ) end [2025-04-26 22:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 22:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 22:27:22] Production.INFO: ==29372== Releasing lock... [2025-04-26 22:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 22:27:22] Production.INFO: 42.25 MB #Memory Used# [2025-04-26 22:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 19:28:06 [end_date_ymd] => 2025-04-26 22:28:06 [RateCDR] => 1 ) [2025-04-26 22:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 19:28:06' and `end` < '2025-04-26 22:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 22:28:18] Production.INFO: count ==1863 [2025-04-26 22:28:19] Production.ERROR: pbx CDR StartTime 2025-04-26 19:28:06 - End Time 2025-04-26 22:28:06 [2025-04-26 22:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997329', 'tblTempUsageDetail_20' ) start [2025-04-26 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997329', 'tblTempUsageDetail_20' ) end [2025-04-26 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997329', 'tblTempVendorCDR_20' ) start [2025-04-26 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997329', 'tblTempVendorCDR_20' ) end [2025-04-26 22:28:19] Production.INFO: ProcessCDR(1,14997329,1,1,2) [2025-04-26 22:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997329', 'tblTempUsageDetail_20' ) start [2025-04-26 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997329', 'tblTempUsageDetail_20' ) end [2025-04-26 22:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 22:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 22:28:22] Production.INFO: ==29452== Releasing lock... [2025-04-26 22:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 22:28:22] Production.INFO: 42.25 MB #Memory Used# [2025-04-26 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 19:29:05 [end_date_ymd] => 2025-04-26 22:29:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 19:29:05' and `end` < '2025-04-26 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-04-26 22:29:17] Production.INFO: count ==1859 [2025-04-26 22:29:18] Production.ERROR: pbx CDR StartTime 2025-04-26 19:29:05 - End Time 2025-04-26 22:29:05 [2025-04-26 22:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997334', 'tblTempUsageDetail_20' ) start [2025-04-26 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997334', 'tblTempUsageDetail_20' ) end [2025-04-26 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997334', 'tblTempVendorCDR_20' ) start [2025-04-26 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997334', 'tblTempVendorCDR_20' ) end [2025-04-26 22:29:18] Production.INFO: ProcessCDR(1,14997334,1,1,2) [2025-04-26 22:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997334', 'tblTempUsageDetail_20' ) start [2025-04-26 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997334', 'tblTempUsageDetail_20' ) end [2025-04-26 22:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 22:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 22:29:21] Production.INFO: ==29523== Releasing lock... [2025-04-26 22:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 22:29:21] Production.INFO: 42.5 MB #Memory Used# [2025-04-26 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 19:30:06 [end_date_ymd] => 2025-04-26 22:30:06 [RateCDR] => 1 ) [2025-04-26 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-04-26 19:30:06' and `end` < '2025-04-26 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-04-26 22:30:19] Production.INFO: count ==1852 [2025-04-26 22:30:19] Production.ERROR: pbx CDR StartTime 2025-04-26 19:30:06 - End Time 2025-04-26 22:30:06 [2025-04-26 22:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997340', 'tblTempUsageDetail_20' ) start [2025-04-26 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997340', 'tblTempUsageDetail_20' ) end [2025-04-26 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997340', 'tblTempVendorCDR_20' ) start [2025-04-26 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997340', 'tblTempVendorCDR_20' ) end [2025-04-26 22:30:19] Production.INFO: ProcessCDR(1,14997340,1,1,2) [2025-04-26 22:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997340', 'tblTempUsageDetail_20' ) start [2025-04-26 22:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997340', 'tblTempUsageDetail_20' ) end [2025-04-26 22:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 22:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 22:30:23] Production.INFO: ==29599== Releasing lock... [2025-04-26 22:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 22:30:23] Production.INFO: 42 MB #Memory Used# [2025-04-26 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 19:31:05 [end_date_ymd] => 2025-04-26 22:31:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 19:31:05' and `end` < '2025-04-26 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-04-26 22:31:18] Production.INFO: count ==1849 [2025-04-26 22:31:19] Production.ERROR: pbx CDR StartTime 2025-04-26 19:31:05 - End Time 2025-04-26 22:31:05 [2025-04-26 22:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997345', 'tblTempUsageDetail_20' ) start [2025-04-26 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997345', 'tblTempUsageDetail_20' ) end [2025-04-26 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997345', 'tblTempVendorCDR_20' ) start [2025-04-26 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997345', 'tblTempVendorCDR_20' ) end [2025-04-26 22:31:19] Production.INFO: ProcessCDR(1,14997345,1,1,2) [2025-04-26 22:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997345', 'tblTempUsageDetail_20' ) start [2025-04-26 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997345', 'tblTempUsageDetail_20' ) end [2025-04-26 22:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 22:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 22:31:22] Production.INFO: ==29682== Releasing lock... [2025-04-26 22:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 22:31:22] Production.INFO: 42.25 MB #Memory Used# [2025-04-26 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 19:32:05 [end_date_ymd] => 2025-04-26 22:32:05 [RateCDR] => 1 ) [2025-04-26 22:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 19:32:05' and `end` < '2025-04-26 22:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 22:32:18] Production.INFO: count ==1850 [2025-04-26 22:32:18] Production.ERROR: pbx CDR StartTime 2025-04-26 19:32:05 - End Time 2025-04-26 22:32:05 [2025-04-26 22:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997350', 'tblTempUsageDetail_20' ) start [2025-04-26 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997350', 'tblTempUsageDetail_20' ) end [2025-04-26 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997350', 'tblTempVendorCDR_20' ) start [2025-04-26 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997350', 'tblTempVendorCDR_20' ) end [2025-04-26 22:32:19] Production.INFO: ProcessCDR(1,14997350,1,1,2) [2025-04-26 22:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997350', 'tblTempUsageDetail_20' ) start [2025-04-26 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997350', 'tblTempUsageDetail_20' ) end [2025-04-26 22:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 22:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 22:32:22] Production.INFO: ==29752== Releasing lock... [2025-04-26 22:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 22:32:22] Production.INFO: 42 MB #Memory Used# [2025-04-26 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 19:33:05 [end_date_ymd] => 2025-04-26 22:33:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 19:33:05' and `end` < '2025-04-26 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-04-26 22:33:18] Production.INFO: count ==1849 [2025-04-26 22:33:19] Production.ERROR: pbx CDR StartTime 2025-04-26 19:33:05 - End Time 2025-04-26 22:33:05 [2025-04-26 22:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997355', 'tblTempUsageDetail_20' ) start [2025-04-26 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997355', 'tblTempUsageDetail_20' ) end [2025-04-26 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997355', 'tblTempVendorCDR_20' ) start [2025-04-26 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997355', 'tblTempVendorCDR_20' ) end [2025-04-26 22:33:19] Production.INFO: ProcessCDR(1,14997355,1,1,2) [2025-04-26 22:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997355', 'tblTempUsageDetail_20' ) start [2025-04-26 22:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997355', 'tblTempUsageDetail_20' ) end [2025-04-26 22:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 22:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 22:33:23] Production.INFO: ==29827== Releasing lock... [2025-04-26 22:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 22:33:23] Production.INFO: 42.25 MB #Memory Used# [2025-04-26 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 19:34:05 [end_date_ymd] => 2025-04-26 22:34:05 [RateCDR] => 1 ) [2025-04-26 22:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 19:34:05' and `end` < '2025-04-26 22:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 22:34:18] Production.INFO: count ==1852 [2025-04-26 22:34:18] Production.ERROR: pbx CDR StartTime 2025-04-26 19:34:05 - End Time 2025-04-26 22:34:05 [2025-04-26 22:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997360', 'tblTempUsageDetail_20' ) start [2025-04-26 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997360', 'tblTempUsageDetail_20' ) end [2025-04-26 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997360', 'tblTempVendorCDR_20' ) start [2025-04-26 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997360', 'tblTempVendorCDR_20' ) end [2025-04-26 22:34:18] Production.INFO: ProcessCDR(1,14997360,1,1,2) [2025-04-26 22:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997360', 'tblTempUsageDetail_20' ) start [2025-04-26 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997360', 'tblTempUsageDetail_20' ) end [2025-04-26 22:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 22:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 22:34:22] Production.INFO: ==29900== Releasing lock... [2025-04-26 22:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 22:34:22] Production.INFO: 41.75 MB #Memory Used# [2025-04-26 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 19:35:05 [end_date_ymd] => 2025-04-26 22:35:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 19:35:05' and `end` < '2025-04-26 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-04-26 22:35:18] Production.INFO: count ==1846 [2025-04-26 22:35:19] Production.ERROR: pbx CDR StartTime 2025-04-26 19:35:05 - End Time 2025-04-26 22:35:05 [2025-04-26 22:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997365', 'tblTempUsageDetail_20' ) start [2025-04-26 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997365', 'tblTempUsageDetail_20' ) end [2025-04-26 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997365', 'tblTempVendorCDR_20' ) start [2025-04-26 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997365', 'tblTempVendorCDR_20' ) end [2025-04-26 22:35:19] Production.INFO: ProcessCDR(1,14997365,1,1,2) [2025-04-26 22:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997365', 'tblTempUsageDetail_20' ) start [2025-04-26 22:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997365', 'tblTempUsageDetail_20' ) end [2025-04-26 22:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 22:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 22:35:23] Production.INFO: ==29971== Releasing lock... [2025-04-26 22:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 22:35:23] Production.INFO: 42.25 MB #Memory Used# [2025-04-26 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 19:36:05 [end_date_ymd] => 2025-04-26 22:36:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 19:36:05' and `end` < '2025-04-26 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-04-26 22:36:18] Production.INFO: count ==1844 [2025-04-26 22:36:18] Production.ERROR: pbx CDR StartTime 2025-04-26 19:36:05 - End Time 2025-04-26 22:36:05 [2025-04-26 22:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997370', 'tblTempUsageDetail_20' ) start [2025-04-26 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997370', 'tblTempUsageDetail_20' ) end [2025-04-26 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997370', 'tblTempVendorCDR_20' ) start [2025-04-26 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997370', 'tblTempVendorCDR_20' ) end [2025-04-26 22:36:18] Production.INFO: ProcessCDR(1,14997370,1,1,2) [2025-04-26 22:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997370', 'tblTempUsageDetail_20' ) start [2025-04-26 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997370', 'tblTempUsageDetail_20' ) end [2025-04-26 22:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 22:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 22:36:22] Production.INFO: ==30084== Releasing lock... [2025-04-26 22:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 22:36:22] Production.INFO: 42.25 MB #Memory Used# [2025-04-26 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 19:37:05 [end_date_ymd] => 2025-04-26 22:37:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 19:37:05' and `end` < '2025-04-26 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-04-26 22:37:18] Production.INFO: count ==1837 [2025-04-26 22:37:19] Production.ERROR: pbx CDR StartTime 2025-04-26 19:37:05 - End Time 2025-04-26 22:37:05 [2025-04-26 22:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997375', 'tblTempUsageDetail_20' ) start [2025-04-26 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997375', 'tblTempUsageDetail_20' ) end [2025-04-26 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997375', 'tblTempVendorCDR_20' ) start [2025-04-26 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997375', 'tblTempVendorCDR_20' ) end [2025-04-26 22:37:19] Production.INFO: ProcessCDR(1,14997375,1,1,2) [2025-04-26 22:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997375', 'tblTempUsageDetail_20' ) start [2025-04-26 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997375', 'tblTempUsageDetail_20' ) end [2025-04-26 22:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 22:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 22:37:22] Production.INFO: ==30155== Releasing lock... [2025-04-26 22:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 22:37:22] Production.INFO: 41.75 MB #Memory Used# [2025-04-26 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 19:38:05 [end_date_ymd] => 2025-04-26 22:38:05 [RateCDR] => 1 ) [2025-04-26 22:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 19:38:05' and `end` < '2025-04-26 22:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 22:38:18] Production.INFO: count ==1831 [2025-04-26 22:38:18] Production.ERROR: pbx CDR StartTime 2025-04-26 19:38:05 - End Time 2025-04-26 22:38:05 [2025-04-26 22:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997380', 'tblTempUsageDetail_20' ) start [2025-04-26 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997380', 'tblTempUsageDetail_20' ) end [2025-04-26 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997380', 'tblTempVendorCDR_20' ) start [2025-04-26 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997380', 'tblTempVendorCDR_20' ) end [2025-04-26 22:38:18] Production.INFO: ProcessCDR(1,14997380,1,1,2) [2025-04-26 22:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997380', 'tblTempUsageDetail_20' ) start [2025-04-26 22:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997380', 'tblTempUsageDetail_20' ) end [2025-04-26 22:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 22:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 22:38:23] Production.INFO: ==30226== Releasing lock... [2025-04-26 22:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 22:38:23] Production.INFO: 42 MB #Memory Used# [2025-04-26 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 19:39:05 [end_date_ymd] => 2025-04-26 22:39:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 19:39:05' and `end` < '2025-04-26 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-04-26 22:39:18] Production.INFO: count ==1830 [2025-04-26 22:39:18] Production.ERROR: pbx CDR StartTime 2025-04-26 19:39:05 - End Time 2025-04-26 22:39:05 [2025-04-26 22:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997385', 'tblTempUsageDetail_20' ) start [2025-04-26 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997385', 'tblTempUsageDetail_20' ) end [2025-04-26 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997385', 'tblTempVendorCDR_20' ) start [2025-04-26 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997385', 'tblTempVendorCDR_20' ) end [2025-04-26 22:39:18] Production.INFO: ProcessCDR(1,14997385,1,1,2) [2025-04-26 22:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997385', 'tblTempUsageDetail_20' ) start [2025-04-26 22:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997385', 'tblTempUsageDetail_20' ) end [2025-04-26 22:39:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 22:39:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 22:39:23] Production.INFO: ==30298== Releasing lock... [2025-04-26 22:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 22:39:23] Production.INFO: 41.75 MB #Memory Used# [2025-04-26 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 19:40:06 [end_date_ymd] => 2025-04-26 22:40:06 [RateCDR] => 1 ) [2025-04-26 22:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 19:40:06' and `end` < '2025-04-26 22:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 22:40:19] Production.INFO: count ==1838 [2025-04-26 22:40:19] Production.ERROR: pbx CDR StartTime 2025-04-26 19:40:06 - End Time 2025-04-26 22:40:06 [2025-04-26 22:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997391', 'tblTempUsageDetail_20' ) start [2025-04-26 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997391', 'tblTempUsageDetail_20' ) end [2025-04-26 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997391', 'tblTempVendorCDR_20' ) start [2025-04-26 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997391', 'tblTempVendorCDR_20' ) end [2025-04-26 22:40:19] Production.INFO: ProcessCDR(1,14997391,1,1,2) [2025-04-26 22:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997391', 'tblTempUsageDetail_20' ) start [2025-04-26 22:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997391', 'tblTempUsageDetail_20' ) end [2025-04-26 22:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 22:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 22:40:24] Production.INFO: ==30374== Releasing lock... [2025-04-26 22:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 22:40:24] Production.INFO: 42 MB #Memory Used# [2025-04-26 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 19:41:05 [end_date_ymd] => 2025-04-26 22:41:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 19:41:05' and `end` < '2025-04-26 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-04-26 22:41:18] Production.INFO: count ==1828 [2025-04-26 22:41:18] Production.ERROR: pbx CDR StartTime 2025-04-26 19:41:05 - End Time 2025-04-26 22:41:05 [2025-04-26 22:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997396', 'tblTempUsageDetail_20' ) start [2025-04-26 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997396', 'tblTempUsageDetail_20' ) end [2025-04-26 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997396', 'tblTempVendorCDR_20' ) start [2025-04-26 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997396', 'tblTempVendorCDR_20' ) end [2025-04-26 22:41:18] Production.INFO: ProcessCDR(1,14997396,1,1,2) [2025-04-26 22:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997396', 'tblTempUsageDetail_20' ) start [2025-04-26 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997396', 'tblTempUsageDetail_20' ) end [2025-04-26 22:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 22:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 22:41:22] Production.INFO: ==30455== Releasing lock... [2025-04-26 22:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 22:41:22] Production.INFO: 42 MB #Memory Used# [2025-04-26 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 19:42:05 [end_date_ymd] => 2025-04-26 22:42:05 [RateCDR] => 1 ) [2025-04-26 22:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 19:42:05' and `end` < '2025-04-26 22:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 22:42:18] Production.INFO: count ==1835 [2025-04-26 22:42:18] Production.ERROR: pbx CDR StartTime 2025-04-26 19:42:05 - End Time 2025-04-26 22:42:05 [2025-04-26 22:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997401', 'tblTempUsageDetail_20' ) start [2025-04-26 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997401', 'tblTempUsageDetail_20' ) end [2025-04-26 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997401', 'tblTempVendorCDR_20' ) start [2025-04-26 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997401', 'tblTempVendorCDR_20' ) end [2025-04-26 22:42:18] Production.INFO: ProcessCDR(1,14997401,1,1,2) [2025-04-26 22:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997401', 'tblTempUsageDetail_20' ) start [2025-04-26 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997401', 'tblTempUsageDetail_20' ) end [2025-04-26 22:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 22:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 22:42:22] Production.INFO: ==30527== Releasing lock... [2025-04-26 22:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 22:42:22] Production.INFO: 42 MB #Memory Used# [2025-04-26 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 19:43:05 [end_date_ymd] => 2025-04-26 22:43:05 [RateCDR] => 1 ) [2025-04-26 22:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 19:43:05' and `end` < '2025-04-26 22:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 22:43:18] Production.INFO: count ==1837 [2025-04-26 22:43:18] Production.ERROR: pbx CDR StartTime 2025-04-26 19:43:05 - End Time 2025-04-26 22:43:05 [2025-04-26 22:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997406', 'tblTempUsageDetail_20' ) start [2025-04-26 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997406', 'tblTempUsageDetail_20' ) end [2025-04-26 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997406', 'tblTempVendorCDR_20' ) start [2025-04-26 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997406', 'tblTempVendorCDR_20' ) end [2025-04-26 22:43:18] Production.INFO: ProcessCDR(1,14997406,1,1,2) [2025-04-26 22:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997406', 'tblTempUsageDetail_20' ) start [2025-04-26 22:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997406', 'tblTempUsageDetail_20' ) end [2025-04-26 22:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 22:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 22:43:23] Production.INFO: ==30600== Releasing lock... [2025-04-26 22:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 22:43:23] Production.INFO: 42 MB #Memory Used# [2025-04-26 22:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 19:44:06 [end_date_ymd] => 2025-04-26 22:44:06 [RateCDR] => 1 ) [2025-04-26 22:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 19:44:06' and `end` < '2025-04-26 22:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 22:44:18] Production.INFO: count ==1835 [2025-04-26 22:44:19] Production.ERROR: pbx CDR StartTime 2025-04-26 19:44:06 - End Time 2025-04-26 22:44:06 [2025-04-26 22:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997411', 'tblTempUsageDetail_20' ) start [2025-04-26 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997411', 'tblTempUsageDetail_20' ) end [2025-04-26 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997411', 'tblTempVendorCDR_20' ) start [2025-04-26 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997411', 'tblTempVendorCDR_20' ) end [2025-04-26 22:44:19] Production.INFO: ProcessCDR(1,14997411,1,1,2) [2025-04-26 22:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997411', 'tblTempUsageDetail_20' ) start [2025-04-26 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997411', 'tblTempUsageDetail_20' ) end [2025-04-26 22:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 22:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 22:44:22] Production.INFO: ==30670== Releasing lock... [2025-04-26 22:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 22:44:22] Production.INFO: 41.75 MB #Memory Used# [2025-04-26 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 19:45:05 [end_date_ymd] => 2025-04-26 22:45:05 [RateCDR] => 1 ) [2025-04-26 22:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 19:45:05' and `end` < '2025-04-26 22:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 22:45:18] Production.INFO: count ==1828 [2025-04-26 22:45:18] Production.ERROR: pbx CDR StartTime 2025-04-26 19:45:05 - End Time 2025-04-26 22:45:05 [2025-04-26 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997416', 'tblTempUsageDetail_20' ) start [2025-04-26 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997416', 'tblTempUsageDetail_20' ) end [2025-04-26 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997416', 'tblTempVendorCDR_20' ) start [2025-04-26 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997416', 'tblTempVendorCDR_20' ) end [2025-04-26 22:45:18] Production.INFO: ProcessCDR(1,14997416,1,1,2) [2025-04-26 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997416', 'tblTempUsageDetail_20' ) start [2025-04-26 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997416', 'tblTempUsageDetail_20' ) end [2025-04-26 22:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 22:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 22:45:22] Production.INFO: ==30745== Releasing lock... [2025-04-26 22:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 22:45:22] Production.INFO: 41.75 MB #Memory Used# [2025-04-26 22:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 19:46:06 [end_date_ymd] => 2025-04-26 22:46:06 [RateCDR] => 1 ) [2025-04-26 22:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 19:46:06' and `end` < '2025-04-26 22:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 22:46:18] Production.INFO: count ==1822 [2025-04-26 22:46:19] Production.ERROR: pbx CDR StartTime 2025-04-26 19:46:06 - End Time 2025-04-26 22:46:06 [2025-04-26 22:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997421', 'tblTempUsageDetail_20' ) start [2025-04-26 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997421', 'tblTempUsageDetail_20' ) end [2025-04-26 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997421', 'tblTempVendorCDR_20' ) start [2025-04-26 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997421', 'tblTempVendorCDR_20' ) end [2025-04-26 22:46:19] Production.INFO: ProcessCDR(1,14997421,1,1,2) [2025-04-26 22:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997421', 'tblTempUsageDetail_20' ) start [2025-04-26 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997421', 'tblTempUsageDetail_20' ) end [2025-04-26 22:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 22:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 22:46:22] Production.INFO: ==30821== Releasing lock... [2025-04-26 22:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 22:46:22] Production.INFO: 42.25 MB #Memory Used# [2025-04-26 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 19:47:05 [end_date_ymd] => 2025-04-26 22:47:05 [RateCDR] => 1 ) [2025-04-26 22:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 19:47:05' and `end` < '2025-04-26 22:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 22:47:17] Production.INFO: count ==1821 [2025-04-26 22:47:18] Production.ERROR: pbx CDR StartTime 2025-04-26 19:47:05 - End Time 2025-04-26 22:47:05 [2025-04-26 22:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997426', 'tblTempUsageDetail_20' ) start [2025-04-26 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997426', 'tblTempUsageDetail_20' ) end [2025-04-26 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997426', 'tblTempVendorCDR_20' ) start [2025-04-26 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997426', 'tblTempVendorCDR_20' ) end [2025-04-26 22:47:18] Production.INFO: ProcessCDR(1,14997426,1,1,2) [2025-04-26 22:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997426', 'tblTempUsageDetail_20' ) start [2025-04-26 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997426', 'tblTempUsageDetail_20' ) end [2025-04-26 22:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 22:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 22:47:21] Production.INFO: ==30895== Releasing lock... [2025-04-26 22:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 22:47:21] Production.INFO: 41.75 MB #Memory Used# [2025-04-26 22:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 19:48:06 [end_date_ymd] => 2025-04-26 22:48:06 [RateCDR] => 1 ) [2025-04-26 22:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 19:48:06' and `end` < '2025-04-26 22:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 22:48:18] Production.INFO: count ==1821 [2025-04-26 22:48:19] Production.ERROR: pbx CDR StartTime 2025-04-26 19:48:06 - End Time 2025-04-26 22:48:06 [2025-04-26 22:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997431', 'tblTempUsageDetail_20' ) start [2025-04-26 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997431', 'tblTempUsageDetail_20' ) end [2025-04-26 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997431', 'tblTempVendorCDR_20' ) start [2025-04-26 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997431', 'tblTempVendorCDR_20' ) end [2025-04-26 22:48:19] Production.INFO: ProcessCDR(1,14997431,1,1,2) [2025-04-26 22:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997431', 'tblTempUsageDetail_20' ) start [2025-04-26 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997431', 'tblTempUsageDetail_20' ) end [2025-04-26 22:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 22:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 22:48:22] Production.INFO: ==30967== Releasing lock... [2025-04-26 22:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 22:48:22] Production.INFO: 41.75 MB #Memory Used# [2025-04-26 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 19:49:05 [end_date_ymd] => 2025-04-26 22:49:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 19:49:05' and `end` < '2025-04-26 22:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 22:49:18] Production.INFO: count ==1821 [2025-04-26 22:49:18] Production.ERROR: pbx CDR StartTime 2025-04-26 19:49:05 - End Time 2025-04-26 22:49:05 [2025-04-26 22:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997436', 'tblTempUsageDetail_20' ) start [2025-04-26 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997436', 'tblTempUsageDetail_20' ) end [2025-04-26 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997436', 'tblTempVendorCDR_20' ) start [2025-04-26 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997436', 'tblTempVendorCDR_20' ) end [2025-04-26 22:49:19] Production.INFO: ProcessCDR(1,14997436,1,1,2) [2025-04-26 22:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997436', 'tblTempUsageDetail_20' ) start [2025-04-26 22:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997436', 'tblTempUsageDetail_20' ) end [2025-04-26 22:49:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 22:49:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 22:49:24] Production.INFO: ==31040== Releasing lock... [2025-04-26 22:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 22:49:24] Production.INFO: 41.75 MB #Memory Used# [2025-04-26 22:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 19:50:07 [end_date_ymd] => 2025-04-26 22:50:07 [RateCDR] => 1 ) [2025-04-26 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-04-26 19:50:07' and `end` < '2025-04-26 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-04-26 22:50:19] Production.INFO: count ==1815 [2025-04-26 22:50:20] Production.ERROR: pbx CDR StartTime 2025-04-26 19:50:07 - End Time 2025-04-26 22:50:07 [2025-04-26 22:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 22:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997442', 'tblTempUsageDetail_20' ) start [2025-04-26 22:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997442', 'tblTempUsageDetail_20' ) end [2025-04-26 22:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997442', 'tblTempVendorCDR_20' ) start [2025-04-26 22:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997442', 'tblTempVendorCDR_20' ) end [2025-04-26 22:50:20] Production.INFO: ProcessCDR(1,14997442,1,1,2) [2025-04-26 22:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997442', 'tblTempUsageDetail_20' ) start [2025-04-26 22:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997442', 'tblTempUsageDetail_20' ) end [2025-04-26 22:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 22:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 22:50:23] Production.INFO: ==31118== Releasing lock... [2025-04-26 22:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 22:50:23] Production.INFO: 41.5 MB #Memory Used# [2025-04-26 22:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 19:51:04 [end_date_ymd] => 2025-04-26 22:51:04 [RateCDR] => 1 ) [2025-04-26 22:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 19:51:04' and `end` < '2025-04-26 22:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 22:51:17] Production.INFO: count ==1809 [2025-04-26 22:51:18] Production.ERROR: pbx CDR StartTime 2025-04-26 19:51:04 - End Time 2025-04-26 22:51:04 [2025-04-26 22:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997447', 'tblTempUsageDetail_20' ) start [2025-04-26 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997447', 'tblTempUsageDetail_20' ) end [2025-04-26 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997447', 'tblTempVendorCDR_20' ) start [2025-04-26 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997447', 'tblTempVendorCDR_20' ) end [2025-04-26 22:51:18] Production.INFO: ProcessCDR(1,14997447,1,1,2) [2025-04-26 22:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997447', 'tblTempUsageDetail_20' ) start [2025-04-26 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997447', 'tblTempUsageDetail_20' ) end [2025-04-26 22:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 22:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 22:51:21] Production.INFO: ==31190== Releasing lock... [2025-04-26 22:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 22:51:21] Production.INFO: 42.25 MB #Memory Used# [2025-04-26 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 19:52:05 [end_date_ymd] => 2025-04-26 22:52:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 19:52:05' and `end` < '2025-04-26 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-04-26 22:52:18] Production.INFO: count ==1809 [2025-04-26 22:52:19] Production.ERROR: pbx CDR StartTime 2025-04-26 19:52:05 - End Time 2025-04-26 22:52:05 [2025-04-26 22:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997452', 'tblTempUsageDetail_20' ) start [2025-04-26 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997452', 'tblTempUsageDetail_20' ) end [2025-04-26 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997452', 'tblTempVendorCDR_20' ) start [2025-04-26 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997452', 'tblTempVendorCDR_20' ) end [2025-04-26 22:52:19] Production.INFO: ProcessCDR(1,14997452,1,1,2) [2025-04-26 22:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997452', 'tblTempUsageDetail_20' ) start [2025-04-26 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997452', 'tblTempUsageDetail_20' ) end [2025-04-26 22:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 22:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 22:52:22] Production.INFO: ==31300== Releasing lock... [2025-04-26 22:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 22:52:22] Production.INFO: 42.25 MB #Memory Used# [2025-04-26 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 19:53:05 [end_date_ymd] => 2025-04-26 22:53:05 [RateCDR] => 1 ) [2025-04-26 22:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 19:53:05' and `end` < '2025-04-26 22:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 22:53:18] Production.INFO: count ==1805 [2025-04-26 22:53:18] Production.ERROR: pbx CDR StartTime 2025-04-26 19:53:05 - End Time 2025-04-26 22:53:05 [2025-04-26 22:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997457', 'tblTempUsageDetail_20' ) start [2025-04-26 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997457', 'tblTempUsageDetail_20' ) end [2025-04-26 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997457', 'tblTempVendorCDR_20' ) start [2025-04-26 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997457', 'tblTempVendorCDR_20' ) end [2025-04-26 22:53:18] Production.INFO: ProcessCDR(1,14997457,1,1,2) [2025-04-26 22:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997457', 'tblTempUsageDetail_20' ) start [2025-04-26 22:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997457', 'tblTempUsageDetail_20' ) end [2025-04-26 22:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 22:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 22:53:21] Production.INFO: ==31371== Releasing lock... [2025-04-26 22:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 22:53:21] Production.INFO: 42.25 MB #Memory Used# [2025-04-26 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 19:54:05 [end_date_ymd] => 2025-04-26 22:54:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 19:54:05' and `end` < '2025-04-26 22:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 22:54:18] Production.INFO: count ==1797 [2025-04-26 22:54:19] Production.ERROR: pbx CDR StartTime 2025-04-26 19:54:05 - End Time 2025-04-26 22:54:05 [2025-04-26 22:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997462', 'tblTempUsageDetail_20' ) start [2025-04-26 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997462', 'tblTempUsageDetail_20' ) end [2025-04-26 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997462', 'tblTempVendorCDR_20' ) start [2025-04-26 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997462', 'tblTempVendorCDR_20' ) end [2025-04-26 22:54:19] Production.INFO: ProcessCDR(1,14997462,1,1,2) [2025-04-26 22:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997462', 'tblTempUsageDetail_20' ) start [2025-04-26 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997462', 'tblTempUsageDetail_20' ) end [2025-04-26 22:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 22:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 22:54:22] Production.INFO: ==31446== Releasing lock... [2025-04-26 22:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 22:54:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-26 22:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 19:55:04 [end_date_ymd] => 2025-04-26 22:55:04 [RateCDR] => 1 ) [2025-04-26 22:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 19:55:04' and `end` < '2025-04-26 22:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 22:55:17] Production.INFO: count ==1795 [2025-04-26 22:55:17] Production.ERROR: pbx CDR StartTime 2025-04-26 19:55:04 - End Time 2025-04-26 22:55:04 [2025-04-26 22:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997467', 'tblTempUsageDetail_20' ) start [2025-04-26 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997467', 'tblTempUsageDetail_20' ) end [2025-04-26 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997467', 'tblTempVendorCDR_20' ) start [2025-04-26 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997467', 'tblTempVendorCDR_20' ) end [2025-04-26 22:55:17] Production.INFO: ProcessCDR(1,14997467,1,1,2) [2025-04-26 22:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997467', 'tblTempUsageDetail_20' ) start [2025-04-26 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997467', 'tblTempUsageDetail_20' ) end [2025-04-26 22:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 22:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 22:55:21] Production.INFO: ==31525== Releasing lock... [2025-04-26 22:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 22:55:21] Production.INFO: 41.5 MB #Memory Used# [2025-04-26 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 19:56:05 [end_date_ymd] => 2025-04-26 22:56:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 19:56:05' and `end` < '2025-04-26 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-04-26 22:56:18] Production.INFO: count ==1790 [2025-04-26 22:56:18] Production.ERROR: pbx CDR StartTime 2025-04-26 19:56:05 - End Time 2025-04-26 22:56:05 [2025-04-26 22:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997472', 'tblTempUsageDetail_20' ) start [2025-04-26 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997472', 'tblTempUsageDetail_20' ) end [2025-04-26 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997472', 'tblTempVendorCDR_20' ) start [2025-04-26 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997472', 'tblTempVendorCDR_20' ) end [2025-04-26 22:56:18] Production.INFO: ProcessCDR(1,14997472,1,1,2) [2025-04-26 22:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997472', 'tblTempUsageDetail_20' ) start [2025-04-26 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997472', 'tblTempUsageDetail_20' ) end [2025-04-26 22:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 22:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 22:56:22] Production.INFO: ==31596== Releasing lock... [2025-04-26 22:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 22:56:22] Production.INFO: 41.75 MB #Memory Used# [2025-04-26 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 19:57:05 [end_date_ymd] => 2025-04-26 22:57:05 [RateCDR] => 1 ) [2025-04-26 22:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 19:57:05' and `end` < '2025-04-26 22:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 22:57:17] Production.INFO: count ==1786 [2025-04-26 22:57:18] Production.ERROR: pbx CDR StartTime 2025-04-26 19:57:05 - End Time 2025-04-26 22:57:05 [2025-04-26 22:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997477', 'tblTempUsageDetail_20' ) start [2025-04-26 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997477', 'tblTempUsageDetail_20' ) end [2025-04-26 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997477', 'tblTempVendorCDR_20' ) start [2025-04-26 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997477', 'tblTempVendorCDR_20' ) end [2025-04-26 22:57:18] Production.INFO: ProcessCDR(1,14997477,1,1,2) [2025-04-26 22:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997477', 'tblTempUsageDetail_20' ) start [2025-04-26 22:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997477', 'tblTempUsageDetail_20' ) end [2025-04-26 22:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 22:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 22:57:23] Production.INFO: ==31667== Releasing lock... [2025-04-26 22:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 22:57:23] Production.INFO: 41.5 MB #Memory Used# [2025-04-26 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 19:58:05 [end_date_ymd] => 2025-04-26 22:58:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 19:58:05' and `end` < '2025-04-26 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-04-26 22:58:18] Production.INFO: count ==1783 [2025-04-26 22:58:19] Production.ERROR: pbx CDR StartTime 2025-04-26 19:58:05 - End Time 2025-04-26 22:58:05 [2025-04-26 22:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997482', 'tblTempUsageDetail_20' ) start [2025-04-26 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997482', 'tblTempUsageDetail_20' ) end [2025-04-26 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997482', 'tblTempVendorCDR_20' ) start [2025-04-26 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997482', 'tblTempVendorCDR_20' ) end [2025-04-26 22:58:19] Production.INFO: ProcessCDR(1,14997482,1,1,2) [2025-04-26 22:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997482', 'tblTempUsageDetail_20' ) start [2025-04-26 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997482', 'tblTempUsageDetail_20' ) end [2025-04-26 22:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 22:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 22:58:22] Production.INFO: ==31743== Releasing lock... [2025-04-26 22:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 22:58:22] Production.INFO: 41.75 MB #Memory Used# [2025-04-26 22:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 19:59:06 [end_date_ymd] => 2025-04-26 22:59:06 [RateCDR] => 1 ) [2025-04-26 22:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 19:59:06' and `end` < '2025-04-26 22:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 22:59:18] Production.INFO: count ==1779 [2025-04-26 22:59:19] Production.ERROR: pbx CDR StartTime 2025-04-26 19:59:06 - End Time 2025-04-26 22:59:06 [2025-04-26 22:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997487', 'tblTempUsageDetail_20' ) start [2025-04-26 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997487', 'tblTempUsageDetail_20' ) end [2025-04-26 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997487', 'tblTempVendorCDR_20' ) start [2025-04-26 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997487', 'tblTempVendorCDR_20' ) end [2025-04-26 22:59:19] Production.INFO: ProcessCDR(1,14997487,1,1,2) [2025-04-26 22:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 22:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 22:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997487', 'tblTempUsageDetail_20' ) start [2025-04-26 22:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997487', 'tblTempUsageDetail_20' ) end [2025-04-26 22:59:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 22:59:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 22:59:24] Production.INFO: ==31817== Releasing lock... [2025-04-26 22:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 22:59:24] Production.INFO: 41.5 MB #Memory Used# [2025-04-26 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 20:00:06 [end_date_ymd] => 2025-04-26 23:00:06 [RateCDR] => 1 ) [2025-04-26 23:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 20:00:06' and `end` < '2025-04-26 23:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 23:00:18] Production.INFO: count ==1776 [2025-04-26 23:00:19] Production.ERROR: pbx CDR StartTime 2025-04-26 20:00:06 - End Time 2025-04-26 23:00:06 [2025-04-26 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997493', 'tblTempUsageDetail_20' ) start [2025-04-26 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997493', 'tblTempUsageDetail_20' ) end [2025-04-26 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997493', 'tblTempVendorCDR_20' ) start [2025-04-26 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997493', 'tblTempVendorCDR_20' ) end [2025-04-26 23:00:19] Production.INFO: ProcessCDR(1,14997493,1,1,2) [2025-04-26 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997493', 'tblTempUsageDetail_20' ) start [2025-04-26 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997493', 'tblTempUsageDetail_20' ) end [2025-04-26 23:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 23:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 23:00:22] Production.INFO: ==31892== Releasing lock... [2025-04-26 23:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 23:00:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-26 23:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 20:01:06 [end_date_ymd] => 2025-04-26 23:01:06 [RateCDR] => 1 ) [2025-04-26 23:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 20:01:06' and `end` < '2025-04-26 23:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 23:01:18] Production.INFO: count ==1751 [2025-04-26 23:01:19] Production.ERROR: pbx CDR StartTime 2025-04-26 20:01:06 - End Time 2025-04-26 23:01:06 [2025-04-26 23:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997498', 'tblTempUsageDetail_20' ) start [2025-04-26 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997498', 'tblTempUsageDetail_20' ) end [2025-04-26 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997498', 'tblTempVendorCDR_20' ) start [2025-04-26 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997498', 'tblTempVendorCDR_20' ) end [2025-04-26 23:01:19] Production.INFO: ProcessCDR(1,14997498,1,1,2) [2025-04-26 23:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997498', 'tblTempUsageDetail_20' ) start [2025-04-26 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997498', 'tblTempUsageDetail_20' ) end [2025-04-26 23:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 23:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 23:01:22] Production.INFO: ==32058== Releasing lock... [2025-04-26 23:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 23:01:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-26 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 20:02:05 [end_date_ymd] => 2025-04-26 23:02:05 [RateCDR] => 1 ) [2025-04-26 23:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 20:02:05' and `end` < '2025-04-26 23:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 23:02:18] Production.INFO: count ==1752 [2025-04-26 23:02:18] Production.ERROR: pbx CDR StartTime 2025-04-26 20:02:05 - End Time 2025-04-26 23:02:05 [2025-04-26 23:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997503', 'tblTempUsageDetail_20' ) start [2025-04-26 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997503', 'tblTempUsageDetail_20' ) end [2025-04-26 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997503', 'tblTempVendorCDR_20' ) start [2025-04-26 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997503', 'tblTempVendorCDR_20' ) end [2025-04-26 23:02:18] Production.INFO: ProcessCDR(1,14997503,1,1,2) [2025-04-26 23:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997503', 'tblTempUsageDetail_20' ) start [2025-04-26 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997503', 'tblTempUsageDetail_20' ) end [2025-04-26 23:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 23:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 23:02:22] Production.INFO: ==32131== Releasing lock... [2025-04-26 23:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 23:02:22] Production.INFO: 41.75 MB #Memory Used# [2025-04-26 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 20:03:05 [end_date_ymd] => 2025-04-26 23:03:05 [RateCDR] => 1 ) [2025-04-26 23:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 20:03:05' and `end` < '2025-04-26 23:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 23:03:18] Production.INFO: count ==1750 [2025-04-26 23:03:19] Production.ERROR: pbx CDR StartTime 2025-04-26 20:03:05 - End Time 2025-04-26 23:03:05 [2025-04-26 23:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997508', 'tblTempUsageDetail_20' ) start [2025-04-26 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997508', 'tblTempUsageDetail_20' ) end [2025-04-26 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997508', 'tblTempVendorCDR_20' ) start [2025-04-26 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997508', 'tblTempVendorCDR_20' ) end [2025-04-26 23:03:19] Production.INFO: ProcessCDR(1,14997508,1,1,2) [2025-04-26 23:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997508', 'tblTempUsageDetail_20' ) start [2025-04-26 23:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997508', 'tblTempUsageDetail_20' ) end [2025-04-26 23:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 23:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 23:03:23] Production.INFO: ==32207== Releasing lock... [2025-04-26 23:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 23:03:23] Production.INFO: 41.5 MB #Memory Used# [2025-04-26 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 20:04:05 [end_date_ymd] => 2025-04-26 23:04:05 [RateCDR] => 1 ) [2025-04-26 23:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 20:04:05' and `end` < '2025-04-26 23:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 23:04:18] Production.INFO: count ==1749 [2025-04-26 23:04:18] Production.ERROR: pbx CDR StartTime 2025-04-26 20:04:05 - End Time 2025-04-26 23:04:05 [2025-04-26 23:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997513', 'tblTempUsageDetail_20' ) start [2025-04-26 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997513', 'tblTempUsageDetail_20' ) end [2025-04-26 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997513', 'tblTempVendorCDR_20' ) start [2025-04-26 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997513', 'tblTempVendorCDR_20' ) end [2025-04-26 23:04:18] Production.INFO: ProcessCDR(1,14997513,1,1,2) [2025-04-26 23:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997513', 'tblTempUsageDetail_20' ) start [2025-04-26 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997513', 'tblTempUsageDetail_20' ) end [2025-04-26 23:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 23:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 23:04:21] Production.INFO: ==32282== Releasing lock... [2025-04-26 23:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 23:04:21] Production.INFO: 41.25 MB #Memory Used# [2025-04-26 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 20:05:05 [end_date_ymd] => 2025-04-26 23:05:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 20:05:05' and `end` < '2025-04-26 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-04-26 23:05:17] Production.INFO: count ==1745 [2025-04-26 23:05:18] Production.ERROR: pbx CDR StartTime 2025-04-26 20:05:05 - End Time 2025-04-26 23:05:05 [2025-04-26 23:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997518', 'tblTempUsageDetail_20' ) start [2025-04-26 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997518', 'tblTempUsageDetail_20' ) end [2025-04-26 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997518', 'tblTempVendorCDR_20' ) start [2025-04-26 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997518', 'tblTempVendorCDR_20' ) end [2025-04-26 23:05:18] Production.INFO: ProcessCDR(1,14997518,1,1,2) [2025-04-26 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997518', 'tblTempUsageDetail_20' ) start [2025-04-26 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997518', 'tblTempUsageDetail_20' ) end [2025-04-26 23:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 23:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 23:05:21] Production.INFO: ==32432== Releasing lock... [2025-04-26 23:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 23:05:21] Production.INFO: 41.25 MB #Memory Used# [2025-04-26 23:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 20:06:06 [end_date_ymd] => 2025-04-26 23:06:06 [RateCDR] => 1 ) [2025-04-26 23:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 20:06:06' and `end` < '2025-04-26 23:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 23:06:19] Production.INFO: count ==1741 [2025-04-26 23:06:19] Production.ERROR: pbx CDR StartTime 2025-04-26 20:06:06 - End Time 2025-04-26 23:06:06 [2025-04-26 23:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997523', 'tblTempUsageDetail_20' ) start [2025-04-26 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997523', 'tblTempUsageDetail_20' ) end [2025-04-26 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997523', 'tblTempVendorCDR_20' ) start [2025-04-26 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997523', 'tblTempVendorCDR_20' ) end [2025-04-26 23:06:19] Production.INFO: ProcessCDR(1,14997523,1,1,2) [2025-04-26 23:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997523', 'tblTempUsageDetail_20' ) start [2025-04-26 23:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997523', 'tblTempUsageDetail_20' ) end [2025-04-26 23:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 23:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 23:06:22] Production.INFO: ==32503== Releasing lock... [2025-04-26 23:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 23:06:22] Production.INFO: 41.75 MB #Memory Used# [2025-04-26 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 20:07:05 [end_date_ymd] => 2025-04-26 23:07:05 [RateCDR] => 1 ) [2025-04-26 23:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 20:07:05' and `end` < '2025-04-26 23:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 23:07:18] Production.INFO: count ==1741 [2025-04-26 23:07:18] Production.ERROR: pbx CDR StartTime 2025-04-26 20:07:05 - End Time 2025-04-26 23:07:05 [2025-04-26 23:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997528', 'tblTempUsageDetail_20' ) start [2025-04-26 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997528', 'tblTempUsageDetail_20' ) end [2025-04-26 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997528', 'tblTempVendorCDR_20' ) start [2025-04-26 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997528', 'tblTempVendorCDR_20' ) end [2025-04-26 23:07:18] Production.INFO: ProcessCDR(1,14997528,1,1,2) [2025-04-26 23:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997528', 'tblTempUsageDetail_20' ) start [2025-04-26 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997528', 'tblTempUsageDetail_20' ) end [2025-04-26 23:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 23:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 23:07:22] Production.INFO: ==32610== Releasing lock... [2025-04-26 23:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 23:07:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-26 23:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 20:08:06 [end_date_ymd] => 2025-04-26 23:08:06 [RateCDR] => 1 ) [2025-04-26 23:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 20:08:06' and `end` < '2025-04-26 23:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 23:08:18] Production.INFO: count ==1734 [2025-04-26 23:08:19] Production.ERROR: pbx CDR StartTime 2025-04-26 20:08:06 - End Time 2025-04-26 23:08:06 [2025-04-26 23:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997533', 'tblTempUsageDetail_20' ) start [2025-04-26 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997533', 'tblTempUsageDetail_20' ) end [2025-04-26 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997533', 'tblTempVendorCDR_20' ) start [2025-04-26 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997533', 'tblTempVendorCDR_20' ) end [2025-04-26 23:08:19] Production.INFO: ProcessCDR(1,14997533,1,1,2) [2025-04-26 23:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997533', 'tblTempUsageDetail_20' ) start [2025-04-26 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997533', 'tblTempUsageDetail_20' ) end [2025-04-26 23:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 23:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 23:08:22] Production.INFO: ==303== Releasing lock... [2025-04-26 23:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 23:08:22] Production.INFO: 41.75 MB #Memory Used# [2025-04-26 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 20:09:05 [end_date_ymd] => 2025-04-26 23:09:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 20:09:05' and `end` < '2025-04-26 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-04-26 23:09:18] Production.INFO: count ==1723 [2025-04-26 23:09:19] Production.ERROR: pbx CDR StartTime 2025-04-26 20:09:05 - End Time 2025-04-26 23:09:05 [2025-04-26 23:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997538', 'tblTempUsageDetail_20' ) start [2025-04-26 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997538', 'tblTempUsageDetail_20' ) end [2025-04-26 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997538', 'tblTempVendorCDR_20' ) start [2025-04-26 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997538', 'tblTempVendorCDR_20' ) end [2025-04-26 23:09:19] Production.INFO: ProcessCDR(1,14997538,1,1,2) [2025-04-26 23:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997538', 'tblTempUsageDetail_20' ) start [2025-04-26 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997538', 'tblTempUsageDetail_20' ) end [2025-04-26 23:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 23:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 23:09:22] Production.INFO: ==397== Releasing lock... [2025-04-26 23:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 23:09:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-26 23:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 20:10:05 [end_date_ymd] => 2025-04-26 23:10:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 20:10:05' and `end` < '2025-04-26 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-04-26 23:10:18] Production.INFO: count ==1725 [2025-04-26 23:10:19] Production.ERROR: pbx CDR StartTime 2025-04-26 20:10:05 - End Time 2025-04-26 23:10:05 [2025-04-26 23:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997544', 'tblTempUsageDetail_20' ) start [2025-04-26 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997544', 'tblTempUsageDetail_20' ) end [2025-04-26 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997544', 'tblTempVendorCDR_20' ) start [2025-04-26 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997544', 'tblTempVendorCDR_20' ) end [2025-04-26 23:10:19] Production.INFO: ProcessCDR(1,14997544,1,1,2) [2025-04-26 23:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997544', 'tblTempUsageDetail_20' ) start [2025-04-26 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997544', 'tblTempUsageDetail_20' ) end [2025-04-26 23:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 23:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 23:10:22] Production.INFO: ==469== Releasing lock... [2025-04-26 23:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 23:10:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-26 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 20:11:05 [end_date_ymd] => 2025-04-26 23:11:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 20:11:05' and `end` < '2025-04-26 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-04-26 23:11:18] Production.INFO: count ==1662 [2025-04-26 23:11:18] Production.ERROR: pbx CDR StartTime 2025-04-26 20:11:05 - End Time 2025-04-26 23:11:05 [2025-04-26 23:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997549', 'tblTempUsageDetail_20' ) start [2025-04-26 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997549', 'tblTempUsageDetail_20' ) end [2025-04-26 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997549', 'tblTempVendorCDR_20' ) start [2025-04-26 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997549', 'tblTempVendorCDR_20' ) end [2025-04-26 23:11:18] Production.INFO: ProcessCDR(1,14997549,1,1,2) [2025-04-26 23:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997549', 'tblTempUsageDetail_20' ) start [2025-04-26 23:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997549', 'tblTempUsageDetail_20' ) end [2025-04-26 23:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 23:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 23:11:23] Production.INFO: ==544== Releasing lock... [2025-04-26 23:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 23:11:23] Production.INFO: 40.75 MB #Memory Used# [2025-04-26 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 20:12:05 [end_date_ymd] => 2025-04-26 23:12:05 [RateCDR] => 1 ) [2025-04-26 23:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 20:12:05' and `end` < '2025-04-26 23:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 23:12:18] Production.INFO: count ==1655 [2025-04-26 23:12:19] Production.ERROR: pbx CDR StartTime 2025-04-26 20:12:05 - End Time 2025-04-26 23:12:05 [2025-04-26 23:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997554', 'tblTempUsageDetail_20' ) start [2025-04-26 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997554', 'tblTempUsageDetail_20' ) end [2025-04-26 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997554', 'tblTempVendorCDR_20' ) start [2025-04-26 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997554', 'tblTempVendorCDR_20' ) end [2025-04-26 23:12:19] Production.INFO: ProcessCDR(1,14997554,1,1,2) [2025-04-26 23:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997554', 'tblTempUsageDetail_20' ) start [2025-04-26 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997554', 'tblTempUsageDetail_20' ) end [2025-04-26 23:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 23:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 23:12:22] Production.INFO: ==727== Releasing lock... [2025-04-26 23:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 23:12:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-26 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 20:13:05 [end_date_ymd] => 2025-04-26 23:13:05 [RateCDR] => 1 ) [2025-04-26 23:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 20:13:05' and `end` < '2025-04-26 23:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 23:13:17] Production.INFO: count ==1647 [2025-04-26 23:13:18] Production.ERROR: pbx CDR StartTime 2025-04-26 20:13:05 - End Time 2025-04-26 23:13:05 [2025-04-26 23:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997559', 'tblTempUsageDetail_20' ) start [2025-04-26 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997559', 'tblTempUsageDetail_20' ) end [2025-04-26 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997559', 'tblTempVendorCDR_20' ) start [2025-04-26 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997559', 'tblTempVendorCDR_20' ) end [2025-04-26 23:13:18] Production.INFO: ProcessCDR(1,14997559,1,1,2) [2025-04-26 23:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997559', 'tblTempUsageDetail_20' ) start [2025-04-26 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997559', 'tblTempUsageDetail_20' ) end [2025-04-26 23:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 23:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 23:13:21] Production.INFO: ==806== Releasing lock... [2025-04-26 23:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 23:13:21] Production.INFO: 40.75 MB #Memory Used# [2025-04-26 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 20:14:05 [end_date_ymd] => 2025-04-26 23:14:05 [RateCDR] => 1 ) [2025-04-26 23:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 20:14:05' and `end` < '2025-04-26 23:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 23:14:18] Production.INFO: count ==1641 [2025-04-26 23:14:19] Production.ERROR: pbx CDR StartTime 2025-04-26 20:14:05 - End Time 2025-04-26 23:14:05 [2025-04-26 23:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997564', 'tblTempUsageDetail_20' ) start [2025-04-26 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997564', 'tblTempUsageDetail_20' ) end [2025-04-26 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997564', 'tblTempVendorCDR_20' ) start [2025-04-26 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997564', 'tblTempVendorCDR_20' ) end [2025-04-26 23:14:19] Production.INFO: ProcessCDR(1,14997564,1,1,2) [2025-04-26 23:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997564', 'tblTempUsageDetail_20' ) start [2025-04-26 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997564', 'tblTempUsageDetail_20' ) end [2025-04-26 23:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 23:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 23:14:22] Production.INFO: ==878== Releasing lock... [2025-04-26 23:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 23:14:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-26 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 20:15:05 [end_date_ymd] => 2025-04-26 23:15:05 [RateCDR] => 1 ) [2025-04-26 23:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 20:15:05' and `end` < '2025-04-26 23:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 23:15:17] Production.INFO: count ==1640 [2025-04-26 23:15:18] Production.ERROR: pbx CDR StartTime 2025-04-26 20:15:05 - End Time 2025-04-26 23:15:05 [2025-04-26 23:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997569', 'tblTempUsageDetail_20' ) start [2025-04-26 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997569', 'tblTempUsageDetail_20' ) end [2025-04-26 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997569', 'tblTempVendorCDR_20' ) start [2025-04-26 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997569', 'tblTempVendorCDR_20' ) end [2025-04-26 23:15:18] Production.INFO: ProcessCDR(1,14997569,1,1,2) [2025-04-26 23:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997569', 'tblTempUsageDetail_20' ) start [2025-04-26 23:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997569', 'tblTempUsageDetail_20' ) end [2025-04-26 23:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 23:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 23:15:23] Production.INFO: ==1030== Releasing lock... [2025-04-26 23:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 23:15:23] Production.INFO: 40.5 MB #Memory Used# [2025-04-26 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 20:16:05 [end_date_ymd] => 2025-04-26 23:16:05 [RateCDR] => 1 ) [2025-04-26 23:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 20:16:05' and `end` < '2025-04-26 23:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 23:16:18] Production.INFO: count ==1642 [2025-04-26 23:16:18] Production.ERROR: pbx CDR StartTime 2025-04-26 20:16:05 - End Time 2025-04-26 23:16:05 [2025-04-26 23:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997574', 'tblTempUsageDetail_20' ) start [2025-04-26 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997574', 'tblTempUsageDetail_20' ) end [2025-04-26 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997574', 'tblTempVendorCDR_20' ) start [2025-04-26 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997574', 'tblTempVendorCDR_20' ) end [2025-04-26 23:16:18] Production.INFO: ProcessCDR(1,14997574,1,1,2) [2025-04-26 23:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997574', 'tblTempUsageDetail_20' ) start [2025-04-26 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997574', 'tblTempUsageDetail_20' ) end [2025-04-26 23:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 23:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 23:16:22] Production.INFO: ==1101== Releasing lock... [2025-04-26 23:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 23:16:22] Production.INFO: 41 MB #Memory Used# [2025-04-26 23:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 20:17:04 [end_date_ymd] => 2025-04-26 23:17:04 [RateCDR] => 1 ) [2025-04-26 23:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 20:17:04' and `end` < '2025-04-26 23:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 23:17:17] Production.INFO: count ==1644 [2025-04-26 23:17:18] Production.ERROR: pbx CDR StartTime 2025-04-26 20:17:04 - End Time 2025-04-26 23:17:04 [2025-04-26 23:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997579', 'tblTempUsageDetail_20' ) start [2025-04-26 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997579', 'tblTempUsageDetail_20' ) end [2025-04-26 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997579', 'tblTempVendorCDR_20' ) start [2025-04-26 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997579', 'tblTempVendorCDR_20' ) end [2025-04-26 23:17:18] Production.INFO: ProcessCDR(1,14997579,1,1,2) [2025-04-26 23:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997579', 'tblTempUsageDetail_20' ) start [2025-04-26 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997579', 'tblTempUsageDetail_20' ) end [2025-04-26 23:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 23:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 23:17:21] Production.INFO: ==1181== Releasing lock... [2025-04-26 23:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 23:17:21] Production.INFO: 40.75 MB #Memory Used# [2025-04-26 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 20:18:05 [end_date_ymd] => 2025-04-26 23:18:05 [RateCDR] => 1 ) [2025-04-26 23:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 20:18:05' and `end` < '2025-04-26 23:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 23:18:17] Production.INFO: count ==1647 [2025-04-26 23:18:18] Production.ERROR: pbx CDR StartTime 2025-04-26 20:18:05 - End Time 2025-04-26 23:18:05 [2025-04-26 23:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997584', 'tblTempUsageDetail_20' ) start [2025-04-26 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997584', 'tblTempUsageDetail_20' ) end [2025-04-26 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997584', 'tblTempVendorCDR_20' ) start [2025-04-26 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997584', 'tblTempVendorCDR_20' ) end [2025-04-26 23:18:18] Production.INFO: ProcessCDR(1,14997584,1,1,2) [2025-04-26 23:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997584', 'tblTempUsageDetail_20' ) start [2025-04-26 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997584', 'tblTempUsageDetail_20' ) end [2025-04-26 23:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 23:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 23:18:21] Production.INFO: ==1267== Releasing lock... [2025-04-26 23:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 23:18:21] Production.INFO: 40.75 MB #Memory Used# [2025-04-26 23:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 20:19:06 [end_date_ymd] => 2025-04-26 23:19:06 [RateCDR] => 1 ) [2025-04-26 23:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 20:19:06' and `end` < '2025-04-26 23:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 23:19:19] Production.INFO: count ==1646 [2025-04-26 23:19:19] Production.ERROR: pbx CDR StartTime 2025-04-26 20:19:06 - End Time 2025-04-26 23:19:06 [2025-04-26 23:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997589', 'tblTempUsageDetail_20' ) start [2025-04-26 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997589', 'tblTempUsageDetail_20' ) end [2025-04-26 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997589', 'tblTempVendorCDR_20' ) start [2025-04-26 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997589', 'tblTempVendorCDR_20' ) end [2025-04-26 23:19:19] Production.INFO: ProcessCDR(1,14997589,1,1,2) [2025-04-26 23:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997589', 'tblTempUsageDetail_20' ) start [2025-04-26 23:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997589', 'tblTempUsageDetail_20' ) end [2025-04-26 23:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 23:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 23:19:23] Production.INFO: ==1345== Releasing lock... [2025-04-26 23:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 23:19:23] Production.INFO: 40.5 MB #Memory Used# [2025-04-26 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 20:20:06 [end_date_ymd] => 2025-04-26 23:20:06 [RateCDR] => 1 ) [2025-04-26 23:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 20:20:06' and `end` < '2025-04-26 23:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 23:20:19] Production.INFO: count ==1647 [2025-04-26 23:20:19] Production.ERROR: pbx CDR StartTime 2025-04-26 20:20:06 - End Time 2025-04-26 23:20:06 [2025-04-26 23:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997595', 'tblTempUsageDetail_20' ) start [2025-04-26 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997595', 'tblTempUsageDetail_20' ) end [2025-04-26 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997595', 'tblTempVendorCDR_20' ) start [2025-04-26 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997595', 'tblTempVendorCDR_20' ) end [2025-04-26 23:20:19] Production.INFO: ProcessCDR(1,14997595,1,1,2) [2025-04-26 23:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997595', 'tblTempUsageDetail_20' ) start [2025-04-26 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997595', 'tblTempUsageDetail_20' ) end [2025-04-26 23:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 23:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 23:20:22] Production.INFO: ==1421== Releasing lock... [2025-04-26 23:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 23:20:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-26 23:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 20:21:06 [end_date_ymd] => 2025-04-26 23:21:06 [RateCDR] => 1 ) [2025-04-26 23:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 20:21:06' and `end` < '2025-04-26 23:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 23:21:19] Production.INFO: count ==1621 [2025-04-26 23:21:19] Production.ERROR: pbx CDR StartTime 2025-04-26 20:21:06 - End Time 2025-04-26 23:21:06 [2025-04-26 23:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997600', 'tblTempUsageDetail_20' ) start [2025-04-26 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997600', 'tblTempUsageDetail_20' ) end [2025-04-26 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997600', 'tblTempVendorCDR_20' ) start [2025-04-26 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997600', 'tblTempVendorCDR_20' ) end [2025-04-26 23:21:19] Production.INFO: ProcessCDR(1,14997600,1,1,2) [2025-04-26 23:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997600', 'tblTempUsageDetail_20' ) start [2025-04-26 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997600', 'tblTempUsageDetail_20' ) end [2025-04-26 23:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 23:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 23:21:23] Production.INFO: ==1497== Releasing lock... [2025-04-26 23:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 23:21:23] Production.INFO: 40.5 MB #Memory Used# [2025-04-26 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 20:22:05 [end_date_ymd] => 2025-04-26 23:22:05 [RateCDR] => 1 ) [2025-04-26 23:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 20:22:05' and `end` < '2025-04-26 23:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 23:22:18] Production.INFO: count ==1620 [2025-04-26 23:22:18] Production.ERROR: pbx CDR StartTime 2025-04-26 20:22:05 - End Time 2025-04-26 23:22:05 [2025-04-26 23:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997605', 'tblTempUsageDetail_20' ) start [2025-04-26 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997605', 'tblTempUsageDetail_20' ) end [2025-04-26 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997605', 'tblTempVendorCDR_20' ) start [2025-04-26 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997605', 'tblTempVendorCDR_20' ) end [2025-04-26 23:22:18] Production.INFO: ProcessCDR(1,14997605,1,1,2) [2025-04-26 23:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997605', 'tblTempUsageDetail_20' ) start [2025-04-26 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997605', 'tblTempUsageDetail_20' ) end [2025-04-26 23:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 23:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 23:22:21] Production.INFO: ==1651== Releasing lock... [2025-04-26 23:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 23:22:21] Production.INFO: 40.5 MB #Memory Used# [2025-04-26 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 20:23:05 [end_date_ymd] => 2025-04-26 23:23:05 [RateCDR] => 1 ) [2025-04-26 23:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 20:23:05' and `end` < '2025-04-26 23:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 23:23:18] Production.INFO: count ==1617 [2025-04-26 23:23:18] Production.ERROR: pbx CDR StartTime 2025-04-26 20:23:05 - End Time 2025-04-26 23:23:05 [2025-04-26 23:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997610', 'tblTempUsageDetail_20' ) start [2025-04-26 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997610', 'tblTempUsageDetail_20' ) end [2025-04-26 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997610', 'tblTempVendorCDR_20' ) start [2025-04-26 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997610', 'tblTempVendorCDR_20' ) end [2025-04-26 23:23:18] Production.INFO: ProcessCDR(1,14997610,1,1,2) [2025-04-26 23:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997610', 'tblTempUsageDetail_20' ) start [2025-04-26 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997610', 'tblTempUsageDetail_20' ) end [2025-04-26 23:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 23:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 23:23:21] Production.INFO: ==1723== Releasing lock... [2025-04-26 23:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 23:23:21] Production.INFO: 40.75 MB #Memory Used# [2025-04-26 23:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 20:24:04 [end_date_ymd] => 2025-04-26 23:24:04 [RateCDR] => 1 ) [2025-04-26 23:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 20:24:04' and `end` < '2025-04-26 23: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-04-26 23:24:17] Production.INFO: count ==1616 [2025-04-26 23:24:18] Production.ERROR: pbx CDR StartTime 2025-04-26 20:24:04 - End Time 2025-04-26 23:24:04 [2025-04-26 23:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997615', 'tblTempUsageDetail_20' ) start [2025-04-26 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997615', 'tblTempUsageDetail_20' ) end [2025-04-26 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997615', 'tblTempVendorCDR_20' ) start [2025-04-26 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997615', 'tblTempVendorCDR_20' ) end [2025-04-26 23:24:18] Production.INFO: ProcessCDR(1,14997615,1,1,2) [2025-04-26 23:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997615', 'tblTempUsageDetail_20' ) start [2025-04-26 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997615', 'tblTempUsageDetail_20' ) end [2025-04-26 23:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 23:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 23:24:21] Production.INFO: ==1795== Releasing lock... [2025-04-26 23:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 23:24:21] Production.INFO: 40.25 MB #Memory Used# [2025-04-26 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 20:25:05 [end_date_ymd] => 2025-04-26 23:25:05 [RateCDR] => 1 ) [2025-04-26 23:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 20:25:05' and `end` < '2025-04-26 23:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 23:25:18] Production.INFO: count ==1617 [2025-04-26 23:25:18] Production.ERROR: pbx CDR StartTime 2025-04-26 20:25:05 - End Time 2025-04-26 23:25:05 [2025-04-26 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997620', 'tblTempUsageDetail_20' ) start [2025-04-26 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997620', 'tblTempUsageDetail_20' ) end [2025-04-26 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997620', 'tblTempVendorCDR_20' ) start [2025-04-26 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997620', 'tblTempVendorCDR_20' ) end [2025-04-26 23:25:18] Production.INFO: ProcessCDR(1,14997620,1,1,2) [2025-04-26 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997620', 'tblTempUsageDetail_20' ) start [2025-04-26 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997620', 'tblTempUsageDetail_20' ) end [2025-04-26 23:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 23:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 23:25:22] Production.INFO: ==1873== Releasing lock... [2025-04-26 23:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 23:25:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-26 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 20:26:05 [end_date_ymd] => 2025-04-26 23:26:05 [RateCDR] => 1 ) [2025-04-26 23:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 20:26:05' and `end` < '2025-04-26 23:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 23:26:18] Production.INFO: count ==1608 [2025-04-26 23:26:18] Production.ERROR: pbx CDR StartTime 2025-04-26 20:26:05 - End Time 2025-04-26 23:26:05 [2025-04-26 23:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997625', 'tblTempUsageDetail_20' ) start [2025-04-26 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997625', 'tblTempUsageDetail_20' ) end [2025-04-26 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997625', 'tblTempVendorCDR_20' ) start [2025-04-26 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997625', 'tblTempVendorCDR_20' ) end [2025-04-26 23:26:18] Production.INFO: ProcessCDR(1,14997625,1,1,2) [2025-04-26 23:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997625', 'tblTempUsageDetail_20' ) start [2025-04-26 23:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997625', 'tblTempUsageDetail_20' ) end [2025-04-26 23:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 23:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 23:26:22] Production.INFO: ==1945== Releasing lock... [2025-04-26 23:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 23:26:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-26 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 20:27:05 [end_date_ymd] => 2025-04-26 23:27:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 20:27:05' and `end` < '2025-04-26 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-04-26 23:27:18] Production.INFO: count ==1606 [2025-04-26 23:27:18] Production.ERROR: pbx CDR StartTime 2025-04-26 20:27:05 - End Time 2025-04-26 23:27:05 [2025-04-26 23:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997630', 'tblTempUsageDetail_20' ) start [2025-04-26 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997630', 'tblTempUsageDetail_20' ) end [2025-04-26 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997630', 'tblTempVendorCDR_20' ) start [2025-04-26 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997630', 'tblTempVendorCDR_20' ) end [2025-04-26 23:27:18] Production.INFO: ProcessCDR(1,14997630,1,1,2) [2025-04-26 23:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997630', 'tblTempUsageDetail_20' ) start [2025-04-26 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997630', 'tblTempUsageDetail_20' ) end [2025-04-26 23:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 23:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 23:27:22] Production.INFO: ==2021== Releasing lock... [2025-04-26 23:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 23:27:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-26 23:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 20:28:06 [end_date_ymd] => 2025-04-26 23:28:06 [RateCDR] => 1 ) [2025-04-26 23:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 20:28:06' and `end` < '2025-04-26 23:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 23:28:18] Production.INFO: count ==1604 [2025-04-26 23:28:19] Production.ERROR: pbx CDR StartTime 2025-04-26 20:28:06 - End Time 2025-04-26 23:28:06 [2025-04-26 23:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997635', 'tblTempUsageDetail_20' ) start [2025-04-26 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997635', 'tblTempUsageDetail_20' ) end [2025-04-26 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997635', 'tblTempVendorCDR_20' ) start [2025-04-26 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997635', 'tblTempVendorCDR_20' ) end [2025-04-26 23:28:19] Production.INFO: ProcessCDR(1,14997635,1,1,2) [2025-04-26 23:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997635', 'tblTempUsageDetail_20' ) start [2025-04-26 23:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997635', 'tblTempUsageDetail_20' ) end [2025-04-26 23:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 23:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 23:28:22] Production.INFO: ==2095== Releasing lock... [2025-04-26 23:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 23:28:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-26 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 20:29:05 [end_date_ymd] => 2025-04-26 23:29:05 [RateCDR] => 1 ) [2025-04-26 23:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 20:29:05' and `end` < '2025-04-26 23:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 23:29:18] Production.INFO: count ==1599 [2025-04-26 23:29:18] Production.ERROR: pbx CDR StartTime 2025-04-26 20:29:05 - End Time 2025-04-26 23:29:05 [2025-04-26 23:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997640', 'tblTempUsageDetail_20' ) start [2025-04-26 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997640', 'tblTempUsageDetail_20' ) end [2025-04-26 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997640', 'tblTempVendorCDR_20' ) start [2025-04-26 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997640', 'tblTempVendorCDR_20' ) end [2025-04-26 23:29:19] Production.INFO: ProcessCDR(1,14997640,1,1,2) [2025-04-26 23:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997640', 'tblTempUsageDetail_20' ) start [2025-04-26 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997640', 'tblTempUsageDetail_20' ) end [2025-04-26 23:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 23:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 23:29:22] Production.INFO: ==2165== Releasing lock... [2025-04-26 23:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 23:29:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-26 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 20:30:06 [end_date_ymd] => 2025-04-26 23:30:06 [RateCDR] => 1 ) [2025-04-26 23:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 20:30:06' and `end` < '2025-04-26 23:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 23:30:19] Production.INFO: count ==1597 [2025-04-26 23:30:19] Production.ERROR: pbx CDR StartTime 2025-04-26 20:30:06 - End Time 2025-04-26 23:30:06 [2025-04-26 23:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997646', 'tblTempUsageDetail_20' ) start [2025-04-26 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997646', 'tblTempUsageDetail_20' ) end [2025-04-26 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997646', 'tblTempVendorCDR_20' ) start [2025-04-26 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997646', 'tblTempVendorCDR_20' ) end [2025-04-26 23:30:19] Production.INFO: ProcessCDR(1,14997646,1,1,2) [2025-04-26 23:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997646', 'tblTempUsageDetail_20' ) start [2025-04-26 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997646', 'tblTempUsageDetail_20' ) end [2025-04-26 23:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 23:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 23:30:23] Production.INFO: ==2241== Releasing lock... [2025-04-26 23:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 23:30:23] Production.INFO: 40.25 MB #Memory Used# [2025-04-26 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 20:31:05 [end_date_ymd] => 2025-04-26 23:31:05 [RateCDR] => 1 ) [2025-04-26 23:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 20:31:05' and `end` < '2025-04-26 23:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 23:31:18] Production.INFO: count ==1593 [2025-04-26 23:31:18] Production.ERROR: pbx CDR StartTime 2025-04-26 20:31:05 - End Time 2025-04-26 23:31:05 [2025-04-26 23:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997651', 'tblTempUsageDetail_20' ) start [2025-04-26 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997651', 'tblTempUsageDetail_20' ) end [2025-04-26 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997651', 'tblTempVendorCDR_20' ) start [2025-04-26 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997651', 'tblTempVendorCDR_20' ) end [2025-04-26 23:31:18] Production.INFO: ProcessCDR(1,14997651,1,1,2) [2025-04-26 23:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997651', 'tblTempUsageDetail_20' ) start [2025-04-26 23:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997651', 'tblTempUsageDetail_20' ) end [2025-04-26 23:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 23:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 23:31:22] Production.INFO: ==2318== Releasing lock... [2025-04-26 23:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 23:31:22] Production.INFO: 41 MB #Memory Used# [2025-04-26 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 20:32:05 [end_date_ymd] => 2025-04-26 23:32:05 [RateCDR] => 1 ) [2025-04-26 23:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 20:32:05' and `end` < '2025-04-26 23:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 23:32:18] Production.INFO: count ==1593 [2025-04-26 23:32:19] Production.ERROR: pbx CDR StartTime 2025-04-26 20:32:05 - End Time 2025-04-26 23:32:05 [2025-04-26 23:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997656', 'tblTempUsageDetail_20' ) start [2025-04-26 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997656', 'tblTempUsageDetail_20' ) end [2025-04-26 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997656', 'tblTempVendorCDR_20' ) start [2025-04-26 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997656', 'tblTempVendorCDR_20' ) end [2025-04-26 23:32:19] Production.INFO: ProcessCDR(1,14997656,1,1,2) [2025-04-26 23:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997656', 'tblTempUsageDetail_20' ) start [2025-04-26 23:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997656', 'tblTempUsageDetail_20' ) end [2025-04-26 23:32:24] Production.ERROR: pbx prc_insertCDR start [2025-04-26 23:32:24] Production.ERROR: pbx prc_insertCDR end [2025-04-26 23:32:24] Production.INFO: ==2390== Releasing lock... [2025-04-26 23:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 23:32:24] Production.INFO: 40.25 MB #Memory Used# [2025-04-26 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 20:33:05 [end_date_ymd] => 2025-04-26 23:33:05 [RateCDR] => 1 ) [2025-04-26 23:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 20:33:05' and `end` < '2025-04-26 23:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 23:33:17] Production.INFO: count ==1589 [2025-04-26 23:33:18] Production.ERROR: pbx CDR StartTime 2025-04-26 20:33:05 - End Time 2025-04-26 23:33:05 [2025-04-26 23:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997661', 'tblTempUsageDetail_20' ) start [2025-04-26 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997661', 'tblTempUsageDetail_20' ) end [2025-04-26 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997661', 'tblTempVendorCDR_20' ) start [2025-04-26 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997661', 'tblTempVendorCDR_20' ) end [2025-04-26 23:33:18] Production.INFO: ProcessCDR(1,14997661,1,1,2) [2025-04-26 23:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997661', 'tblTempUsageDetail_20' ) start [2025-04-26 23:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997661', 'tblTempUsageDetail_20' ) end [2025-04-26 23:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 23:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 23:33:21] Production.INFO: ==2460== Releasing lock... [2025-04-26 23:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 23:33:21] Production.INFO: 40.25 MB #Memory Used# [2025-04-26 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 20:34:05 [end_date_ymd] => 2025-04-26 23:34:05 [RateCDR] => 1 ) [2025-04-26 23:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 20:34:05' and `end` < '2025-04-26 23:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 23:34:18] Production.INFO: count ==1584 [2025-04-26 23:34:18] Production.ERROR: pbx CDR StartTime 2025-04-26 20:34:05 - End Time 2025-04-26 23:34:05 [2025-04-26 23:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997666', 'tblTempUsageDetail_20' ) start [2025-04-26 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997666', 'tblTempUsageDetail_20' ) end [2025-04-26 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997666', 'tblTempVendorCDR_20' ) start [2025-04-26 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997666', 'tblTempVendorCDR_20' ) end [2025-04-26 23:34:18] Production.INFO: ProcessCDR(1,14997666,1,1,2) [2025-04-26 23:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997666', 'tblTempUsageDetail_20' ) start [2025-04-26 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997666', 'tblTempUsageDetail_20' ) end [2025-04-26 23:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 23:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 23:34:22] Production.INFO: ==2531== Releasing lock... [2025-04-26 23:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 23:34:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-26 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 20:35:05 [end_date_ymd] => 2025-04-26 23:35:05 [RateCDR] => 1 ) [2025-04-26 23:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 20:35:05' and `end` < '2025-04-26 23:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 23:35:18] Production.INFO: count ==1579 [2025-04-26 23:35:18] Production.ERROR: pbx CDR StartTime 2025-04-26 20:35:05 - End Time 2025-04-26 23:35:05 [2025-04-26 23:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997671', 'tblTempUsageDetail_20' ) start [2025-04-26 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997671', 'tblTempUsageDetail_20' ) end [2025-04-26 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997671', 'tblTempVendorCDR_20' ) start [2025-04-26 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997671', 'tblTempVendorCDR_20' ) end [2025-04-26 23:35:18] Production.INFO: ProcessCDR(1,14997671,1,1,2) [2025-04-26 23:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997671', 'tblTempUsageDetail_20' ) start [2025-04-26 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997671', 'tblTempUsageDetail_20' ) end [2025-04-26 23:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 23:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 23:35:21] Production.INFO: ==2606== Releasing lock... [2025-04-26 23:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 23:35:21] Production.INFO: 40.25 MB #Memory Used# [2025-04-26 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 20:36:05 [end_date_ymd] => 2025-04-26 23:36:05 [RateCDR] => 1 ) [2025-04-26 23:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 20:36:05' and `end` < '2025-04-26 23:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 23:36:18] Production.INFO: count ==1578 [2025-04-26 23:36:18] Production.ERROR: pbx CDR StartTime 2025-04-26 20:36:05 - End Time 2025-04-26 23:36:05 [2025-04-26 23:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997676', 'tblTempUsageDetail_20' ) start [2025-04-26 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997676', 'tblTempUsageDetail_20' ) end [2025-04-26 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997676', 'tblTempVendorCDR_20' ) start [2025-04-26 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997676', 'tblTempVendorCDR_20' ) end [2025-04-26 23:36:18] Production.INFO: ProcessCDR(1,14997676,1,1,2) [2025-04-26 23:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997676', 'tblTempUsageDetail_20' ) start [2025-04-26 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997676', 'tblTempUsageDetail_20' ) end [2025-04-26 23:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 23:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 23:36:22] Production.INFO: ==2686== Releasing lock... [2025-04-26 23:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 23:36:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-26 23:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 20:37:06 [end_date_ymd] => 2025-04-26 23:37:06 [RateCDR] => 1 ) [2025-04-26 23:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 20:37:06' and `end` < '2025-04-26 23:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 23:37:19] Production.INFO: count ==1573 [2025-04-26 23:37:19] Production.ERROR: pbx CDR StartTime 2025-04-26 20:37:06 - End Time 2025-04-26 23:37:06 [2025-04-26 23:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997681', 'tblTempUsageDetail_20' ) start [2025-04-26 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997681', 'tblTempUsageDetail_20' ) end [2025-04-26 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997681', 'tblTempVendorCDR_20' ) start [2025-04-26 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997681', 'tblTempVendorCDR_20' ) end [2025-04-26 23:37:19] Production.INFO: ProcessCDR(1,14997681,1,1,2) [2025-04-26 23:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997681', 'tblTempUsageDetail_20' ) start [2025-04-26 23:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997681', 'tblTempUsageDetail_20' ) end [2025-04-26 23:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 23:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 23:37:23] Production.INFO: ==2761== Releasing lock... [2025-04-26 23:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 23:37:23] Production.INFO: 40.5 MB #Memory Used# [2025-04-26 23:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 20:38:06 [end_date_ymd] => 2025-04-26 23:38:06 [RateCDR] => 1 ) [2025-04-26 23:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 20:38:06' and `end` < '2025-04-26 23:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 23:38:19] Production.INFO: count ==1572 [2025-04-26 23:38:19] Production.ERROR: pbx CDR StartTime 2025-04-26 20:38:06 - End Time 2025-04-26 23:38:06 [2025-04-26 23:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997686', 'tblTempUsageDetail_20' ) start [2025-04-26 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997686', 'tblTempUsageDetail_20' ) end [2025-04-26 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997686', 'tblTempVendorCDR_20' ) start [2025-04-26 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997686', 'tblTempVendorCDR_20' ) end [2025-04-26 23:38:19] Production.INFO: ProcessCDR(1,14997686,1,1,2) [2025-04-26 23:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997686', 'tblTempUsageDetail_20' ) start [2025-04-26 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997686', 'tblTempUsageDetail_20' ) end [2025-04-26 23:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 23:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 23:38:22] Production.INFO: ==2870== Releasing lock... [2025-04-26 23:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 23:38:22] Production.INFO: 40 MB #Memory Used# [2025-04-26 23:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 20:39:04 [end_date_ymd] => 2025-04-26 23:39:04 [RateCDR] => 1 ) [2025-04-26 23:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 20:39:04' and `end` < '2025-04-26 23:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 23:39:17] Production.INFO: count ==1574 [2025-04-26 23:39:17] Production.ERROR: pbx CDR StartTime 2025-04-26 20:39:04 - End Time 2025-04-26 23:39:04 [2025-04-26 23:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997691', 'tblTempUsageDetail_20' ) start [2025-04-26 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997691', 'tblTempUsageDetail_20' ) end [2025-04-26 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997691', 'tblTempVendorCDR_20' ) start [2025-04-26 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997691', 'tblTempVendorCDR_20' ) end [2025-04-26 23:39:17] Production.INFO: ProcessCDR(1,14997691,1,1,2) [2025-04-26 23:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997691', 'tblTempUsageDetail_20' ) start [2025-04-26 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997691', 'tblTempUsageDetail_20' ) end [2025-04-26 23:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 23:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 23:39:21] Production.INFO: ==2939== Releasing lock... [2025-04-26 23:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 23:39:21] Production.INFO: 40.75 MB #Memory Used# [2025-04-26 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 20:40:06 [end_date_ymd] => 2025-04-26 23:40:06 [RateCDR] => 1 ) [2025-04-26 23:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 20:40:06' and `end` < '2025-04-26 23:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 23:40:19] Production.INFO: count ==1574 [2025-04-26 23:40:19] Production.ERROR: pbx CDR StartTime 2025-04-26 20:40:06 - End Time 2025-04-26 23:40:06 [2025-04-26 23:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997697', 'tblTempUsageDetail_20' ) start [2025-04-26 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997697', 'tblTempUsageDetail_20' ) end [2025-04-26 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997697', 'tblTempVendorCDR_20' ) start [2025-04-26 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997697', 'tblTempVendorCDR_20' ) end [2025-04-26 23:40:19] Production.INFO: ProcessCDR(1,14997697,1,1,2) [2025-04-26 23:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997697', 'tblTempUsageDetail_20' ) start [2025-04-26 23:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997697', 'tblTempUsageDetail_20' ) end [2025-04-26 23:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 23:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 23:40:23] Production.INFO: ==3017== Releasing lock... [2025-04-26 23:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 23:40:23] Production.INFO: 40.25 MB #Memory Used# [2025-04-26 23:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 20:41:06 [end_date_ymd] => 2025-04-26 23:41:06 [RateCDR] => 1 ) [2025-04-26 23:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 20:41:06' and `end` < '2025-04-26 23:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 23:41:18] Production.INFO: count ==1539 [2025-04-26 23:41:19] Production.ERROR: pbx CDR StartTime 2025-04-26 20:41:06 - End Time 2025-04-26 23:41:06 [2025-04-26 23:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997702', 'tblTempUsageDetail_20' ) start [2025-04-26 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997702', 'tblTempUsageDetail_20' ) end [2025-04-26 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997702', 'tblTempVendorCDR_20' ) start [2025-04-26 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997702', 'tblTempVendorCDR_20' ) end [2025-04-26 23:41:19] Production.INFO: ProcessCDR(1,14997702,1,1,2) [2025-04-26 23:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997702', 'tblTempUsageDetail_20' ) start [2025-04-26 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997702', 'tblTempUsageDetail_20' ) end [2025-04-26 23:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 23:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 23:41:22] Production.INFO: ==3092== Releasing lock... [2025-04-26 23:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 23:41:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-26 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 20:42:05 [end_date_ymd] => 2025-04-26 23:42:05 [RateCDR] => 1 ) [2025-04-26 23:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 20:42:05' and `end` < '2025-04-26 23:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 23:42:18] Production.INFO: count ==1527 [2025-04-26 23:42:18] Production.ERROR: pbx CDR StartTime 2025-04-26 20:42:05 - End Time 2025-04-26 23:42:05 [2025-04-26 23:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997707', 'tblTempUsageDetail_20' ) start [2025-04-26 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997707', 'tblTempUsageDetail_20' ) end [2025-04-26 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997707', 'tblTempVendorCDR_20' ) start [2025-04-26 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997707', 'tblTempVendorCDR_20' ) end [2025-04-26 23:42:18] Production.INFO: ProcessCDR(1,14997707,1,1,2) [2025-04-26 23:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997707', 'tblTempUsageDetail_20' ) start [2025-04-26 23:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997707', 'tblTempUsageDetail_20' ) end [2025-04-26 23:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 23:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 23:42:23] Production.INFO: ==3169== Releasing lock... [2025-04-26 23:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 23:42:23] Production.INFO: 40.25 MB #Memory Used# [2025-04-26 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 20:43:05 [end_date_ymd] => 2025-04-26 23:43:05 [RateCDR] => 1 ) [2025-04-26 23:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 20:43:05' and `end` < '2025-04-26 23:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 23:43:18] Production.INFO: count ==1530 [2025-04-26 23:43:19] Production.ERROR: pbx CDR StartTime 2025-04-26 20:43:05 - End Time 2025-04-26 23:43:05 [2025-04-26 23:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997712', 'tblTempUsageDetail_20' ) start [2025-04-26 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997712', 'tblTempUsageDetail_20' ) end [2025-04-26 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997712', 'tblTempVendorCDR_20' ) start [2025-04-26 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997712', 'tblTempVendorCDR_20' ) end [2025-04-26 23:43:19] Production.INFO: ProcessCDR(1,14997712,1,1,2) [2025-04-26 23:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997712', 'tblTempUsageDetail_20' ) start [2025-04-26 23:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997712', 'tblTempUsageDetail_20' ) end [2025-04-26 23:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 23:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 23:43:22] Production.INFO: ==3242== Releasing lock... [2025-04-26 23:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 23:43:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-26 23:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 20:44:04 [end_date_ymd] => 2025-04-26 23:44:04 [RateCDR] => 1 ) [2025-04-26 23: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-04-26 20:44:04' and `end` < '2025-04-26 23: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-04-26 23:44:17] Production.INFO: count ==1528 [2025-04-26 23:44:18] Production.ERROR: pbx CDR StartTime 2025-04-26 20:44:04 - End Time 2025-04-26 23:44:04 [2025-04-26 23:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997717', 'tblTempUsageDetail_20' ) start [2025-04-26 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997717', 'tblTempUsageDetail_20' ) end [2025-04-26 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997717', 'tblTempVendorCDR_20' ) start [2025-04-26 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997717', 'tblTempVendorCDR_20' ) end [2025-04-26 23:44:18] Production.INFO: ProcessCDR(1,14997717,1,1,2) [2025-04-26 23:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997717', 'tblTempUsageDetail_20' ) start [2025-04-26 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997717', 'tblTempUsageDetail_20' ) end [2025-04-26 23:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 23:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 23:44:21] Production.INFO: ==3314== Releasing lock... [2025-04-26 23:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 23:44:21] Production.INFO: 39.75 MB #Memory Used# [2025-04-26 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 20:45:05 [end_date_ymd] => 2025-04-26 23:45:05 [RateCDR] => 1 ) [2025-04-26 23:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 20:45:05' and `end` < '2025-04-26 23:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 23:45:18] Production.INFO: count ==1519 [2025-04-26 23:45:18] Production.ERROR: pbx CDR StartTime 2025-04-26 20:45:05 - End Time 2025-04-26 23:45:05 [2025-04-26 23:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997722', 'tblTempUsageDetail_20' ) start [2025-04-26 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997722', 'tblTempUsageDetail_20' ) end [2025-04-26 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997722', 'tblTempVendorCDR_20' ) start [2025-04-26 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997722', 'tblTempVendorCDR_20' ) end [2025-04-26 23:45:18] Production.INFO: ProcessCDR(1,14997722,1,1,2) [2025-04-26 23:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997722', 'tblTempUsageDetail_20' ) start [2025-04-26 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997722', 'tblTempUsageDetail_20' ) end [2025-04-26 23:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 23:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 23:45:22] Production.INFO: ==3404== Releasing lock... [2025-04-26 23:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 23:45:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-26 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 20:46:05 [end_date_ymd] => 2025-04-26 23:46:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 20:46:05' and `end` < '2025-04-26 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-04-26 23:46:18] Production.INFO: count ==1505 [2025-04-26 23:46:18] Production.ERROR: pbx CDR StartTime 2025-04-26 20:46:05 - End Time 2025-04-26 23:46:05 [2025-04-26 23:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997727', 'tblTempUsageDetail_20' ) start [2025-04-26 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997727', 'tblTempUsageDetail_20' ) end [2025-04-26 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997727', 'tblTempVendorCDR_20' ) start [2025-04-26 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997727', 'tblTempVendorCDR_20' ) end [2025-04-26 23:46:18] Production.INFO: ProcessCDR(1,14997727,1,1,2) [2025-04-26 23:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997727', 'tblTempUsageDetail_20' ) start [2025-04-26 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997727', 'tblTempUsageDetail_20' ) end [2025-04-26 23:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 23:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 23:46:22] Production.INFO: ==3505== Releasing lock... [2025-04-26 23:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 23:46:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-26 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 20:47:05 [end_date_ymd] => 2025-04-26 23:47:05 [RateCDR] => 1 ) [2025-04-26 23:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 20:47:05' and `end` < '2025-04-26 23:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 23:47:18] Production.INFO: count ==1500 [2025-04-26 23:47:18] Production.ERROR: pbx CDR StartTime 2025-04-26 20:47:05 - End Time 2025-04-26 23:47:05 [2025-04-26 23:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997732', 'tblTempUsageDetail_20' ) start [2025-04-26 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997732', 'tblTempUsageDetail_20' ) end [2025-04-26 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997732', 'tblTempVendorCDR_20' ) start [2025-04-26 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997732', 'tblTempVendorCDR_20' ) end [2025-04-26 23:47:18] Production.INFO: ProcessCDR(1,14997732,1,1,2) [2025-04-26 23:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997732', 'tblTempUsageDetail_20' ) start [2025-04-26 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997732', 'tblTempUsageDetail_20' ) end [2025-04-26 23:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 23:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 23:47:21] Production.INFO: ==3575== Releasing lock... [2025-04-26 23:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 23:47:21] Production.INFO: 39.5 MB #Memory Used# [2025-04-26 23:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 20:48:06 [end_date_ymd] => 2025-04-26 23:48:06 [RateCDR] => 1 ) [2025-04-26 23:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 20:48:06' and `end` < '2025-04-26 23:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 23:48:18] Production.INFO: count ==1498 [2025-04-26 23:48:19] Production.ERROR: pbx CDR StartTime 2025-04-26 20:48:06 - End Time 2025-04-26 23:48:06 [2025-04-26 23:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997737', 'tblTempUsageDetail_20' ) start [2025-04-26 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997737', 'tblTempUsageDetail_20' ) end [2025-04-26 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997737', 'tblTempVendorCDR_20' ) start [2025-04-26 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997737', 'tblTempVendorCDR_20' ) end [2025-04-26 23:48:19] Production.INFO: ProcessCDR(1,14997737,1,1,2) [2025-04-26 23:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997737', 'tblTempUsageDetail_20' ) start [2025-04-26 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997737', 'tblTempUsageDetail_20' ) end [2025-04-26 23:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 23:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 23:48:22] Production.INFO: ==3647== Releasing lock... [2025-04-26 23:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 23:48:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-26 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 20:49:05 [end_date_ymd] => 2025-04-26 23:49:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 20:49:05' and `end` < '2025-04-26 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-04-26 23:49:17] Production.INFO: count ==1494 [2025-04-26 23:49:18] Production.ERROR: pbx CDR StartTime 2025-04-26 20:49:05 - End Time 2025-04-26 23:49:05 [2025-04-26 23:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997742', 'tblTempUsageDetail_20' ) start [2025-04-26 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997742', 'tblTempUsageDetail_20' ) end [2025-04-26 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997742', 'tblTempVendorCDR_20' ) start [2025-04-26 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997742', 'tblTempVendorCDR_20' ) end [2025-04-26 23:49:18] Production.INFO: ProcessCDR(1,14997742,1,1,2) [2025-04-26 23:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997742', 'tblTempUsageDetail_20' ) start [2025-04-26 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997742', 'tblTempUsageDetail_20' ) end [2025-04-26 23:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 23:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 23:49:21] Production.INFO: ==3724== Releasing lock... [2025-04-26 23:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 23:49:21] Production.INFO: 39.75 MB #Memory Used# [2025-04-26 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 20:50:06 [end_date_ymd] => 2025-04-26 23:50:06 [RateCDR] => 1 ) [2025-04-26 23:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 20:50:06' and `end` < '2025-04-26 23:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 23:50:19] Production.INFO: count ==1487 [2025-04-26 23:50:20] Production.ERROR: pbx CDR StartTime 2025-04-26 20:50:06 - End Time 2025-04-26 23:50:06 [2025-04-26 23:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 23:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997748', 'tblTempUsageDetail_20' ) start [2025-04-26 23:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997748', 'tblTempUsageDetail_20' ) end [2025-04-26 23:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997748', 'tblTempVendorCDR_20' ) start [2025-04-26 23:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997748', 'tblTempVendorCDR_20' ) end [2025-04-26 23:50:20] Production.INFO: ProcessCDR(1,14997748,1,1,2) [2025-04-26 23:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997748', 'tblTempUsageDetail_20' ) start [2025-04-26 23:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997748', 'tblTempUsageDetail_20' ) end [2025-04-26 23:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-26 23:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-26 23:50:23] Production.INFO: ==3807== Releasing lock... [2025-04-26 23:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 23:50:23] Production.INFO: 39.5 MB #Memory Used# [2025-04-26 23:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 20:51:04 [end_date_ymd] => 2025-04-26 23:51:04 [RateCDR] => 1 ) [2025-04-26 23:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 20:51:04' and `end` < '2025-04-26 23:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 23:51:17] Production.INFO: count ==1435 [2025-04-26 23:51:17] Production.ERROR: pbx CDR StartTime 2025-04-26 20:51:04 - End Time 2025-04-26 23:51:04 [2025-04-26 23:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997753', 'tblTempUsageDetail_20' ) start [2025-04-26 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997753', 'tblTempUsageDetail_20' ) end [2025-04-26 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997753', 'tblTempVendorCDR_20' ) start [2025-04-26 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997753', 'tblTempVendorCDR_20' ) end [2025-04-26 23:51:18] Production.INFO: ProcessCDR(1,14997753,1,1,2) [2025-04-26 23:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997753', 'tblTempUsageDetail_20' ) start [2025-04-26 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997753', 'tblTempUsageDetail_20' ) end [2025-04-26 23:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 23:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 23:51:21] Production.INFO: ==3899== Releasing lock... [2025-04-26 23:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 23:51:21] Production.INFO: 39 MB #Memory Used# [2025-04-26 23:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 20:52:06 [end_date_ymd] => 2025-04-26 23:52:06 [RateCDR] => 1 ) [2025-04-26 23:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 20:52:06' and `end` < '2025-04-26 23:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 23:52:18] Production.INFO: count ==1430 [2025-04-26 23:52:19] Production.ERROR: pbx CDR StartTime 2025-04-26 20:52:06 - End Time 2025-04-26 23:52:06 [2025-04-26 23:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997758', 'tblTempUsageDetail_20' ) start [2025-04-26 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997758', 'tblTempUsageDetail_20' ) end [2025-04-26 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997758', 'tblTempVendorCDR_20' ) start [2025-04-26 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997758', 'tblTempVendorCDR_20' ) end [2025-04-26 23:52:19] Production.INFO: ProcessCDR(1,14997758,1,1,2) [2025-04-26 23:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997758', 'tblTempUsageDetail_20' ) start [2025-04-26 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997758', 'tblTempUsageDetail_20' ) end [2025-04-26 23:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 23:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 23:52:22] Production.INFO: ==3974== Releasing lock... [2025-04-26 23:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 23:52:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-26 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 20:53:05 [end_date_ymd] => 2025-04-26 23:53:05 [RateCDR] => 1 ) [2025-04-26 23:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 20:53:05' and `end` < '2025-04-26 23:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 23:53:17] Production.INFO: count ==1424 [2025-04-26 23:53:18] Production.ERROR: pbx CDR StartTime 2025-04-26 20:53:05 - End Time 2025-04-26 23:53:05 [2025-04-26 23:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997763', 'tblTempUsageDetail_20' ) start [2025-04-26 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997763', 'tblTempUsageDetail_20' ) end [2025-04-26 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997763', 'tblTempVendorCDR_20' ) start [2025-04-26 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997763', 'tblTempVendorCDR_20' ) end [2025-04-26 23:53:18] Production.INFO: ProcessCDR(1,14997763,1,1,2) [2025-04-26 23:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997763', 'tblTempUsageDetail_20' ) start [2025-04-26 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997763', 'tblTempUsageDetail_20' ) end [2025-04-26 23:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 23:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 23:53:21] Production.INFO: ==4088== Releasing lock... [2025-04-26 23:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 23:53:21] Production.INFO: 39.25 MB #Memory Used# [2025-04-26 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 20:54:05 [end_date_ymd] => 2025-04-26 23:54:05 [RateCDR] => 1 ) [2025-04-26 23:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 20:54:05' and `end` < '2025-04-26 23:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 23:54:18] Production.INFO: count ==1426 [2025-04-26 23:54:18] Production.ERROR: pbx CDR StartTime 2025-04-26 20:54:05 - End Time 2025-04-26 23:54:05 [2025-04-26 23:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997768', 'tblTempUsageDetail_20' ) start [2025-04-26 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997768', 'tblTempUsageDetail_20' ) end [2025-04-26 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997768', 'tblTempVendorCDR_20' ) start [2025-04-26 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997768', 'tblTempVendorCDR_20' ) end [2025-04-26 23:54:18] Production.INFO: ProcessCDR(1,14997768,1,1,2) [2025-04-26 23:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997768', 'tblTempUsageDetail_20' ) start [2025-04-26 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997768', 'tblTempUsageDetail_20' ) end [2025-04-26 23:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 23:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 23:54:21] Production.INFO: ==4158== Releasing lock... [2025-04-26 23:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 23:54:21] Production.INFO: 39.25 MB #Memory Used# [2025-04-26 23:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 20:55:06 [end_date_ymd] => 2025-04-26 23:55:06 [RateCDR] => 1 ) [2025-04-26 23:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 20:55:06' and `end` < '2025-04-26 23:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 23:55:18] Production.INFO: count ==1424 [2025-04-26 23:55:19] Production.ERROR: pbx CDR StartTime 2025-04-26 20:55:06 - End Time 2025-04-26 23:55:06 [2025-04-26 23:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997773', 'tblTempUsageDetail_20' ) start [2025-04-26 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997773', 'tblTempUsageDetail_20' ) end [2025-04-26 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997773', 'tblTempVendorCDR_20' ) start [2025-04-26 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997773', 'tblTempVendorCDR_20' ) end [2025-04-26 23:55:19] Production.INFO: ProcessCDR(1,14997773,1,1,2) [2025-04-26 23:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997773', 'tblTempUsageDetail_20' ) start [2025-04-26 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997773', 'tblTempUsageDetail_20' ) end [2025-04-26 23:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 23:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 23:55:22] Production.INFO: ==4231== Releasing lock... [2025-04-26 23:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 23:55:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-26 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 20:56:05 [end_date_ymd] => 2025-04-26 23:56:05 [RateCDR] => 1 ) [2025-04-26 23:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 20:56:05' and `end` < '2025-04-26 23:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 23:56:18] Production.INFO: count ==1421 [2025-04-26 23:56:18] Production.ERROR: pbx CDR StartTime 2025-04-26 20:56:05 - End Time 2025-04-26 23:56:05 [2025-04-26 23:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997778', 'tblTempUsageDetail_20' ) start [2025-04-26 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997778', 'tblTempUsageDetail_20' ) end [2025-04-26 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997778', 'tblTempVendorCDR_20' ) start [2025-04-26 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997778', 'tblTempVendorCDR_20' ) end [2025-04-26 23:56:18] Production.INFO: ProcessCDR(1,14997778,1,1,2) [2025-04-26 23:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997778', 'tblTempUsageDetail_20' ) start [2025-04-26 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997778', 'tblTempUsageDetail_20' ) end [2025-04-26 23:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 23:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 23:56:22] Production.INFO: ==4303== Releasing lock... [2025-04-26 23:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 23:56:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-26 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 20:57:05 [end_date_ymd] => 2025-04-26 23:57:05 [RateCDR] => 1 ) [2025-04-26 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-04-26 20:57:05' and `end` < '2025-04-26 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-04-26 23:57:18] Production.INFO: count ==1416 [2025-04-26 23:57:18] Production.ERROR: pbx CDR StartTime 2025-04-26 20:57:05 - End Time 2025-04-26 23:57:05 [2025-04-26 23:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997783', 'tblTempUsageDetail_20' ) start [2025-04-26 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997783', 'tblTempUsageDetail_20' ) end [2025-04-26 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997783', 'tblTempVendorCDR_20' ) start [2025-04-26 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997783', 'tblTempVendorCDR_20' ) end [2025-04-26 23:57:18] Production.INFO: ProcessCDR(1,14997783,1,1,2) [2025-04-26 23:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997783', 'tblTempUsageDetail_20' ) start [2025-04-26 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997783', 'tblTempUsageDetail_20' ) end [2025-04-26 23:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 23:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-26 23:57:21] Production.INFO: ==4374== Releasing lock... [2025-04-26 23:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 23:57:21] Production.INFO: 39.25 MB #Memory Used# [2025-04-26 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 20:58:05 [end_date_ymd] => 2025-04-26 23:58:05 [RateCDR] => 1 ) [2025-04-26 23:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 20:58:05' and `end` < '2025-04-26 23:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 23:58:18] Production.INFO: count ==1411 [2025-04-26 23:58:18] Production.ERROR: pbx CDR StartTime 2025-04-26 20:58:05 - End Time 2025-04-26 23:58:05 [2025-04-26 23:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997788', 'tblTempUsageDetail_20' ) start [2025-04-26 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997788', 'tblTempUsageDetail_20' ) end [2025-04-26 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997788', 'tblTempVendorCDR_20' ) start [2025-04-26 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997788', 'tblTempVendorCDR_20' ) end [2025-04-26 23:58:18] Production.INFO: ProcessCDR(1,14997788,1,1,2) [2025-04-26 23:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997788', 'tblTempUsageDetail_20' ) start [2025-04-26 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997788', 'tblTempUsageDetail_20' ) end [2025-04-26 23:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-26 23:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 23:58:22] Production.INFO: ==4445== Releasing lock... [2025-04-26 23:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 23:58:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-26 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-26 20:59:05 [end_date_ymd] => 2025-04-26 23:59:05 [RateCDR] => 1 ) [2025-04-26 23:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-26 20:59:05' and `end` < '2025-04-26 23:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-26 23:59:18] Production.INFO: count ==1406 [2025-04-26 23:59:18] Production.ERROR: pbx CDR StartTime 2025-04-26 20:59:05 - End Time 2025-04-26 23:59:05 [2025-04-26 23:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-26 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997793', 'tblTempUsageDetail_20' ) start [2025-04-26 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14997793', 'tblTempUsageDetail_20' ) end [2025-04-26 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997793', 'tblTempVendorCDR_20' ) start [2025-04-26 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14997793', 'tblTempVendorCDR_20' ) end [2025-04-26 23:59:19] Production.INFO: ProcessCDR(1,14997793,1,1,2) [2025-04-26 23:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14997793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14997793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-26 23:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14997793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14997793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-26 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997793', 'tblTempUsageDetail_20' ) start [2025-04-26 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14997793', 'tblTempUsageDetail_20' ) end [2025-04-26 23:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-26 23:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-26 23:59:22] Production.INFO: ==4518== Releasing lock... [2025-04-26 23:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-26 23:59:22] Production.INFO: 39.25 MB #Memory Used#